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

:root {
    --primary: #00d4ff;
    --secondary: #ff00ff;
    --dark: #000000;
    --darker: #0a0a0a;
    --light: #ffffff;
    --accent: #00ff88;
    --gold: #ffd700;
}

@font-face {
    font-family: 'System';
    src: local(-apple-system), local(BlinkMacSystemFont), local("Segoe UI"), local(Roboto);
}

body {
    font-family: 'System', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

/* Custom Cursor */
.cursor {
    width: 40px;
    height: 40px;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: exclusion;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid var(--light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cursorPulse 2s infinite;
}

@keyframes cursorPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Loading Screen */
.loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 2rem;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 1000;
    mix-blend-mode: difference;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.nav-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-dot {
    width: 10px;
    height: 10px;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-dot.active {
    background: var(--primary);
    transform: scale(1.5);
}

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

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1400px;
    padding: 0 2rem;
}

h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-top: 4rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

.hero-title-line {
    display: block;
    overflow: visible;
    margin-bottom: 0.2em;
}

.hero-title-word {
    display: inline-block;
    opacity: 1;
}

.hero-title-word.static {
    animation: fadeInUp 1s ease forwards;
}

.hero-title-word.cycling {
    position: relative;
    min-width: 300px;
    text-align: center;
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

@keyframes wordFadeIn {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    opacity: 0;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

/* Sections */
section {
    padding: 8rem 2rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Thesis Section */
.thesis-section {
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(255, 0, 255, 0.05) 0%, transparent 40%);
}

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

.thesis-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.thesis-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.thesis-visual {
    position: relative;
    height: 600px;
}

.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 200px; height: 200px; }
.orbit-2 { width: 300px; height: 300px; }
.orbit-3 { width: 400px; height: 400px; }

.orbit-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

/* Current Landscape */
.landscape-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
}

.landscape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.landscape-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.landscape-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.landscape-card:hover::before {
    transform: translateX(0);
}

.landscape-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.landscape-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

/* Timeline */
.timeline-section {
    background: var(--dark);
    overflow: hidden;
}

.timeline-container {
    position: relative;
    padding: 4rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    margin: 6rem 0;
    align-items: center;
}

.timeline-content {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.5s ease;
}

.timeline-content.left {
    text-align: right;
}

.timeline-content.right {
    text-align: left;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    animation: ping 2s infinite;
    z-index: -1;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Vision Section */
.vision-section {
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.vision-card {
    background: var(--dark);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.vision-card:hover::before {
    width: 300%;
    height: 300%;
}

.vision-card:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

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

/* CTA Section */
.cta-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    z-index: 10;
}

.cta-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--dark);
    background: var(--light);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .thesis-content {
        grid-template-columns: 1fr;
    }

    .landscape-grid,
    .vision-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-content.left,
    .timeline-content.right {
        text-align: left;
    }

    .nav-indicator {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}