:root {
    --primary-color: #00d4ff;
    --secondary-color: #8b5cf6;
    --accent-color: #ff6b6b;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-light: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --neon-glow: 0 0 20px rgba(0, 212, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Animated Background with Matrix Effect */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-dark);
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="matrix" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" font-family="monospace" font-size="12" fill="%2300d4ff" opacity="0.1" text-anchor="middle">1</text><text x="5" y="8" font-family="monospace" font-size="8" fill="%238b5cf6" opacity="0.1">0</text></pattern></defs><rect width="100" height="100" fill="url(%23matrix)"/></svg>');
    animation: matrixRain 15s linear infinite;
}

@keyframes matrixRain {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100px); }
}

/* 3D Floating Elements */
.floating-3d {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 10px;
    animation: float3d 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-3d:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; transform: rotateX(45deg) rotateY(45deg); }
.floating-3d:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; transform: rotateX(-30deg) rotateY(60deg); }
.floating-3d:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; transform: rotateX(60deg) rotateY(-45deg); }
.floating-3d:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 1s; transform: rotateX(-45deg) rotateY(30deg); }

@keyframes float3d {
    0%, 100% { 
        transform: translateY(0px) rotateX(45deg) rotateY(45deg) rotateZ(0deg);
        box-shadow: var(--neon-glow);
    }
    33% { 
        transform: translateY(-30px) rotateX(60deg) rotateY(60deg) rotateZ(120deg);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
    }
    66% { 
        transform: translateY(-15px) rotateX(30deg) rotateY(90deg) rotateZ(240deg);
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.6);
    }
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    text-shadow: var(--neon-glow);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

@keyframes titleGlow {
    from { 
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.8));
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-tagline {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--gradient-primary);
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.cta-button.secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
    color: white;
}

.cta-button.secondary:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

/* 3D Visual Container */
.hero-3d-container {
    position: relative;
    height: 500px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Geometric Shapes */
.geometric-shape {
    position: absolute;
    transform-style: preserve-3d;
}

/* 3D Cube */
.cube-3d {
    width: 120px;
    height: 120px;
    position: relative;
    animation: rotateCube 15s infinite linear;
    top: -50px;
    left: 50px;
}

.cube-face {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.cube-face.front { transform: rotateY(0deg) translateZ(60px); }
.cube-face.back { transform: rotateY(180deg) translateZ(60px); }
.cube-face.right { transform: rotateY(90deg) translateZ(60px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(60px); }
.cube-face.top { transform: rotateX(90deg) translateZ(60px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(60px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* 3D Sphere */
.sphere-3d {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-primary);
    position: relative;
    animation: sphereFloat 8s ease-in-out infinite;
    top: 80px;
    right: 100px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.sphere-3d::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(10px);
}

@keyframes sphereFloat {
    0%, 100% { 
        transform: translateY(0px) rotateY(0deg) scale(1);
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    }
    25% { 
        transform: translateY(-30px) rotateY(90deg) scale(1.1);
        box-shadow: 0 0 70px rgba(139, 92, 246, 0.7);
    }
    50% { 
        transform: translateY(-20px) rotateY(180deg) scale(1.05);
        box-shadow: 0 0 60px rgba(255, 107, 107, 0.6);
    }
    75% { 
        transform: translateY(-40px) rotateY(270deg) scale(1.15);
        box-shadow: 0 0 80px rgba(0, 212, 255, 0.8);
    }
}

/* 3D Pyramid */
.pyramid-3d {
    width: 0;
    height: 0;
    position: relative;
    animation: pyramidSpin 12s infinite linear;
    top: -80px;
    right: -50px;
}

.pyramid-3d::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(139, 92, 246, 0.8);
    transform: rotateX(30deg);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.pyramid-3d::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 107, 107, 0.6);
    transform: rotateX(30deg) rotateY(120deg);
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5));
}

@keyframes pyramidSpin {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

/* 3D Hexagon */
.hexagon-3d {
    width: 100px;
    height: 100px;
    position: relative;
    animation: hexagonPulse 6s ease-in-out infinite;
    top: 120px;
    left: -80px;
}

.hexagon-3d::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexagonRotate 10s linear infinite;
    filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.6));
}

@keyframes hexagonPulse {
    0%, 100% { transform: scale(1) rotateZ(0deg); }
    50% { transform: scale(1.3) rotateZ(180deg); }
}

@keyframes hexagonRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* 3D Ring */
.ring-3d {
    width: 200px;
    height: 200px;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: ringOrbit 20s linear infinite;
    top: -20px;
    left: 20px;
    opacity: 0.7;
}

.ring-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-color);
    animation: ringDot 3s ease-in-out infinite;
}

@keyframes ringOrbit {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes ringDot {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.5); }
}

/* 3D DNA Helix */
.dna-helix {
    position: relative;
    width: 80px;
    height: 200px;
    animation: dnaRotate 8s linear infinite;
    top: -100px;
    right: 150px;
}

.dna-strand {
    position: absolute;
    width: 4px;
    height: 200px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: dnaWave 4s ease-in-out infinite;
}

.dna-strand:nth-child(1) {
    left: 20px;
    animation-delay: 0s;
}

.dna-strand:nth-child(2) {
    right: 20px;
    animation-delay: 2s;
}

@keyframes dnaRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes dnaWave {
    0%, 100% { transform: translateX(0px) scaleY(1); }
    50% { transform: translateX(10px) scaleY(1.1); }
}

/* Content Sections */
.content-section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Blog Categories */
.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-link:hover {
    color: inherit;
    text-decoration: none;
}

.category-card {
    background: var(--card-bg);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

.category-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.category-description {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.category-arrow {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* YouTube Video Showcase */
.video-showcase {
    background: rgba(0, 212, 255, 0.05);
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    transform-style: preserve-3d;
}

.video-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button:hover {
    transform: scale(1.2);
    box-shadow: var(--neon-glow);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.video-description {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.95rem;
}

/* Tools Section */
.tools-section {
    background: rgba(139, 92, 246, 0.05);
}

.tool-card {
    background: var(--card-bg);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.tool-icon {
    font-size: 3.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tool-description {
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 1.5rem;
}

.tool-button {
    background: var(--gradient-secondary);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-dark);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: statGlow 2s ease-in-out infinite alternate;
}

@keyframes statGlow {
    from { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.7)); }
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.98);
    padding: 60px 0 30px;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-links a {
    color: var(--text-light);
    font-size: 2rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.2);
    text-shadow: var(--neon-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-3d, .hero-3d-container {
        display: none;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}