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

:root {
    --primary: #ffffff;
    --accent: #00f5ff;
    --accent-secondary: #7c3aed;
    --dark: #000000;
    --dark-secondary: #0a0a0a;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    cursor: none;
    font-weight: 300;
    scroll-behavior: smooth;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
    filter: blur(0.5px);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 2;
    pointer-events: none;
    animation: gridMove 30s linear infinite;
    transition: background-position 0.3s ease-out;
}

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

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    perspective: 2000px;
}

.content {
    text-align: center;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

.company-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    line-height: 1.1;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.2));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.company-name .word {
    display: inline-block;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

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

.company-name:hover .word {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 0 50px rgba(0, 245, 255, 0.4));
}

.company-name::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.company-name:hover::before {
    opacity: 1;
}

.tagline {
    position: relative;
    display: inline-block;
    margin-top: 2rem;
    cursor: pointer;
}

.tagline-text {
    font-size: clamp(0.75rem, 1.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 1rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    cursor: pointer;
}

.tagline-text:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-top-color: rgba(0, 245, 255, 0.3);
    border-bottom-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.tagline-text::before,
.tagline-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tagline-text::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tagline-text::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tagline:hover .tagline-text::before,
.tagline:hover .tagline-text::after {
    width: 100%;
}

.ambient-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: lightFloat 20s ease-in-out infinite;
}

.light-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent), transparent);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.light-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    bottom: -250px;
    right: -250px;
    animation-delay: 7s;
}

.light-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.2);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.8);
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease-out, border-color 0.3s ease;
    mix-blend-mode: difference;
    backdrop-filter: blur(2px);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: rgba(0, 245, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.custom-cursor:active {
    transform: translate(-50%, -50%) scale(1.2);
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, background 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.custom-cursor-dot.hover {
    background: var(--accent);
    transform: scale(1.5);
}

/* Enhanced visual effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* Interactive cursor trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out;
}

/* Scrollable Sections */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    perspective: 2000px;
    padding: 4rem 2rem;
    background: transparent;
}

.section-content {
    text-align: center;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
    max-width: 1200px;
    width: 100%;
}

.section-title {
    font-size: clamp(1.65rem, 4.6vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.38;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.8s ease-out,
                letter-spacing 1.2s ease-out;
    filter: drop-shadow(0 10px 30px rgba(0, 245, 255, 0.18));
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
    text-transform: none;
    visibility: visible !important;
    position: relative;
    z-index: 101;
    will-change: opacity, transform, filter;
}

body.animations-enabled .section-title {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    filter: drop-shadow(0 0 18px rgba(0, 245, 255, 0.09)) blur(2px);
}

body.animations-enabled .section-title.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    letter-spacing: 0.1em;
    filter: drop-shadow(0 12px 38px rgba(0, 245, 255, 0.24)) blur(0);
}

.section-title span,
.section-title span span {
    display: block;
}

.title-eyebrow {
    font-size: clamp(0.75rem, 1.4vw, 1.1rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.56);
}

.title-headline {
    font-size: clamp(1.8rem, 5.5vw, 3.1rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
}

.title-headline--centered {
    text-align: center;
}

.title-figure {
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.08;
}

.title-figure--accent {
    color: var(--accent);
}

.title-support {
    font-size: clamp(1rem, 2vw, 1.35rem);
    letter-spacing: 0.08em;
    font-weight: 300;
    text-transform: none;
    color: rgba(255, 255, 255, 0.7);
}

body.animations-enabled .section-title span,
body.animations-enabled .section-title span span {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

body.animations-enabled .section-title:not(.visible) span,
body.animations-enabled .section-title:not(.visible) span span {
    opacity: 0;
    transform: translateY(16px);
}

body.animations-enabled .section-title.visible .title-headline {
    transition-delay: 0.08s;
}

body.animations-enabled .section-title.visible .title-support {
    transition-delay: 0.16s;
}

body.animations-enabled .section-title.visible .title-figure {
    transition-delay: 0.12s;
}

body.animations-enabled .section-title.visible .title-note {
    transition-delay: 0.24s;
}

/* Fallback for browsers that don't support text gradients */
@supports not (-webkit-background-clip: text) {
    .section-1 .title-figure {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .section-2 .title-figure {
        color: #00f5ff !important;
        -webkit-text-fill-color: #00f5ff !important;
    }
}

.section-1 .title-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.section-1 .title-figure {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none;
    text-shadow: 0 8px 25px rgba(0, 245, 255, 0.12);
    transition: inherit;
}

.section-1 .section-title.visible .title-figure {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 12px 35px rgba(255, 255, 255, 0.28)) blur(0);
}

.section-2 .title-eyebrow {
    color: rgba(0, 245, 255, 0.55);
}

.section-2 .title-figure {
    color: #00f5ff !important;
    -webkit-text-fill-color: #00f5ff !important;
    background: none;
    text-shadow: 0 8px 25px rgba(0, 245, 255, 0.18);
    transition: inherit;
}

.section-2 .section-title.visible .title-figure {
    background: linear-gradient(135deg, #00f5ff 0%, rgba(0, 245, 255, 0.9) 50%, #00f5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite 1s;
    filter: drop-shadow(0 12px 35px rgba(0, 245, 255, 0.32)) blur(0);
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .company-name {
        letter-spacing: 0.1em;
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .tagline-text {
        letter-spacing: 0.25em;
        padding: 0.8rem 2rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        padding: 0 1rem;
    }
    
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}
