/* ============================================
   YUNO - Your Erasmus Way to Connect
   Main Stylesheet
   ============================================ */

/* --- CSS Variables (OFFICIAL YUNO COLORS - DO NOT CHANGE) --- */
:root {
    --gradient-start: #FF3131;
    --gradient-end: #FF914D;
    --main-gradient: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --card-glass: rgba(255, 255, 255, 0.9);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(255, 49, 49, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(255, 145, 77, 0.05) 0%, transparent 40%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIj48ZyBmaWxsPSIjRkY2QjRBIiBmaWxsLW9wYWNpdHk9IjAuMDQiPjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHptNDAgNDBoNDB2NDBINDB6TTAgNDBoNDB2NDBIMHptNDAgLTRoNDBWMDBIMDB6Ii8+PC9nPjwvc3ZnPg==');
    z-index: -1;
    opacity: 0.8;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 999;
    padding: 15px 5%;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 5%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s;
}
.nav-logo:hover img { transform: scale(1.05); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--main-gradient);
    transition: width 0.3s;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { width: 100%; }

.nav-cta {
    padding: 10px 24px !important;
    background: var(--main-gradient);
    color: var(--text-light) !important;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    box-shadow: 0 5px 15px rgba(255, 75, 74, 0.3);
    animation: ctaGlow 3s ease-in-out infinite;
}
.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 75, 74, 0.4) !important;
    animation: none;
}
.nav-cta::after { display: none !important; }

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 5px 15px rgba(255, 75, 74, 0.3); }
    50% { box-shadow: 0 5px 25px rgba(255, 75, 74, 0.55); }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-select {
    padding: 6px 10px;
    border-radius: 20px;
    border: 2px solid #FF6B4A;
    background-color: white;
    color: #FF6B4A;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    font-size: 0.85rem;
}
.lang-select:hover { background-color: #fff0eb; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* --- Sections Base --- */
section {
    padding: 100px 5% 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Section backgrounds */
#journey { background: transparent; }
#team { background: transparent; }

h2.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    max-width: 600px;
    margin-bottom: 60px;
    font-weight: 400;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    background: var(--main-gradient);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(255, 75, 74, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 75, 74, 0.5);
}

.btn-secondary {
    background: white;
    color: #FF6B4A;
    border: 2px solid #FF6B4A;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.btn-secondary:hover {
    background: #fff0eb;
    box-shadow: 0 10px 20px rgba(255, 107, 74, 0.1);
}

/* --- Hero Section --- */
#home {
    background: transparent;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 100px;
    text-align: left;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.hero-content { text-align: left; }

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #555;
    max-width: 500px;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-mascot {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(255, 49, 49, 0.15));
}

/* Hero wave animation container */
.hero-wave-container {
    position: relative;
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(255, 49, 49, 0.15));
    cursor: pointer;
}

.wave-frame {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: none;
}

.wave-frame:first-child {
    position: relative; /* first frame holds the layout space */
}

.wave-frame.wave-active {
    opacity: 1;
}

/* Playful floating shapes in hero background */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}
.hero-shape-1 {
    width: 300px; height: 300px;
    background: var(--gradient-start);
    top: -50px; right: -100px;
    animation: float 6s ease-in-out infinite;
}
.hero-shape-2 {
    width: 200px; height: 200px;
    background: var(--gradient-end);
    bottom: -30px; left: -80px;
    animation: float 8s ease-in-out infinite reverse;
}

/* --- Journey Timeline --- */

.timeline {
    position: relative;
    max-width: 900px;
    width: 100%;
    padding: 20px 0;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end), rgba(255, 140, 0, 0.2));
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Phase markers */
.timeline-phase {
    position: relative;
    text-align: center;
    margin: 50px 0 40px;
    z-index: 2;
}

.timeline-phase-dot {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--main-gradient);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 75, 74, 0.35);
    position: relative;
}

/* Pulse ring behind phase dot */
.timeline-phase-dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 75, 74, 0.2);
    animation: phaseRing 2s ease-in-out infinite;
}
@keyframes phaseRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}

.timeline-phase h3 {
    font-size: 1.2rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
}

.timeline-phase p {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

/* Timeline feature items */
.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 40px;
    z-index: 2;
}

.timeline-item.left {
    margin-right: auto;
    margin-left: 0;
    padding-right: 40px;
}

.timeline-item.right {
    margin-left: auto;
    margin-right: 0;
    padding-left: 40px;
}

/* Connector dot on the center line */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--main-gradient);
    box-shadow: 0 0 0 4px white, 0 0 0 6px rgba(255, 75, 74, 0.2);
    z-index: 3;
}

.timeline-item.left::before {
    right: -7px;
}

.timeline-item.right::before {
    left: -7px;
}

/* Horizontal connector line */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 36px;
    height: 2px;
    width: 30px;
    background: rgba(255, 107, 74, 0.3);
}

.timeline-item.left::after {
    right: 7px;
}

.timeline-item.right::after {
    left: 7px;
}

/* Timeline card */
.timeline-card {
    padding: 28px 24px;
    border-radius: 20px;
    background: var(--card-glass);
    border: 1px solid rgba(255, 107, 74, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 107, 74, 0.1);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.timeline-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--main-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-card-icon i {
    font-size: 1.3rem;
    color: white;
}

.timeline-card h4 {
    font-size: 1.1rem;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
}

.timeline-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.timeline-card ul {
    list-style: none;
    padding: 0;
}

.timeline-card li {
    font-size: 0.85rem;
    color: #666;
    padding: 4px 0 4px 20px;
    position: relative;
}

.timeline-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--gradient-start);
    font-weight: 700;
}

/* Small mascot accent on cards */
.timeline-blob {
    position: absolute;
    width: 40px;
    bottom: -8px;
    opacity: 0.9;
    filter: drop-shadow(0 3px 6px rgba(255, 49, 49, 0.15));
    pointer-events: none;
}
.timeline-item.left .timeline-blob { right: 15px; }
.timeline-item.right .timeline-blob { left: 15px; }

/* Phase 3 teaser (small, centered) */
.timeline-phase-end {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
}
.timeline-phase-end p {
    font-size: 0.95rem;
    color: #888;
    font-style: italic;
}

/* Scroll animations for timeline items */
.timeline-item.left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.tl-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-phase {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.timeline-phase.tl-visible {
    opacity: 1;
    transform: scale(1);
}


/* --- Blob Animations --- */
/* Each blob image is already a unique pose. Animations add life. */

/* Hero blob: gentle floating up and down */
.blob-float {
    animation: blobFloat 3s ease-in-out infinite;
}
@keyframes blobFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* All other blobs: reveal on scroll with bounce */
.blob-reveal {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.blob-reveal.blob-visible {
    opacity: 1;
    transform: scale(1);
}

/* Hover wiggle on ALL blobs */
.blob-hover {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.blob-hover:hover {
    animation: blobWiggle 0.5s ease;
}
@keyframes blobWiggle {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    80% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/* Scroll companion: fixed bottom-right, breathing animation */
.scroll-companion {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    z-index: 90;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(255, 75, 74, 0.25));
    animation: blobBreathe 3s ease-in-out infinite;
}
.scroll-companion.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-companion:hover {
    animation: blobBreathe 3s ease-in-out infinite, blobWiggle 0.5s ease;
}
@keyframes blobBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Accessibility: disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .blob-float,
    .blob-hover:hover,
    .scroll-companion,
    .hero-mascot {
        animation: none !important;
    }
    .blob-reveal {
        opacity: 1;
        transform: scale(1);
        transition: none;
    }
    /* Show only frame 1 (rest pose), hide others */
    .wave-frame { opacity: 0 !important; }
    .wave-frame[data-frame="1"] { opacity: 1 !important; }
    /* Keep floating subtle enough to allow */
    .hero-wave-container { animation: blobFloat 3s ease-in-out infinite; }
}

/* --- Team Section (PRESERVE EXISTING DESIGN) --- */
#team { background: transparent; }

.story-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    background: var(--card-glass);
    padding: 60px 40px 60px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 107, 74, 0.1);
    position: relative;
    margin-top: 40px;
}

.photo-wrapper {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    width: 100%;
}

.group-photo, .sharp-clone {
    width: 100%;
    border-radius: 15px;
    border: 4px solid #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.photo-wrapper:has(.hotspot:hover) .group-photo {
    filter: blur(8px);
}

.sharp-clone {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 100%);
}

.corner-avatar {
    position: absolute;
    top: -110px;
    right: 20px;
    width: 160px;
    height: auto;
    z-index: 3;
    transition: transform 0.3s ease-out;
    pointer-events: auto;
}
.corner-avatar:hover { transform: scale(1.1) rotate(5deg); }

.hotspot {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
}

.hotspot.laurens { top: 30%; left: 8%; width: 20%; height: 50%; }
.hotspot.karl { top: 35%; left: 35%; width: 25%; height: 35%; }
.hotspot.simon { top: 40%; left: 63%; width: 25%; height: 45%; }

.photo-wrapper:has(.hotspot:hover) .sharp-clone { opacity: 1; }

.photo-wrapper:has(.hotspot.laurens:hover) .sharp-clone {
    mask-image: radial-gradient(circle at 18% 55%, black 20%, transparent 22%);
    -webkit-mask-image: radial-gradient(circle at 18% 55%, black 20%, transparent 22%);
}

.photo-wrapper:has(.hotspot.karl:hover) .sharp-clone {
    mask-image: radial-gradient(circle at 47.5% 52.5%, black 22%, transparent 24%);
    -webkit-mask-image: radial-gradient(circle at 47.5% 52.5%, black 22%, transparent 24%);
}

.photo-wrapper:has(.hotspot.simon:hover) .sharp-clone {
    mask-image: radial-gradient(circle at 75.5% 62.5%, black 22%, transparent 24%);
    -webkit-mask-image: radial-gradient(circle at 75.5% 62.5%, black 22%, transparent 24%);
}

.tooltip {
    position: absolute;
    bottom: 100%; left: 50%;
    transform: translateX(-50%);
    background: var(--main-gradient);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 1.4;
}

.tooltip span {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
}

.hotspot:hover .tooltip {
    opacity: 1;
    bottom: 90%;
}

.story-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.story-subtitle {
    font-size: 1.2rem;
    color: #FF3131;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: normal;
}

.story-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

/* --- Footer --- */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 5% 30px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 30px;
}

.footer-brand .footer-logo {
    height: 35px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
    line-height: 1.5;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gradient-end); }

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.footer-social-icons a:hover {
    background: var(--main-gradient);
    transform: translateY(-3px);
}

.footer-contact {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-contact a { color: var(--gradient-end); }

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-mascot {
    width: 35px;
    filter: drop-shadow(0 3px 6px rgba(255, 49, 49, 0.2));
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--gradient-end); }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #333;
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner button {
    background: var(--main-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 20px;
}

/* --- Privacy Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: left;
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

/* CTA Modal */
.cta-modal-content {
    text-align: center;
    padding: 45px 35px;
}
.cta-modal-mascot {
    width: 80px;
    margin-bottom: 15px;
}
.cta-email-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}
.cta-email-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 107, 74, 0.2);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.cta-email-input:focus {
    border-color: var(--gradient-start);
}
.cta-email-form .btn {
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 0.9rem;
}
.cta-success {
    text-align: center;
    color: var(--gradient-start);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 15px 0;
}
.cta-modal-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.cta-modal-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 74, 0.1);
    color: #FF6B4A;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.cta-modal-socials a:hover {
    background: var(--main-gradient);
    color: white;
    transform: translateY(-2px);
}
@media (max-width: 480px) {
    .cta-email-form { flex-direction: column; }
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* (scroll companion styles are in Blob Animations section) */

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-mascot { max-width: 280px; }
    .hero-wave-container { max-width: 280px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    section { padding: 60px 5%; }

    /* Navbar mobile */
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .nav-links.open { right: 0; }
    .hamburger { display: flex; }

    /* Hero mobile */
    #home { padding-top: 100px; min-height: auto; }
    .hero-container { text-align: center; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { flex-direction: column; width: 100%; align-items: center; }
    .hero-buttons .btn { width: 80%; justify-content: center; }
    .hero-mascot { max-width: 220px; }
    .hero-wave-container { max-width: 220px; }


    section { padding: 70px 5% 80px; }

    /* Timeline mobile: line on left, all cards right */
    .timeline::before { left: 20px; }
    .timeline-phase { text-align: left; padding-left: 55px; }
    .timeline-phase-dot { margin: 0 0 12px 0; width: 55px; height: 55px; font-size: 1.2rem; }
    .timeline-item { width: 100%; padding-left: 55px !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
    .timeline-item::before { left: 13px !important; right: auto !important; }
    .timeline-item::after { left: 27px !important; right: auto !important; width: 20px; }
    .timeline-item.left, .timeline-item.right { transform: translateX(0); opacity: 0; }
    .timeline-item.left.tl-visible, .timeline-item.right.tl-visible { opacity: 1; }
    .timeline-blob { width: 30px; }

    /* Team mobile */
    .story-container { padding: 25px 25px 40px; gap: 30px; margin-top: 60px; }
    .story-text { text-align: center; margin-top: 20px; }
    .corner-avatar { top: -80px; right: 10px; width: 100px; }
    /* Mobile: tap to reveal instead of hover */
    .hotspot { pointer-events: auto; }

    /* Footer mobile */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .footer-social-icons { justify-content: center; }

    /* Cookie banner mobile */
    #cookie-banner { flex-direction: column; text-align: center; gap: 15px; }
    #cookie-banner button { margin-left: 0; }

    /* Smaller scroll companion on mobile */
    .scroll-companion { width: 40px; height: 40px; bottom: 15px; right: 15px; }
}

@media (max-width: 480px) {
    .hero-mascot { max-width: 180px; }
    .hero-wave-container { max-width: 180px; }
}
