/* ==================== 
   JELLY LABS STUDIO - ENHANCED STYLES
   Deep ocean vibes with bioluminescent jellyfish
   ==================== */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Deep Ocean Colors */
    --bg-dark: #030812;
    --bg-primary: #060d1f;
    --bg-secondary: #0a1628;
    --bg-card: rgba(10, 22, 40, 0.7);
    --bg-card-hover: rgba(15, 30, 55, 0.85);
    
    /* Bioluminescent Accents */
    --glow-cyan: #00f5ff;
    --glow-purple: #bf5af2;
    --glow-pink: #ff6b9d;
    --glow-blue: #5e9eff;
    --glow-teal: #00d4aa;
    
    /* Glow Variants */
    --glow-cyan-soft: rgba(0, 245, 255, 0.3);
    --glow-purple-soft: rgba(191, 90, 242, 0.3);
    --glow-pink-soft: rgba(255, 107, 157, 0.25);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #5a6a7a;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--glow-cyan), var(--glow-purple), var(--glow-pink));
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--glow-purple);
    color: white;
}

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-jelly {
    width: 80px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.preloader-head {
    width: 80px;
    height: 60px;
    background: linear-gradient(180deg, var(--glow-cyan), var(--glow-purple));
    border-radius: 50% 50% 45% 45%;
    position: relative;
    animation: jellyPulse 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 40px var(--glow-cyan-soft),
        0 0 80px var(--glow-purple-soft),
        inset 0 -15px 30px rgba(191, 90, 242, 0.4);
}

.preloader-head::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 15px;
    width: 20px;
    height: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(2px);
}

.preloader-tentacles {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -8px;
}

.preloader-tentacles span {
    width: 4px;
    background: linear-gradient(180deg, var(--glow-purple), transparent);
    border-radius: 0 0 4px 4px;
    animation: tentacleWave 1s ease-in-out infinite;
}

.preloader-tentacles span:nth-child(1) { height: 30px; animation-delay: 0s; }
.preloader-tentacles span:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.preloader-tentacles span:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.preloader-tentacles span:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.preloader-tentacles span:nth-child(5) { height: 30px; animation-delay: 0.4s; }

@keyframes jellyPulse {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(1.05) scaleY(0.95); }
}

@keyframes tentacleWave {
    0%, 100% { transform: rotate(0deg) scaleY(1); }
    25% { transform: rotate(8deg) scaleY(0.9); }
    75% { transform: rotate(-8deg) scaleY(1.1); }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-main);
    border-radius: 3px;
    animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ==================== CURSOR GLOW ==================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-cyan-soft) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

body:hover .cursor-glow {
    opacity: 0.6;
}

/* ==================== PARTICLE CANVAS ==================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(191, 90, 242, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(255, 107, 157, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}

/* ==================== JELLYFISH ==================== */
.jellyfish-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.jellyfish {
    position: absolute;
    opacity: 0.4;
    animation: floatJelly 25s ease-in-out infinite;
}

.jelly-body {
    position: relative;
    border-radius: 50% 50% 40% 40%;
    background: linear-gradient(180deg, var(--glow-cyan), var(--glow-purple));
    animation: jellyBreath 3s ease-in-out infinite;
}

.jelly-glow {
    position: absolute;
    inset: -20px;
    border-radius: inherit;
    background: inherit;
    filter: blur(20px);
    opacity: 0.5;
}

.tentacles {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: -5px;
}

.tentacles span {
    width: 2px;
    background: linear-gradient(180deg, var(--glow-purple), transparent);
    border-radius: 0 0 2px 2px;
    transform-origin: top;
    animation: tentacleFlow 2s ease-in-out infinite;
}

/* Jellyfish sizes and positions */
.jelly-1 {
    top: 10%;
    left: 5%;
    animation-duration: 30s;
}
.jelly-1 .jelly-body { width: 80px; height: 60px; }
.jelly-1 .tentacles span:nth-child(odd) { height: 50px; }
.jelly-1 .tentacles span:nth-child(even) { height: 70px; }

.jelly-2 {
    top: 60%;
    right: 5%;
    animation-duration: 25s;
    animation-delay: -5s;
}
.jelly-2 .jelly-body { 
    width: 60px; 
    height: 45px; 
    background: linear-gradient(180deg, var(--glow-purple), var(--glow-pink));
}
.jelly-2 .tentacles span { 
    background: linear-gradient(180deg, var(--glow-pink), transparent);
    height: 40px;
}
.jelly-2 .tentacles span:nth-child(even) { height: 55px; }

.jelly-3 {
    top: 30%;
    right: 15%;
    animation-duration: 35s;
    animation-delay: -10s;
    opacity: 0.25;
}
.jelly-3 .jelly-body { 
    width: 40px; 
    height: 30px;
    background: linear-gradient(180deg, var(--glow-blue), var(--glow-cyan));
}
.jelly-3 .tentacles span { height: 25px; }
.jelly-3 .tentacles span:nth-child(even) { height: 35px; }

.jelly-4 {
    bottom: 15%;
    left: 10%;
    animation-duration: 28s;
    animation-delay: -15s;
    opacity: 0.3;
}
.jelly-4 .jelly-body { 
    width: 50px; 
    height: 38px;
    background: linear-gradient(180deg, var(--glow-teal), var(--glow-cyan));
}
.jelly-4 .tentacles span { height: 30px; }
.jelly-4 .tentacles span:nth-child(even) { height: 45px; }

.jelly-5, .jelly-6, .jelly-7, .jelly-8 {
    opacity: 0.15;
}

.jelly-5 {
    top: 45%;
    left: 25%;
    animation-duration: 40s;
    animation-delay: -8s;
}
.jelly-5 .jelly-body { width: 25px; height: 18px; }
.jelly-5 .tentacles span { height: 15px; width: 1px; }

.jelly-6 {
    top: 75%;
    right: 30%;
    animation-duration: 38s;
    animation-delay: -20s;
}
.jelly-6 .jelly-body { 
    width: 30px; 
    height: 22px;
    background: linear-gradient(180deg, var(--glow-pink), var(--glow-purple));
}
.jelly-6 .tentacles span { height: 18px; width: 1px; }

.jelly-7 {
    top: 20%;
    left: 40%;
    animation-duration: 45s;
    animation-delay: -12s;
}
.jelly-7 .jelly-body { width: 20px; height: 15px; }
.jelly-7 .tentacles span { height: 12px; width: 1px; }

.jelly-8 {
    bottom: 30%;
    right: 20%;
    animation-duration: 42s;
    animation-delay: -25s;
}
.jelly-8 .jelly-body { 
    width: 35px; 
    height: 26px;
    background: linear-gradient(180deg, var(--glow-blue), var(--glow-purple));
}
.jelly-8 .tentacles span { height: 20px; width: 1.5px; }

@keyframes floatJelly {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -50px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, -30px) rotate(-3deg);
    }
    75% {
        transform: translate(15px, -60px) rotate(4deg);
    }
}

@keyframes jellyBreath {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(1.08) scaleY(0.92); }
}

@keyframes tentacleFlow {
    0%, 100% { transform: rotate(0deg) scaleY(1); }
    33% { transform: rotate(12deg) scaleY(0.9); }
    66% { transform: rotate(-12deg) scaleY(1.1); }
}

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(6, 13, 31, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    font-size: 1.6rem;
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--gradient-main);
    color: var(--text-primary) !important;
    margin-left: 8px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-cyan-soft);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--glow-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--glow-cyan);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% auto;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-description {
    max-width: 560px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--text-primary);
    box-shadow: 0 4px 25px var(--glow-cyan-soft);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--glow-cyan-soft);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 25px var(--glow-cyan-soft); }
    50% { box-shadow: 0 4px 40px var(--glow-purple-soft), 0 0 60px var(--glow-cyan-soft); }
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.scroll-indicator {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, var(--glow-cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Hero rings */
.hero-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.ring-1 {
    width: 500px;
    height: 500px;
    margin: -250px 0 0 -250px;
    animation: rotateSlow 40s linear infinite;
}

.ring-2 {
    width: 700px;
    height: 700px;
    margin: -350px 0 0 -350px;
    animation: rotateSlow 60s linear infinite reverse;
}

.ring-3 {
    width: 900px;
    height: 900px;
    margin: -450px 0 0 -450px;
    animation: rotateSlow 80s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--glow-cyan);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

/* ==================== ABOUT ==================== */
.about {
    background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.5), transparent);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 60px;
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ==================== FOUNDERS ==================== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.founder-card:hover {
    transform: translateY(-12px);
    border-color: rgba(191, 90, 242, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--glow-purple-soft), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.founder-card:hover .card-glow {
    opacity: 1;
}

.founder-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--gradient-main);
    border-radius: 50%;
}

.founder-avatar span {
    position: relative;
    z-index: 2;
    line-height: 1;
}

/* Custom Jellyfish Avatar for Jelly Queen */
.jelly-avatar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jelly-avatar-head {
    width: 40px;
    height: 30px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    border-radius: 50% 50% 40% 40%;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(191, 90, 242, 0.4);
    animation: jellyAvatarPulse 2s ease-in-out infinite;
}

.jelly-avatar-tentacles {
    display: flex;
    gap: 3px;
    margin-top: -3px;
}

.jelly-avatar-tentacles span {
    width: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    border-radius: 0 0 3px 3px;
    animation: jellyAvatarWave 1.5s ease-in-out infinite;
}

.jelly-avatar-tentacles span:nth-child(1) { height: 15px; animation-delay: 0s; }
.jelly-avatar-tentacles span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.jelly-avatar-tentacles span:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.jelly-avatar-tentacles span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.jelly-avatar-tentacles span:nth-child(5) { height: 15px; animation-delay: 0.4s; }

.avatar-crown {
    position: absolute;
    top: -5px;
    font-size: 1.4rem;
    z-index: 3;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes jellyAvatarPulse {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(1.08) scaleY(0.94); }
}

@keyframes jellyAvatarWave {
    0%, 100% { transform: rotate(0deg); }
    33% { transform: rotate(10deg); }
    66% { transform: rotate(-10deg); }
}

.avatar-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient-main) border-box;
    animation: rotateSlow 10s linear infinite;
    z-index: 1;
}

.founder-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.founder-realname {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.founder-role {
    display: block;
    color: var(--glow-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.founder-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: left;
}

.founder-bio:last-of-type {
    margin-bottom: 24px;
}

.founder-bio-highlight {
    color: var(--text-primary);
    font-style: italic;
    opacity: 0.9;
}

.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.founder-tags span {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==================== PROJECTS ==================== */
.projects {
    background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.5), transparent);
}

.project-showcase {
    max-width: 700px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.project-card:hover {
    border-color: rgba(0, 245, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0, 245, 255, 0.1);
}

.project-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-cyan-soft), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--glow-cyan);
    margin-bottom: 28px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--glow-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.project-icon {
    font-size: 3rem;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 4px;
}

.project-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.project-features {
    list-style: none;
    margin-bottom: 36px;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
}

.project-features li:last-child {
    border-bottom: none;
}

.project-features svg {
    width: 22px;
    height: 22px;
    color: var(--glow-cyan);
    flex-shrink: 0;
}

.project-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.waitlist-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.coming-soon {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.coming-soon p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.lab-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.8rem;
    opacity: 0.5;
}

.lab-icons span {
    animation: gentleFloat 3s ease-in-out infinite;
}

.lab-icons span:nth-child(2) { animation-delay: 0.3s; }
.lab-icons span:nth-child(3) { animation-delay: 0.6s; }

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.4s ease;
    margin-bottom: 36px;
}

.contact-email:hover {
    transform: translateX(8px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.1);
}

.email-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
}

.email-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.email-address {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
}

.social-section {
    margin-top: 36px;
}

.social-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

.social-link:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--glow-purple-soft);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--glow-cyan);
    box-shadow: 0 0 0 4px var(--glow-cyan-soft);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--radius-md);
    color: var(--glow-teal);
    margin-top: 24px;
    animation: fadeSlideIn 0.5s ease;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--glow-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom .credits {
    margin-top: 8px;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ==================== GSAP ANIMATIONS ==================== */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(60px);
}

.gsap-fade-in {
    opacity: 0;
}

.gsap-scale-in {
    opacity: 0;
    transform: scale(0.9);
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .project-cta {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 80px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.3rem;
        padding: 16px 32px;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .founder-card,
    .project-card,
    .contact-form {
        padding: 32px 24px;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reduce jellyfish on mobile */
    .jelly-5, .jelly-6, .jelly-7, .jelly-8 {
        display: none;
    }
    
    .jellyfish {
        opacity: 0.2;
    }
    
    .cursor-glow {
        display: none;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
