    :root {
        --navy: #1e3a5f;
        --navy-dark: #152a45;
        --navy-light: #2a4f7a;
        --gold: #d4a84b;
        --gold-light: #e8c477;
        --gold-dark: #b8922f;
        --cream: #faf8f3;
        --white: #ffffff;
        --gray-50: #f9fafb;
        --gray-100: #f3f4f6;
        --gray-200: #e5e7eb;
        --gray-600: #4b5563;
        --gray-700: #374151;
        --gray-800: #1f2937;
        --coral: #ff6b6b;
        --teal: #4ecdc4;
        --lavender: #a8d8ea;
        --peach: #ffb347;
        --mint: #95e1d3;
        --font-heading: 'Playfair Display', serif;
        --font-body: 'DM Sans', sans-serif;
        --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
        --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.12);
        --shadow-lg: 0 10px 40px rgba(30, 58, 95, 0.15);
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 20px;
        --radius-xl: 28px;
    }

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

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

    body {
        font-family: var(--font-body);
        color: var(--gray-800);
        background: var(--cream);
        line-height: 1.6;
        overflow-x: hidden;
    }

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

    a {
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
    }

    ul {
        list-style: none;
    }

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

    /* NAV */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(250, 248, 243, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(30, 58, 95, 0.08);
        transition: all 0.3s ease;
    }

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

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 72px;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--navy);
    }

    .nav-logo-icon {
        width: 36px;
        height: 36px;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .nav-menu a {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--gray-700);
        position: relative;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: width 0.3s ease;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .nav-menu a:hover {
        color: var(--navy);
    }

    .nav-cta {
        background: var(--navy);
        color: var(--white) !important;
        padding: 10px 20px;
        border-radius: var(--radius-xl);
        font-weight: 600;
        font-size: 0.9rem;
    }

    .nav-cta::after {
        display: none;
    }

    .nav-cta:hover {
        background: var(--navy-light);
        color: var(--white) !important;
        transform: translateY(-1px);
    }

    .nav-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--navy);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* HERO */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
        padding: 100px 0 60px;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--navy) 0%, #2d5a8a 40%, var(--gold-dark) 100%);
        z-index: 0;
    }

    .hero-gradient {
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 30% 50%, rgba(212, 168, 75, 0.3) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 80%, rgba(78, 205, 196, 0.2) 0%, transparent 50%);
    }

    .hero-shape {
        position: absolute;
        border-radius: 50%;
        opacity: 0.15;
    }

    .hero-shape-1 {
        width: 600px;
        height: 600px;
        background: var(--gold);
        top: -200px;
        right: -100px;
    }

    .hero-shape-2 {
        width: 400px;
        height: 400px;
        background: var(--teal);
        bottom: -100px;
        left: -100px;
    }

    .hero-shape-3 {
        width: 200px;
        height: 200px;
        background: var(--coral);
        top: 30%;
        left: 15%;
    }

    .hero {
        position: relative;
        z-index: 1;
    }

    .hero-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        width: 100%;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(212, 168, 75, 0.2);
        border: 1px solid rgba(212, 168, 75, 0.4);
        color: var(--gold-light);
        padding: 8px 16px;
        border-radius: var(--radius-xl);
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 24px;
    }

    .hero-badge svg {
        width: 16px;
        height: 16px;
    }

    .hero-title {
        font-family: var(--font-heading);
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 700;
        color: var(--white);
        line-height: 1.15;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.7;
        margin-bottom: 32px;
        max-width: 480px;
    }

    .hero-actions {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 48px;
    }

    .hero-stats {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .hero-stat {
        text-align: left;
    }

    .hero-stat-number {
        display: block;
        font-family: var(--font-heading);
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--gold);
        line-height: 1;
    }

    .hero-stat-label {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .hero-stat-divider {
        width: 1px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
    }

    .hero-image {
        position: relative;
    }

    .hero-image img {
        width: 100%;
        max-width: 500px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .hero-image-accent {
        position: absolute;
        width: 120px;
        height: 120px;
        background: var(--gold);
        border-radius: var(--radius-lg);
        bottom: -20px;
        right: -20px;
        z-index: -1;
    }

    /* BUTTONS */
    .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 28px;
        border-radius: var(--radius-xl);
        font-weight: 600;
        font-size: 1rem;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: var(--font-body);
    }

    .btn svg {
        width: 18px;
        height: 18px;
    }

    .btn-primary {
        background: var(--gold);
        color: var(--navy-dark);
    }

    .btn-primary:hover {
        background: var(--gold-light);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(212, 168, 75, 0.4);
    }

    .btn-secondary {
        background: transparent;
        color: var(--white);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

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

    .btn-large {
        padding: 16px 32px;
        font-size: 1.05rem;
    }

    .btn-full {
        width: 100%;
        justify-content: center;
    }

    /* SECTION HEADERS */
    .section-header {
        text-align: center;
        max-width: 640px;
        margin: 0 auto 60px;
    }

    .section-tag {
        display: inline-block;
        background: rgba(30, 58, 95, 0.08);
        color: var(--navy);
        padding: 6px 16px;
        border-radius: var(--radius-xl);
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 16px;
    }

    .section-title {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 4vw, 2.75rem);
        font-weight: 700;
        color: var(--navy);
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        color: var(--gray-600);
        line-height: 1.7;
    }

    /* SERVICES */
    .services {
        padding: 100px 0;
        background: var(--cream);
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .service-card {
        background: var(--white);
        border-radius: var(--radius-lg);
        padding: 36px 28px;
        transition: all 0.3s ease;
        border: 1px solid var(--gray-100);
        position: relative;
        overflow: hidden;
    }

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--gold), var(--teal));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

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

    .service-icon {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, var(--navy), var(--navy-light));
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
        color: var(--gold);
    }

    .service-card h3 {
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 0.95rem;
        color: var(--gray-600);
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .service-link {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--gold-dark);
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .service-link:hover {
        color: var(--navy);
        gap: 8px;
    }

    /* ABOUT */
    .about {
        padding: 100px 0;
        background: var(--white);
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
    }

    .about-image-wrap {
        position: relative;
    }

    .about-image-wrap img {
        width: 100%;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .about-image-accent {
        position: absolute;
        width: 100px;
        height: 100px;
        background: var(--teal);
        border-radius: var(--radius-md);
        bottom: -16px;
        right: -16px;
        z-index: -1;
    }

    .about-content .section-tag {
        margin-bottom: 16px;
    }

    .about-content .section-title {
        text-align: left;
        margin-bottom: 20px;
    }

    .about-text {
        font-size: 1.05rem;
        color: var(--gray-600);
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .about-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .about-feature {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
        color: var(--gray-700);
    }

    .about-feature svg {
        width: 20px;
        height: 20px;
        color: var(--gold);
        flex-shrink: 0;
    }

    /* GALLERY */
    .gallery {
        padding: 100px 0;
        background: var(--cream);
    }

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

    .gallery-item {
        border-radius: var(--radius-md);
        overflow: hidden;
        aspect-ratio: 4/3;
    }

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

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

    /* TESTIMONIALS */
    .testimonials {
        padding: 100px 0;
        background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
        position: relative;
        overflow: hidden;
    }

    .testimonials::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: var(--gold);
        border-radius: 50%;
        opacity: 0.05;
        top: -200px;
        right: -100px;
    }

    .testimonials .section-tag {
        background: rgba(212, 168, 75, 0.2);
        color: var(--gold-light);
    }

    .testimonials .section-title {
        color: var(--white);
    }

    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        position: relative;
        z-index: 1;
    }

    .testimonial-card {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-lg);
        padding: 32px;
        backdrop-filter: blur(8px);
        transition: all 0.3s ease;
    }

    .testimonial-card:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-4px);
    }

    .testimonial-stars {
        display: flex;
        gap: 4px;
        margin-bottom: 20px;
    }

    .testimonial-stars svg {
        width: 18px;
        height: 18px;
        color: var(--gold);
    }

    .testimonial-text {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.8;
        margin-bottom: 24px;
        font-style: italic;
    }

    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .testimonial-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--gold);
    }

    .testimonial-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonial-info {
        display: flex;
        flex-direction: column;
    }

    .testimonial-name {
        font-weight: 600;
        color: var(--white);
        font-size: 0.95rem;
    }

    .testimonial-location {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.5);
    }

    /* CTA */
    .cta {
        padding: 100px 0;
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
        text-align: center;
    }

    .cta-title {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 4vw, 2.75rem);
        font-weight: 700;
        color: var(--navy-dark);
        margin-bottom: 16px;
    }

    .cta-text {
        font-size: 1.1rem;
        color: rgba(30, 58, 95, 0.75);
        max-width: 560px;
        margin: 0 auto 32px;
    }

    .cta-actions {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .cta .btn-primary:hover {
        background: var(--navy-dark);
    }

    .cta .btn-secondary {
        border-color: var(--navy);
        color: var(--navy);
    }

    .cta .btn-secondary:hover {
        background: var(--navy);
        color: var(--white);
    }

    /* CONTACT */
    .contact {
        padding: 100px 0;
        background: var(--white);
    }

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

    .contact-info .section-title {
        text-align: left;
        margin-bottom: 16px;
    }

    .contact-text {
        font-size: 1.05rem;
        color: var(--gray-600);
        line-height: 1.7;
        margin-bottom: 32px;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, var(--navy), var(--navy-light));
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
        color: var(--gold);
    }

    .contact-text-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .contact-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--gray-600);
        font-weight: 600;
    }

    .contact-text-content span,
    .contact-text-content a {
        font-size: 1rem;
        color: var(--navy);
        font-weight: 500;
    }

    .contact-text-content a:hover {
        color: var(--gold-dark);
    }

    .contact-form-wrap {
        background: var(--gray-50);
        border-radius: var(--radius-lg);
        padding: 40px;
        border: 1px solid var(--gray-100);
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gray-700);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        font-family: var(--font-body);
        font-size: 0.95rem;
        color: var(--gray-800);
        background: var(--white);
        transition: all 0.3s ease;
        outline: none;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
    }

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

    .form-success {
        display: none;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        background: rgba(78, 205, 196, 0.1);
        border: 1px solid rgba(78, 205, 196, 0.3);
        border-radius: var(--radius-sm);
        color: #0d7377;
        font-weight: 500;
    }

    .form-success.show {
        display: flex;
    }

    .form-success svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    /* FOOTER */
    .footer {
        background: var(--navy-dark);
        color: rgba(255, 255, 255, 0.7);
        padding: 60px 0 0;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--white);
        margin-bottom: 16px;
    }

    .footer-logo-icon {
        width: 36px;
        height: 36px;
    }

    .footer-desc {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 16px;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .footer-links a:hover {
        color: var(--gold);
    }

    .footer-contact p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 4px;
    }

    .footer-contact a {
        color: var(--gold);
    }

    .footer-contact a:hover {
        color: var(--gold-light);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.4);
    }

    /* MOBILE */
    @media (max-width: 1024px) {
        .hero-content {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .hero-subtitle {
            margin-left: auto;
            margin-right: auto;
        }

        .hero-actions {
            justify-content: center;
        }

        .hero-stats {
            justify-content: center;
        }

        .hero-image {
            display: none;
        }

        .services-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .about-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .about-content .section-title {
            text-align: center;
        }

        .about-content .section-tag {
            display: block;
            text-align: center;
        }

        .testimonials-grid {
            grid-template-columns: 1fr 1fr;
        }

        .contact-grid {
            grid-template-columns: 1fr;
        }

        .contact-info .section-title {
            text-align: center;
        }

        .contact-info .section-tag {
            display: block;
            text-align: center;
        }

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

        .footer-grid {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 768px) {
        .nav-menu {
            position: fixed;
            top: 72px;
            left: 0;
            right: 0;
            background: rgba(250, 248, 243, 0.98);
            backdrop-filter: blur(12px);
            flex-direction: column;
            padding: 24px;
            gap: 20px;
            border-bottom: 1px solid rgba(30, 58, 95, 0.08);
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
        }

        .nav-menu.active {
            transform: translateY(0);
            opacity: 1;
            pointer-events: all;
        }

        .nav-toggle {
            display: flex;
        }

        .nav-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .nav-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .nav-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .services-grid {
            grid-template-columns: 1fr;
        }

        .gallery-grid {
            grid-template-columns: 1fr 1fr;
        }

        .testimonials-grid {
            grid-template-columns: 1fr;
        }

        .about-features {
            grid-template-columns: 1fr;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .footer-logo {
            justify-content: center;
        }

        .contact-form-wrap {
            padding: 24px;
        }
    }

    @media (max-width: 480px) {
        .hero {
            padding: 90px 0 50px;
        }

        .hero-actions {
            flex-direction: column;
            align-items: center;
        }

        .hero-stats {
            flex-direction: column;
            gap: 16px;
        }

        .hero-stat-divider {
            width: 40px;
            height: 1px;
        }

        .gallery-grid {
            grid-template-columns: 1fr;
        }

        .cta-actions {
            flex-direction: column;
            align-items: center;
        }
    }

    /* REDUCED MOTION */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
        html {
            scroll-behavior: auto;
        }
    }
</style>
<sm-file path="script.js">
    document.addEventListener('DOMContentLoaded', function() {
        // Mobile navigation toggle
        const navToggle = document.querySelector('.nav-toggle');
        const navMenu = document.querySelector('.nav-menu');
        const navLinks = document.querySelectorAll('.nav-menu a');

        navToggle.addEventListener('click', function() {
            navToggle.classList.toggle('active');
            navMenu.classList.toggle('active');
        });

        // Close mobile menu when a link is clicked
        navLinks.forEach(function(link) {
            link.addEventListener('click', function() {
                navToggle.classList.remove('active');
                navMenu.classList.remove('active');
            });
        });

        // Navbar scroll effect
        const nav = document.querySelector('.nav');
        let lastScroll = 0;

        window.addEventListener('scroll', function() {
            const currentScroll = window.pageYOffset;
            
            if (currentScroll > 50) {
                nav.classList.add('scrolled');
            } else {
                nav.classList.remove('scrolled');
            }
            
            lastScroll = currentScroll;
        });

        // Contact form handling
        const contactForm = document.getElementById('contactForm');
        const formSuccess = document.getElementById('formSuccess');

        contactForm.addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Simulate form submission
            const submitBtn = contactForm.querySelector('button[type="submit"]');
            const originalText = submitBtn.textContent;
            submitBtn.textContent = 'Sending...';
            submitBtn.disabled = true;
            
            setTimeout(function() {
                contactForm.reset();
                formSuccess.classList.add('show');
                submitBtn.textContent = originalText;
                submitBtn.disabled = false;
                
                setTimeout(function() {
                    formSuccess.classList.remove('show');
                }, 5000);
            }, 1000);
        });

        // Smooth scroll for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(function(anchor) {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    const navHeight = nav.offsetHeight;
                    const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - navHeight;
                    
                    window.scrollTo({
                        top: targetPosition,
                        behavior: 'smooth'
                    });
                }
            });
        });

        // Intersection Observer for scroll animations (below fold only)
        if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
            const observerOptions = {
                threshold: 0.1,
                rootMargin: '0px 0px -50px 0px'
            };

            const observer = new IntersectionObserver(function(entries) {
                entries.forEach(function(entry) {
                    if (entry.isIntersecting) {
                        entry.target.style.opacity = '1';
                        entry.target.style.transform = 'translateY(0)';
                    }
                });
            }, observerOptions);

            // Apply to sections below fold
            const animatedElements = document.querySelectorAll('.service-card, .testimonial-card, .gallery-item, .about-feature');
            
            animatedElements.forEach(function(el, index) {
                el.style.opacity = '0';
                el.style.transform = 'translateY(20px)';
                el.style.transition = 'opacity 0.6s ease ' + (index % 3) * 0.1 + 's, transform 0.6s ease ' + (index % 3) * 0.1 + 's';
                observer.observe(el);
            });
        }
    });
