/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #050505 100%);
    background-attachment: fixed;
    color: #e0e6ed;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* Custom Properties */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    --glass-effect: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(102, 126, 234, 0.2);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e6ed;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.gradient-text {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(224, 230, 237, 0.8);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.3px;
    font-weight: 300;
    min-height: 4rem;
}

.typewriter-text {
    display: inline-block;
    position: relative;
}

.typewriter-text .cursor {
    color: var(--primary-gradient);
    animation: blink 1s infinite;
    font-weight: 400;
    margin-left: 2px;
}

.typing-complete {
    animation: subtleGlow 3s ease-in-out infinite alternate;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes subtleGlow {
    0% { text-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    100% { text-shadow: 0 0 15px rgba(102, 126, 234, 0.6), 0 0 25px rgba(102, 126, 234, 0.3); }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 30px var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: #e0e6ed;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-effect);
    transform: translateY(-2px);
}

/* Floating Orbs */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
    background: var(--secondary-gradient);
}

.orb-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 40%;
    animation-delay: 4s;
    background: var(--accent-gradient);
}

/* Sections */
.section {
    padding: 8rem 2rem;
    position: relative;
}

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

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-card {
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.about-card:hover .card-icon svg {
    transform: scale(1.1);
}

.about-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.about-card p {
    color: rgba(224, 230, 237, 0.8);
    line-height: 1.7;
}

/* Vision Section */
.vision-section {
    background: rgba(0, 0, 0, 0.3);
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.vision-text p {
    font-size: 1.1rem;
    color: rgba(224, 230, 237, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.vision-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    color: rgba(224, 230, 237, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Galaxy Visual */
.vision-visual {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.galaxy-container {
    position: relative;
    width: 100%;
    height: 100%;
    animation: galaxyRotate 30s linear infinite;
}

.galaxy-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(102, 126, 234, 0.8) 40%, rgba(118, 75, 162, 0.6) 70%, transparent 100%);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.4);
    animation: centerPulse 2s ease-in-out infinite alternate;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitGlow 4s ease-in-out infinite;
}

.orbit-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.orbit-2 {
    width: 200px;
    height: 200px;
    animation-delay: 1s;
    border-color: rgba(79, 172, 254, 0.2);
}

.orbit-3 {
    width: 300px;
    height: 300px;
    animation-delay: 2s;
    border-color: rgba(240, 147, 251, 0.2);
}

.planet {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.planet-1 {
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit1 8s linear infinite;
    transform-origin: 60px 0;
    background: var(--primary-gradient);
}

.planet-2 {
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit2 15s linear infinite;
    transform-origin: 100px 0;
    background: var(--accent-gradient);
}

.planet-3 {
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit3 20s linear infinite reverse;
    transform-origin: 150px 0;
    background: var(--secondary-gradient);
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
    width: 3px;
    height: 3px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    width: 2px;
    height: 2px;
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.star-3 {
    width: 4px;
    height: 4px;
    bottom: 25%;
    left: 25%;
    animation-delay: 1s;
}

.star-4 {
    width: 2px;
    height: 2px;
    top: 15%;
    left: 60%;
    animation-delay: 1.5s;
}

.star-5 {
    width: 3px;
    height: 3px;
    bottom: 35%;
    right: 15%;
    animation-delay: 2s;
}

.star-6 {
    width: 2px;
    height: 2px;
    top: 60%;
    left: 10%;
    animation-delay: 2.5s;
}

.star-7 {
    width: 3px;
    height: 3px;
    top: 40%;
    right: 30%;
    animation-delay: 3s;
}

.star-8 {
    width: 2px;
    height: 2px;
    bottom: 15%;
    right: 40%;
    animation-delay: 0.3s;
}

.star-9 {
    width: 4px;
    height: 4px;
    top: 25%;
    left: 40%;
    animation-delay: 1.8s;
}

.star-10 {
    width: 2px;
    height: 2px;
    bottom: 40%;
    left: 70%;
    animation-delay: 2.3s;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: rgba(224, 230, 237, 0.8);
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.email-obfuscated {
    cursor: pointer;
    color: rgba(224, 230, 237, 0.8);
    transition: color 0.3s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

.email-obfuscated:hover {
    color: #ffffff;
    text-decoration-color: rgba(102, 126, 234, 0.5);
}

.contact-btn {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

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

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

.footer-left p {
    color: rgba(224, 230, 237, 0.6);
    margin-top: 0.5rem;
}

.footer-right p {
    color: rgba(224, 230, 237, 0.6);
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(45deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

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

@keyframes lineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes galaxyRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes centerPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.4);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 50px rgba(102, 126, 234, 1), 0 0 100px rgba(102, 126, 234, 0.6);
    }
}

@keyframes orbitGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

@keyframes orbit1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(60px) rotate(-360deg); }
}

@keyframes orbit2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes orbit3 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(150px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vision-visual {
        height: 250px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .connection-node {
        width: 60px;
        height: 60px;
    }
    
    .vision-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 2rem;
    }
}