/* CSS Custom Properties for Theme Colors */
:root {
    /* GitHub Light Theme */
    --gh-bg-primary: #ffffff;
    --gh-bg-secondary: #f6f8fa;
    --gh-bg-tertiary: #eeeeee;
    --gh-text-primary: #000000;
    --gh-text-secondary: #6a737d;
    --gh-accent-primary: #005cc5;
    --gh-accent-secondary: #d73a49;
    --gh-border: #d0d7de;

    /* Nord Dark Theme */
    --nord-bg-primary: #2e3440;
    --nord-bg-secondary: #3b4252;
    --nord-bg-tertiary: #434c5e;
    --nord-text-primary: #eceff4;
    --nord-text-secondary: #d8dee9;
    --nord-accent-primary: #88c0d0;
    --nord-accent-secondary: #81a1c1;
    --nord-border: #4c566a;
}

/* Light Theme (GitHub Light) */
[data-theme="light"] {
    --bg-primary: var(--gh-bg-primary);
    --bg-secondary: var(--gh-bg-secondary);
    --bg-tertiary: var(--gh-bg-tertiary);
    --text-primary: var(--gh-text-primary);
    --text-secondary: var(--gh-text-secondary);
    --accent-primary: var(--gh-accent-primary);
    --accent-secondary: var(--gh-accent-secondary);
    --border-color: var(--gh-border);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --gradient-start: #ffffff;
    --gradient-end: #f6f8fa;
    --container-bg: rgba(255, 255, 255, 0.98);
    --container-border: rgba(0, 0, 0, 0.05);
    --hero-text-primary: #24292f;
    --hero-text-secondary: #57606a;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark Theme (Nord) */
[data-theme="dark"] {
    --bg-primary: var(--nord-bg-primary);
    --bg-secondary: var(--nord-bg-secondary);
    --bg-tertiary: var(--nord-bg-tertiary);
    --text-primary: var(--nord-text-primary);
    --text-secondary: var(--nord-text-secondary);
    --accent-primary: var(--nord-accent-primary);
    --accent-secondary: var(--nord-accent-secondary);
    --border-color: var(--nord-border);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --gradient-start: #434c5e;
    --gradient-end: #2e3440;
    --container-bg: rgba(59, 66, 82, 0.98);
    --container-border: rgba(76, 86, 106, 0.6);
    --hero-text-primary: #eceff4;
    --hero-text-secondary: #d8dee9;
}

/* Auto Theme - defaults to light, media query handles dark */
[data-theme="auto"] {
    --bg-primary: var(--gh-bg-primary);
    --bg-secondary: var(--gh-bg-secondary);
    --bg-tertiary: var(--gh-bg-tertiary);
    --text-primary: var(--gh-text-primary);
    --text-secondary: var(--gh-text-secondary);
    --accent-primary: var(--gh-accent-primary);
    --accent-secondary: var(--gh-accent-secondary);
    --border-color: var(--gh-border);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --gradient-start: #ffffff;
    --gradient-end: #f6f8fa;
    --container-bg: rgba(255, 255, 255, 0.98);
    --container-border: rgba(0, 0, 0, 0.05);
    --hero-text-primary: #24292f;
    --hero-text-secondary: #57606a;
}

/* Auto theme dark mode via system preference */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --bg-primary: var(--nord-bg-primary);
        --bg-secondary: var(--nord-bg-secondary);
        --bg-tertiary: var(--nord-bg-tertiary);
        --text-primary: var(--nord-text-primary);
        --text-secondary: var(--nord-text-secondary);
        --accent-primary: var(--nord-accent-primary);
        --accent-secondary: var(--nord-accent-secondary);
        --border-color: var(--nord-border);
        --shadow-color: rgba(0, 0, 0, 0.4);
        --gradient-start: #434c5e;
        --gradient-end: #2e3440;
        --container-bg: rgba(59, 66, 82, 0.98);
        --container-border: rgba(76, 86, 106, 0.6);
        --hero-text-primary: #eceff4;
        --hero-text-secondary: #d8dee9;
    }
}

/* Base Styles */
* {
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Theme Switcher */
.theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    background: var(--container-bg);
    border-radius: 24px;
    padding: 6px;
    border: 1px solid var(--container-border);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-switcher:hover {
    opacity: 1;
}

.theme-toggle {
    display: flex;
    position: relative;
    width: 64px;
    height: 32px;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    border-radius: 20px;
    padding: 4px;
    transition: all 0.3s ease;
}

.theme-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.theme-toggle.dark .theme-toggle-slider {
    transform: translateX(32px);
}

.theme-toggle-slider::before {
    content: '☀';
    color: #FFA500;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 2px rgba(255, 165, 0, 0.5);
}

.theme-toggle.dark .theme-toggle-slider::before {
    content: '☾';
    color: #4A90E2;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 2px rgba(74, 144, 226, 0.5);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

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

.logo {
    width: 240px;
    height: 240px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px var(--shadow-color));
    transition: filter 0.3s ease;
}

/* SVG Logo theme-aware styling */
.logo svg {
    width: 100%;
    height: 100%;
}

/* Light theme - keep original blue logo with proper visibility */
[data-theme="light"] .logo svg {
    filter: drop-shadow(0 4px 12px var(--shadow-color));
}

/* Dark theme - make logo lighter and more cyan */
[data-theme="dark"] .logo svg {
    filter: brightness(1.8) hue-rotate(-10deg) saturate(0.9);
}

/* Auto theme - follow system preference */
[data-theme="auto"] .logo svg {
    filter: drop-shadow(0 4px 12px var(--shadow-color));
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .logo svg {
        filter: brightness(1.8) hue-rotate(-10deg) saturate(0.9);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--hero-text-primary);
    line-height: 1.2;
    text-shadow: 0 2px 4px var(--shadow-color);
    position: relative;
    display: inline-block;
}

.hero h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-1.5deg);
    width: 140%;
    height: 120%;
    background: linear-gradient(45deg,
        rgba(136, 192, 208, 0.4) 0%,
        rgba(129, 161, 193, 0.5) 20%,
        rgba(94, 129, 172, 0.6) 40%,
        rgba(136, 192, 208, 0.4) 60%,
        rgba(129, 161, 193, 0.3) 80%,
        rgba(136, 192, 208, 0.2) 100%);
    clip-path: polygon(
        3% 15%,
        8% 25%,
        5% 35%,
        12% 45%,
        8% 55%,
        15% 65%,
        12% 75%,
        20% 85%,
        30% 80%,
        45% 90%,
        60% 85%,
        75% 88%,
        85% 82%,
        92% 75%,
        97% 65%,
        95% 55%,
        98% 45%,
        92% 35%,
        96% 25%,
        90% 15%,
        85% 20%,
        75% 12%,
        60% 18%,
        45% 10%,
        30% 20%,
        20% 15%,
        12% 25%,
        8% 18%
    );
    z-index: -1;
    filter: blur(0.5px);
    opacity: 0.7;
}

.hero h1::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-1deg);
    width: 140%;
    height: 120%;
    background: linear-gradient(65deg,
        transparent 0%,
        rgba(163, 190, 140, 0.3) 15%,
        rgba(191, 97, 106, 0.25) 25%,
        transparent 35%,
        rgba(208, 135, 112, 0.2) 55%,
        transparent 65%,
        rgba(163, 190, 140, 0.25) 80%,
        transparent 100%);
    clip-path: polygon(
        5% 20%,
        15% 30%,
        25% 25%,
        35% 35%,
        45% 30%,
        55% 40%,
        65% 35%,
        75% 45%,
        85% 40%,
        95% 50%,
        90% 60%,
        80% 55%,
        70% 65%,
        60% 60%,
        50% 70%,
        40% 65%,
        30% 75%,
        20% 70%,
        10% 60%
    );
    z-index: -2;
    filter: blur(1px);
    opacity: 0.6;
}

[data-theme="dark"] .hero h1::before {
    background: linear-gradient(45deg,
        rgba(136, 192, 208, 0.5) 0%,
        rgba(129, 161, 193, 0.6) 20%,
        rgba(94, 129, 172, 0.7) 40%,
        rgba(136, 192, 208, 0.5) 60%,
        rgba(129, 161, 193, 0.4) 80%,
        rgba(136, 192, 208, 0.3) 100%);
}

[data-theme="dark"] .hero h1::after {
    background: linear-gradient(65deg,
        transparent 0%,
        rgba(163, 190, 140, 0.4) 15%,
        rgba(191, 97, 106, 0.35) 25%,
        transparent 35%,
        rgba(208, 135, 112, 0.3) 55%,
        transparent 65%,
        rgba(163, 190, 140, 0.35) 80%,
        transparent 100%);
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .hero h1::before {
        background: linear-gradient(45deg,
            rgba(136, 192, 208, 0.5) 0%,
            rgba(129, 161, 193, 0.6) 20%,
            rgba(94, 129, 172, 0.7) 40%,
            rgba(136, 192, 208, 0.5) 60%,
            rgba(129, 161, 193, 0.4) 80%,
            rgba(136, 192, 208, 0.3) 100%);
    }

    [data-theme="auto"] .hero h1::after {
        background: linear-gradient(65deg,
            transparent 0%,
            rgba(163, 190, 140, 0.4) 15%,
            rgba(191, 97, 106, 0.35) 25%,
            transparent 35%,
            rgba(208, 135, 112, 0.3) 55%,
            transparent 65%,
            rgba(163, 190, 140, 0.35) 80%,
            transparent 100%);
    }
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--hero-text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 1px 2px var(--shadow-color);
}

.hero .mission {
    font-size: 1.1rem;
    color: var(--hero-text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px var(--shadow-color);
}

/* Content Cards */
.card {
    background: var(--container-bg);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--container-border);
    box-shadow: 0 4px 16px var(--shadow-color);
    padding: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto 1rem auto;
    max-width: 900px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--container-bg);
    border-radius: 16px;
    border: 2px solid var(--container-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 2rem;
    background: var(--container-bg);
    border-radius: 20px;
    border: 2px solid var(--container-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* CTA Section */
.cta-section {
    background: var(--accent-gradient);
    color: white;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin: 4rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

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

/* Testimonial */
.testimonial {
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--container-bg);
    border-radius: 16px;
    border-left: 4px solid var(--accent-primary);
}

/* Coming Soon Section */
.coming-soon {
    padding: 4rem 0;
}

.coming-soon-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
        padding: 4px;
    }

    .theme-toggle {
        width: 56px;
        height: 28px;
        padding: 3px;
    }

    .theme-toggle-slider {
        width: 22px;
        height: 22px;
        top: 3px;
        left: 3px;
    }

    .theme-toggle-slider::before {
        font-size: 12px;
    }

    .theme-toggle.dark .theme-toggle-slider {
        transform: translateX(28px);
    }

    .hero {
        padding: 4rem 1rem 2rem;
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .card h2 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 300px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}