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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Particles Animation Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(20, 20, 20, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.15) 30%, rgba(102, 126, 234, 0.1) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(1px);
    animation: float 20s infinite linear;
    will-change: transform, opacity;
    animation-fill-mode: both;
    animation-play-state: running;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

.particle:nth-child(1) {
    width: 120px;
    height: 120px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    width: 100px;
    height: 100px;
    left: 70%;
    animation-delay: -2s;
    animation-duration: 18s;
    background: radial-gradient(circle, rgba(200, 200, 255, 0.15) 0%, rgba(200, 200, 255, 0.08) 30%, rgba(200, 200, 255, 0.03) 60%, transparent 80%);
}

.particle:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 40%;
    animation-delay: -4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    width: 140px;
    height: 140px;
    left: 80%;
    animation-delay: -6s;
    animation-duration: 20s;
    background: radial-gradient(circle, rgba(255, 200, 200, 0.15) 0%, rgba(255, 200, 200, 0.08) 30%, rgba(255, 200, 200, 0.03) 60%, transparent 80%);
}

.particle:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 20%;
    animation-delay: -8s;
    animation-duration: 16s;
}

.particle:nth-child(6) {
    width: 110px;
    height: 110px;
    left: 60%;
    animation-delay: -1s;
    animation-duration: 14s;
}

.particle:nth-child(7) {
    width: 70px;
    height: 70px;
    left: 15%;
    animation-delay: -3s;
    animation-duration: 17s;
}

.particle:nth-child(8) {
    width: 100px;
    height: 100px;
    left: 85%;
    animation-delay: -5s;
    animation-duration: 13s;
}

.particle:nth-child(9) {
    width: 85px;
    height: 85px;
    left: 50%;
    animation-delay: -7s;
    animation-duration: 19s;
}

.particle:nth-child(10) {
    width: 130px;
    height: 130px;
    left: 30%;
    animation-delay: -1.5s;
    animation-duration: 15s;
}

.particle:nth-child(11) {
    width: 95px;
    height: 95px;
    left: 65%;
    animation-delay: -2.5s;
    animation-duration: 18s;
}

.particle:nth-child(12) {
    width: 75px;
    height: 75px;
    left: 5%;
    animation-delay: -4.5s;
    animation-duration: 16s;
    background: radial-gradient(circle, rgba(255, 255, 200, 0.12) 0%, rgba(255, 255, 200, 0.06) 30%, rgba(255, 255, 200, 0.02) 60%, transparent 80%);
}

.particle:nth-child(13) {
    width: 115px;
    height: 115px;
    left: 90%;
    animation-delay: -6.5s;
    animation-duration: 14s;
}

.particle:nth-child(14) {
    width: 105px;
    height: 105px;
    left: 35%;
    animation-delay: -0.5s;
    animation-duration: 17s;
}

.particle:nth-child(15) {
    width: 88px;
    height: 88px;
    left: 75%;
    animation-delay: -3.5s;
    animation-duration: 19s;
    background: radial-gradient(circle, rgba(200, 255, 200, 0.12) 0%, rgba(200, 255, 200, 0.06) 30%, rgba(200, 255, 200, 0.02) 60%, transparent 80%);
}

.particle:nth-child(16) {
    width: 125px;
    height: 125px;
    left: 45%;
    animation-delay: -5.5s;
    animation-duration: 13s;
}

.particle:nth-child(17) {
    width: 92px;
    height: 92px;
    left: 12%;
    animation-delay: -7.5s;
    animation-duration: 16s;
}

.particle:nth-child(18) {
    width: 82px;
    height: 82px;
    left: 58%;
    animation-delay: -1.2s;
    animation-duration: 15s;
}

.particle:nth-child(19) {
    width: 108px;
    height: 108px;
    left: 82%;
    animation-delay: -3.2s;
    animation-duration: 18s;
}

.particle:nth-child(20) {
    width: 118px;
    height: 118px;
    left: 25%;
    animation-delay: -5.2s;
    animation-duration: 14s;
    background: radial-gradient(circle, rgba(255, 200, 255, 0.12) 0%, rgba(255, 200, 255, 0.06) 30%, rgba(255, 200, 255, 0.02) 60%, transparent 80%);
}

.particle:nth-child(21) {
    width: 78px;
    height: 78px;
    left: 68%;
    animation-delay: -0.8s;
    animation-duration: 17s;
}

.particle:nth-child(22) {
    width: 98px;
    height: 98px;
    left: 8%;
    animation-delay: -2.8s;
    animation-duration: 16s;
}

.particle:nth-child(23) {
    width: 135px;
    height: 135px;
    left: 88%;
    animation-delay: -4.8s;
    animation-duration: 19s;
}

.particle:nth-child(24) {
    width: 85px;
    height: 85px;
    left: 42%;
    animation-delay: -6.8s;
    animation-duration: 13s;
}

.particle:nth-child(25) {
    width: 102px;
    height: 102px;
    left: 18%;
    animation-delay: -1.8s;
    animation-duration: 15s;
}

.particle:nth-child(26) {
    width: 72px;
    height: 72px;
    left: 72%;
    animation-delay: -3.8s;
    animation-duration: 18s;
    background: radial-gradient(circle, rgba(200, 220, 255, 0.12) 0%, rgba(200, 220, 255, 0.06) 30%, rgba(200, 220, 255, 0.02) 60%, transparent 80%);
}

.particle:nth-child(27) {
    width: 112px;
    height: 112px;
    left: 52%;
    animation-delay: -5.8s;
    animation-duration: 14s;
}

.particle:nth-child(28) {
    width: 89px;
    height: 89px;
    left: 28%;
    animation-delay: -7.8s;
    animation-duration: 17s;
}

.particle:nth-child(29) {
    width: 122px;
    height: 122px;
    left: 78%;
    animation-delay: -2.3s;
    animation-duration: 16s;
}

.particle:nth-child(30) {
    width: 94px;
    height: 94px;
    left: 38%;
    animation-delay: -4.3s;
    animation-duration: 19s;
    background: radial-gradient(circle, rgba(255, 220, 180, 0.12) 0%, rgba(255, 220, 180, 0.06) 30%, rgba(255, 220, 180, 0.02) 60%, transparent 80%);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    15% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.4;
    }
    95% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
}

.nav-brand:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.nav-brand a,
.nav-brand a:visited,
.nav-brand a:hover,
.nav-brand a:focus,
.nav-brand a:active {
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #667eea;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease-out;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

.badge-icon {
    font-size: 1rem;
}

/* Hero Title */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-align: center;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInFromLeft 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.social-link svg {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    text-align: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 1001;
    transition: width 0.1s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .main-content {
        padding: 6rem 1rem 4rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 1rem 1.5rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Additional Background Effects */
.particles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.08) 0%, transparent 50%);
    animation: colorShift 15s ease-in-out infinite alternate;
}

@keyframes colorShift {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

/* Performance optimizations for many particles */
.particle {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    contain: layout style paint;
}

.particle.dynamic {
    animation: floatDynamic 20s infinite linear;
    will-change: transform, opacity;
    pointer-events: none;
}

/* Alternative float animation for dynamic particles */
@keyframes floatDynamic {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
        transform: translateY(95vh) rotate(18deg) scale(0.9);
    }
    25% {
        opacity: 0.5;
        transform: translateY(75vh) rotate(90deg) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translateY(50vh) rotate(180deg) scale(1.1);
    }
    75% {
        opacity: 0.3;
        transform: translateY(25vh) rotate(270deg) scale(1);
    }
    95% {
        opacity: 0.1;
        transform: translateY(5vh) rotate(350deg) scale(0.9);
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .particle {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        opacity: 0.1 !important;
    }
}

/* GPU acceleration optimizations */
.particles-container {
    transform: translateZ(0);
    will-change: auto;
}

/* Animation debugging - remove if animations work */
.particle:hover {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 30%, transparent 70%);
}