/* --- VARIABLES & FONTS --- */
:root {
    --clr-bg: #F4F9FF; /* Soft sky blue */
    --clr-primary: #FF5E5B; /* Playful Red */
    --clr-secondary: #1982C4; /* Bright Blue */
    --clr-accent: #FFCA3A; /* Sunny Yellow */
    --clr-green: #8AC926; /* Grass Green */
    --clr-purple: #6A4C93; /* Fun Purple */
    --clr-text: #2B2D42;
    --clr-text-light: #8D99AE;
    --clr-white: #FFFFFF;
    
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(25, 130, 196, 0.1);
    --shadow-pop: 0 8px 0px rgba(0,0,0,0.1);
    --shadow-pop-hover: 0 4px 0px rgba(0,0,0,0.1);
}

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

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

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- CLOUDS BACKGROUND --- */
.bg-clouds {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255,255,255,0.6) 10%, transparent 10.5%),
        radial-gradient(circle at 85% 30%, rgba(255,255,255,0.7) 15%, transparent 15.5%),
        radial-gradient(circle at 45% 80%, rgba(255,255,255,0.5) 20%, transparent 20.5%);
    background-size: 150vw 150vh;
    animation: cloudsDrift 100s linear infinite;
}
@keyframes cloudsDrift {
    0% { background-position: 0 0; }
    100% { background-position: -150vw 0; }
}

/* --- HEADER & NAV --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo-text:hover {
    transform: scale(1.05) rotate(-3deg);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* --- AUTH NAV --- */
.auth-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-loading {
    opacity: 0.4;
    pointer-events: none;
}

.nav-user-greeting {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--clr-text);
}

.nav-signout {
    font-size: 1rem;
    color: var(--clr-text-light);
}
.nav-signout:hover {
    color: var(--clr-primary);
}

.auth-error-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--clr-primary);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    z-index: 9999;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-secondary);
    transition: all 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0%; height: 4px;
    background: var(--clr-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--clr-primary);
}

/* --- BUTTONS --- */
.primary-btn {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-pop);
    transition: all 0.1s ease-in-out;
    border: 3px solid transparent;
    display: inline-block;
}
.primary-btn:hover {
    transform: translateY(4px);
    box-shadow: var(--shadow-pop-hover);
    background-color: #ff4744;
}
.primary-btn:active {
    transform: translateY(8px);
    box-shadow: none;
}
.btn-large {
    font-size: 1.8rem;
    padding: 1rem 3rem;
    background-color: var(--clr-green);
}
.btn-large:hover {
    background-color: #79b321;
}

.bounce-btn {
    animation: gentleBts 3s infinite alternate cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
@keyframes gentleBts {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--clr-secondary);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 rgba(25, 130, 196, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--clr-text);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.floating {
    animation: floatAnim 6s ease-in-out infinite;
}
@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-mascot {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, #FFCA3A, #ffba08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(255, 202, 58, 0.4), inset -10px -10px 20px rgba(224, 168, 0, 0.5);
    position: relative;
}
.mascot-face {
    font-size: 5rem;
    font-weight: 800;
    color: #8c6000;
}

.star {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.star-1 { top: 10%; left: 10%; animation: twinkle 4s infinite 0.5s; font-size: 2.5rem; }
.star-2 { top: 30%; right: 10%; animation: twinkle 3s infinite 1.2s; font-size: 4rem; }
.star-3 { bottom: 10%; left: 30%; animation: twinkle 5s infinite; font-size: 3rem; }

@keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* --- SECTION STYLES --- */
.section-title {
    text-align: center;
    font-size: 3.5rem;
    color: var(--clr-purple);
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background-color: var(--clr-accent);
    border-radius: 10px;
}

/* --- JOBS SECTION --- */
.jobs-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.job-card {
    background: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-bottom: 8px solid var(--brand-col);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
}
.job-card:hover {
    top: -15px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
}

.job-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}
.job-card:hover .job-icon {
    transform: scale(1.2) rotate(10deg);
}

.job-title {
    font-size: 2rem;
    color: var(--clr-text);
    margin-bottom: 1rem;
}

.job-desc {
    color: var(--clr-text-light);
    font-weight: 600;
    margin-bottom: 2rem;
}

.job-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--brand-col);
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 20px;
    transition: all 0.2s;
}
.job-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 6rem 5%;
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    text-align: center;
    position: relative;
}
.features-section .section-title {
    color: var(--clr-white);
}

.features-list {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.2);
    width: 120px; height: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
}
.bubble::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px;
    width: 20px; height: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.feature-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 3rem 5%;
}

.footer-logo {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- ANCHOR SCROLL OFFSET (accounts for fixed header) --- */
#jobs, #about {
    scroll-margin-top: 90px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
    .hero-content { margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav { display: none; } /* Could add a hamburger menu for full implementation */
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.8rem; }
}
