@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --brand-blue: #206ca4;
    --brand-dark: #25221d;
    --text-light: #ffffff;
    --overlay: rgba(0, 0, 0, 0.4);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    background-color: var(--brand-dark);
    /* Enable Scroll Snap */
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0.5em;
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    color: rgba(255, 255, 255, 0.9);
}

/* Sections */
section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate; /* Creates a new stacking context */
}

/* Backgrounds */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Base layer */
    background-size: cover;
    background-position: center;
    transition: transform 1s ease-out;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1; /* Middle layer */
}

/* Hero Background - Mobile First */
#hero .bg-image {
    background-image: url('../img/hero-mobile.webp');
}

/* Hero Background - Tablet */
@media (min-width: 768px) {
    #hero .bg-image {
        background-image: url('../img/hero-tablet.webp');
    }
}

/* Hero Background - Desktop */
@media (min-width: 1280px) {
    #hero .bg-image {
        background-image: url('../img/hero-desktop.webp');
    }
}

/* Zoo Background - Mobile First */
#project-zoo .bg-image {
    background-image: url('../img/zoo-mobile.webp');
}

/* Zoo Background - Tablet */
@media (min-width: 768px) {
    #project-zoo .bg-image {
        background-image: url('../img/zoo-tablet.webp');
    }
}

/* Zoo Background - Desktop */
@media (min-width: 1280px) {
    #project-zoo .bg-image {
        background-image: url('../img/zoo-desktop.webp');
    }
}

/* Commercial Background - Mobile First */
#project-commercial .bg-image {
    background-image: url('../img/commercial-mobile.webp');
}

/* Commercial Background - Tablet */
@media (min-width: 768px) {
    #project-commercial .bg-image {
        background-image: url('../img/commercial-tablet.webp');
    }
}

/* Commercial Background - Desktop */
@media (min-width: 1280px) {
    #project-commercial .bg-image {
        background-image: url('../img/commercial-desktop.webp');
    }
}

/* Contact Background - Mobile First */
#contact .bg-image {
    background-image: url('../img/contact-mobile.webp');
}

/* Contact Background - Tablet */
@media (min-width: 768px) {
    #contact .bg-image {
        background-image: url('../img/contact-tablet.webp');
    }
}

/* Contact Background - Desktop */
@media (min-width: 1280px) {
    #contact .bg-image {
        background-image: url('../img/contact-desktop.webp');
    }
}

/* Glass Cards */
.content-card {
    position: relative;
    z-index: 2; /* Top layer */
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.content-card.left {
    margin-right: auto;
    margin-left: 10%;
}

.content-card.right {
    margin-left: auto;
    margin-right: 10%;
}

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

/* Header/Nav - Fixed on top */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* Let clicks pass through except on interactive elements */
}

header * {
    pointer-events: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-link {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: white;
    color: var(--brand-dark);
}

.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

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

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Info */
.contact-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 2rem;
        margin: 0 !important; /* Center everything on mobile */
        width: 85%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .nav-link {
        display: none; /* Hide nav links on mobile for simplicity */
    }
}
