:root {
    --primary-color: #2a3b8f;
    --secondary-color: #ff4d4d;
    --dark-color: #1c1c1c;
    --light-color: #f5f5f5;
    --text-color: #333;
    --light-text: #fff;
    --section-padding: 80px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.tagline {
    font-size: 14px;
    color: #777;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-contact {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #1d2b6e;
    color: white;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 30px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 150px 0;
    overflow: hidden;
    background-color: #000 !important; /* Fallback background color with !important */
    background-image: none !important; /* Force remove any background image */
}

/* Aggressive override to hide any unwanted text in hero section */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure slideshow is above the black overlay */
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d2b6e;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.service-category {
    flex: 1 1 45%;
    min-width: 300px;
}

.service-category h3 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.service-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-cta {
    text-align: center;
    margin-top: 60px;
}

.service-cta p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
    background: #f9f9f9;
}

/* Spacing between testimonials (applies on testimonials page too) */
.testimonial {
    margin-bottom: 24px;
}

/* Ensure extra gap specifically on the testimonials page */
.testimonials .testimonial {
    margin: 32px 0;
    display: block;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}
.testimonials .testimonial + .testimonial {
    margin-top: 24px;
}

/* Simplified stacked layout for testimonials page */
.testimonials .testimonial-author {
    padding: 0;
    border: 0;
    margin: 0 0 6px 0;
}
.testimonials .testimonial-author h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}
.testimonials .testimonial-author h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}
.testimonials .testimonial-content {
    padding: 0;
}
.testimonials .testimonial-content p {
    margin: 24px 0 0 !important;
    font-style: normal;
    color: #333;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.gallery-filter {
    background: transparent;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.gallery-filter.active, .gallery-filter:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.gallery-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.info-item p {
    margin: 0;
    line-height: 1.5;
}

.contact-social {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:nth-child(5),
.form-group:nth-child(6),
.form-group:nth-child(7),
.form-submit {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

/* Custom dropdown styling */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
}

.selected-option {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.selected-option::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #888;
}

.selected-option.selected {
    border-color: #4a69bd;
    color: #4a69bd;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.option {
    padding: 12px 15px;
    transition: background 0.2s;
}

.option:hover {
    background-color: #f0f4f8;
    color: #4a69bd;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #4a69bd;
}

/* Form Status Messages */
#form-status, .form-status {
    margin-top: 15px;
    margin-bottom: 15px;
    display: none;
}

#form-status:not(:empty), .form-status:not(:empty) {
    display: block;
}

.status-message {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.status-message.animated {
    opacity: 1;
    transform: translateY(0);
}

.status-message.sending {
    background-color: #e2e3e5;
    color: #383d41;
    border-left: 4px solid #a9adb1;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Form Status and Error Message Styling */
.form-status {
    margin: 20px 0;
    display: none;
}

.status-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.status-message.animated {
    opacity: 1;
    transform: translateY(0);
}

.status-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    padding-left: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: errorFadeIn 0.3s ease-in-out;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input.error,
select.error,
textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25);
}

.status-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* Form validation styles */
.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0;
}

/* Submit Button Styles */
.submit-button,
#submit-button {
    width: 100%;
    padding: 16px 30px;
    font-size: 18px;
    background-color: #4a69bd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 25px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

.submit-button:hover,
#submit-button:hover {
    background-color: #5a7cd1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.submit-button:active,
#submit-button:active {
    background-color: #3c5aa6;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button.button-success,
#submit-button.button-success,
.submit-button.success,
#submit-button.success {
    background-color: #28a745 !important;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
    color: #fff !important;
}

.submit-button.button-loading,
#submit-button.button-loading,
.submit-button.loading,
#submit-button.loading {
    background-color: #7f8fa6;
    cursor: not-allowed;
    transform: none;
}

.submit-button.button-error,
#submit-button.button-error,
.submit-button.error,
#submit-button.error {
    background-color: #dc3545;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

/* Focus styles for accessibility */
.submit-button:focus,
#submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.5);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .services-grid, 
    .portfolio-grid,
    .about-grid {
        flex-direction: column;
    }
    
    /* Make contact form single-column on mobile */
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group:nth-child(1),
    .form-group:nth-child(2),
    .form-group:nth-child(3),
    .form-group:nth-child(4) {
        grid-column: 1 / -1;
    }
    
    .contact-grid {
        display: flex;
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }

    /* Better spacing for mobile */
    section {
        padding: 40px 0;
    }
    
    /* Fix testimonials on mobile */
    .testimonial {
        padding: 0;
        margin-bottom: 25px;
    }
    
    .testimonial-author {
        padding: 15px 15px;
    }
    
    .testimonial-content {
        padding: 15px 15px 15px 40px;
    }
    
    .testimonial-content::before {
        font-size: 40px;
        top: 5px;
        left: 15px;
    }
}

/* Additional improvements for small screens */
@media (max-width: 480px) {
    /* Testimonial styles */
    .testimonial-content p {
        font-size: 15px;
    }
    
    .testimonial-author h3 {
        font-size: 18px;
    }
    
    .testimonial-author h4 {
        font-size: 14px;
    }
    
    .testimonial-content {
        padding: 15px 15px 15px 35px;
    }
    
    .testimonial-author {
        text-align: center;
    }
    
    /* Contact form styles */
    .contact-form-container {
        padding: 20px 15px;
    }
    
    .submit-button,
    #submit-button {
        padding: 18px;
        min-height: 70px;
        font-size: 20px;
    }
    
    /* Make contact form more touch-friendly */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 15px;
        font-size: 16px;
    }
    
    /* For better mobile form error handling */
    .error {
        border: 2px solid #dc3545;
        background-color: rgba(220, 53, 69, 0.05);
    }
    
    .error-message {
        width: 100%;
        margin: 5px 0;
        padding: 5px 0;
        color: #dc3545;
        font-size: 14px;
        font-weight: 500;
    }
    
    #form-status {
        margin: 15px 0;
    }
    
    .status-message {
        width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 5px;
        font-weight: 500;
        text-align: center;
    }
    
    /* Force larger tap targets on mobile */
    input, select, textarea, button {
        min-height: 44px;
        font-size: 16px;
    }
    
    /* Ensure enough space between fields for fat fingers */
    .form-group {
        margin-bottom: 20px;
        padding: 5px 0;
    }
    
    /* Make touch states obvious */
    input:focus, select:focus, textarea:focus, button:active {
        outline: 3px solid rgba(74, 105, 189, 0.5);
    }
    
    /* Add spacing to avoid accidental taps */
    #contactForm {
        padding: 5px;
    }
}

/* Tap highlight color for mobile */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(74, 105, 189, 0.3);
}

/* Enhanced Form Submit Area */
.form-submit {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

button[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 34px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(42, 59, 143, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button[type="submit"]:hover {
    background: #223175;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 59, 143, 0.5);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(42, 59, 143, 0.4);
}

button[type="submit"] i {
    font-size: 18px;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

button[type="submit"]:hover::before {
    left: 100%;
}

/* Privacy policy checkbox styling */
.form-privacy {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.form-privacy input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.form-privacy label {
    display: inline;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

/* Submit area message positioning */
#form-status {
    width: 100%;
    position: relative;
}

/* Submit spinner animation */
.submit-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Show spinner when submitting */
.submitting .submit-spinner {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-submit {
        justify-content: center;
    }
    
    button[type="submit"] {
        width: 100%;
    }
}

/* Button State Animations */
.submit-button.loading,
button[type="submit"].loading {
    color: transparent !important;
    position: relative;
    pointer-events: none;
}

.submit-button.loading::after,
button[type="submit"].loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-button.success,
button[type="submit"].success {
    background-color: #28a745 !important;
    color: #ffffff !important;
    pointer-events: none;
}

.submit-button.success::after,
button[type="submit"].success::after {
    content: "✓";
    font-size: 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-button.error,
button[type="submit"].error {
    background-color: #dc3545 !important;
    color: transparent !important;
    pointer-events: none;
}

.submit-button.error::after,
button[type="submit"].error::after {
    content: "✗";
    font-size: 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
