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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 20, 25, 0.95);
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #0066ff, #00bfff, #0099ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    font-family: 'Orbitron', 'Outfit', sans-serif;
    letter-spacing: 2px;
}

.nav-logo i {
    background: linear-gradient(45deg, #0066ff, #00bfff, #0099ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00bfff;
}

.cta-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
}

.cta-btn:active::before {
    width: 300px;
    height: 300px;
}

.cta-btn.primary {
    background: linear-gradient(45deg, #0066ff, #00bfff);
    color: #ffffff;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #0066ff;
}

.cta-btn.secondary:hover {
    background: #0066ff;
    color: #ffffff;
}

.theme-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: #00bfff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #0066ff, #00bfff, #0099ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, floatUp 3s ease-in-out infinite;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: 'Orbitron', 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    color: #00bfff;
    margin-bottom: 20px;
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.1s;
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.2s;
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(0, 191, 255, 0.4),
        0 0 60px rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.3s;
}

.hero-visual {
    position: relative;
}

/* Floating Code Snippets */
.floating-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}


/* Code Comparison in Features */
.code-comparison-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid rgba(0, 102, 255, 0.2);
    position: relative;
    z-index: 5;
}

.comparison-title {
    text-align: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #0066ff, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.code-comparison {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.comparison-arrow {
    font-size: 2rem;
    color: #00bfff;
    animation: pulse 1s ease-in-out infinite;
}

.code-before, .code-after {
    flex: 1;
    background: rgba(15, 20, 25, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.code-header {
    background: linear-gradient(45deg, #0066ff, #00bfff);
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.code-before pre, .code-after pre {
    padding: 15px;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #00bfff;
}

#threejs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f1419 100%);
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #0066ff 0%, #00bfff 50%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    font-family: 'Orbitron', 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
    position: relative;
    padding-bottom: 25px;
    z-index: 5;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #0066ff, #00bfff, #0099ff, transparent);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 191, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    border: 2px solid rgba(0, 102, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.15), transparent);
    transition: left 0.6s ease-out;
    z-index: 0;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%);
}

.feature-icon {
    font-size: 3.5rem;
    color: #00bfff;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    color: #0099ff;
    text-shadow: 0 0 30px rgba(0, 153, 255, 0.7);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: #ffffff;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
    text-transform: capitalize;
}

.feature-card p {
    color: #d4d4d4;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Light Theme */
body.light-theme {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    color: #0f1419;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-links a {
    color: #0f1419;
}

body.light-theme .nav-links a:hover {
    color: #0066ff;
}

body.light-theme .theme-toggle {
    color: #0f1419;
}

body.light-theme .hero-title {
    background: linear-gradient(45deg, #0066ff, #00bfff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .hero-subtitle {
    color: #0066ff;
}

body.light-theme .hero-description {
    color: #0099ff;
}

body.light-theme .code-comparison {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .code-before, body.light-theme .code-after {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme .features {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

body.light-theme .feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .feature-card:hover {
    border-color: #0066ff;
}

body.light-theme .feature-card h3 {
    color: #0f1419;
}

body.light-theme .feature-card p {
    color: #666666;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Responsive Design */
/* Tablet Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 15px;
        max-width: 900px;
    }

    .feature-card {
        padding: 35px 25px;
        min-height: 300px;
    }

    .feature-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 45px;
    }
}

/* Mobile Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }

    .code-comparison {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        max-width: 100%;
    }

    .feature-card {
        padding: 30px 20px;
        min-height: auto;
        border-radius: 20px;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 18px;
    }

    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    .code-comparison-section {
        margin-top: 40px;
        padding-top: 40px;
    }

    .comparison-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
}

/* Small Mobile Design */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 1.3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
        max-width: 100%;
    }

    .feature-card {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .cta-btn {
        padding: 12px 20px !important;
        font-size: 0.95rem;
    }
}

/* Neon glow animation */
@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 10px #00bfff, 0 0 20px rgba(0, 191, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px #00bfff, 0 0 30px rgba(0, 191, 255, 0.8), 0 0 40px rgba(0, 191, 255, 0.5);
    }
}

/* Float up animation */
@keyframes floatUp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}