/* ===================================
   RESET & BASE
   =================================== */

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

:root {
    /* Light theme (default) */
    --color-bg: #FFFFFF;
    --color-text: #0A0A0A;
    --color-text-secondary: #404040;
    --color-accent: #FF4500;
    --color-border: #E5E5E5;
    --grain-opacity: 0.03;
}

[data-theme="dark"] {
    --color-bg: #0A0A0A;
    --color-text: #FFFFFF;
    --color-text-secondary: #B0B0B0;
    --color-accent: #FF6B35;
    --color-border: #2A2A2A;
    --grain-opacity: 0.08;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-accent);
    color: white;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.large {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.8);
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
}

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

.nav-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.theme-toggle:hover {
    border-color: var(--color-text);
    transform: rotate(180deg);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.3s;
}

.logo-container {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.1s;
}

.logo-video {
    max-width: min(600px, 80vw);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
}

[data-theme="dark"] .logo-video {
    filter: drop-shadow(0 20px 60px rgba(255, 255, 255, 0.1));
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-text);
    opacity: 0.3;
    animation: scrollLineMove 2s ease-in-out infinite;
}

.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--grain-opacity);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    min-height: 100vh;
    padding: 10rem 2rem;
    scroll-snap-align: start;
}

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

.section-header {
    margin-bottom: 6rem;
}

.section-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
}

.about-content {
    max-width: 900px;
    margin-bottom: 8rem;
}

.about-text {
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.about-text.large {
    color: var(--color-text);
    font-weight: 500;
}

/* ===================================
   FOUNDER CARD
   =================================== */

.founder-card {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.05) 0%, rgba(255, 69, 0, 0) 100%);
    border: 2px solid var(--color-border);
    padding: 4rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .founder-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0) 100%);
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
}

.founder-name {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.founder-description p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.founder-description strong {
    color: var(--color-text);
    font-weight: 600;
}

.founder-motto {
    margin-top: 2rem;
    font-style: italic;
    color: var(--color-text) !important;
    font-weight: 500 !important;
    opacity: 0.8;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    scroll-snap-align: start;
}

.contact-content {
    text-align: center;
    max-width: 800px;
}

.contact-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    letter-spacing: -0.04em;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-text);
    font-size: clamp(1rem, 2vw, 1.25rem);
    padding: 1.5rem 2rem;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.contact-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--color-accent);
    transition: height 0.4s ease;
    z-index: -1;
}

.contact-link:hover::before {
    height: 100%;
}

.contact-link:hover {
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

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

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .hero {
        min-height: 100svh;
    }

    .logo-video {
        max-width: 90vw;
    }

    .about {
        padding: 6rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .about-content {
        margin-bottom: 4rem;
    }

    .founder-card {
        padding: 2rem 1.5rem;
    }

    .contact {
        padding: 4rem 1.5rem;
        min-height: 60vh;
    }

    .contact-link {
        min-width: 100%;
        max-width: 100%;
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-title {
        font-size: 0.75rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
