@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-space: #050507;
    --bg-grid: #0b0f19;
    --glass-surface: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.05);
    
    --theme-pink: #ec4899;
    --theme-orange: #f97316;
    
    /* Legacy aliases for unchanged files */
    --neon-blue: var(--theme-pink);
    --ai-purple: var(--theme-orange);
    --cyber-cyan: var(--theme-pink);
    --soft-emerald: var(--theme-orange);
    
    --text-primary: #f8fafc;
    --text-secondary: #9ca3af;
    --text-dark: #1e293b;
    
    --grad-pulse: linear-gradient(135deg, var(--theme-pink), var(--theme-orange));
    --grad-neural: linear-gradient(135deg, var(--theme-orange), var(--theme-pink));
    
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Effects */
.bg-ambient {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(236, 72, 153, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(249, 115, 22, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.bg-grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }

.text-gradient {
    background: var(--grad-pulse);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: var(--grad-neural);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p { color: var(--text-secondary); margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--theme-pink); }

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 8rem 0; position: relative; }

/* Components */
.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-pulse);
    color: #fff;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: var(--glass-surface);
    border-color: var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Header / Nav */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 28px; height: 28px;
    background: var(--grad-pulse);
    border-radius: 6px;
    display: grid;
    place-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
}

.hero-content { max-width: 800px; margin: 0 auto; }
.hero-p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2.5rem auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Startup Card */
.startup-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.startup-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad-pulse);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.startup-logo {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #1e293b;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(236, 72, 153, 0.1);
    color: var(--theme-pink);
    border: 1px solid rgba(236, 72, 153, 0.2);
    font-weight: 500;
}

.startup-name { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.startup-tagline { font-size: 0.9rem; margin-bottom: 1.5rem; flex-grow: 1; }
.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    margin-top: auto;
}
.location-tag { display: flex; align-items: center; gap: 0.25rem; }

/* Detail Page Layout */
.detail-hero {
    padding-top: 12rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--glass-border);
}

.detail-header-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.detail-logo {
    width: 100px; height: 100px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: grid; place-items: center; font-size: 2.5rem;
}

.detail-meta { margin-top: 1rem; display: flex; gap: 1rem; }

.detail-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

.info-block { margin-bottom: 3rem; }
.info-block h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: #fff; }
.info-block ul { list-style: none; }
.info-block ul li {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
}
.info-block ul li:last-child { border-bottom: none; }
.label { color: var(--text-secondary); }
.value { font-weight: 500; color: #fff; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--theme-pink);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
    background: rgba(0,0,0,0.4);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: rgba(5, 5, 7, 0.5);
}

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

.footer-col h4 { font-size: 1rem; margin-bottom: 1.5rem; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--theme-pink); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Utilities */
.gsap-reveal { opacity: 0; transform: translateY(30px); }

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-3, .detail-content-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Add mobile menu logic in production */
    .hero { padding-top: 8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .detail-header-flex { flex-direction: column; align-items: flex-start; }
}