/* --------------------------------------------------
   Reset & Base Styles
-------------------------------------------------- */
:root {
    --color-white: #FFFFFF;
    --color-gold: #FFD700;
    --color-red: #C0392B;
    --color-bg: #fdfdfd;
    --color-text: #2c3e50;
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition-speed: 0.4s;
    --easing: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* --------------------------------------------------
   Background Typography
-------------------------------------------------- */
.background-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    z-index: -1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    opacity: 0.03;
    user-select: none;
}

.parallax-text {
    font-size: 15vw;
    font-weight: 900;
    font-family: var(--font-secondary);
    letter-spacing: -0.05em;
    color: var(--color-text);
}

/* --------------------------------------------------
   Navigation
-------------------------------------------------- */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 100;
    background: rgba(253, 253, 253, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--color-red);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: color var(--transition-speed);
}

.main-nav a:hover {
    color: var(--color-red);
}

/* --------------------------------------------------
   Hero Section
-------------------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s var(--easing) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.hero-title .accent {
    color: var(--color-red);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    font-weight: 300;
}

/* --------------------------------------------------
   Abstract Chicken (CSS Shapes)
-------------------------------------------------- */
.abstract-chicken-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.chicken {
    position: relative;
    width: 200px;
    height: 200px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.chicken .body {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.chicken .comb {
    position: absolute;
    top: 5%;
    left: 45%;
    width: 30%;
    height: 30%;
    z-index: -1;
}

.chicken .comb::before,
.chicken .comb::after,
.chicken .comb-inner {
    content: '';
    position: absolute;
    background: var(--color-red);
    border-radius: 50%;
}

/* Three circles for the comb */
.chicken .comb::before { width: 100%; height: 100%; top: -10%; left: -20%; }
.chicken .comb::after { width: 80%; height: 80%; top: 10%; right: -30%; }

.chicken .eye {
    position: absolute;
    top: 30%;
    right: 25%;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

.chicken .beak {
    position: absolute;
    right: -15%;
    top: 35%;
    width: 0;
    height: 0;
    border-left: 30px solid var(--color-gold);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.chicken .wattle {
    position: absolute;
    right: 0%;
    top: 55%;
    width: 20px;
    height: 25px;
    background: var(--color-red);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.chicken .wing {
    position: absolute;
    left: 30%;
    top: 45%;
    width: 40%;
    height: 30%;
    background: rgba(255,255,255,0.8);
    border-radius: 50% 50% 50% 50% / 0% 0% 100% 100%;
    transform: rotate(-10deg);
    border: 1px solid rgba(0,0,0,0.05);
}

.chicken .legs {
    position: absolute;
    bottom: 5%;
    left: 40%;
    width: 30%;
    display: flex;
    justify-content: space-around;
}

.chicken .leg {
    width: 4px;
    height: 30px;
    background: var(--color-gold);
}

.chicken .leg::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 15px;
    height: 4px;
    background: var(--color-gold);
    left: -5px;
}

/* --------------------------------------------------
   Features Section
-------------------------------------------------- */
.features {
    padding: 100px 5%;
    background: var(--color-white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
}

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

.feature-card {
    padding: 3rem 2rem;
    background: var(--color-bg);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.5s var(--easing), box-shadow 0.5s var(--easing);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    position: relative;
}

/* Feature Icons (CSS Shapes) */
.feather-icon {
    background: var(--color-gold);
    border-radius: 100% 0% 100% 0% / 100% 0% 100% 0%;
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}
.feature-card:hover .feather-icon {
    transform: rotate(60deg) scale(1.1);
}

.comb-icon {
    background: var(--color-red);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.feature-card:hover .comb-icon {
    animation: shake 0.5s ease infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.egg-icon {
    background: var(--color-gold);
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    transition: transform 0.8s var(--easing);
}
.feature-card:hover .egg-icon {
    transform: rotate(360deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
}

/* --------------------------------------------------
   Concept Section
-------------------------------------------------- */
.about {
    padding: 150px 5%;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 3rem;
}

.egg-btn {
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.3);
}

.egg-btn:hover {
    transform: scale(1.05);
    background: var(--color-gold);
    color: var(--color-text);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
    color: #bdc3c7;
}

/* --------------------------------------------------
   Scroll to Top Button
-------------------------------------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--color-red);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--easing);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top .arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-white);
    border-left: 2px solid var(--color-white);
    transform: rotate(45deg);
    margin-top: 5px;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: var(--color-gold);
}

/* --------------------------------------------------
   Life Cycle Section
-------------------------------------------------- */
.lifecycle {
    padding: 100px 5% 200px;
}

.timeline-wrapper {
    position: relative;
    display: flex;
    gap: 4rem;
    margin-top: 5rem;
}

.sticky-chicken-view {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-white);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.timeline-steps {
    flex-grow: 1;
}

.step {
    padding: 15vh 0;
    opacity: 0.2;
    transition: opacity 0.8s ease;
}

.step.active {
    opacity: 1;
}

.step-content {
    max-width: 500px;
}

.step-number {
    display: block;
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-bg);
    -webkit-text-stroke: 1px#ddd;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.mame-chishiki {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg);
    border-left: 4px solid var(--color-gold);
    border-radius: 0 10px 10px 0;
}

.mame-chishiki .label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------
   Transforming Chicken
-------------------------------------------------- */
.transforming-chicken {
    position: relative;
    width: 150px;
    height: 150px;
    transition: all 1s var(--easing);
}

.evo-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transition: all 1s var(--easing);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.evo-eye {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 40%;
    right: 25%;
    opacity: 0;
    transition: opacity 0.5s;
}

.evo-beak {
    width: 0;
    height: 0;
    border-left: 20px solid var(--color-gold);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    position: absolute;
    right: -10%;
    top: 45%;
    opacity: 0;
    transition: opacity 0.5s;
}

.evo-comb {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--color-red);
    border-radius: 50%;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.5s;
}

.evo-comb::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--color-red);
    border-radius: 50%;
    left: -15px;
    top: 5px;
}

.evo-legs {
    position: absolute;
    bottom: -10px;
    width: 60%;
    left: 20%;
    display: flex;
    justify-content: space-around;
    opacity: 0;
    transition: opacity 0.5s;
}

.evo-leg {
    width: 3px;
    height: 20px;
    background: var(--color-gold);
}

/* Evolution States */
.is-egg .evo-body {
    width: 80px;
    height: 100px;
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.is-chick .evo-body {
    background: var(--color-gold);
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.is-chick .evo-eye { opacity: 1; }
.is-chick .evo-beak { 
    opacity: 1; 
    border-left-width: 15px; 
    border-top-width: 8px; 
    border-bottom-width: 8px; 
}

.is-young .evo-body {
    background: var(--color-white);
    width: 120px;
    height: 120px;
    border: 4px solid var(--color-gold);
}
.is-young .evo-eye { opacity: 1; }
.is-young .evo-beak { opacity: 1; }
.is-young .evo-legs { opacity: 0.5; }

.is-adult .evo-body {
    background: var(--color-white);
    width: 140px;
    height: 140px;
}
.is-adult .evo-eye { opacity: 1; }
.is-adult .evo-beak { opacity: 1; }
.is-adult .evo-comb { opacity: 1; }
.is-adult .evo-legs { opacity: 1; }


/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 768px) {
    .timeline-wrapper {
        flex-direction: column;
    }
    .sticky-chicken-view {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 100px;
        height: 100px;
        z-index: 100;
    }
    .transforming-chicken {
        transform: scale(0.6);
    }
}

    .main-nav {
        padding: 1.5rem 5%;
    }
    .main-nav ul {
        display: none; /* Mobile nav would go here, simplified for now */
    }
    .hero-title {
        font-size: 3.5rem;
    }
}
