:root {
    --primary-black: #0d1117;
    --secondary-black: #161b22;
    --tertiary-black: #21262d;
    --light-grey: #6b7280;
    --dark-grey: #374151;
    --white: #f9fafb;
    --off-white: #f3f4f6;
    --red-accent: #ef4444;
    --green-accent: #10b981;
    --blue-accent: #3b82f6;
    --purple-accent: #8b5cf6;
    --orange-accent: #f59e0b;
    
    --font-primary: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--white);
    background: var(--primary-black);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-code);
    font-size: 2rem;
    color: var(--green-accent);
    margin-bottom: 30px;
}

.code-brackets {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.loading-text {
    margin: 0 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--secondary-black);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--green-accent), var(--blue-accent));
    width: 0;
    animation: loadingProgress 3s ease-out forwards;
}

@keyframes loadingProgress {
    to { width: 100%; }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px var(--green-accent); }
    100% { text-shadow: 0 0 20px var(--green-accent), 0 0 30px var(--green-accent); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

/* FIXED Header - Proper Z-Index */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tertiary-black);
    z-index: 9999; /* Higher z-index to prevent overlap */
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Fixed height to prevent overflow */
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo h2 {
    font-family: var(--font-code);
    font-size: 1.6rem; /* Reduced size to prevent overflow */
    font-weight: 700;
    color: var(--white);
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.logo span {
    color: var(--green-accent);
    transition: all 0.3s ease;
}

.logo:hover h2 {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    transform: scale(1.05);
}

.logo:hover span {
    color: var(--blue-accent);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px; /* Reduced gap to prevent overflow */
}

.nav-link {
    text-decoration: none;
    color: var(--off-white);
    font-weight: 500;
    font-size: 0.9rem; /* Slightly smaller font */
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 14px; /* Reduced padding */
    border-radius: 8px;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 0.15;
}

.nav-link:hover {
    color: var(--green-accent);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* FIXED Hero Section - Proper Spacing */
.hero-parallax {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* Account for fixed header */
    padding-bottom: 50px;
    z-index: 1; /* Lower z-index than header */
}

.hero-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-layer {
    position: absolute;
    width: 120%;
    height: 120%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

.layer-1 {
    animation: float 25s ease-in-out infinite;
}

.layer-2 {
    animation: float 20s ease-in-out infinite reverse;
}

.layer-3 {
    animation: float 30s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-code, .floating-symbol {
    position: absolute;
    font-family: var(--font-code);
    font-weight: bold;
    animation: floatCode 10s ease-in-out infinite;
    opacity: 0.12;
    font-size: 2.5rem;
    color: var(--green-accent);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.floating-code:nth-child(1) { 
    top: 15%; left: 8%; animation-delay: 0s; 
    color: var(--green-accent);
}
.floating-code:nth-child(2) { 
    top: 65%; right: 12%; animation-delay: 2.5s; 
    color: var(--blue-accent);
}
.floating-code:nth-child(3) { 
    bottom: 25%; left: 15%; animation-delay: 5s; 
    color: var(--purple-accent);
}
.floating-code:nth-child(4) { 
    top: 35%; right: 25%; animation-delay: 7.5s; 
    color: var(--red-accent);
}
.floating-symbol:nth-child(5) { 
    top: 8%; right: 18%; animation-delay: 1s; 
    color: var(--orange-accent); font-size: 3rem;
}
.floating-symbol:nth-child(6) { 
    bottom: 15%; right: 8%; animation-delay: 3.5s; 
    color: var(--blue-accent); font-size: 2.8rem;
}
.floating-symbol:nth-child(7) { 
    top: 55%; left: 3%; animation-delay: 6s; 
    color: var(--purple-accent); font-size: 3.2rem;
}
.floating-symbol:nth-child(8) { 
    bottom: 8%; left: 35%; animation-delay: 8.5s; 
    color: var(--green-accent); font-size: 2.6rem;
}

@keyframes floatCode {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.12; 
    }
    25% { 
        transform: translateY(-25px) rotate(3deg) scale(1.05); 
        opacity: 0.25; 
    }
    50% { 
        transform: translateY(-40px) rotate(6deg) scale(1.1); 
        opacity: 0.35; 
    }
    75% { 
        transform: translateY(-25px) rotate(3deg) scale(1.05); 
        opacity: 0.25; 
    }
}

/* Matrix Rain Canvas */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
}

/* Hero Content - Proper Z-Index */
.hero-content {
    text-align: center;
    z-index: 3; /* Higher z-index for content visibility */
    position: relative;
    max-width: 900px;
    padding: 0 30px;
}

.typing-effect {
    font-family: var(--font-code);
    font-size: 1.3rem;
    color: var(--green-accent);
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.code-prompt {
    color: var(--red-accent);
    font-weight: bold;
}

.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--green-accent);
    animation: typewriter 4s steps(25) 1s forwards, blink 0.8s infinite;
    white-space: nowrap;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--green-accent);
    font-weight: bold;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.parallax-title {
    font-size: 4.2rem; /* Slightly reduced for better fit */
    margin-bottom: 35px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.word-animate {
    display: inline-block;
    animation: wordSlide 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(60px);
}

.word-animate:nth-child(1) { animation-delay: 0.3s; }
.word-animate:nth-child(2) { animation-delay: 0.6s; }
.word-animate:nth-child(3) { animation-delay: 0.9s; }
.word-animate:nth-child(4) { animation-delay: 1.2s; }

@keyframes wordSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.glitch-text {
    position: relative;
    animation: glitch 4s infinite;
}

@keyframes glitch {
    0%, 92%, 100% { transform: translate(0); }
    2% { transform: translate(-2px, -1px); }
    4% { transform: translate(-1px, 1px); }
    6% { transform: translate(1px, -1px); }
    8% { transform: translate(2px, 1px); }
}

.hero-subtitle {
    font-size: 1.6rem; /* Slightly reduced */
    margin-bottom: 30px;
    color: var(--light-grey);
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem; /* Slightly reduced */
    margin-bottom: 50px;
    color: var(--light-grey);
    line-height: 1.9;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Enhanced Buttons with Better Effects */
.btn {
    padding: 18px 40px; /* Slightly reduced padding */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem; /* Slightly reduced font */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent button text wrapping */
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    color: var(--primary-black);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, var(--blue-accent), var(--green-accent));
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--green-accent);
}

.btn-secondary:hover {
    background: var(--green-accent);
    color: var(--primary-black);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-size: 1.1rem;
    padding: 20px 45px;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.6);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50px;
}

.btn-particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.8s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.btn:hover .btn-particles::before {
    width: 400px;
    height: 400px;
}

.btn-arrow {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.btn:hover .btn-arrow {
    transform: translateX(8px);
}

.pulse-btn {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { 
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 20px 50px rgba(16, 185, 129, 0.7);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
}

/* FIXED Floating Terminal - Proper Positioning */
.floating-terminal {
    position: absolute;
    top: 15%; /* Adjusted positioning */
    right: 5%; /* Adjusted positioning */
    width: 350px; /* Slightly smaller */
    background: var(--secondary-black);
    border-radius: 15px;
    border: 2px solid var(--tertiary-black);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(16, 185, 129, 0.1);
    animation: terminalFloat 6s ease-in-out infinite;
    z-index: 2; /* Proper z-index */
}

@keyframes terminalFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg); 
    }
    25% { 
        transform: translateY(-20px) rotateX(2deg); 
    }
    50% { 
        transform: translateY(-35px) rotateX(0deg); 
    }
    75% { 
        transform: translateY(-20px) rotateX(-2deg); 
    }
}

.terminal-header {
    background: var(--tertiary-black);
    padding: 15px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--dark-grey);
}

.terminal-controls {
    display: flex;
    gap: 10px;
}

.control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close { 
    background: var(--red-accent); 
}
.minimize { 
    background: var(--orange-accent); 
}
.maximize { 
    background: var(--green-accent); 
}

.control:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.terminal-title {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--light-grey);
    font-weight: 600;
}

.terminal-body {
    padding: 25px;
    font-family: var(--font-code);
    font-size: 0.9rem; /* Slightly smaller */
    line-height: 1.6;
}

.terminal-line {
    margin: 10px 0;
    color: var(--off-white);
}

.prompt {
    color: var(--green-accent);
    margin-right: 10px;
    font-weight: bold;
}

.command {
    color: var(--blue-accent);
    font-weight: 600;
}

.output {
    color: var(--light-grey);
    margin-left: 20px;
}

.cursor-blink {
    color: var(--green-accent);
    animation: blink 1.2s infinite;
    font-weight: bold;
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px; /* Adjusted positioning */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: bounce 3s infinite;
    cursor: pointer;
    z-index: 2; /* Proper z-index */
}

.scroll-text {
    font-size: 0.9rem; /* Slightly smaller */
    color: var(--light-grey);
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--green-accent);
    border-bottom: 3px solid var(--green-accent);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-15px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-8px); 
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -40px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

/* Section Animations Enhancement */
.fade-in-section {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; /* Ensure proper stacking */
    z-index: 1; /* Proper z-index for sections */
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.8rem; /* Slightly reduced */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    font-weight: 800;
}

.title-bg {
    background: linear-gradient(135deg, var(--white), var(--light-grey));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    margin: 10px auto 0;
    border-radius: 2px;
}

.title-underline.red {
    background: linear-gradient(135deg, var(--red-accent), var(--orange-accent));
}

.title-underline.green {
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
}

.title-underline.blue {
    background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
}

.title-underline.purple {
    background: linear-gradient(135deg, var(--purple-accent), var(--red-accent));
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem; /* Slightly reduced */
    color: var(--light-grey);
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Glass Morphism Effects */
.glass-morphism {
    background: rgba(33, 38, 45, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* FIXED Services Section - Proper Spacing */
.services {
    padding: 100px 0; /* Reduced padding to prevent overlap */
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    z-index: 1;
    margin-top: 50px; /* Clear spacing from hero */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly smaller minimum */
    gap: 30px; /* Reduced gap */
    margin-top: 60px; /* Reduced margin */
}

.service-card {
    padding: 40px 30px; /* Reduced padding */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg); /* Reduced transform */
    box-shadow: 0 25px 50px rgba(0, 208, 132, 0.2); /* Reduced shadow */
}

.service-icon {
    width: 80px; /* Reduced size */
    height: 80px; /* Reduced size */
    margin: 0 auto 25px; /* Reduced margin */
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
}

.service-icon i {
    font-size: 2rem; /* Slightly reduced */
    color: var(--primary-black);
}

.icon-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px; /* Adjusted size */
    height: 120px; /* Adjusted size */
    background: radial-gradient(circle, rgba(0, 208, 132, 0.2), transparent);
    border-radius: 50%;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

.service-card h3 {
    font-size: 1.5rem; /* Slightly reduced */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--white);
    font-weight: 700;
}

.service-card p {
    color: var(--light-grey);
    line-height: 1.7; /* Reduced line height */
    font-size: 1rem; /* Slightly reduced */
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* FIXED About Section - Proper Spacing and Fitting */
.about {
    padding: 100px 0; /* Reduced padding */
    background: var(--secondary-black);
    position: relative;
    z-index: 1;
    clear: both; /* Ensure proper clearing */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* Reduced gap */
    align-items: center;
}

.about-description {
    font-size: 1.2rem; /* Slightly reduced */
    color: var(--light-grey);
    margin-bottom: 25px; /* Reduced margin */
    line-height: 1.8; /* Reduced line height */
}

.about-features {
    margin-top: 40px; /* Reduced margin */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px; /* Reduced gap */
    margin-bottom: 20px; /* Reduced margin */
    padding: 18px; /* Reduced padding */
    background: rgba(33, 38, 45, 0.5);
    border-radius: 15px;
    transition: all 0.4s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    background: rgba(33, 38, 45, 0.8);
    transform: translateX(10px); /* Reduced transform */
    border-left-color: var(--green-accent);
}

.feature-icon {
    width: 45px; /* Reduced size */
    height: 45px; /* Reduced size */
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary-black);
    font-size: 1.2rem; /* Slightly reduced */
}

.feature-item span {
    font-weight: 600;
    color: var(--white);
    font-size: 1rem; /* Slightly reduced */
}

.feature-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-item:hover .feature-glow {
    transform: translateX(100%);
}

.code-visualization {
    background: var(--primary-black);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Reduced shadow */
    overflow: hidden;
    border: 1px solid var(--tertiary-black);
    max-width: 100%; /* Ensure it fits */
}

.code-editor {
    width: 100%;
}

.editor-header {
    background: var(--tertiary-black);
    padding: 12px 18px; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--dark-grey);
}

.editor-tabs {
    display: flex;
    gap: 12px; /* Reduced gap */
}

.tab {
    padding: 6px 12px; /* Reduced padding */
    background: var(--secondary-black);
    border-radius: 8px;
    font-family: var(--font-code);
    font-size: 0.8rem; /* Reduced font size */
    color: var(--light-grey);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--primary-black);
    color: var(--green-accent);
}

.editor-controls i {
    color: var(--green-accent);
    font-size: 1.1rem; /* Slightly reduced */
    cursor: pointer;
    transition: color 0.3s ease;
}

.editor-controls i:hover {
    color: var(--blue-accent);
}

.code-block {
    display: flex;
    font-family: var(--font-code);
    font-size: 0.9rem; /* Reduced font size */
    line-height: 1.6; /* Reduced line height */
}

.line-numbers {
    background: var(--secondary-black);
    padding: 15px 12px; /* Reduced padding */
    color: var(--dark-grey);
    text-align: right;
    border-right: 1px solid var(--tertiary-black);
    user-select: none;
}

.code-lines {
    padding: 15px; /* Reduced padding */
    flex: 1;
}

.code-line {
    color: var(--off-white);
    margin: 2px 0;
}

.keyword { color: var(--red-accent); }
.function { color: var(--blue-accent); }
.string { color: var(--green-accent); }

/* FIXED Hackathons Section - Proper Fitting */
.hackathons {
    padding: 100px 0; /* Reduced padding to prevent overlap */
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    clear: both; /* Ensure proper clearing */
}

.section-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.08; /* Reduced opacity */
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    width: 80px; /* Reduced size */
    height: 80px;
    background: linear-gradient(135deg, var(--red-accent), var(--orange-accent));
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px; /* Reduced size */
    height: 60px;
    background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
    border-radius: 20px;
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.shape-3 {
    width: 100px; /* Reduced size */
    height: 50px;
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    border-radius: 30px;
    bottom: 30%;
    left: 15%;
    animation-delay: 10s;
}

.shape-4 {
    width: 70px; /* Reduced size */
    height: 70px;
    background: linear-gradient(135deg, var(--purple-accent), var(--red-accent));
    transform: rotate(45deg);
    top: 15%;
    right: 10%;
    animation-delay: 15s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); } /* Reduced movement */
    50% { transform: translate(-20px, 30px) rotate(180deg); }
    75% { transform: translate(30px, 15px) rotate(270deg); }
}

.hackathon-header {
    text-align: center;
    margin-bottom: 80px; /* Reduced margin */
    position: relative;
    z-index: 2;
}

.hackathon-features {
    margin-bottom: 80px; /* Reduced margin */
    position: relative;
    z-index: 2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller minimum */
    gap: 30px; /* Reduced gap */
    margin-bottom: 60px; /* Reduced margin */
}

.hackathon-feature {
    background: rgba(33, 38, 45, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 25px; /* Reduced padding */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hackathon-feature:hover {
    transform: translateY(-12px) scale(1.01); /* Reduced transform */
    background: rgba(33, 38, 45, 0.8);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15); /* Reduced shadow */
}

.hackathon-feature .feature-icon {
    width: 70px; /* Reduced size */
    height: 70px;
    margin: 0 auto 20px; /* Reduced margin */
    background: linear-gradient(135deg, var(--red-accent), var(--orange-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.hackathon-feature:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

.hackathon-feature .feature-icon i {
    font-size: 1.8rem; /* Slightly reduced */
    color: var(--primary-black);
}

.hackathon-feature h3 {
    font-size: 1.3rem; /* Slightly reduced */
    margin-bottom: 12px; /* Reduced margin */
    color: var(--white);
    font-weight: 700;
}

.hackathon-feature p {
    color: var(--light-grey);
    line-height: 1.6; /* Reduced line height */
    font-size: 0.95rem; /* Slightly reduced */
}

.feature-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 208, 132, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hackathon-feature:hover .feature-particles {
    opacity: 1;
}

.hackathon-prizes {
    margin-bottom: 80px; /* Reduced margin */
    position: relative;
    z-index: 2;
}

.hackathon-prizes h3 {
    text-align: center;
    font-size: 2.3rem; /* Slightly reduced */
    margin-bottom: 50px; /* Reduced margin */
    color: var(--white);
    font-weight: 800;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Reduced gap */
}

.prize-card {
    padding: 40px 30px; /* Reduced padding */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.prize-card:hover {
    transform: translateY(-15px) rotateX(5deg); /* Reduced transform */
}

.prize-icon {
    width: 80px; /* Reduced size */
    height: 80px;
    margin: 0 auto 25px; /* Reduced margin */
    background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.prize-card:hover .prize-icon {
    transform: scale(1.1) rotate(15deg);
}

.prize-icon i {
    font-size: 2rem; /* Slightly reduced */
    color: var(--primary-black);
}

.prize-card h4 {
    font-size: 1.4rem; /* Slightly reduced */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--white);
    font-weight: 700;
}

.prize-card p {
    color: var(--light-grey);
    line-height: 1.7; /* Reduced line height */
    font-size: 1rem; /* Slightly reduced */
}

.card-glow.red {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), transparent);
}

.card-glow.green {
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.1), transparent);
}

.card-glow.blue {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), transparent);
}

.card-glow.purple {
    background: linear-gradient(135deg, rgba(188, 111, 241, 0.1), transparent);
}

.hackathon-cta {
    padding: 50px 40px; /* Reduced padding */
    text-align: center;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px; /* Reduced gap */
    align-items: center;
}

.cta-content h3 {
    font-size: 2rem; /* Reduced size */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--white);
    font-weight: 800;
}

.cta-content p {
    font-size: 1.2rem; /* Slightly reduced */
    margin-bottom: 30px; /* Reduced margin */
    color: var(--light-grey);
}

.cta-animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy-animation {
    font-size: 3.5rem; /* Slightly reduced */
    color: var(--orange-accent);
    animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); } /* Reduced movement */
}

/* Enhanced Community Section */
.community {
    padding: 100px 0; /* Reduced padding */
    background: var(--secondary-black);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.community-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.network-animation {
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.network-svg {
    width: 100%;
    height: 100%;
}

.community-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* Reduced gap */
    align-items: center;
}

.community-content h3 {
    font-size: 2.3rem; /* Slightly reduced */
    margin-bottom: 20px; /* Reduced margin */
    color: var(--white);
    font-weight: 800;
}

.community-description {
    font-size: 1.2rem; /* Slightly reduced */
    margin-bottom: 40px; /* Reduced margin */
    color: var(--light-grey);
    line-height: 1.8; /* Reduced line height */
}

.community-stats {
    display: flex;
    gap: 40px; /* Reduced gap */
    margin-bottom: 40px; /* Reduced margin */
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 2.5rem; /* Slightly reduced */
    margin-bottom: 8px; /* Reduced margin */
    color: var(--green-accent);
    font-weight: 800;
    font-family: var(--font-code);
}

.stat-item p {
    color: var(--light-grey);
    font-weight: 600;
    font-size: 1rem; /* Slightly reduced */
}

.stat-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Reduced size */
    height: 80px;
    background: radial-gradient(circle, rgba(0, 208, 132, 0.2), transparent);
    border-radius: 50%;
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% { transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.2; } /* Reduced scale */
}

.community-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Enhanced Phone Mockup */
.phone-mockup {
    width: 260px; /* Slightly smaller */
    height: 460px; /* Slightly smaller */
    background: var(--tertiary-black);
    border-radius: 30px;
    padding: 20px; /* Reduced padding */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); /* Reduced shadow */
    position: relative;
    border: 2px solid var(--dark-grey);
}

.phone-screen {
    background: var(--primary-black);
    border-radius: 20px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--green-accent);
    color: var(--primary-black);
    padding: 12px 15px; /* Reduced padding */
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-header i {
    font-size: 1.3rem;
}

.chat-messages {
    flex: 1;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    min-height: 0;
}

.chat-bubble {
    background: #25D366;
    color: white;
    padding: 8px 12px; /* Reduced padding */
    border-radius: 14px 14px 4px 14px; /* Slightly smaller radius */
    align-self: flex-start;
    font-size: 0.75rem; /* Reduced font size */
    max-width: 70%; /* Reduced max width to prevent overflow */
    animation: bubbleSlide 0.6s ease-out;
    opacity: 0;
    transform: translateX(-30px);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2; /* Reduced line height */
    font-family: var(--font-primary);
}

.animate-bubble:nth-child(1) { animation-delay: 0.5s; animation-fill-mode: forwards; }
.animate-bubble:nth-child(2) { animation-delay: 1s; animation-fill-mode: forwards; }
.animate-bubble:nth-child(3) { animation-delay: 1.5s; animation-fill-mode: forwards; }
.animate-bubble:nth-child(4) { animation-delay: 2s; animation-fill-mode: forwards; }

@keyframes bubbleSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.typing-indicator {
    padding: 10px 12px; /* Reduced padding */
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-grey);
    font-size: 0.7rem; /* Reduced font size */
    border-top: 1px solid var(--tertiary-black);
    flex-shrink: 0;
    background: var(--secondary-black);
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 5px; /* Reduced size */
    height: 5px;
    background: var(--green-accent);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: scale(0.8); opacity: 0.5; }
    30% { transform: scale(1.2); opacity: 1; }
}

/* Enhanced Learning Section */
.learning {
    padding: 100px 0; /* Reduced padding */
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    z-index: 1;
}

.learning-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Reduced gap */
    margin-bottom: 80px; /* Reduced margin */
}

.category-card {
    padding: 40px 30px; /* Reduced padding */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-15px) rotateX(5deg); /* Reduced transform */
}

.category-icon {
    width: 80px; /* Reduced size */
    height: 80px;
    margin: 0 auto 25px; /* Reduced margin */
    background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(15deg);
}

.category-icon i {
    font-size: 2rem; /* Slightly reduced */
    color: var(--primary-black);
    z-index: 2;
}

.icon-orbit {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px; /* Adjusted size */
    height: 100px;
    border: 2px solid rgba(88, 166, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--blue-accent);
    animation: iconOrbit 3s linear infinite;
}

@keyframes iconOrbit {
    to { transform: rotate(360deg); }
}

.category-card h3 {
    font-size: 1.4rem; /* Slightly reduced */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--white);
    font-weight: 700;
}

.category-card p {
    color: var(--light-grey);
    line-height: 1.7; /* Reduced line height */
    font-size: 1rem; /* Slightly reduced */
}

.learning-extras {
    padding: 50px 40px; /* Reduced padding */
    text-align: center;
}

.learning-extras h3 {
    font-size: 2rem; /* Reduced size */
    margin-bottom: 40px; /* Reduced margin */
    color: var(--white);
    font-weight: 800;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Smaller minimum */
    gap: 25px; /* Reduced gap */
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 18px; /* Reduced gap */
    padding: 20px; /* Reduced padding */
    background: rgba(33, 38, 45, 0.5);
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.extra-item:hover {
    background: rgba(33, 38, 45, 0.8);
    transform: scale(1.01); /* Reduced transform */
}

.extra-icon {
    width: 55px; /* Reduced size */
    height: 55px;
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.extra-icon i {
    color: var(--primary-black);
    font-size: 1.4rem; /* Slightly reduced */
}

.extra-item span {
    font-weight: 600;
    color: var(--white);
    font-size: 1.1rem; /* Slightly reduced */
}

.item-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.extra-item:hover .item-glow {
    transform: translateX(100%);
}

/* Enhanced Merchandise Section */
.merchandise {
    padding: 100px 0; /* Reduced padding */
    background: var(--secondary-black);
    z-index: 1;
}

.merchandise-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* Reduced gap */
    align-items: center;
}

.merch-graphic {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; /* Reduced gap */
}

.tshirt-mockup, .hoodie-mockup {
    width: 200px; /* Reduced size */
    height: 230px; /* Reduced size */
    background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.hoodie-mockup {
    background: linear-gradient(135deg, var(--tertiary-black), var(--secondary-black));
    color: var(--white);
}

.tshirt-mockup:hover, .hoodie-mockup:hover {
    transform: scale(1.05) rotateY(8deg); /* Reduced transform */
}

.tshirt-design, .hoodie-design {
    z-index: 2;
}

.design-logo {
    font-size: 1.6rem; /* Reduced size */
    font-weight: 800;
    margin-bottom: 8px; /* Reduced margin */
    font-family: var(--font-code);
}

.design-code {
    font-size: 0.9rem; /* Reduced size */
    font-family: var(--font-code);
    opacity: 0.8;
}

.product-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tshirt-mockup:hover .product-glow,
.hoodie-mockup:hover .product-glow {
    opacity: 1;
}

.merch-content h3 {
    font-size: 2.3rem; /* Reduced size */
    margin-bottom: 20px; /* Reduced margin */
    color: var(--white);
    font-weight: 800;
}

.merch-content p {
    font-size: 1.2rem; /* Slightly reduced */
    color: var(--light-grey);
    margin-bottom: 30px; /* Reduced margin */
    line-height: 1.8; /* Reduced line height */
}

.merch-features {
    list-style: none;
    margin-bottom: 50px; /* Reduced margin */
}

.merch-features li {
    margin: 15px 0; /* Reduced margin */
    font-size: 1.1rem; /* Slightly reduced */
    color: var(--off-white);
    padding-left: 25px; /* Reduced padding */
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    animation: featureSlide 0.6s ease-out forwards;
}

.merch-features li:nth-child(1) { animation-delay: 0.1s; }
.merch-features li:nth-child(2) { animation-delay: 0.2s; }
.merch-features li:nth-child(3) { animation-delay: 0.3s; }
.merch-features li:nth-child(4) { animation-delay: 0.4s; }

@keyframes featureSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.coming-soon {
    padding: 50px 40px; /* Reduced padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coming-soon-animation {
    margin-bottom: 25px; /* Reduced margin */
}

.rocket {
    font-size: 2.5rem; /* Reduced size */
    color: var(--orange-accent);
    animation: rocketLaunch 3s ease-in-out infinite;
}

@keyframes rocketLaunch {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); } /* Reduced movement */
}

.coming-soon h2 {
    font-size: 2.5rem; /* Reduced size */
    margin-bottom: 15px; /* Reduced margin */
    font-weight: 800;
    color: var(--white);
}

.coming-soon p {
    font-size: 1.2rem; /* Slightly reduced */
    margin-bottom: 30px; /* Reduced margin */
    color: var(--light-grey);
}

/* Enhanced Contact Section */
.contact {
    padding: 100px 0; /* Reduced padding */
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* Reduced gap */
}

.contact-info h3 {
    font-size: 2rem; /* Reduced size */
    margin-bottom: 40px; /* Reduced margin */
    color: var(--white);
    font-weight: 800;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Reduced gap */
}

.social-link {
    display: flex;
    align-items: center;
    gap: 20px; /* Reduced gap */
    padding: 20px; /* Reduced padding */
    background: rgba(33, 38, 45, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateX(8px) translateY(-3px); /* Reduced transform */
    background: rgba(33, 38, 45, 0.8);
}

.social-icon {
    width: 55px; /* Reduced size */
    height: 55px;
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon i {
    font-size: 1.6rem; /* Slightly reduced */
    color: var(--primary-black);
}

.social-link span {
    font-size: 1.1rem; /* Slightly reduced */
    font-weight: 600;
}

.link-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-link:hover .link-glow {
    transform: translateX(100%);
}

.contact-form {
    padding: 50px 40px; /* Reduced padding */
}

.input-group {
    margin-bottom: 25px; /* Reduced margin */
    position: relative;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 18px; /* Reduced padding */
    background: rgba(33, 38, 45, 0.5);
    border: 2px solid transparent;
    border-radius: 15px;
    font-family: var(--font-primary);
    font-size: 1rem; /* Slightly reduced */
    color: var(--white);
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--green-accent);
    background: rgba(33, 38, 45, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

.input-group textarea {
    height: 100px; /* Reduced height */
    resize: vertical;
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    transition: width 0.3s ease;
}

.input-group input:focus + .input-underline,
.input-group select:focus + .input-underline,
.input-group textarea:focus + .input-underline {
    width: 100%;
}

/* Enhanced Footer */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 80px 0 30px; /* Reduced padding */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 208, 132, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    animation: footerParticles 20s ease-in-out infinite;
}

@keyframes footerParticles {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); } /* Reduced scale */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Smaller minimum */
    gap: 50px; /* Reduced gap */
    margin-bottom: 50px; /* Reduced margin */
    position: relative;
    z-index: 2;
}

.footer-logo h3 {
    font-family: var(--font-code);
    font-size: 1.8rem; /* Reduced size */
    margin-bottom: 8px; /* Reduced margin */
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-logo span {
    color: var(--green-accent);
    transition: all 0.3s ease;
}

.footer-logo:hover h3 {
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5); /* Reduced glow */
}

.footer-logo:hover span {
    color: var(--blue-accent);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.7); /* Reduced glow */
}

.logo-underline {
    width: 50px; /* Reduced size */
    height: 3px;
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    margin: 12px 0 20px; /* Reduced margins */
    border-radius: 2px;
}

.footer-section h4 {
    margin-bottom: 25px; /* Reduced margin */
    color: var(--green-accent);
    font-size: 1.2rem; /* Slightly reduced */
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 25px; /* Reduced margin */
    color: var(--light-grey);
    line-height: 1.7; /* Reduced line height */
    font-size: 1rem; /* Slightly reduced */
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px; /* Reduced margin */
}

.footer-section ul li a {
    color: var(--light-grey);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem; /* Slightly reduced */
    position: relative;
    padding-left: 12px; /* Reduced padding */
}

.footer-section ul li a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--green-accent);
    font-size: 0.7rem; /* Reduced size */
    opacity: 0;
    transform: translateX(-8px); /* Reduced movement */
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section ul li a:hover {
    color: var(--green-accent);
    padding-left: 20px; /* Reduced padding */
}

.footer-social {
    display: flex;
    gap: 15px; /* Reduced gap */
}

.social-icon-footer {
    width: 55px; /* Reduced size */
    height: 55px;
    background: linear-gradient(135deg, var(--tertiary-black), var(--secondary-black));
    border: 2px solid var(--dark-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-grey);
    font-size: 1.6rem; /* Slightly reduced */
    transition: all 0.4s ease;
    text-decoration: none;
}

.social-icon-footer:hover {
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    color: var(--primary-black);
    transform: translateY(-3px); /* Reduced movement */
    border-color: var(--green-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px; /* Reduced padding */
    border-top: 1px solid var(--tertiary-black);
    color: var(--light-grey);
    font-size: 1rem; /* Slightly reduced */
    position: relative;
    z-index: 2;
}

/* RESPONSIVE DESIGN FIXES */
@media (max-width: 1200px) {
    .floating-terminal {
        width: 320px;
        right: 3%;
        top: 18%;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 1024px) {
    .floating-terminal {
        display: none; /* Hide terminal on smaller screens */
    }
    
    .nav-container {
        height: 65px;
    }
    
    .logo h2 {
        font-size: 1.4rem;
    }
    
    .hackathon-cta {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .parallax-title {
        font-size: 3.5rem;
    }
    
    .hero-parallax {
        padding-top: 65px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        padding: 30px 0;
        border-top: 2px solid var(--tertiary-black);
        z-index: 9998;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-parallax {
        padding: 120px 20px 80px;
        text-align: center;
    }
    
    .parallax-title {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 0.9rem;
        padding: 16px 35px;
    }
    
    .floating-elements {
        display: none; /* Hide floating elements on mobile */
    }
    
    /* Fix section spacing on mobile */
    .services, .about, .hackathons, .community, .learning, .merchandise, .contact {
        padding: 80px 0;
    }
    
    .about-content,
    .merchandise-preview,
    .contact-grid,
    .community-hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .community-stats {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .learning-categories,
    .feature-grid,
    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 420px;
        padding: 18px;
    }
    
    .chat-bubble {
        font-size: 0.7rem;
        padding: 6px 10px;
        max-width: 75%;
    }
    
    .typing-indicator {
        font-size: 0.65rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        top: 60px;
        padding: 25px 0;
    }
    
    .parallax-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .typing-effect {
        font-size: 1rem;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn {
        max-width: 280px;
        font-size: 0.85rem;
        padding: 14px 30px;
    }
    
    .community-stats {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 380px;
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Ensure proper spacing between all sections */
    .services, .about, .hackathons, .community, .learning, .merchandise, .contact {
        padding: 60px 0;
        margin-bottom: 0;
    }
    
    .footer {
        padding: 60px 0 25px;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark theme scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--green-accent), var(--blue-accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
}

/* Selection colors */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: var(--white);
}

::-moz-selection {
    background: rgba(16, 185, 129, 0.3);
    color: var(--white);
}

/* Utility class for clearing overlaps */
.section-clear {
    clear: both;
    position: relative;
    z-index: 1;
}

/* Additional fix for any remaining overlaps */
.hero-parallax::after {
    content: '';
    display: block;
    clear: both;
}

/* Fast typing animation override */
.typing-text {
    animation-duration: 1.5s !important;
    animation-delay: 0.2s !important;
}

.cursor {
    animation-duration: 0.4s !important;
}

/* SMOOTH TYPING ANIMATION OVERRIDE */
.typing-text {
    animation: typewriter 1.5s ease-out 0.2s forwards !important;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.cursor {
    animation: blink 0.4s ease-in-out infinite !important;
}






/* Remove border-based cursors */
.typing-text,
.typing-effect {
    border-right: none !important;
    border-left: none !important;
}




/* PERFORMANCE OPTIMIZATIONS */

/* Faster animations on mobile */
@media (max-width: 768px) {
    /* Disable heavy animations on mobile */
    .floating-elements {
        display: none !important;
    }
    
    .matrix-rain {
        display: none !important;
    }
    
    .bg-layer {
        animation: none !important;
    }
    
    /* Simpler animations */
    .service-card:hover,
    .category-card:hover,
    .hackathon-feature:hover,
    .prize-card:hover {
        transform: translateY(-5px) !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-progress {
        animation: none !important;
        width: 100% !important;
    }
}

/* GPU acceleration for better performance */
.service-card,
.category-card,
.hackathon-feature,
.prize-card,
.floating-terminal,
.phone-mockup {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize particle canvas */
#particle-canvas {
    will-change: auto;
    transform: translateZ(0);
}

/* Faster loading bar */
.loading-progress {
    animation-duration: 1.5s !important;
}

/* Smoother scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove any cursor trails */
.mouse-trail {
    display: none !important;
}
