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

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* Hide scrollbar for webkit browsers */
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    /* Hide scrollbar for Firefox */
    scrollbar-width: none;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-left:hover {
    opacity: 0.8;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.nav-left:hover .logo-image {
    transform: scale(1.05);
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}

.nav-link {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    padding: 4rem;
    padding-top: 6rem;
}

.hero-content {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 10rem);
    font-weight: 300;
    letter-spacing: -0.05em;
    line-height: 0.9;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    user-select: none;
}

.slide-in-top {
    opacity: 0;
    transform: translateY(-100px);
    animation: slideInFromTop 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

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

/* Bottom Text Section - Now part of hero layout */
.bottom-text {
    position: absolute;
    bottom: 4rem;
    right: 8rem;
    text-align: right;
    z-index: 10;
    max-width: 400px;
}

.bottom-text .text-content {
    opacity: 0;
    transform: translateY(30px);
    animation: textFadeIn 1s ease-out 1.5s forwards;
}

.description {
    font-size: 1.1rem;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 0.9rem;
    color: #808080;
    font-weight: 300;
}

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

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300vh; /* Span across multiple viewport heights */
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 3%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 8%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    top: 12%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    top: 18%;
    left: 25%;
    animation-delay: 1.5s;
    animation-duration: 6s;
}

.particle:nth-child(5) {
    top: 23%;
    left: 10%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.particle:nth-child(6) {
    top: 28%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(7) {
    top: 33%;
    left: 50%;
    animation-delay: 2.5s;
    animation-duration: 9s;
}

.particle:nth-child(8) {
    top: 38%;
    left: 90%;
    animation-delay: 1.8s;
    animation-duration: 6.5s;
}

.particle:nth-child(9) {
    top: 43%;
    left: 5%;
    animation-delay: 3.5s;
    animation-duration: 8.5s;
}

.particle:nth-child(10) {
    top: 48%;
    left: 40%;
    animation-delay: 0.8s;
    animation-duration: 7.5s;
}

.particle:nth-child(11) {
    top: 53%;
    left: 85%;
    animation-delay: 6s;
    animation-duration: 8s;
}

.particle:nth-child(12) {
    top: 58%;
    left: 95%;
    animation-delay: 6.6s;
    animation-duration: 7.2s;
}

.particle:nth-child(13) {
    top: 63%;
    left: 80%;
    animation-delay: 7.2s;
    animation-duration: 8.8s;
}

.particle:nth-child(14) {
    top: 68%;
    left: 60%;
    animation-delay: 7.8s;
    animation-duration: 6.5s;
}

.particle:nth-child(15) {
    top: 73%;
    left: 35%;
    animation-delay: 8.4s;
    animation-duration: 9.2s;
}

.particle:nth-child(16) {
    top: 78%;
    left: 50%;
    animation-delay: 9s;
    animation-duration: 7.8s;
}

.particle:nth-child(17) {
    top: 83%;
    left: 40%;
    animation-delay: 9.6s;
    animation-duration: 8.5s;
}

.particle:nth-child(18) {
    top: 88%;
    left: 75%;
    animation-delay: 10.2s;
    animation-duration: 6.8s;
}

.particle:nth-child(19) {
    top: 93%;
    left: 20%;
    animation-delay: 10.8s;
    animation-duration: 9.5s;
}

.particle:nth-child(20) {
    top: 96%;
    left: 30%;
    animation-delay: 11.4s;
    animation-duration: 7.2s;
}

.particle:nth-child(21) {
    top: 98%;
    left: 70%;
    animation-delay: 12s;
    animation-duration: 8.2s;
}

.particle:nth-child(22) {
    top: 99%;
    left: 90%;
    animation-delay: 12.6s;
    animation-duration: 6.9s;
}

.particle:nth-child(23) {
    top: 97%;
    left: 85%;
    animation-delay: 13.2s;
    animation-duration: 8.7s;
}

.particle:nth-child(24) {
    top: 95%;
    left: 65%;
    animation-delay: 13.8s;
    animation-duration: 7.5s;
}

.particle:nth-child(25) {
    top: 94%;
    left: 10%;
    animation-delay: 14.4s;
    animation-duration: 9s;
}

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

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: sphereFloat 20s ease-in-out infinite;
}

.gradient-sphere-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.gradient-sphere-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
    animation-duration: 25s;
}

.gradient-sphere-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    top: 50%;
    right: -250px;
    animation-delay: 10s;
    animation-duration: 30s;
}

@keyframes sphereFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* Scattered Particles Containers */
.scattered-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    top: 0;
    left: 0;
}

.particles-top {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
}

.particles-middle {
    position: absolute;
    width: 100%;
    height: 200vh;
    top: 100vh;
    left: 0;
}

.particles-bottom {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 200vh;
    left: 0;
}

/* Top scattered particles */
.particles-top .particle:nth-child(1) {
    top: 10%;
    left: 20%;
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    animation-delay: 2s;
    animation-duration: 10s;
}

.particles-top .particle:nth-child(2) {
    top: 25%;
    left: 85%;
    background: linear-gradient(45deg, #ec4899, #f97316);
    animation-delay: 4.5s;
    animation-duration: 8s;
}

.particles-top .particle:nth-child(3) {
    top: 5%;
    left: 50%;
    background: linear-gradient(45deg, #10b981, #059669);
    animation-delay: 1.2s;
    animation-duration: 9s;
}

.particles-top .particle:nth-child(4) {
    top: 18%;
    left: 75%;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    animation-delay: 3.8s;
    animation-duration: 7s;
}

.particles-top .particle:nth-child(5) {
    top: 30%;
    left: 35%;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    animation-delay: 5.2s;
    animation-duration: 8.5s;
}

.particles-top .particle:nth-child(6) {
    top: 8%;
    left: 90%;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    animation-delay: 2.8s;
    animation-duration: 9.2s;
}

.particles-top .particle:nth-child(7) {
    top: 35%;
    left: 60%;
    background: linear-gradient(45deg, #06b6d4, #0891b2);
    animation-delay: 4.1s;
    animation-duration: 7.8s;
}

.particles-top .particle:nth-child(8) {
    top: 12%;
    left: 25%;
    background: linear-gradient(45deg, #10b981, #059669);
    animation-delay: 1.9s;
    animation-duration: 8.8s;
}

/* Middle scattered particles */
.particles-middle .particle:nth-child(1) {
    top: 45%;
    left: 15%;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    animation-delay: 2.3s;
    animation-duration: 9.5s;
}

.particles-middle .particle:nth-child(2) {
    top: 55%;
    left: 95%;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    animation-delay: 1.7s;
    animation-duration: 8.2s;
}

.particles-middle .particle:nth-child(3) {
    top: 40%;
    left: 30%;
    background: linear-gradient(45deg, #06b6d4, #0891b2);
    animation-delay: 4.2s;
    animation-duration: 7.8s;
}

.particles-middle .particle:nth-child(4) {
    top: 60%;
    left: 70%;
    background: linear-gradient(45deg, #8b5cf6, #6366f1);
    animation-delay: 0.5s;
    animation-duration: 8.8s;
}

.particles-middle .particle:nth-child(5) {
    top: 50%;
    left: 55%;
    background: linear-gradient(45deg, #10b981, #06b6d4);
    animation-delay: 3.3s;
    animation-duration: 9.2s;
}

.particles-middle .particle:nth-child(6) {
    top: 35%;
    left: 80%;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    animation-delay: 5.7s;
    animation-duration: 7.5s;
}

.particles-middle .particle:nth-child(7) {
    top: 65%;
    left: 20%;
    background: linear-gradient(45deg, #ec4899, #f97316);
    animation-delay: 2.1s;
    animation-duration: 8.9s;
}

.particles-middle .particle:nth-child(8) {
    top: 42%;
    left: 90%;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    animation-delay: 4.8s;
    animation-duration: 7.1s;
}

.particles-middle .particle:nth-child(9) {
    top: 58%;
    left: 45%;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    animation-delay: 1.4s;
    animation-duration: 9.6s;
}

.particles-middle .particle:nth-child(10) {
    top: 38%;
    left: 65%;
    background: linear-gradient(45deg, #06b6d4, #0891b2);
    animation-delay: 6.2s;
    animation-duration: 8.3s;
}

/* Bottom scattered particles */
.particles-bottom .particle:nth-child(1) {
    top: 75%;
    left: 10%;
    background: linear-gradient(45deg, #f97316, #ea580c);
    animation-delay: 1.5s;
    animation-duration: 8.7s;
}

.particles-bottom .particle:nth-child(2) {
    top: 85%;
    left: 65%;
    background: linear-gradient(45deg, #a855f7, #9333ea);
    animation-delay: 3.7s;
    animation-duration: 7.3s;
}

.particles-bottom .particle:nth-child(3) {
    top: 90%;
    left: 35%;
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    animation-delay: 2.8s;
    animation-duration: 8.9s;
}

.particles-bottom .particle:nth-child(4) {
    top: 78%;
    left: 25%;
    background: linear-gradient(45deg, #10b981, #059669);
    animation-delay: 5.1s;
    animation-duration: 7.7s;
}

.particles-bottom .particle:nth-child(5) {
    top: 88%;
    left: 85%;
    background: linear-gradient(45deg, #ec4899, #f97316);
    animation-delay: 2.4s;
    animation-duration: 9.1s;
}

.particles-bottom .particle:nth-child(6) {
    top: 82%;
    left: 45%;
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    animation-delay: 4.6s;
    animation-duration: 8.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 2rem;
    }
    
    .nav-left {
        gap: 0.5rem;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 2rem;
        padding-top: 6rem;
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }
    
    .description {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .bottom-text {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        margin-top: 2rem;
        max-width: none;
    }
    
    .content-section {
        padding: 4rem 2rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .section-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem;
        padding-top: 6rem;
        height: 100vh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }
    
    .floating-particles {
        width: 150%;
        height: 150%;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .content-section {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 10vw, 2rem);
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
}

/* Content Sections */
.content-section {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.section-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-weight: 300;
}

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

.feature-item {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    transform: translateY(0) scale(1) !important;
}

.feature-item:hover {
    transform: translateY(-12px) scale(1.03) !important;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.feature-item:active {
    transform: translateY(-6px) scale(1.01) !important;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.6;
}

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

/* Simplified fade animations */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.fade-element.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.fade-element.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Optimized distance-based fade effect */
.distance-fade {
    opacity: 0.8;
    transform: translateY(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.distance-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Override distance-fade for feature items to ensure hover works */
.feature-item.distance-fade {
    transform: translateY(0) scale(1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.feature-item.distance-fade.visible {
    transform: translateY(0) scale(1) !important;
}

.feature-item.distance-fade:hover {
    transform: translateY(-12px) scale(1.03) !important;
}

/* Parallax text layers */
.text-layer-1 {
    transition: all 0.2s ease-out;
}

.text-layer-2 {
    transition: all 0.25s ease-out;
}

.text-layer-3 {
    transition: all 0.3s ease-out;
}

/* Section-specific styling */
.problem-section {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.02) 100%);
}

.solution-section {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, transparent 100%);
}