:root {
    /* Family Friendly Dark Mode: Deep Navy & Warm Accents */
    --bg-main: #101827;       /* Deep Navy */
    --bg-secondary: #1f2937;  /* Slightly lighter slate/navy */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    
    /* Playful but Safe Palette */
    --accent-primary: #FFB703; /* Warm Yellow */
    --accent-secondary: #FB8500; /* Orange */
    --accent-tertiary: #219EBC; /* Friendly Blue */
    --accent-quaternary: #8ECAE6; /* Light Blue */
    
    /* Mapping to original variable names for compatibility */
    --accent-green: var(--accent-primary);  /* Reusing logic as primary accent */
    --accent-purple: var(--accent-tertiary); /* Secondary accent */
    --accent-pink: var(--accent-secondary); 
    --accent-blue: var(--accent-quaternary);
    
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;
    --spacing-unit: 1rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

h1 {margin-bottom: 1rem;}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #cccccc;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #000;
    border: 2px solid var(--accent-green);
}

.btn-primary:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0px var(--accent-purple);
}

.btn-outline {
    border: 2px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--text-main);
    color: #000;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -1px;
    color: var(--accent-green);
    /* Prevent overflow from long text */
    max-width: 70%;
    word-wrap: break-word;
}

nav a {
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--accent-green);
}

.nav-cta {
    background: white;
    color: black;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
}

.nav-cta:hover {
    background: var(--accent-green) !important;
    color: black !important;
}

/* Hero Section */
.hero {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 4rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(106,0,255,0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-content p {
    font-size: 1rem;
}

/* Ensure vertical stacking in hero-content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .hero-content {
        align-items: center;
        text-align: center;
    }
}


.pill-label {
    display: inline-block;
    padding: 0.65rem 1.3rem; /* 30% larger */
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.975rem; /* 30% larger than 0.75rem */
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background: rgba(16, 24, 39, 0.8); /* Added backdrop for legibility */
    text-align: center;
}

/* ... existing styles ... */

.hero-graphic {
    font-size: 15rem; /* Slightly larger */
    color: var(--accent-purple);
    opacity: 0.25; /* Lower opacity for background element */
    animation: spin 30s linear infinite; /* Slower spin */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Absolute positioning to layer behind content */
    position: absolute;
    top: 50%;
    left: 50%; /* Center relative to hero section, or adjust to overlap specific text */
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none; /* Ensure text above handles clicks */
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Vibe Check */
.vibe-check {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.large-text {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 300;
    max-width: 900px;
    margin-bottom: 4rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #222;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

/* Role Details */
.role-details {
    padding: 6rem 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.detail-box {
    padding: 2.5rem;
    border: 1px solid #333;
    border-radius: var(--border-radius-lg);
    background: rgba(255,255,255,0.03);
}

.detail-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-box h3 i {
    color: var(--accent-pink);
    font-size: 1.25rem;
}

.accent-border {
    border-color: var(--accent-pink);
    box-shadow: 8px 8px 0px rgba(255, 0, 204, 0.2);
}

.styled-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
}

.styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Perks Marquee */
.perks {
    padding: 2rem 0;
    background: var(--accent-green);
    color: #000;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

.marquee-content span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    padding-right: 4rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Apply Section */
.apply-section {
    padding: 6rem 0;
    text-align: center;
}

.apply-card {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #333;
    display: inline-block;
    width: 100%;
    max-width: 800px;
}

.apply-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.email-link {
    display: block;
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin: 2rem 0;
    text-decoration: underline;
    text-decoration-color: var(--accent-green);
    text-decoration-thickness: 4px;
}

.email-link:hover {
    color: var(--accent-green);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid #444;
    border-radius: 50%;
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    header {
        padding: 1.5rem;
    }
    
    nav {
        display: none; /* Simple hiding for mobile, ideally would be a hamburger but sticking to simple CSS/HTML per request */
    }

    logo {
    max-width: 60%;
    }


    .hero {
        flex-direction: column;
        padding-top: 6rem;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

    .hero-graphic {
        font-size: 10rem;
        left: 50%;
        top: 30%; /* Move up slightly on mobile to sit behind text */
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .apply-card h2 {
        font-size: 2rem;
    }
    
    .email-link {
        font-size: 1.2rem;
    }
}
@media (max-width: 430px) {
    .hero-castle img {
        width: 100%;
        max-width: 280px; /* Adapts for mobile */
    }

    .container {
        padding: 0 1rem; /* Increased edge padding */
    }

    .hero {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .detail-box {
        padding: 1.5rem;
        width: 100%;    
    }

    .apply-card {
        padding: 1.5rem;
    }

    /* Reduce vertical spacing on mobile */
    .role-details, .vibe-check, .apply-section {
        padding: 3rem 0;
    }
}

.hero-castle {
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-castle img {
    max-width: 450px; /* Default desktop size */
    height: auto;
    
    /* Recolor to Warm Yellow (#FFB703) 
       Logic: Turn to black -> Invert/Sepia to target color */
    filter: brightness(0) saturate(100%) invert(86%) sepia(23%) saturate(6835%) hue-rotate(359deg) brightness(102%) contrast(106%) drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
