:root {
    --primary: #d4af37;
    /* Gold accent */
    --primary-hover: #b5952f;
    --bg-dark: #0a0a0c;
    --bg-darker: #050506;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --nav-height: 100px;
    --nav-height-scrolled: 70px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-mode {
    --bg-dark: #f8f9fa;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1a1a24;
    --text-muted: #555555;
}

body.light-mode #navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode #navbar:not(.scrolled) .nav-links li a {
    color: #ffffff;
}

body.light-mode #navbar:not(.scrolled) .menu-toggle span {
    background-color: #ffffff;
}

body.light-mode #navbar:not(.scrolled) .nav-links li a::after {
    background-color: #ffffff;
}

body.light-mode #navbar:not(.scrolled) .logo-text span:last-child {
    color: #ffffff;
}

body.light-mode .hero p {
    color: #a0a0a0;
}

body.light-mode .card,
body.light-mode .team-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .card:hover,
body.light-mode .team-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: #f0f4f8;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Navbar styles */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

#navbar.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transition: var(--transition);
}

.logo-text span:first-child {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}

.logo-text span:last-child {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 5px;
    color: var(--text-main);
}

#logo {
    height: 80px;
    /* Initial size */
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    object-fit: contain;
}

#navbar.scrolled .logo-wrapper {
    gap: 5px;
}

#navbar.scrolled #logo {
    height: 90px;
    /* Remains larger than the scrolled navbar */
    transform: translateY(25px);
    /* Drops down to hang outside the navbar */
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.6));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: rgba(255, 255, 255, 0.1);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .slider {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.slider:before {
    background-color: var(--primary);
    bottom: 3px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 20px;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
}

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

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

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

/* Sections */
.section {
    padding: 120px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bg-alt {
    background-color: var(--bg-darker);
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    text-align: center;
    position: relative;
    font-weight: 300;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 12, 0.6), rgba(10, 10, 12, 0.6)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-attachment: fixed;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.3);
}

/* Services Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-weight: 300;
}


/* Gallery Swiper */
.swiper {
    width: 100vw;
    /* Breaks out of container to touch the very edges of the screen */
    margin-left: calc(-50vw + 50%);
    /* Centers the 100vw element */
    padding: 20px 0 60px 0;
}

.swiper-wrapper {
    align-items: flex-end;
    /* Force all slides to sit on the same bottom line */
    display: flex;
}

.swiper-slide {
    width: 75%;
    max-width: 1100px;
    height: auto;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    cursor: grab;

    /* Manual Scaling Logic */
    scale: 0.6;
    /* Non-active slides are 60% size */
    transform-origin: bottom;
    /* Anchor growth to the bottom line */
    transition: scale 1s ease, filter 1s ease, opacity 1s ease;
    filter: brightness(0.6);
    opacity: 0.4;
}

.swiper-slide-active {
    scale: 1;
    /* Active slide is full size */
    filter: brightness(1);
    opacity: 1;
    z-index: 2;
}

body.light-mode .swiper-slide:not(.swiper-slide-active) {
    filter: brightness(1.2) opacity(0.5);
}

body.light-mode .swiper-slide {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide:active {
    cursor: grabbing;
}

/* About */
.about-content {
    max-width: 800px;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 5rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.team-card {
    position: relative;
    width: 260px;
    margin-top: 60px;
    /* Space for the overlapping image */
    padding: 70px 20px 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-img {
    position: absolute;
    top: -60px;
    /* Exactly half its height, so card border starts in the middle */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Circle profile picture */
    object-fit: cover;
    border: 3px solid var(--primary);
    /* Gold ring around picture */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.team-info h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.team-info p {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Contact */
.contact-container {
    width: 100%;
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.contact-form button {
    padding: 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

.contact-map {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .contact-map {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.contact-form-container {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-logo {
    height: 60px;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

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

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

body.light-mode .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.2, 0.65, 0.3, 0.9);
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        width: 96%;
    }

    #navbar {
        height: var(--nav-height-scrolled);
        padding: 0;
    }

    #navbar.scrolled {
        height: var(--nav-height-scrolled);
        padding: 0;
    }

    .nav-right {
        gap: 1.5rem;
    }

    #logo {
        height: 60px;
        transform: translateY(10px);
    }

    .logo-text {
        transform: translateY(10px);
    }

    .logo-text span:first-child {
        font-size: 1.2rem;
    }

    .logo-text span:last-child {
        letter-spacing: 3px;
    }

    #navbar.scrolled #logo {
        height: 75px;
        transform: translateY(20px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.2, 0.65, 0.3, 0.9);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        gap: 3rem;
    }

    .nav-links.active {
        right: 0;
    }

    body.light-mode .nav-links {
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    body.light-mode .nav-links li a {
        color: var(--text-main) !important;
    }

    .menu-toggle {
        display: flex;
    }

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

    .contact-map {
        height: 350px;
        order: 2;
        /* Map goes below form on mobile */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

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

    .social-links {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 1.2s cubic-bezier(0.2, 0.65, 0.3, 0.9),
        transform 1.2s cubic-bezier(0.2, 0.65, 0.3, 0.9) !important;
    pointer-events: none;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

/* Staggered Delays */
.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.2s !important;
}

.delay-3 {
    transition-delay: 0.3s !important;
}

.delay-4 {
    transition-delay: 0.4s !important;
}

.delay-5 {
    transition-delay: 0.5s !important;
}