@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;800&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

::selection {
    background: var(--accent-primary);
    color: white;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.3));
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Ensure header is above overlay */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(5, 5, 7, 0.7);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo:hover .logo-icon {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

nav a:hover {
    color: var(--text-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Burger Menu Styles */
.burger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-active {
    transform: translateX(0) !important;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section - Common Styles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.85), var(--bg-dark)), center/cover no-repeat fixed;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    position: relative;
    z-index: 1;
}

.hero-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    opacity: 0.6;
    transition: transform 0.3s ease-out;
}

.hero-particles span:nth-child(1) {
    left: 5%;
    top: 20%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(2) {
    left: 15%;
    top: 60%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(3) {
    left: 25%;
    top: 40%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(4) {
    left: 35%;
    top: 70%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(5) {
    left: 45%;
    top: 30%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(6) {
    left: 55%;
    top: 80%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(7) {
    left: 65%;
    top: 50%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(8) {
    left: 75%;
    top: 25%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(9) {
    left: 85%;
    top: 65%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(10) {
    left: 95%;
    top: 45%;
    width: 3px;
    height: 3px;
}

.hero-particles span:nth-child(11) {
    left: 10%;
    top: 35%;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(12) {
    left: 20%;
    top: 75%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(13) {
    left: 30%;
    top: 55%;
    width: 3px;
    height: 3px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(14) {
    left: 40%;
    top: 15%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(15) {
    left: 50%;
    top: 85%;
    width: 4px;
    height: 4px;
}

.hero-particles span:nth-child(16) {
    left: 60%;
    top: 10%;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(17) {
    left: 70%;
    top: 90%;
    width: 3px;
    height: 3px;
}

.hero-particles span:nth-child(18) {
    left: 80%;
    top: 35%;
    width: 5px;
    height: 5px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(19) {
    left: 90%;
    top: 55%;
    width: 4px;
    height: 4px;
}

.hero-particles span:nth-child(20) {
    left: 12%;
    top: 48%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(21) {
    left: 22%;
    top: 22%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(22) {
    left: 32%;
    top: 82%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(23) {
    left: 42%;
    top: 62%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(24) {
    left: 52%;
    top: 42%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(25) {
    left: 62%;
    top: 72%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(26) {
    left: 72%;
    top: 18%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(27) {
    left: 82%;
    top: 78%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(28) {
    left: 92%;
    top: 28%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(29) {
    left: 8%;
    top: 88%;
    width: 3px;
    height: 3px;
}

.hero-particles span:nth-child(30) {
    left: 48%;
    top: 58%;
    width: 5px;
    height: 5px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(31) {
    left: 7%;
    top: 12%;
    width: 4px;
    height: 4px;
}

.hero-particles span:nth-child(32) {
    left: 17%;
    top: 38%;
    width: 6px;
    height: 6px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(33) {
    left: 27%;
    top: 68%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(34) {
    left: 37%;
    top: 28%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(35) {
    left: 47%;
    top: 92%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(36) {
    left: 57%;
    top: 52%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(37) {
    left: 67%;
    top: 8%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(38) {
    left: 77%;
    top: 44%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(39) {
    left: 87%;
    top: 76%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(40) {
    left: 97%;
    top: 32%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(41) {
    left: 13%;
    top: 86%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(42) {
    left: 23%;
    top: 14%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(43) {
    left: 33%;
    top: 46%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(44) {
    left: 43%;
    top: 74%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(45) {
    left: 53%;
    top: 24%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(46) {
    left: 63%;
    top: 64%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(47) {
    left: 73%;
    top: 36%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(48) {
    left: 83%;
    top: 56%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(49) {
    left: 93%;
    top: 16%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(50) {
    left: 3%;
    top: 66%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(51) {
    left: 11%;
    top: 26%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(52) {
    left: 21%;
    top: 50%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(53) {
    left: 31%;
    top: 94%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(54) {
    left: 41%;
    top: 34%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(55) {
    left: 51%;
    top: 70%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(56) {
    left: 61%;
    top: 4%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(57) {
    left: 71%;
    top: 84%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(58) {
    left: 81%;
    top: 48%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(59) {
    left: 91%;
    top: 72%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(60) {
    left: 6%;
    top: 54%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(61) {
    left: 14%;
    top: 19%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(62) {
    left: 24%;
    top: 67%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(63) {
    left: 34%;
    top: 37%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(64) {
    left: 44%;
    top: 87%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(65) {
    left: 54%;
    top: 17%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(66) {
    left: 64%;
    top: 47%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(67) {
    left: 74%;
    top: 77%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(68) {
    left: 84%;
    top: 27%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(69) {
    left: 94%;
    top: 57%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(70) {
    left: 4%;
    top: 37%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(71) {
    left: 16%;
    top: 81%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(72) {
    left: 26%;
    top: 11%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(73) {
    left: 36%;
    top: 51%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(74) {
    left: 46%;
    top: 91%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(75) {
    left: 56%;
    top: 31%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(76) {
    left: 66%;
    top: 61%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(77) {
    left: 76%;
    top: 21%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(78) {
    left: 86%;
    top: 71%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(79) {
    left: 96%;
    top: 41%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(80) {
    left: 9%;
    top: 79%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(81) {
    left: 19%;
    top: 29%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(82) {
    left: 29%;
    top: 59%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(83) {
    left: 39%;
    top: 9%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(84) {
    left: 49%;
    top: 49%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(85) {
    left: 59%;
    top: 89%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(86) {
    left: 69%;
    top: 39%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(87) {
    left: 79%;
    top: 69%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(88) {
    left: 89%;
    top: 19%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(89) {
    left: 99%;
    top: 59%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(90) {
    left: 2%;
    top: 23%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(91) {
    left: 18%;
    top: 73%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(92) {
    left: 28%;
    top: 33%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(93) {
    left: 38%;
    top: 83%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(94) {
    left: 58%;
    top: 13%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(95) {
    left: 68%;
    top: 53%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(96) {
    left: 78%;
    top: 93%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(97) {
    left: 88%;
    top: 43%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(98) {
    left: 98%;
    top: 73%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(99) {
    left: 1%;
    top: 43%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(100) {
    left: 15%;
    top: 93%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(101) {
    left: 25%;
    top: 3%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(102) {
    left: 35%;
    top: 63%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(103) {
    left: 45%;
    top: 23%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(104) {
    left: 55%;
    top: 53%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(105) {
    left: 65%;
    top: 93%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(106) {
    left: 75%;
    top: 33%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(107) {
    left: 85%;
    top: 83%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(108) {
    left: 95%;
    top: 23%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(109) {
    left: 5%;
    top: 63%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(110) {
    left: 12%;
    top: 7%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(111) {
    left: 26%;
    top: 77%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(112) {
    left: 38%;
    top: 27%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(113) {
    left: 52%;
    top: 67%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(114) {
    left: 66%;
    top: 17%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(115) {
    left: 78%;
    top: 57%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(116) {
    left: 92%;
    top: 87%;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(117) {
    left: 4%;
    top: 47%;
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-particles span:nth-child(118) {
    left: 16%;
    top: 97%;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(119) {
    left: 30%;
    top: 7%;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-particles span:nth-child(120) {
    left: 50%;
    top: 97%;
    width: 6px;
    height: 6px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.section-title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.view-all {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.view-all:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 120px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 120px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.card-image {
    height: 180px;
    background: #1e293b;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .card-image::after {
    opacity: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tag {
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.card:hover .tag {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 10px var(--accent-glow);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-primary);
    margin-top: auto;
    transition: gap 0.3s ease;
}

.read-link::after {
    content: '→';
    font-family: var(--font-mono);
    transition: transform 0.3s ease;
}

.card:hover .read-link {
    gap: 12px;
    color: white;
    text-shadow: 0 0 10px var(--accent-primary);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 80px;
    background: linear-gradient(to top, rgba(5, 5, 7, 1), transparent);
}

/* Desktop Styles */
@media screen and (min-width: 769px) {
    .hero {
        padding: 80px 20px;
    }

    /* Hide mobile menu header on desktop */
    .mobile-menu-header {
        display: none !important;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    nav ul {
        position: fixed;
        left: 0;
        height: 80vh;
        top: 0;
        background-color: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: 280px;
        min-width: 280px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 30px;
        padding: 40px;
        z-index: 101;
        /* Border removed from default state */
        /* Shadow removed from default state */
    }

    nav ul li {
        opacity: 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }

    .burger {
        display: block;
    }

    /* Glassmorphic Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 1001;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Fix for mobile menu visibility */
nav ul.nav-active li {
    opacity: 1 !important;
}

/* Disable text selection on hero section and enable particle interaction */
.hero {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.hero h1,
.hero p {
    pointer-events: none;
}

/* Prevent touch selection and highlighting on mobile */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    -webkit-user-select: none;
    user-select: none;
}

/* Re-enable selection for input fields if needed */
input,
textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* Dust particles - tiny ambient particles */
.hero-particles span.dust {
    position: absolute;
    display: block;
    width: 3px !important;
    height: 3px !important;
    opacity: 0.9;
    background: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1) !important;
    z-index: 5;
}

/* Prevent horizontal overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Hide custom scrollbar on mobile to prevent vertical line artifact */
@media screen and (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}

/* Add border and shadow only when menu is active */
@media screen and (max-width: 768px) {
    nav ul.nav-active {
        border-right: 1px solid rgba(99, 102, 241, 0.3);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }
}

/* Card Image Styles */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}


/* Writeup Card Styles for better readability */
.writeup-card {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.writeup-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.writeup-card p {
    color: #cbd5e1;
    /* Lighter text for better contrast */
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.writeup-card img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.code-block {
    background: #0f172a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Step cards for machine writeups */
.step {
    background-color: #1e1e23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.step p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.step img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.step .code {
    margin: 15px 0;
    padding: 15px;
    background-color: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step .code pre {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

/* Mobile Menu Header with Logo */
.mobile-menu-header {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    opacity: 1 !important;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.mobile-menu-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-logo .logo-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-menu-logo .gradient-text {
    font-size: 1.2rem;
    font-weight: 700;
}