/* 1. THEME VARIABLES (SLATE & YELLOW) */
:root {
    --bg-slate: #1F2937;    /* Your chosen Slate Charcoal */
    --nav-bright: #f1f5f9;  /* Bright off-white */
    --nav-dim: #94a3b8;     /* Muted slate for non-active links */
    --pop-yellow: #fde047;  /* Cool Yellow */
    --ink-black: rgba(15, 23, 42, 0.9); /* Header background with blur */
    --card-bg: rgba(15, 23, 42, 0.5);   /* Translucent card for Bio/Contact */
}

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

body {
    background-color: var(--bg-slate);
    color: var(--nav-bright);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Critical for S24 to prevent side-scrolling splashes */
}

/* 3. FIXED "INK STRIPE" HEADER */
header {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 15px 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--ink-black);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(253, 224, 71, 0.1);
}

.logo { 
    font-weight: 900; 
    letter-spacing: 3px; 
    font-size: 10px; 
    color: var(--nav-bright);
}

nav a { 
    color: var(--nav-dim); 
    text-decoration: none; 
    margin-left: 20px; 
    font-size: 10px; 
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease;
}

nav a:hover, nav a.active { 
    color: var(--pop-yellow);
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.3);
}

/* 4. THE COLOR SPLASH LAYERS (BACKGROUND DEPTH) */
.splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); 
    z-index: -1; 
    opacity: 0.2;
    pointer-events: none;
     transition: transform 0.2s ease-out, background-color 1.5s ease;
}

.yellow-glow {
    width: 600px; height: 600px;
    background: var(--pop-yellow);
    top: -10%; left: 10%;
}

.blue-glow {
    width: 700px; height: 700px;
    background: #6366f1; /* Deep Indigo Splash */
    bottom: -10%; right: 5%;
}

/* 5. VIEWPORT CENTERING & HERO */
.viewport-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 200px 5% 60px; /* Space for fixed header/footer */
}

.pig-hero {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 10;
    transition: transform 0.1s ease-out;
}

.main-pig {
    max-width: 100%;
    max-height: 65vh;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.pig-label { margin-top: 2rem; }

.subtitle { 
    display: block;
    color: var(--nav-dim); 
    letter-spacing: 12px; 
    font-size: 9px; 
    text-transform: uppercase;
    margin-bottom: 8px;
}

h1 { 
    font-size: 2.5rem; 
    letter-spacing: -2px; 
    font-weight: 900;
    margin: 10px;
}

/* 6. MINIMALIST FOOTER */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    font-size: 9px;
    color: var(--nav-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 7. RESPONSIVE MEDIA QUERIES (S24 & MOBILE OPTIMIZATION) */
@media (max-width: 768px) {
    body { overflow-y: auto; } /* Allow scrolling if content is tall */

    /* Shrink the Splashes to avoid side-scrolling on S24 */
    .yellow-glow { width: 300px; height: 300px; filter: blur(60px); opacity: 0.15; }
    .blue-glow { width: 400px; height: 400px; filter: blur(80px); opacity: 0.1; }

    /* Adjust the Hero and Title for narrow screens */
    h1 { font-size: 2.5rem; }
    .viewport-center { 
        padding-top: 100px; 
        align-items: flex-start; /* Stack content top-to-bottom on mobile */
    }

    .main-pig { max-height: 50vh; }

    header { padding: 12px 5%; }
        /* Scale the image up slightly so it has "room" to move without hitting edges */
        transform: scale(1.05); 
        transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); /* Makes the tilt feel "heavy" and expensive */
    /* Ensure the tilt/parallax feels smooth on sensors */
    .splash, .pig-hero { transition: transform 0.2s ease-out; }
}

/* S24 Specific High-Density Viewport Fix */
@media only screen and (-webkit-min-device-pixel-ratio: 3) {
    .logo, nav a, footer { font-size: 11px; } /* Slightly larger for high DPI */
}

