:root {
    --bg-sage: #E7EFE6;
    --hover-sage: #5A6359; 
    --lavender: #8E9BCE; 
    --charcoal: #333333;
    --slate: #666666;
    --section-spacing: 30px; 
    --standard-transition: 0.3s ease;
}

/* global settings */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-sage); 
    color: var(--charcoal); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

#top { scroll-margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* navbar + logo */
.navbar { 
    position: sticky; top: 0; 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 5%; 
    background: var(--lavender); 
    z-index: 1000; color: white; 
}
.logo-group { display: flex; align-items: center; gap: 15px; }
.logo { font-weight: 700; text-transform: lowercase; letter-spacing: 1px; font-size: 1.1rem; }

.nav-logo { position: relative; width: 50px; height: 50px; } 
.p-frame { position: absolute; width: 100%; opacity: 0; transition: opacity 0.1s; image-rendering: pixelated; }
.p-frame.active { opacity: 1; }

.menu-toggle { 
    display: none; background: transparent; border: none; 
    font-size: 1.5rem; cursor: pointer; color: white; 
}

.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { 
    color: white; text-decoration: none; 
    font-size: 0.9rem; font-weight: 500; 
    text-transform: lowercase; transition: var(--standard-transition); 
}
.nav-links a:hover { color: var(--hover-sage); }

/* intro section */
.intro { min-height: 80vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 40px 5%; }
.intro-container { display: flex; align-items: center; justify-content: center; gap: 40px; z-index: 5; width: 100%; max-width: 900px; }
.intro-name { font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 700; line-height: 1.2; }
.intro-sub { font-size: 1.1rem; color: var(--slate); margin: 10px 0 25px; text-transform: lowercase; }
.intro-actions-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } 
.social-icons { display: flex; gap: 10px; }
.intro-headshot { width: 100%; max-width: 320px; border-radius: 4px; display: block; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.intro-penguin { width: clamp(80px, 15vw, 162px); position: absolute; image-rendering: pixelated; opacity: 0.8; z-index: 1; }
.float-left { top: 20%; left: 5%; animation: float 6s infinite ease-in-out; } 
.float-right { bottom: 20%; right: 5%; animation: float 6s infinite ease-in-out reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* buttons */
.cta-button, .icon-circle, .carousel-btn { transition: var(--standard-transition); cursor: pointer; border: none; min-height: 44px; }

@media (hover: hover) {
    .cta-button:hover, .icon-circle:hover, .carousel-btn:hover {
        background-color: var(--hover-sage) !important;
        color: white !important;
        transform: translateY(-2px);
    }
}

.icon-circle { width: 44px; height: 44px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--lavender); text-decoration: none; }
.aa-inner { font-size: 0.45rem; line-height: 1.1; text-align: center; font-weight: 700; text-transform: lowercase; }
.ccc-inner { font-size: 0.65rem; font-weight: 700; }
.cta-button { display: inline-flex; align-items: center; padding: 12px 28px; background: var(--lavender); color: white; text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 0.85rem; text-transform: lowercase; }

.btn-resume[href="#"] { background-color: #d1d1d1 !important; cursor: default; pointer-events: none; transform: none !important; }

/* voiceover section */
.vo-centered-container { display: flex; justify-content: center; width: 100%; }
.vo-wrapper { width: 100%; max-width: 700px; }

#voiceover .section-title { margin-bottom: 0; }

.reel-row-single { 
    display: grid;
    place-items: center;
    height: 150px;            
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    text-align: center;
    margin: 0;                
    padding: 0;
}

.coming-soon { font-style: italic; color: var(--slate); font-size: 0.9rem; text-transform: lowercase; }

.gear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; text-align: center; }
.gear-column { display: flex; flex-direction: column; gap: 5px; }
.gear-label { color: var(--lavender); font-weight: 700; text-transform: lowercase; font-size: 0.9rem; letter-spacing: 0.5px; }
.gear-name { color: var(--slate); font-size: 0.85rem; text-transform: lowercase; }

/* credits section */
.resume-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.resume-card { 
    background: white; padding: 25px; border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between;
}
.card-header { font-size: 1rem; font-weight: 600; color: var(--lavender); margin-bottom: 15px; text-transform: lowercase; }
.credit-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; font-size: 0.75rem; padding: 12px 0; border-bottom: 1px solid #f9f9f9; color: var(--slate); }
.project { font-weight: 700; color: var(--charcoal); }

.coming-soon-top { font-size: 0.8rem; color: var(--slate); margin-bottom: auto; }
.btn-resume { margin-top: 20px; width: fit-content; padding: 10px 22px; font-size: 0.75rem; }

/* gallery section */
.carousel-wrapper { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0; overflow: hidden; }
.carousel-track { display: flex; overflow-x: auto; gap: 15px; width: 100%; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-img { width: 200px; height: 300px; object-fit: cover; border-radius: 4px; flex-shrink: 0; cursor: pointer; }
.carousel-btn { background: white; width: 40px; height: 40px; border-radius: 50%; color: var(--lavender); box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; }

.lightbox-basic { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
.lightbox-img { max-width: 90%; max-height: 80%; border-radius: 4px; object-fit: contain; }
.lb-arrow, .lb-close { position: absolute; color: rgba(255, 255, 255, 0.7); cursor: pointer; transition: var(--standard-transition); z-index: 2010; }
.lb-arrow:hover, .lb-close:hover { color: var(--hover-sage) !important; }

.lb-arrow.prev { left: 5%; top: 50%; font-size: 3rem; transform: translateY(-50%); }
.lb-arrow.next { right: 5%; top: 50%; font-size: 3rem; transform: translateY(-50%); }
.lb-close { top: 20px; right: 20px; font-size: 2.5rem; }

/* content layout */
.content-section { 
    width: 90%; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding-bottom: var(--section-spacing); 
    scroll-margin-top: 100px; 
}
.section-title { 
    font-size: 1.4rem; font-weight: 600; color: var(--charcoal); 
    margin-top: var(--section-spacing); margin-bottom: var(--section-spacing); 
    display: flex; align-items: center; gap: 15px; text-transform: lowercase; 
}
.section-title::after { 
    content: ""; height: 1px; flex-grow: 1; 
    background: linear-gradient(to right, rgba(0,0,0,0.15), rgba(0,0,0,0.05)); 
}
.title-spacer { margin-top: 40px; }

/* footer */
.site-footer { background: var(--lavender); padding: 30px 0; color: white; margin-top: 40px; }
.footer-content { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 15px; font-size: 0.8rem; }
.footer-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.3); }
.footer-email { color: white; text-decoration: none; transition: var(--standard-transition); }

/* mobile responsiveness */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: var(--lavender);
        padding: 20px 0; text-align: center;
    }
    .nav-links.active { display: flex; }
    .intro-container { flex-direction: column-reverse; text-align: center; gap: 30px; }
    .intro-actions-row { justify-content: center; }
    .resume-grid { grid-template-columns: 1fr; }
    .float-left, .float-right { display: none; }
    .footer-content { flex-direction: column; gap: 10px; }
    .footer-divider { display: none; }
}

@media (max-width: 480px) {
    .gear-grid { grid-template-columns: 1fr; gap: 30px; }
}