:root {
    --bg-color: #0b1120;
    /* Darker, richer slate */
    --card-bg: rgba(30, 41, 59, 0.4);
    /* More transparent for better glass effect */
    --primary-color: #fbbf24;
    /* Amber-400 */
    --secondary-color: #bef264;
    /* Lime-300 */
    --accent-color: #f59e0b;
    /* Amber-500 */
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #fbbf24 0%, #bef264 100%);
    --gradient-hover: linear-gradient(135deg, #f59e0b 0%, #a3e635 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.15);
    --font-main: 'Outfit', sans-serif;
    --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.7;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(251, 191, 36, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(190, 242, 100, 0.08), transparent 25%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Intro Panel */
.intro-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background:
        linear-gradient(rgba(11, 17, 32, 0.6), rgba(11, 17, 32, 0.8)),
        url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    /* Alternative Space Image: https://images.unsplash.com/photo-1534796636912-3b95b3ab5986 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    overflow: hidden;
}

.intro-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 15px 15px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    animation: introStarFloat 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

.intro-panel.fade-out {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(10px);
    pointer-events: none;
}

.intro-content {
    text-align: center;
    animation: introFadeIn 1s ease-out;
}

.intro-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

/* Planet Lemon Styles */
.planet-lemon-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-icon {
    font-size: 5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.8));
    animation: introLemonPulse 3s ease-in-out infinite;
    z-index: 2;
    transform: rotate(-15deg);
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
    will-change: transform;
    /* Performance optimization */
}

.ring-1 {
    width: 160px;
    height: 160px;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: spinRing 8s linear infinite;
}

.ring-2 {
    width: 140px;
    height: 140px;
    border: 1px dashed rgba(190, 242, 100, 0.3);
    animation: spinRing 12s linear infinite reverse;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #bef264;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-top: -4px;
    margin-left: -4px;
    box-shadow: 0 0 10px #bef264;
    animation: orbitDot 4s linear infinite;
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbitDot {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

@keyframes introLemonPulse {

    0%,
    100% {
        transform: rotate(-15deg) scale(1);
        filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.8));
    }

    50% {
        transform: rotate(-15deg) scale(1.1);
        filter: drop-shadow(0 0 40px rgba(251, 191, 36, 1));
    }
}

.intro-title {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff 20%, #fbbf24 50%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -3px;
    margin: 0;
    animation: shine 3s linear infinite;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.intro-dot {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    animation: introDotPulse 1.5s ease-in-out infinite;
}

.intro-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: introSlideUp 1s ease-out 0.3s both;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Cyber Loader */
.cyber-loader {
    width: 400px;
    margin: 0 auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    text-align: left;
}

.cyber-text {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    min-height: 1.5em;
}

.cyber-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.cyber-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    position: relative;
    animation: cyberLoad 2.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cyber-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

.cyber-counter {
    text-align: right;
    color: var(--secondary-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

@keyframes cyberLoad {
    0% {
        width: 0%;
    }

    10%,
    20% {
        width: 15%;
    }

    40% {
        width: 45%;
    }

    70% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

/* Intro Animations */
@keyframes introFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes introGridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px);
    }
}

@keyframes introStarFloat {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes introGlowPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes introDotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes introSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes loadingProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Custom Cursor - Performance Optimized */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.cursor-dot {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--primary-color) 30%, var(--accent-color) 100%);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cursor-outline {
    width: 50px;
    height: 50px;
    border: 1px dashed rgba(251, 191, 36, 0.6);
    animation: cursorSpin 4s linear infinite;
    background: rgba(251, 191, 36, 0.05);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.cursor-outline::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(190, 242, 100, 0.3);
    border-radius: 50%;
    animation: cursorSpin 6s linear infinite reverse;
    border-left-color: transparent;
    border-right-color: transparent;
}

@keyframes cursorSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Header - Futuristic Redesign */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 0.8rem 2rem;
    background: rgba(11, 17, 32, 0.75);
    /* More opaque to reduce blur dependency */
    backdrop-filter: blur(12px);
    /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(251, 191, 36, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background;
}

.header::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    pointer-events: none;
}

.header.scrolled {
    top: 10px;
    width: 95%;
    background: rgba(11, 17, 32, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Futuristic Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
}

.nav-logo-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo i {
    font-size: 1.2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-color));
    z-index: 2;
    animation: logoPulse 3s ease-in-out infinite;
}

.nav-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 5px rgba(251, 191, 36, 0.2);
}

.nav-ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: spinRing 8s linear infinite;
}

.nav-ring-2 {
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(190, 242, 100, 0.5);
    animation: spinRing 12s linear infinite reverse;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--primary-color));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px var(--primary-color));
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Tech Hover Effect for Links */
.nav-links a:not(.btn-primary):hover {
    color: var(--primary-color);
    background: rgba(251, 191, 36, 0.05);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.nav-links a:not(.btn-primary)::before,
.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

.nav-links a:not(.btn-primary)::before {
    top: 0;
    left: 0;
    border-top-color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-links a:not(.btn-primary)::after {
    bottom: 0;
    right: 0;
    border-bottom-color: var(--primary-color);
    border-right-color: var(--primary-color);
}

.nav-links a:not(.btn-primary):hover::before,
.nav-links a:not(.btn-primary):hover::after {
    opacity: 1;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background: var(--gradient-main);
    border: 2px solid transparent;
    border-radius: 50px;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow:
        0 4px 15px rgba(251, 191, 36, 0.3),
        0 0 20px rgba(251, 191, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover::after {
    opacity: 1;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(251, 191, 36, 0.5),
        0 0 40px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: var(--gradient-hover);
}

.btn-primary.glow {
    animation: btn-pulse 4s infinite;
    /* Slower pulse for better performance */
    will-change: box-shadow;
}

/* Hero Section - Futuristic Network Theme */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    /* Removed fixed attachment for better performance on mobile */
    z-index: 1;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

/* Removed background-attachment: fixed for better performance */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0) 0%, rgba(2, 6, 23, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Simplified after overlay - removed complex gradients for performance */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(190, 242, 100, 0.03) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    /* Reduced opacity for better performance */
    will-change: contents;
}

.hero-bg-img {
    display: none;
}

/* Removed expensive 3D grid animation for better performance */

.hero-content {
    max-width: 650px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: linear-gradient(to right, #fbbf24, #bef264, #fbbf24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: shine 6s linear infinite;
    /* Slower animation for better performance */
    will-change: background-position;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.05), transparent);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-secondary {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(251, 191, 36, 0.05);
}

.hero-visual {
    position: relative;
    width: 550px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed perspective and preserve-3d for better performance */
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.glowing-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0) 70%);
    /* Reduced opacity for better performance */
    border-radius: 50%;
    opacity: 0.6;
    /* Reduced opacity */
    animation: pulse 8s infinite alternate;
    /* Slower animation for better performance */
    will-change: transform, opacity;
    pointer-events: none;
}

#networkCanvas {
    display: none;
}

.network-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    perspective: 1000px;
}

.grid-plane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(251, 191, 36, 0.08);
    /* Reduced opacity */
    border-radius: 50%;
    animation: rotatePlane 15s linear infinite;
    /* Slower animation */
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.03);
    will-change: transform;
}

.grid-plane::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 1px dashed rgba(190, 242, 100, 0.1);
    border-radius: 50%;
    animation: rotatePlane 15s linear infinite reverse;
}

.grid-plane.vertical {
    animation: rotatePlaneVertical 18s linear infinite;
    /* Slower animation */
    border-color: rgba(251, 191, 36, 0.04);
    will-change: transform;
}

@keyframes rotatePlane {
    0% {
        transform: rotateX(60deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes rotatePlaneVertical {
    0% {
        transform: rotateY(60deg) rotateZ(0deg);
    }

    100% {
        transform: rotateY(60deg) rotateZ(360deg);
    }
}

.glass-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.85);
    /* More opaque to reduce blur dependency */
    backdrop-filter: blur(8px);
    /* Further reduced blur for performance */
    -webkit-backdrop-filter: blur(8px);
    padding: 1.2rem 2.5rem;
    border-radius: 20px;
    border: var(--glass-highlight);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 2;
    will-change: transform;
}

.glass-card i {
    font-size: 1.8rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Adjusted positions to prevent overlap */
.glass-card:nth-child(3) {
    /* Card 1: Design/UI */
    top: 15%;
    left: -5%;
    animation-delay: 0s;
}

.glass-card:nth-child(4) {
    /* Card 2: Performance */
    bottom: 0%;
    right: 20%;
    animation-delay: 2s;
}

.glass-card:nth-child(5) {
    /* Card 3: Future/Main */
    top: 10%;
    right: -5%;
    animation-delay: 1s;
}

/* Code Snippet Card Styles */
.code-snippet {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.2rem 1.8rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    min-width: 200px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    /* More opaque */
    backdrop-filter: blur(10px);
    /* Reduced blur */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 30px rgba(251, 191, 36, 0.15),
        inset 0 0 20px rgba(251, 191, 36, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: absolute;
    /* Ensure absolute positioning is kept */
    will-change: transform;
}

.code-snippet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.2;
    z-index: 0;
}

/* Card Scan Animation */
.code-snippet::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(251, 191, 36, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: cardScan 4s linear infinite;
    pointer-events: none;
}

@keyframes cardScan {
    0% {
        transform: translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateY(100%) rotate(45deg);
    }
}

.code-snippet:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 30px rgba(251, 191, 36, 0.2);
}


.code-header {
    display: flex;
    gap: 7px;
    margin-bottom: 10px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px 8px 0 0;
    margin: -1.2rem -1.8rem 10px -1.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.code-snippet:hover .dot {
    transform: scale(1.1);
}

.dot.red {
    background: linear-gradient(135deg, #ff5f56, #ff3b30);
}

.dot.yellow {
    background: linear-gradient(135deg, #ffbd2e, #ffa500);
}

.dot.green {
    background: linear-gradient(135deg, #27c93f, #00d084);
}

.code-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.6;
}

.line {
    white-space: nowrap;
}

.line.indent {
    padding-left: 1rem;
}

/* Syntax Highlighting */
.keyword {
    color: #c678dd;
}

/* Purple */
.variable {
    color: #e06c75;
}

/* Red */
.operator {
    color: #56b6c2;
}

/* Cyan */
.class {
    color: #e5c07b;
}

/* Yellow */
.method {
    color: #61afef;
}

/* Blue */
.string {
    color: #98c379;
}

/* Green */

/* Typing Cursor */
.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--secondary-color);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.float-animation {
    animation: float 8s ease-in-out infinite;
    /* Slower animation for better performance */
    will-change: transform;
}

/* Services Section - Futuristic Redesign */
.services {
    padding: 8rem 10%;
    position: relative;
    background: linear-gradient(rgba(11, 17, 32, 0.9), rgba(11, 17, 32, 0.95)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    /* Removed fixed attachment for better performance */
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 769px) {
    .services {
        background-attachment: fixed;
    }
}

/* Moving Cyber Grid Background */
.services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: cyberGridMove 20s linear infinite;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 20%, #0b1120 90%);
    z-index: -1;
    pointer-events: none;
}

@keyframes cyberGridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
    letter-spacing: -1px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Futuristic Card Design */
.service-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(8px);
    will-change: transform;

    /* Gradient Border using background-clip */
    border: 1px solid transparent;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=800&auto=format&fit=crop'),
        linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(190, 242, 100, 0.1));
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;
    background-size: cover, cover, cover;
    background-position: center;
}

/* Remove the old pseudo-element border to fix the solid background issue */
.service-card::before {
    display: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(251, 191, 36, 0.1),
        inset 0 0 20px rgba(251, 191, 36, 0.05);

    /* Darker overlay on hover for better text readability, brighter border */
    background-image:
        linear-gradient(rgba(11, 17, 32, 0.95), rgba(11, 17, 32, 0.98)),
        url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=800&auto=format&fit=crop'),
        linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover::before {
    display: none;
}

/* Tech HUD Corner */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, rgba(251, 191, 36, 0.2) 50%);
    transition: all 0.3s ease;
}

.service-card:hover::after {
    background: linear-gradient(135deg, transparent 50%, var(--primary-color) 50%);
    box-shadow: 0 0 15px var(--primary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: #0b1120;
    box-shadow: 0 0 30px var(--primary-color);
    transform: scale(1.1);
    border-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card p {
    color: #cbd5e1;
    /* Lighter text color for better contrast */
    font-size: 1rem;
    line-height: 1.6;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    /* Shadow for readability */
}

.service-card:hover p {
    border-left-color: var(--primary-color);
    color: #fff;
    /* Pure white on hover */
}

/* About Section - Futuristic Redesign */
.about {
    padding: 8rem 10%;
    display: flex;
    align-items: center;
    gap: 5rem;
    background: linear-gradient(rgba(11, 17, 32, 0.8), rgba(11, 17, 32, 0.85)), url('https://images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    /* Removed fixed attachment for better performance */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 769px) {
    .about {
        background-attachment: fixed;
    }
}

.about-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    z-index: -1;
    animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.about::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: glowFloat 15s infinite alternate;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(190, 242, 100, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: glowFloat 12s infinite alternate-reverse;
}

@keyframes glowFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

.about-content {
    flex: 1.2;
    position: relative;
    z-index: 2;
}

.glass-panel {
    background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.85));
    backdrop-filter: blur(16px);
    /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.glass-panel>* {
    position: relative;
    z-index: 1;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.03), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* HUD Corners */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.hud-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}

.hud-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}

.glass-panel:hover .hud-corner {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Code Style Text */
.code-style-text {
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #e2e8f0;
    /* Brighter text for readability */
    background: rgba(0, 0, 0, 0.3);
    /* Darker, cleaner background */
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    /* Amber border */
    font-size: 2.5rem;
    /* Significantly larger */
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.15);
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-left: 15px;

    /* Typewriter Effect Setup */
    width: 12ch;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid var(--primary-color);
    animation:
        typing 3s steps(12) forwards,
        blinkCursor 0.8s step-end infinite;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.code-style-text:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
    color: #fff;
}

.code-style-text::before {
    content: '>';
    margin-right: 12px;
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 0 0 10px var(--primary-color);
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 12ch;
    }
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b1120;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(80px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    15% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    25% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    30% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    35% {
        clip: rect(50px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 20px, 0);
    }

    45% {
        clip: rect(70px, 9999px, 60px, 0);
    }

    50% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    55% {
        clip: rect(90px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    65% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    70% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    75% {
        clip: rect(80px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(40px, 9999px, 70px, 0);
    }

    85% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    90% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    95% {
        clip: rect(30px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 40px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    5% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    10% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    15% {
        clip: rect(80px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(40px, 9999px, 70px, 0);
    }

    25% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    30% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    35% {
        clip: rect(30px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(70px, 9999px, 40px, 0);
    }

    45% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    50% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    55% {
        clip: rect(40px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    65% {
        clip: rect(10px, 9999px, 70px, 0);
    }

    70% {
        clip: rect(60px, 9999px, 30px, 0);
    }

    75% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(70px, 9999px, 10px, 0);
    }

    85% {
        clip: rect(30px, 9999px, 50px, 0);
    }

    90% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    95% {
        clip: rect(40px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 30px, 0);
    }
}

.about-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(251, 191, 36, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.feature-item:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-item:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    color: #0b1120;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.feature-text {
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-text {
    color: #fff;
}

@media (max-width: 576px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

.about-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(20%) contrast(1.1);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(251, 191, 36, 0.2);
}

/* Tech Rings */
.tech-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.3);
    pointer-events: none;
}

.tech-ring.inner {
    width: 110%;
    height: 110%;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spinTech 10s linear infinite;
}

.tech-ring.outer {
    width: 130%;
    height: 130%;
    border: 1px dashed rgba(190, 242, 100, 0.2);
    animation: spinTech 20s linear infinite reverse;
}

@keyframes spinTech {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Scan Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 5;
    animation: scanMove 4s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scanMove {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: -30px;
    background: rgba(15, 23, 42, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10;
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    }
}

/* Portfolio Section - Premium Redesign */
.portfolio {
    padding: 8rem 10%;
    position: relative;
    z-index: 2;
    background:
        linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)),
        url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    /* Removed fixed attachment for better performance */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

@media (min-width: 769px) {
    .portfolio {
        background-attachment: fixed;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.portfolio-item {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(251, 191, 36, 0.3);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
    opacity: 0.6;
}

.portfolio-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    /* Removed bottom margin since link is gone */
    flex-grow: 1;
}

/* Contact Section - Premium Redesign */
.contact {
    padding: 8rem 10%;
    position: relative;
    background:
        linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop');
    /* Futuristic Earth/Space */
    background-size: cover;
    background-position: center;
    /* Removed fixed attachment for better performance */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

@media (min-width: 769px) {
    .contact {
        background-attachment: fixed;
    }
}

.contact-container {
    width: 100%;
    max-width: 800px;
    /* Reduced from 1000px */
    background: rgba(15, 23, 42, 0.75);
    /* More opaque to reduce blur dependency */
    border-radius: 30px;
    /* Slightly reduced radius */
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(14px);
    padding: 3rem;
    /* Reduced from 4rem */
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(251, 191, 36, 0.1);
    /* Subtle glow */
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.05), transparent 60%);
    pointer-events: none;
}

.contact-content-wrapper {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-content-wrapper h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.contact-card-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
}

.contact-card-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contact-card-item:hover .icon-circle {
    background: var(--primary-color);
    color: #0b1120;
    box-shadow: 0 0 20px var(--primary-color);
}

.contact-card-item h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-card-item span {
    color: var(--text-muted);
    font-size: 1rem;
}

.social-connect h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links-large a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-large a:hover {
    background: var(--primary-color);
    color: #0b1120;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    border-color: transparent;
}

@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card-item {
        width: 100%;
    }
}

/* Footer - Premium Redesign */
.footer {
    background: linear-gradient(to bottom, #020617, #0f172a);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Futuristic Grid Background for Footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 0%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Footer Glow Effect */
.footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.15), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.brand-col .footer-logo i {
    color: var(--primary-color);
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 300px;
}

.legal-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 300px;
    border-left: 2px solid rgba(251, 191, 36, 0.3);
    padding-left: 10px;
}

.legal-note strong {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #020617;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    border-color: transparent;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.designer-credit .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-visual {
        width: 450px;
        height: 450px;
    }

    .glowing-orb {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .header {
        width: 95%;
        padding: 0.8rem 1.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        justify-content: center;
        gap: 3rem;
        min-height: auto;
        padding-bottom: 5rem;
        /* Fix for mobile background attachment */
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        padding-left: 0;
        padding-bottom: 1rem;
        background: linear-gradient(to bottom, rgba(251, 191, 36, 0.05), transparent);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
        margin-top: 2rem;
    }

    .glowing-orb {
        width: 300px;
        height: 300px;
    }

    .glass-card {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Adjust floating cards for tablet/mobile to prevent overlap */
    .glass-card:nth-child(2) {
        top: 5%;
        left: 2%;
    }

    .glass-card:nth-child(3) {
        bottom: 5%;
        right: 2%;
    }

    .glass-card:nth-child(4) {
        top: 50%;
        right: 2%;
        transform: translateY(-50%);
    }

    .code-snippet {
        min-width: 180px;
        max-width: 220px;
        padding: 1rem 1.3rem;
        font-size: 0.8rem;
    }

    .about {
        flex-direction: column;
        padding: 5rem 5%;
        gap: 4rem;
    }

    .about-visual {
        order: -1;
        /* Show image first on mobile */
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Hide custom cursor on touch devices */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Disable fixed backgrounds on other sections too */
    .hero,
    .services,
    .portfolio,
    .about,
    .contact {
        background-attachment: scroll;
        background-position: center;
        background-size: cover;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(11, 17, 32, 0.98);
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        animation: slideDown 0.3s ease-out forwards;
        border-radius: 0 0 20px 20px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--text-color);
        margin: 6px 0;
        transition: 0.3s;
        border-radius: 3px;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 7px);
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -7px);
    }

    .services,
    .portfolio,
    .contact {
        padding: 5rem 5%;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
        gap: 2rem;
    }

    .glass-panel {
        padding: 2rem;
    }

    .code-style-text {
        font-size: 1.8rem;
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        width: fit-content;
    }

    /* Hide hero visual cards on tablets to prevent overlap */
    .hero-visual {
        height: 300px;
    }

    .glass-card {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }

    .code-snippet {
        min-width: 150px;
        max-width: 180px;
        padding: 0.8rem 1rem;
        font-size: 0.7rem;
    }

    .glass-card:nth-child(2) {
        top: 10%;
        left: 0%;
    }

    .glass-card:nth-child(3) {
        bottom: 10%;
        right: 0%;
    }

    .glass-card:nth-child(4) {
        top: 45%;
        right: 0%;
    }

    .hero {
        padding: 7rem 5% 5rem;
    }
}

@media (max-width: 576px) {
    .header {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(11, 17, 32, 0.95);
        padding: 1rem;
    }

    .header.scrolled {
        width: 100%;
        top: 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

    .floating-badge {
        right: 0;
        bottom: 0;
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    /* Improved Mobile Visuals */
    .hero-visual {
        display: flex;
        /* Show visual */
        height: 250px;
        width: 100%;
        margin-top: 1rem;
    }

    .glowing-orb {
        width: 200px;
        height: 200px;
        filter: blur(50px);
    }

    /* Hide complex floating cards on mobile to reduce clutter, but keep the orb */
    .glass-card,
    .code-snippet {
        display: none;
    }

    .hero {
        padding: 6rem 5% 3rem;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .intro-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .intro-tagline {
        font-size: 0.9rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
    }

    .intro-logo {
        flex-direction: column;
        gap: 1rem;
    }

    .planet-lemon-container {
        transform: scale(0.8);
    }

    .cyber-loader {
        width: 85%;
    }

    .intro-icon {
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    }

    .intro-panel::before {
        animation: none;
        background-attachment: scroll;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        padding: 0;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}