/* ===== Impact Decor Ltd - Main Stylesheet ===== */
/* Branding: Innovation. Integrity. Impact. */
/* Location: Brighton and Sussex, UK */

/* ===== CSS Variables - Updated Palette ===== */
/* OLD PALETTE (BACKUP):
 * --deep-royal-blue: #002B5B;
 * --warm-grey: #F4F5F7;
 * --sun-flare: #FFD166;
 */
:root {
    /* Primary Colors */
    --deep-royal-blue: #1E2A38;  /* Deep Navy Blue - updated from #002B5B */
    --pure-white: #FFFFFF;
    --warm-grey: #E8E8E8;  /* Light Grey - updated from #F4F5F7 */
    --sun-flare: #C9A227;  /* Warm Gold - updated from #FFD166 */
    
    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    
    /* Gradient Accents - Updated to Warm Gold */
    /* OLD: #FFD166, #FFB84D, #FF9B50, #FF8C69, #FFA07A */
    --gradient-rainbow: linear-gradient(135deg, 
        #C9A227 0%,   /* Warm Gold */
        #B89320 20%,  /* Darker Gold */
        #A68419 40%,  /* Deep Gold */
        #B89320 60%,  /* Darker Gold */
        #C9A227 80%,  /* Warm Gold */
        #C9A227 100%  /* Back to Warm Gold */
    );
    
    /* Shadows and Effects - Updated to Deep Navy Blue */
    /* OLD: rgba(0, 43, 91, ...) */
    --shadow-sm: 0 2px 4px rgba(30, 42, 56, 0.1);
    --shadow-md: 0 4px 12px rgba(30, 42, 56, 0.15);
    --shadow-lg: 0 8px 24px rgba(30, 42, 56, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--pure-white);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--deep-royal-blue);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--sun-flare);
    color: var(--deep-royal-blue);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gradient-rainbow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--deep-royal-blue);
    color: var(--pure-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    /* Updated to lighter shade of Deep Navy Blue */
    /* OLD: #003D7A */
    background: #2A3A4C;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--deep-royal-blue);
    border: 2px solid var(--deep-royal-blue);
}

.btn-outline:hover {
    background: var(--deep-royal-blue);
    color: var(--pure-white);
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pure-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-image {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(30, 42, 56, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: var(--pure-white);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--deep-royal-blue);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sun-flare);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--sun-flare);
    transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--deep-royal-blue);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--deep-royal-blue);
    transition: var(--transition-smooth);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay for contrast */
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--pure-white);
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--pure-white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: var(--pure-white);
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Sections ===== */
section {
    padding: 5rem 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    text-align: center;
}

/* ===== About Preview / Intro Section ===== */
.intro-section {
    background: var(--warm-grey);
    padding: 5rem 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===== Services Section ===== */
.services-section {
    background: var(--warm-grey);
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 42, 56, 0.15);
    transition: all 0.8s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(30, 42, 56, 0.3), 0 0 0 2px #C9A227;
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.8s ease-out;
    animation: fadeInScale 1s ease-out;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-content {
    padding: 1.5rem;
    text-align: center;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--deep-royal-blue);
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Projects/Gallery Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    background: var(--warm-grey);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card img,
.project-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card video {
    background-color: #000;
}

.project-card video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover video:not(:focus-within) {
    transform: scale(1.05);
}

.project-card video:focus-within {
    outline: 2px solid var(--sun-flare);
    outline-offset: 2px;
}

/* Video-specific enhancements */
.project-card video {
    cursor: pointer;
}

.project-card video::-webkit-media-controls {
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .project-card video::-webkit-media-controls {
        opacity: 0;
    }

    .project-card video:hover::-webkit-media-controls,
    .project-card video:focus::-webkit-media-controls,
    .project-card video:focus-within::-webkit-media-controls {
        opacity: 1;
    }
}

.project-card video::-webkit-media-controls-play-button {
    background-color: var(--sun-flare);
    border-radius: 50%;
}

.project-card video::-webkit-media-controls-timeline {
    background-color: var(--warm-grey);
}

.project-card video::-webkit-media-controls-current-time-display,
.project-card video::-webkit-media-controls-time-remaining-display {
    color: var(--deep-royal-blue);
    font-family: 'Montserrat', sans-serif;
}

/* Video error styling */
.video-error {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--warm-grey) !important;
    color: var(--text-primary) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
}

/* Mobile video adjustments */
@media (max-width: 768px) {
    .project-card video {
        height: 200px;
    }
}

.project-info {
    padding: 1.5rem;
    background: var(--pure-white);
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-date {
    font-size: 0.875rem;
    color: var(--sun-flare);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ===== Testimonials ===== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--warm-grey);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.testimonial:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--deep-royal-blue);
    font-size: 1rem;
}

.stars {
    color: var(--sun-flare);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ===== Call-to-Action Section ===== */
.cta-section {
    background: var(--deep-royal-blue);
    color: var(--pure-white);
    text-align: center;
    padding: 5rem 2rem;
}

.cta-section h2 {
    color: var(--pure-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--pure-white);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ===== Footer ===== */
.footer {
    background: var(--deep-royal-blue);
    color: var(--pure-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h3,
.footer-column h4 {
    color: var(--sun-flare);
    margin-bottom: 1rem;
}

.footer-column p,
.footer-column a {
    color: var(--pure-white);
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a:hover {
    color: var(--sun-flare);
}

.footer-column.text-center {
    text-align: center;
}

.footer-column.text-center .social-links {
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 2.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .social-links {
        gap: 1.25rem;
        font-size: 2.2rem;
    }
    
    .social-links a {
        width: 2.75rem;
        height: 2.75rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--pure-white);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--deep-royal-blue);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--warm-grey);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sun-flare);
    /* Updated to Warm Gold rgba */
    /* OLD: rgba(255, 209, 102, 0.2) */
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== Photo Upload Styles ===== */
.photo-upload-preview {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--warm-grey);
    border-radius: 8px;
    border: 2px dashed #ccc;
}

.photo-upload-preview.show {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.photo-preview-item {
    display: inline-block;
    margin: 0.5rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--pure-white);
    padding: 0.5rem;
}

.photo-preview-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.photo-preview-item .file-name {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-status.success {
    color: #059669;
}

.upload-status.error {
    color: #DC2626;
}

.upload-status.info {
    color: var(--deep-royal-blue);
}

@media (max-width: 768px) {
    .photo-preview-item {
        margin: 0.25rem;
    }
    
    .photo-preview-item img {
        width: 80px;
        height: 80px;
    }
    
    .photo-preview-item .file-name {
        max-width: 80px;
    }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--pure-white);
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--deep-royal-blue);
    transform: rotate(90deg);
}

/* ===== Loading Spinner ===== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--warm-grey);
    border-top-color: var(--sun-flare);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-smooth);
    text-decoration: none;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.2), 0 8px 32px rgba(37, 211, 102, 0.3);
    }
}

/* ===== Scroll-to-Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-rainbow);
    color: var(--deep-royal-blue);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    /* Updated to Warm Gold rgba */
    /* OLD: rgba(255, 209, 102, 0.5) */
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1.5rem;
    }

    .logo {
        gap: 0.6rem;
    }
    
    .logo-image {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }
    
    .logo-text {
        font-size: 1.45rem;
    }
    
    .logo-subtitle {
        font-size: 0.72rem;
        letter-spacing: 1.6px;
    }
    
    /* Floating card dropdown for mobile nav */
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 1rem;
        left: auto;
        width: 250px;
        background: var(--pure-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        padding: 0.5rem 0;
        border-radius: 12px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
        visibility: hidden;
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        animation: fadeInDown 0.4s ease;
    }
    
    .nav-menu li {
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        transition: var(--transition-smooth);
        text-align: center;
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .nav-menu a:hover {
        /* Updated to Warm Gold rgba */
        /* OLD: rgba(255, 209, 102, 0.1) */
        background: rgba(201, 162, 39, 0.1);
        color: var(--deep-royal-blue);
    }
    
    /* Normalize button styles in mobile menu */
    /* Higher specificity to override .btn and .btn-primary without !important where possible */
    .nav-menu li a.btn,
    .nav-menu li a.btn-primary {
        /* !important is required ONLY for properties with inline styles in HTML (style="padding: 0.5rem 1.5rem; font-size: 0.9rem;")
           Inline styles have higher specificity than any selector, so !important is the only way to override them.
           All other properties use natural specificity from the .nav-menu li a.btn selector chain. */
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        /* These can override without !important due to higher specificity */
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        color: var(--text-dark);
        display: block;
        width: 100%;
        letter-spacing: 0;
    }
    
    .nav-menu li a.btn:hover,
    .nav-menu li a.btn-primary:hover {
        background: rgba(201, 162, 39, 0.1);
        color: var(--deep-royal-blue);
        transform: none;
        box-shadow: none;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }
    
    /* Scroll-to-top positioning for mobile */
    .scroll-to-top {
        bottom: 100px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* ===== Animations (AOS will be added via library) ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add subtle animations to service images on load */
.service-image {
    animation: imageLoad 0.8s ease-out;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
/* Updated to use new Warm Gold color */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--sun-flare);
    outline-offset: 2px;
}

/* ===== Page Content Images ===== */
.intro-section img {
    transition: transform 0.9s ease-out;
}

.intro-section img:hover {
    transform: scale(1.05);
}

/* ===== WhatsApp Gallery Section ===== */
.whatsapp-gallery-section {
    padding: 5rem 0;
    background: var(--warm-grey);
}

.gallery-instruction {
    max-width: 520px;
    margin: 1.5rem auto 0;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.whatsapp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.whatsapp-gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.7s ease-out;
    background: var(--pure-white);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease-out;
    display: block;
}

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

.whatsapp-gallery-item:focus-visible {
    outline: 4px solid rgba(201, 162, 39, 0.7);
    outline-offset: 3px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(18, 27, 38, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox-content {
    max-width: min(900px, 90vw);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gallery-lightbox-content img,
.gallery-lightbox-content video {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    object-fit: contain;
    max-height: 75vh;
    background: rgba(255, 255, 255, 0.08);
}

.gallery-lightbox-content video {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-lightbox-caption {
    color: var(--pure-white);
    font-size: 1rem;
    font-weight: 600;
}

.gallery-lightbox-hint {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--pure-white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.gallery-lightbox-close {
    top: 2rem;
    right: 2rem;
}

.gallery-lightbox-nav.prev {
    left: 2rem;
}

.gallery-lightbox-nav.next {
    right: 2rem;
}

.gallery-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-close i,
.gallery-lightbox-nav i {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 1.5rem;
    }
    
    .gallery-lightbox-nav.prev {
        left: 1rem;
    }
    
    .gallery-lightbox-nav.next {
        right: 1rem;
    }
    
    .gallery-lightbox-close {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 540px) {
    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-lightbox-hint {
        font-size: 0.75rem;
    }
}

/* Loading state */
.whatsapp-gallery-grid .loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Responsive adjustments for WhatsApp Gallery */
@media (max-width: 1200px) {
    .whatsapp-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .whatsapp-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .whatsapp-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .gallery-instruction {
        font-size: 0.85rem;
    }
}

@media (max-width: 420px) {
    .whatsapp-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

/* Mobile centering for all pages */
@media (max-width: 768px) {
    /* Center all headings on mobile */
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
    }
    
    /* Center section subtitles and descriptions on mobile */
    .section-subtitle,
    .intro-content p,
    .service-content p {
        text-align: center;
    }
    
    /* Ensure service cards content is centered on mobile */
    .service-card {
        text-align: center;
    }
    
    .service-card img {
        margin: 0 auto;
    }
    
    /* Center images in About page on mobile */
    .intro-section img {
        margin: 0 auto;
    }
    
    /* Center gallery items on mobile */
    .whatsapp-gallery-item {
        margin: 0 auto;
    }
}

/* ===== Toast Notifications ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 350px;
    word-wrap: break-word;
    pointer-events: none;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.toast.success {
    background: linear-gradient(135deg, #10B981, #059669);
    border-left: 4px solid #047857;
}

.toast.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border-left: 4px solid #B91C1C;
}

.toast.info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-left: 4px solid #1D4ED8;
}

/* WhatsApp toast styling */
.toast.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-left: 4px solid #075E54;
}

@media (max-width: 768px) {
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}
