/* --- Variables & Reset --- */
:root {
    --primary: #10b981;    /* Dino Emerald-500 */
    --primary-dark: #059669; /* Dino-600 */
    --primary-light: #dcfce7; /* Dino-100 */
    
    --accent: #f43f5e;     /* Rose-500 */
    --accent-hover: #e11d48; /* Rose-600 */
    
    --dark: #0f172a;       /* Slate-900 */
    --dark-surface: #1e293b; /* Slate-800 */
    
    --light: #f8fafc;      /* Slate-50 */
    --gray: #475569;       /* Slate-600 (Darker for better readability) */
    --gray-light: #94a3b8; /* Slate-400 */
    --border: #e2e8f0;     /* Slate-200 */
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 0.5rem;   /* rounded-lg */
    --radius-md: 1rem;     /* rounded-2xl */
    --radius-lg: 1.5rem;   /* rounded-3xl */
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --container-width: 1280px; /* max-w-7xl */
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1; /* Tighter heading line height like Tailwind */
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

ul { list-style: none; }
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gradient {
    background: linear-gradient(to right, var(--primary), #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hidden { display: none !important; }

/* Spacing Helpers */
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

.btn:active { transform: scale(0.95); }
.btn svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }

.btn-primary {
    background-color: var(--dark-surface);
    color: white;
}
.btn-primary:hover {
    background-color: #334155; /* Slate-700 */
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.btn-primary svg { margin-right: 0; margin-left: 0.5rem; }

.btn-accent {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(244, 63, 94, 0.39);
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: rotate(1deg);
}

.btn-outline {
    background-color: white;
    color: var(--dark-surface);
    border-color: var(--dark-surface);
}
.btn-outline:hover {
    background-color: var(--dark-surface);
    color: white;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3rem; /* h-16 is 4rem, content height */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.logo:hover .logo-icon { transform: rotate(12deg); }
.logo-icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    border-radius: 999px; 
    background-color: var(--primary-light); 
    padding: 0.25rem; 
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--gray);
    position: relative;
    font-size: 1rem;
}

.nav-links a:not(.btn):hover { color: var(--primary-dark); }

/* Animated Underline */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after { width: 100%; }

/* Language Switcher */
.lang-switcher select {
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switcher select:hover {
    border-color: var(--primary);
    color: var(--dark);
}

.lang-switcher select:focus {
    outline: none;
    border-color: var(--primary);
}

.mobile-lang-wrapper {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
}

.mobile-lang-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: white;
    font-size: 1rem;
    color: var(--dark);
}

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}
.mobile-toggle svg { width: 28px; height: 28px; }

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 1rem 1.5rem;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0.75rem;
    font-weight: 500;
    color: var(--gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.mobile-menu a:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

.mobile-cta { margin-top: 1rem; }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-toggle { display: none; }
    .mobile-menu { display: none !important; }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-section { padding-top: 12rem; padding-bottom: 8rem; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.hero-content { 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content { 
        text-align: left; 
        align-items: flex-start;
    }
}

.badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--dark); /* Dino-900 */
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    margin-bottom: 1rem;
    transform: rotate(-2deg);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) { .hero-content h1 { font-size: 3.75rem; } } /* 6xl */
@media (min-width: 1024px) { .hero-content h1 { font-size: 4.5rem; } } /* 7xl */

.lead {
    font-size: 1.25rem; /* xl */
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 32rem; /* max-w-lg */
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-buttons { 
        flex-direction: row; 
        justify-content: center;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .hero-buttons { justify-content: flex-start; }
}

/* Hero Visual */
.hero-visual { 
    position: relative; 
    padding: 1rem; 
    /* Centers visual on mobile */
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

.image-card {
    position: relative;
    z-index: 10;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    transition: transform 0.5s ease-out;
    border: 1px solid var(--border);
}

.image-card:hover { transform: rotate(0deg); }

.image-wrapper {
    position: relative;
    aspect-ratio: 3/4; /* Taller */
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal; /* Normal mode per request */
    opacity: 0.75; /* Changed opacity to 0.75 */
    transition: transform 0.7s ease;
}

.image-card:hover .image-wrapper img { transform: scale(1.05); }

.overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-text span {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(-3deg);
    color: var(--dark-surface);
}

.card-backdrop {
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    transform: rotate(-3deg) translate(1rem, 1rem);
    z-index: 1;
    opacity: 0.2;
}

/* Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Increased blur for smoother look */
    z-index: -1;
    opacity: 0.5;
}

.blob-1 { top: 5rem; right: -5rem; width: 18rem; height: 18rem; background-color: var(--primary-light); animation: pulse 6s infinite alternate; }
.blob-2 { bottom: 5rem; left: -5rem; width: 20rem; height: 20rem; background-color: #ffedd5; }
.blob-3 { top: 10rem; left: -5rem; width: 24rem; height: 24rem; background-color: var(--primary-light); opacity: 0.7; mix-blend-mode: multiply; }

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* --- Features Section --- */
.section-light { padding: 6rem 0; background-color: white; position: relative; }

.section-header {
    text-align: center;
    max-width: 48rem; /* 3xl */
    margin: 0 auto 5rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.dot { width: 0.5rem; height: 0.5rem; background-color: var(--accent); border-radius: 50%; animation: pulse 1.5s infinite; }

.section-header h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .section-header h2 { font-size: 3rem; } }

.subtitle { font-size: 1.5rem; font-weight: 300; color: var(--gray); line-height: 1.4; }
.sub-note { font-style: italic; color: var(--gray-light); font-size: 1.125rem; display: block; margin-top: 0.5rem; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s;
}

/* Staggered margins on desktop */
@media (min-width: 768px) {
    .mt-offset-1 { margin-top: 2rem; }
    .mt-offset-2 { margin-top: 4rem; }
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover .icon-box { transform: rotate(12deg); }
.feature-card:hover .icon-box.icon-dino { transform: rotate(-12deg); }
.feature-card:hover .icon-box.icon-rose { transform: scale(1.1); }

.icon-indigo { background-color: #e0e7ff; color: #4f46e5; }
.icon-dino { background-color: var(--primary-light); color: var(--primary-dark); }
.icon-rose { background-color: #ffe4e6; color: var(--accent); }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--dark); }
.feature-card p { color: var(--gray); line-height: 1.6; }

/* CTA Banner */
.cta-banner {
    position: relative;
    background-color: var(--dark-surface);
    /* Hex texture on top, Gradient at bottom */
    background-image: 
        url('https://www.transparenttextures.com/patterns/hexellence.png'),
        linear-gradient(120deg, #3730a3, #065f46, #9f1239, #3730a3); /* Indigo (Past), Emerald (Present), Rose (Future), Indigo (Loop) */
    background-size: auto, 400% 400%;
    animation: timeTravel 12s linear infinite;
    
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    color: white;
    overflow: hidden;
}

@keyframes timeTravel {
    0% {
        background-position: 0 0, 0% 50%;
    }
    100% {
        background-position: -50px -25px, 100% 50%; /* Hexes scroll, Gradient shifts */
    }
}

@media (min-width: 768px) { .cta-banner { padding: 3rem; } }

.cta-content { position: relative; z-index: 10; }
.cta-content h3 { font-size: 1.875rem; margin-bottom: 1.5rem; color: white; }
.small-text { color: var(--gray-light); font-size: 0.875rem; margin-top: 1rem; }

/* --- About Section --- */
.section-about {
    padding: 6rem 0;
    background-color: rgba(255, 247, 237, 0.5); /* Orange-50 / 50 */
    overflow: hidden;
    position: relative;
}

.underline-accent {
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 6rem;
    height: 0.25rem;
    background-color: var(--accent-hover); /* Rose-400 */
    transform: rotate(2deg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

/* Quote Card */
.quote-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid #ffedd5; /* Orange-100 */
    transform: rotate(-1deg);
    transition: transform 0.5s ease;
}

@media (min-width: 768px) { .quote-card { padding: 3rem; } }

.quote-card:hover { transform: rotate(0); }

.quote-mark { font-family: var(--font-heading); font-size: 3.75rem; color: var(--primary); line-height: 1; margin-bottom: 1.5rem; }
.quote-card h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--dark-surface); }
@media (min-width: 768px) { .quote-card h3 { font-size: 1.875rem; } }

.quote-card p { font-size: 1.125rem; font-weight: 300; line-height: 1.75; color: var(--gray); }
@media (min-width: 768px) { .quote-card p { font-size: 1.25rem; } }

.highlight { font-weight: 500; color: var(--primary-dark); }

.team-mini { display: flex; items: center; gap: 1rem; margin-top: 1.5rem; }
.team-mini img { width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover; background-color: #cbd5e1; }
.team-mini strong { display: block; font-size: 0.875rem; color: var(--dark); }
.team-mini small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); }

/* Collage */
.collage-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: 2rem;
}

@media (min-width: 1024px) { .collage-wrapper { margin-top: 0; } }

.polaroid {
    position: absolute;
    background: white;
    padding: 0.75rem 0.75rem 2.5rem 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 10;
}

.polaroid:hover { z-index: 30 !important; transform: scale(1.05) rotate(0deg) !important; }

.photo-frame {
    background-color: #f1f5f9;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.polaroid:hover .photo-frame img { }

.handwritten { 
    font-family: var(--font-heading); 
    color: var(--gray); 
    font-size: 0.875rem; 
    display: block; 
    text-align: center; 
}

/* Exact Positioning mimicking the React "left-10", "right-10", "rotate-6" */
/* top-0 left-0 md:left-10 */
.polaroid-1 {
    width: 18rem; /* Mobile updated */
    top: 0;
    left: 0;
    transform: rotate(-6deg);
    z-index: 3; /* Front */
}
@media (min-width: 768px) {
    .polaroid-1 { width: 24rem; left: 2.5rem; } 
}

/* bottom-0 right-0 md:right-10 */
.polaroid-2 {
    width: 10rem; /* Mobile updated */
    bottom: 0;
    right: 0;
    transform: rotate(3deg);
    z-index: 1; /* Back */
}
@media (min-width: 768px) {
    .polaroid-2 { width: 12rem; right: 2.5rem; } /* Desktop updated */
}

/* top-1/2 left-1/2 */
.polaroid-3 {
    width: 12rem; /* Mobile updated */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(12deg);
    z-index: 2; /* Middle */
}
@media (min-width: 768px) {
    .polaroid-3 { width: 14rem; } /* Desktop updated */
}
.polaroid-3:hover { 
    z-index: 50 !important; 
    transform: translate(-50%, -50%) scale(1.05) rotate(0deg) !important;
}
/* Removed fuel wrapper taller aspect ratio */


/* --- Footer --- */
.main-footer {
    background-color: var(--dark);
    color: white;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    margin-top: -1.25rem;
    position: relative;
    z-index: 20;
    /* Removed border radius */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-cta h2 { font-size: 2.25rem; margin-bottom: 1rem; color: white; }
@media (min-width: 768px) { .footer-cta h2 { font-size: 3rem; } }

.text-dino { color: #34d399; /* Dino-400 */ }
.footer-cta p { color: #cbd5e1; font-size: 1.125rem; max-width: 28rem; margin-bottom: 1.5rem; }

.social-links { display: flex; gap: 1rem; padding-top: 1rem; }
.social-links a {
    background: var(--dark-surface);
    padding: 0.75rem;
    border-radius: 9999px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.social-links a:hover { background-color: var(--primary); }
.social-links a:nth-child(2):hover { background-color: var(--accent); }
.social-links a:nth-child(3):hover { background-color: #2563eb; }

.footer-form-wrapper {
    background-color: var(--dark-surface);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #334155;
    box-shadow: var(--shadow-xl);
}

.newsletter-form label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: #cbd5e1; }
.input-group { position: relative; margin-bottom: 1rem; }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    width: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 0.75rem;
    background-color: var(--dark);
    border: 1px solid #475569;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.newsletter-form input:focus { 
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--accent);
}

.disclaimer { font-size: 0.75rem; color: var(--gray); text-align: center; margin-top: 0.5rem; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray);
    gap: 1.5rem; /* Replaces individual margins for spacing */
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.legal-links { display: flex; gap: 1.5rem; }
.legal-links a:hover { color: white; }