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

:root {
    /* Earth Tone Palette */
    --mocha: #6B4423;
    --mocha-light: #8B5A3C;
    --mocha-dark: #4A2F1A;
    --sage: #87A96B;
    --sage-light: #A8C99C;
    --sage-dark: #6B8A54;
    --terracotta: #C47B5B;
    --terracotta-light: #D4977D;
    --terracotta-dark: #A85E42;
    --cream: #F5F1E8;
    --off-white: #FDFBF7;
    --soft-gray: #D4CFC4;
    --text-dark: #3A3330;
    --text-medium: #736B63;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
nav {
    background: var(--off-white);
    border-bottom: 2px solid var(--mocha);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(253, 251, 247, 0.95);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    color: var(--mocha);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.github-btn {
    background: var(--mocha);
    color: var(--off-white);
    padding: 0.7rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid var(--mocha);
}

.github-btn:hover {
    background: var(--mocha-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 68, 35, 0.25);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 50%, var(--cream) 100%);
    border-bottom: 3px solid var(--terracotta);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(135, 169, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(196, 123, 91, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--mocha-dark);
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-medium);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.status-badge {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 0.7rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid;
}

.badge.live {
    background: rgba(135, 169, 107, 0.15);
    border-color: var(--sage);
    color: var(--sage-dark);
}

.badge.building {
    background: rgba(196, 123, 91, 0.15);
    border-color: var(--terracotta);
    color: var(--terracotta-dark);
}

/* Sections */
section {
    padding: 5rem 0;
    background: var(--off-white);
}

section:nth-child(even) {
    background: var(--cream);
}

section h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--mocha);
    font-weight: 700;
    letter-spacing: -1px;
}

.what-is p {
    font-size: 1.2rem;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-medium);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--soft-gray);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mocha), var(--terracotta));
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--mocha);
    box-shadow: 0 12px 24px rgba(107, 68, 35, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--mocha);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--off-white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--sage);
    border-radius: 8px;
    border: 2px solid var(--soft-gray);
    border-left-width: 4px;
    border-left-color: var(--sage);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--sage);
    box-shadow: 0 8px 16px rgba(135, 169, 107, 0.15);
    transform: translateX(8px);
}

.phase {
    background: linear-gradient(135deg, var(--mocha), var(--mocha-light));
    color: var(--off-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.timeline-item h4 {
    margin: 1.2rem 0 0.7rem 0;
    font-size: 1.3rem;
    color: var(--mocha-dark);
    font-weight: 600;
}

.timeline-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Tech Stack */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tech-badge {
    background: var(--off-white);
    color: var(--mocha);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--mocha);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--mocha);
    color: var(--off-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(107, 68, 35, 0.2);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 100%);
    text-align: center;
    position: relative;
    border-top: 3px solid var(--mocha);
    border-bottom: 3px solid var(--mocha);
}

.cta h3 {
    color: var(--off-white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--off-white);
}

.cta-btn {
    display: inline-block;
    background: var(--mocha);
    color: var(--off-white);
    padding: 1.2rem 3.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(107, 68, 35, 0.3);
    border: 2px solid var(--mocha-dark);
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(107, 68, 35, 0.4);
    background: var(--mocha-dark);
}

/* Footer */
footer {
    background: var(--cream);
    color: var(--text-medium);
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid var(--soft-gray);
}

footer p {
    margin: 0.7rem 0;
}

footer strong {
    color: var(--mocha);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    section h3 {
        font-size: 2rem;
    }
    
    .status-badge {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-badges {
        gap: 0.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--sage);
    color: var(--off-white);
}

/* ==========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================== */

/* Fade in on page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating animation for badges */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Pulse glow effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(107, 68, 35, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(107, 68, 35, 0.4);
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   APPLY ANIMATIONS TO ELEMENTS
   ========================================== */

/* Hero section - fade in */
.hero {
    animation: fadeIn 1s ease-out;
}

.hero h2 {
    animation: fadeIn 1.2s ease-out 0.2s both;
}

.tagline {
    animation: fadeIn 1.4s ease-out 0.4s both;
}

.status-badge {
    animation: fadeIn 1.6s ease-out 0.6s both;
}

/* Badges float gently */
.badge {
    animation: float 3s ease-in-out infinite;
}

.badge.live {
    animation-delay: 0s;
}

.badge.building {
    animation-delay: 0.3s;
}

/* Feature cards - stagger animation */
.feature-card:nth-child(1) {
    animation: scaleIn 0.6s ease-out 0.1s both;
}

.feature-card:nth-child(2) {
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.feature-card:nth-child(3) {
    animation: scaleIn 0.6s ease-out 0.3s both;
}

.feature-card:nth-child(4) {
    animation: scaleIn 0.6s ease-out 0.4s both;
}

/* Feature card hover - smooth lift with shadow */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Timeline items - slide in from left */
.timeline-item:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out both;
}

.timeline-item:nth-child(even) {
    animation: slideInRight 0.8s ease-out both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

/* Timeline hover - smoother transition */
.timeline-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tech badges - scale on hover with bounce */
.tech-badge {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tech-badge:hover {
    transform: translateY(-5px) scale(1.08);
}

/* CTA button - pulse glow */
.cta-btn {
    transition: all 0.4s ease;
    animation: pulseGlow 2s ease-in-out infinite;
}

.cta-btn:hover {
    animation: none;
}

/* GitHub button - subtle scale */
.github-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.github-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Nav - slide down on load */
nav {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section headings - fade in with slight scale */
section h3 {
    animation: fadeInScale 1s ease-out both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Phase badges - rotate slightly on hover */
.phase {
    transition: all 0.3s ease;
}

.phase:hover {
    transform: rotate(-2deg) scale(1.05);
}

/* Add animated gradient to hero background */
.hero {
    background: linear-gradient(
        135deg,
        var(--cream) 0%,
        var(--off-white) 25%,
        var(--cream) 50%,
        var(--off-white) 75%,
        var(--cream) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Footer - fade in from bottom */
footer {
    animation: fadeInUp 1s ease-out both;
}

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

/* Smooth link underline animation */
a {
    position: relative;
}

nav h1::after,
footer strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mocha);
    transition: width 0.3s ease;
}

nav h1:hover::after,
footer strong:hover::after {
    width: 100%;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   SCROLL-TRIGGERED ANIMATIONS (Optional Advanced)
   ========================================== */

/* Add this class with JavaScript for scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect for hero (subtle) */
@media (min-width: 768px) {
    .hero {
        position: relative;
    }
    
    .hero::before {
        animation: parallaxFloat 20s ease-in-out infinite;
    }
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}