/* ==========================================================================
   1. CORE VARIABLES & FONTS
   ========================================================================== */
:root {
    --heritage-green: #3A4D3F;    /* Soft Forest Moss */
    --deep-moss: #242B25;         /* Lighter Dark Green Section */
    --earth-gold: #D4AF37;        /* Refined Champagne Gold */
    --gold-hover: #B8860B;        
    --midnight-charcoal: #1E2220; /* The Main Dark Background */
    --mist-white: #F0F2F1;        /* Crisp Text */
    --fern-silver: #B4C0A0;       /* Muted Sage for Animation */
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
    font-size: 100%; 
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--mist-white);
    background-color: var(--midnight-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 2; 
}

.section-title { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2rem, 5vw, 2.8rem); 
    color: var(--earth-gold); 
    margin-bottom: 2rem; 
}

/* ==========================================================================
   3. LEAF ANIMATION STYLES (For script.js)
   ========================================================================== */
#leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 1;           
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -50px;
    color: var(--fern-silver); 
    animation: fall linear forwards;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.2));
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% {
        transform: translateY(110vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

/* ==========================================================================
   4. NAVIGATION BAR
   ========================================================================== */
.dark-nav {
    position: fixed;
    top: 0; 
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1.2rem 5%; 
    background: rgba(30, 34, 32, 0.98); 
    backdrop-filter: blur(10px);
    z-index: 1000; 
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-weight: 800; 
    color: var(--mist-white); 
    letter-spacing: 2px;
    font-size: clamp(0.9rem, 3vw, 1.2rem); 
}

.logo-accent { color: var(--earth-gold); }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--mist-white); 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    transition: 0.3s; 
}
.nav-links a:hover { color: var(--earth-gold); }

#nav-check, .nav-btn { display: none; }

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh; 
    background: url('./img/barry.jpeg') no-repeat center 17%/cover; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    padding: 80px 5%; 
    position: relative;
    z-index: 2;
}

.hero-subtitle { color: var(--fern-silver); letter-spacing: 6px; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 1.5rem; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 7vw, 4.5rem); margin-bottom: 1.5rem; color: #fff; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 700px; margin: 0 auto 3.5rem; opacity: 0.8; color: var(--mist-white); }

.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.btn { padding: 18px 35px; border-radius: 2px; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; transition: 0.4s; text-align: center; }

.btn-primary { background: var(--earth-gold); color: var(--midnight-charcoal); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-3px); }

.btn-secondary { background: transparent; border: 1px solid var(--earth-gold); color: var(--earth-gold); }
.btn-secondary:hover { background: var(--earth-gold); color: var(--midnight-charcoal); transform: translateY(-3px); }

/* ==========================================================================
   6. ABOUT SECTION (Enhanced Readability Layout)
   ========================================================================== */
.about { 
    padding: clamp(5rem, 12vw, 10rem) 0; 
    background: var(--midnight-charcoal); 
    position: relative; 
    z-index: 2; 
}

.about-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: clamp(3rem, 6vw, 5rem); 
    align-items: center; 
}

.about-image {
    height: clamp(400px, 55vw, 600px); 
    background-image: url('./img/barry.jpeg');
    background-position: center;
    background-size: cover;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.experience-badge {
    position: absolute; 
    bottom: 30px; 
    right: -20px;
    background: var(--heritage-green); 
    color: var(--earth-gold);
    padding: 25px 30px; 
    font-weight: 800; 
    font-family: 'Playfair Display', serif;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* Typography Enhancements for Flow */
.about-tagline {
    display: block;
    color: var(--earth-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.about-text p { 
    opacity: 0.75; 
    margin-bottom: 1.2rem; 
    font-size: 1.05rem; 
    max-width: 540px;
}

/* Standout Lead Paragraph */
.about-text .about-lead {
    opacity: 0.95;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--mist-white);
    margin-bottom: 1.5rem;
}

/* Modern Pillar Layout replacing basic bullets */
.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.pillar {
    text-align: left;
}

.pillar i {
    color: var(--earth-gold);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.pillar h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--mist-white);
    margin-bottom: 0.3rem;
}

.pillar p {
    font-size: 0.8rem !important;
    opacity: 0.5 !important;
    line-height: 1.3;
    margin-bottom: 0;
}

/* Responsive Overrides for Media Query section */
@media (max-width: 768px) {
    .about-pillars {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        display: inline-block;
    }
}

/* ==========================================================================
   7. PORTFOLIO GALLERY SECTION
   ========================================================================== */
.gallery { padding: clamp(4rem, 10vw, 8rem) 0; background: var(--deep-moss); position: relative; z-index: 2; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 3rem; }
.gallery-item { height: 320px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.1); border-radius: 2px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.gallery-item:hover img { transform: scale(1.05); opacity: 1; }

/* ==========================================================================
   8. CLEAN 3-COLUMN RESPONSIVE FOOTER
   ========================================================================== */
footer { 
    background: #161A18; 
    color: var(--mist-white); 
    padding: clamp(3rem, 8vw, 6rem) 5% 2rem; 
    border-top: 1px solid rgba(212, 175, 55, 0.05); 
    position: relative; 
    z-index: 2; 
}

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

.footer-col h3, .footer-col h4 {
    margin-bottom: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.footer-col h4 {
    color: var(--earth-gold);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.footer-col p, .footer-address {
    color: rgba(240, 242, 241, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-link { 
    color: var(--mist-white); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
    margin-top: 12px; 
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    word-break: break-all; 
}

.footer-link:hover { color: var(--earth-gold); }
.icon-spacing { margin-right: 12px; color: var(--earth-gold); width: 18px; text-align: center; }

.map-container {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.map-container iframe { display: block; }

.footer-bottom { 
    margin-top: 4rem; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 2rem; 
    font-size: 0.75rem; 
    opacity: 0.4; 
    letter-spacing: 1px; 
}

/* ==========================================================================
   9. MOBILE BREAKPOINTS (768px and down)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-btn { display: block; color: var(--mist-white); font-size: 1.3rem; cursor: pointer; }
    .nav-links {
        position: fixed; 
        top: 60px; 
        left: 0; 
        width: 100%; 
        background: rgba(36, 43, 37, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column; 
        gap: 0;
        height: 0; 
        overflow: hidden; 
        transition: all 0.4s ease-in-out;
    }
    #nav-check:checked ~ .nav-links { height: auto; padding-bottom: 20px; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 15px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.03); }

    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        display: inline-block;
        margin-top: 15px;
    }
}