* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "poppins", sans-serif;
}

:root {
    --bg-color: #080808;
    --second-color: #131313;
    --text-color: white;
    --main-color: #00ffee;
    --main-transition: 0.3s;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
    box-shadow: 0 0 25px var(--main-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 5px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 6% 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 300;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

/* Desktop: inline navbar in the header bar */
.navbar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    padding: 2rem 6% 2rem;
    justify-content: flex-end;
    z-index: 301;
    pointer-events: none;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 2.5rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    pointer-events: auto;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

/* Hamburger Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 301;
    padding: 0;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--main-color);
    border-radius: 2px;
    transition: 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10em;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    position: relative;
    overflow: hidden;
}

/* ── Stars ── */
.home-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-stars i {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    animation:
        twinkle 1.5s ease-in-out infinite,
        drift 5s ease-in-out infinite;
}

/* ── size + position + drift for each star ── */
.home-stars i:nth-child(1)  { width: 2.5px; height: 2.5px; top:  8%; left: 12%; animation-delay: 0s,    0s;    --star-o: 0.4;  --star-dx:  15px; --star-dy:   8px; }
.home-stars i:nth-child(2)  { width: 2px;   height: 2px;   top: 22%; left: 28%; animation-delay: 0.3s,  0.8s;  --star-o: 0.3;  --star-dx: -10px; --star-dy:  12px; }
.home-stars i:nth-child(3)  { width: 4px;   height: 4px;   top:  5%; left: 45%; animation-delay: 0.7s,  0.4s;  --star-o: 0.45; --star-dx:  20px; --star-dy:  -5px; }
.home-stars i:nth-child(4)  { width: 2px;   height: 2px;   top: 38%; left: 62%; animation-delay: 1.1s,  1.5s;  --star-o: 0.25; --star-dx: -12px; --star-dy:  10px; }
.home-stars i:nth-child(5)  { width: 3px;   height: 3px;   top: 15%; left: 78%; animation-delay: 0.2s,  0.2s;  --star-o: 0.35; --star-dx:  18px; --star-dy:  -8px; }
.home-stars i:nth-child(6)  { width: 2px;   height: 2px;   top: 42%; left:  8%; animation-delay: 0.9s,  1.2s;  --star-o: 0.25; --star-dx:  -8px; --star-dy:  14px; }
.home-stars i:nth-child(7)  { width: 4px;   height: 4px;   top:  3%; left: 55%; animation-delay: 0.5s,  0.6s;  --star-o: 0.4;  --star-dx:  12px; --star-dy:   6px; }
.home-stars i:nth-child(8)  { width: 2px;   height: 2px;   top: 30%; left: 35%; animation-delay: 1.3s,  1.7s;  --star-o: 0.25; --star-dx: -15px; --star-dy:  -9px; }
.home-stars i:nth-child(9)  { width: 3px;   height: 3px;   top: 18%; left: 90%; animation-delay: 0.6s,  1.0s;  --star-o: 0.35; --star-dx:  10px; --star-dy:  11px; }
.home-stars i:nth-child(10) { width: 2px;   height: 2px;   top: 48%; left: 70%; animation-delay: 0.1s,  0.3s;  --star-o: 0.3;  --star-dx: -14px; --star-dy:  -7px; }
.home-stars i:nth-child(11) { width: 4px;   height: 4px;   top: 35%; left: 18%; animation-delay: 1.0s,  1.9s;  --star-o: 0.35; --star-dx:  16px; --star-dy:   9px; }
.home-stars i:nth-child(12) { width: 2px;   height: 2px;   top: 12%; left: 52%; animation-delay: 0.4s,  0.7s;  --star-o: 0.25; --star-dx:  -9px; --star-dy:  13px; }
.home-stars i:nth-child(13) { width: 3px;   height: 3px;   top: 28%; left: 82%; animation-delay: 0.8s,  0.5s;  --star-o: 0.4;  --star-dx:  13px; --star-dy:  -6px; }
.home-stars i:nth-child(14) { width: 2px;   height: 2px;   top: 44%; left: 38%; animation-delay: 1.2s,  1.6s;  --star-o: 0.25; --star-dx: -11px; --star-dy:  10px; }
.home-stars i:nth-child(15) { width: 4px;   height: 4px;   top: 20%; left: 95%; animation-delay: 0.7s,  1.1s;  --star-o: 0.35; --star-dx:  14px; --star-dy:   8px; }
.home-stars i:nth-child(16) { width: 2px;   height: 2px;   top: 52%; left: 22%; animation-delay: 0.15s, 0.1s;  --star-o: 0.3;  --star-dx:  -7px; --star-dy:  12px; }
.home-stars i:nth-child(17) { width: 3px;   height: 3px;   top: 32%; left: 48%; animation-delay: 0.9s,  1.4s;  --star-o: 0.25; --star-dx:  17px; --star-dy:  -4px; }
.home-stars i:nth-child(18) { width: 2px;   height: 2px;   top: 16%; left: 65%; animation-delay: 0.55s, 0.9s;  --star-o: 0.35; --star-dx: -13px; --star-dy:   7px; }
.home-stars i:nth-child(19) { width: 4px;   height: 4px;   top:  2%; left: 85%; animation-delay: 0.25s, 0.35s; --star-o: 0.4;  --star-dx:  11px; --star-dy:  10px; }
.home-stars i:nth-child(20) { width: 2px;   height: 2px;   top: 40%; left: 42%; animation-delay: 1.4s,  1.8s;  --star-o: 0.25; --star-dx: -16px; --star-dy:  -8px; }
.home-stars i:nth-child(21) { width: 3px;   height: 3px;   top: 25%; left:  5%; animation-delay: 0.85s, 1.3s;  --star-o: 0.3;  --star-dx:  10px; --star-dy:  11px; }
.home-stars i:nth-child(22) { width: 2px;   height: 2px;   top: 46%; left: 73%; animation-delay: 0.35s, 0.55s; --star-o: 0.25; --star-dx: -12px; --star-dy:  -5px; }
.home-stars i:nth-child(23) { width: 4px;   height: 4px;   top: 10%; left: 15%; animation-delay: 1.1s,  1.6s;  --star-o: 0.35; --star-dx:  15px; --star-dy:   9px; }
.home-stars i:nth-child(24) { width: 2px;   height: 2px;   top: 36%; left: 58%; animation-delay: 0.5s,  0.75s; --star-o: 0.25; --star-dx:  -8px; --star-dy:  13px; }
.home-stars i:nth-child(25) { width: 3px;   height: 3px;   top: 14%; left: 32%; animation-delay: 0.05s, 0.05s; --star-o: 0.35; --star-dx:  19px; --star-dy:  -7px; }
.home-stars i:nth-child(26) { width: 2px;   height: 2px;   top: 50%; left: 40%; animation-delay: 0.6s,  0.2s;  --star-o: 0.25; --star-dx: -10px; --star-dy:  10px; }
.home-stars i:nth-child(27) { width: 4px;   height: 4px;   top:  6%; left: 72%; animation-delay: 0.8s,  1.15s; --star-o: 0.4;  --star-dx:  13px; --star-dy:   6px; }
.home-stars i:nth-child(28) { width: 2px;   height: 2px;   top: 34%; left: 10%; animation-delay: 1.0s,  0.65s; --star-o: 0.3;  --star-dx:  -9px; --star-dy:  14px; }
.home-stars i:nth-child(29) { width: 3px;   height: 3px;   top: 11%; left: 60%; animation-delay: 0.45s, 1.7s;  --star-o: 0.25; --star-dx:  16px; --star-dy:  -8px; }
.home-stars i:nth-child(30) { width: 2px;   height: 2px;   top: 39%; left: 88%; animation-delay: 0.75s, 0.4s;  --star-o: 0.35; --star-dx: -14px; --star-dy:   7px; }
.home-stars i:nth-child(31) { width: 4px;   height: 4px;   top:  4%; left: 25%; animation-delay: 0.3s,  0.95s; --star-o: 0.4;  --star-dx:  12px; --star-dy:  11px; }
.home-stars i:nth-child(32) { width: 2px;   height: 2px;   top: 33%; left: 50%; animation-delay: 1.2s,  1.85s; --star-o: 0.25; --star-dx: -15px; --star-dy:  -6px; }
.home-stars i:nth-child(33) { width: 3px;   height: 3px;   top: 19%; left: 35%; animation-delay: 0.1s,  0.15s; --star-o: 0.3;  --star-dx:  11px; --star-dy:  10px; }
.home-stars i:nth-child(34) { width: 2px;   height: 2px;   top: 45%; left: 80%; animation-delay: 0.65s, 0.85s; --star-o: 0.25; --star-dx: -13px; --star-dy:  -9px; }
.home-stars i:nth-child(35) { width: 4px;   height: 4px;   top:  7%; left: 92%; animation-delay: 0.9s,  1.4s;  --star-o: 0.35; --star-dx:  14px; --star-dy:   8px; }
.home-stars i:nth-child(36) { width: 2px;   height: 2px;   top: 41%; left: 30%; animation-delay: 0.2s,  0.45s; --star-o: 0.25; --star-dx:  -7px; --star-dy:  12px; }
.home-stars i:nth-child(37) { width: 3px;   height: 3px;   top: 13%; left: 68%; animation-delay: 0.55s, 1.25s; --star-o: 0.35; --star-dx:  18px; --star-dy:  -5px; }
.home-stars i:nth-child(38) { width: 2px;   height: 2px;   top: 29%; left:  3%; animation-delay: 0.7s,  0.3s;  --star-o: 0.3;  --star-dx: -11px; --star-dy:  10px; }
.home-stars i:nth-child(39) { width: 4px;   height: 4px;   top:  2%; left: 48%; animation-delay: 1.0s,  1.55s; --star-o: 0.4;  --star-dx:  10px; --star-dy:  13px; }
.home-stars i:nth-child(40) { width: 2px;   height: 2px;   top: 27%; left: 75%; animation-delay: 0.4s,  0.9s;  --star-o: 0.25; --star-dx: -16px; --star-dy:  -7px; }
.home-stars i:nth-child(41) { width: 3px;   height: 3px;   top:  9%; left: 20%; animation-delay: 0.85s, 0.5s;  --star-o: 0.35; --star-dx:  15px; --star-dy:   9px; }
.home-stars i:nth-child(42) { width: 2px;   height: 2px;   top: 37%; left: 55%; animation-delay: 1.3s,  1.75s; --star-o: 0.25; --star-dx: -12px; --star-dy:  -4px; }
.home-stars i:nth-child(43) { width: 4px;   height: 4px;   top: 16%; left: 85%; animation-delay: 0.15s, 0.7s;  --star-o: 0.35; --star-dx:  13px; --star-dy:  11px; }
.home-stars i:nth-child(44) { width: 2px;   height: 2px;   top: 24%; left: 42%; animation-delay: 0.5s,  0.6s;  --star-o: 0.3;  --star-dx:  -9px; --star-dy:  14px; }
.home-stars i:nth-child(45) { width: 3px;   height: 3px;   top:  1%; left: 65%; animation-delay: 0.8s,  1.1s;  --star-o: 0.35; --star-dx:  17px; --star-dy:  -6px; }
.home-stars i:nth-child(46) { width: 2px;   height: 2px;   top: 47%; left: 50%; animation-delay: 0.25s, 0.25s; --star-o: 0.25; --star-dx: -10px; --star-dy:  10px; }
.home-stars i:nth-child(47) { width: 4px;   height: 4px;   top:  8%; left: 30%; animation-delay: 0.95s, 1.35s; --star-o: 0.4;  --star-dx:  14px; --star-dy:   8px; }
.home-stars i:nth-child(48) { width: 2px;   height: 2px;   top: 31%; left: 88%; animation-delay: 0.35s, 0.7s;  --star-o: 0.3;  --star-dx: -15px; --star-dy:  -5px; }
.home-stars i:nth-child(49) { width: 3px;   height: 3px;   top:  5%; left: 62%; animation-delay: 0.6s,  1.6s;  --star-o: 0.35; --star-dx:  11px; --star-dy:  12px; }
.home-stars i:nth-child(50) { width: 2px;   height: 2px;   top: 43%; left: 15%; animation-delay: 1.1s,  0.4s;  --star-o: 0.25; --star-dx:  -8px; --star-dy:  -9px; }
.home-stars i:nth-child(51) { width: 4px;   height: 4px;   top: 17%; left: 78%; animation-delay: 0.7s,  1.0s;  --star-o: 0.4;  --star-dx:  16px; --star-dy:   7px; }
.home-stars i:nth-child(52) { width: 2px;   height: 2px;   top: 26%; left: 35%; animation-delay: 0.3s,  0.55s; --star-o: 0.3;  --star-dx: -13px; --star-dy:  11px; }
.home-stars i:nth-child(53) { width: 3px;   height: 3px;   top: 11%; left: 95%; animation-delay: 0.5s,  1.8s;  --star-o: 0.35; --star-dx:  12px; --star-dy:  -8px; }
.home-stars i:nth-child(54) { width: 2px;   height: 2px;   top: 35%; left: 22%; animation-delay: 0.1s,  0.15s; --star-o: 0.25; --star-dx: -10px; --star-dy:  13px; }
.home-stars i:nth-child(55) { width: 4px;   height: 4px;   top:  6%; left: 52%; animation-delay: 0.8s,  1.3s;  --star-o: 0.4;  --star-dx:  15px; --star-dy:   6px; }
.home-stars i:nth-child(56) { width: 2px;   height: 2px;   top: 49%; left: 42%; animation-delay: 1.0s,  0.8s;  --star-o: 0.3;  --star-dx: -14px; --star-dy: -10px; }
.home-stars i:nth-child(57) { width: 3px;   height: 3px;   top: 21%; left: 70%; animation-delay: 0.2s,  0.35s; --star-o: 0.35; --star-dx:  10px; --star-dy:  11px; }
.home-stars i:nth-child(58) { width: 2px;   height: 2px;   top: 55%; left: 58%; animation-delay: 0.9s,  1.5s;  --star-o: 0.25; --star-dx: -11px; --star-dy:  -7px; }
.home-stars i:nth-child(59) { width: 4px;   height: 4px;   top: 10%; left:  8%; animation-delay: 0.45s, 0.9s;  --star-o: 0.4;  --star-dx:  13px; --star-dy:   9px; }
.home-stars i:nth-child(60) { width: 2px;   height: 2px;   top: 23%; left: 75%; animation-delay: 0.75s, 1.15s; --star-o: 0.3;  --star-dx: -16px; --star-dy:  10px; }
.home-stars i:nth-child(61) { width: 3px;   height: 3px;   top:  4%; left: 38%; animation-delay: 0.15s, 0.45s; --star-o: 0.35; --star-dx:  18px; --star-dy:  -4px; }
.home-stars i:nth-child(62) { width: 2px;   height: 2px;   top: 40%; left: 65%; animation-delay: 1.2s,  1.7s;  --star-o: 0.25; --star-dx:  -9px; --star-dy:  12px; }
.home-stars i:nth-child(63) { width: 4px;   height: 4px;   top: 14%; left: 48%; animation-delay: 0.55s, 0.6s;  --star-o: 0.4;  --star-dx:  12px; --star-dy:   8px; }
.home-stars i:nth-child(64) { width: 2px;   height: 2px;   top: 53%; left: 90%; animation-delay: 0.65s, 1.0s;  --star-o: 0.3;  --star-dx: -14px; --star-dy:  -6px; }
.home-stars i:nth-child(65) { width: 3px;   height: 3px;   top: 30%; left: 32%; animation-delay: 0.05s, 0.2s;  --star-o: 0.35; --star-dx:  16px; --star-dy:  11px; }
.home-stars i:nth-child(66) { width: 2px;   height: 2px;   top: 19%; left: 56%; animation-delay: 0.4s,  1.4s;  --star-o: 0.3;  --star-dx: -12px; --star-dy:   9px; }
.home-stars i:nth-child(67) { width: 4px;   height: 4px;   top:  3%; left: 82%; animation-delay: 0.85s, 0.8s;  --star-o: 0.4;  --star-dx:  14px; --star-dy:  -5px; }
.home-stars i:nth-child(68) { width: 2px;   height: 2px;   top: 44%; left: 12%; animation-delay: 1.0s,  0.5s;  --star-o: 0.25; --star-dx:  -8px; --star-dy:  13px; }
.home-stars i:nth-child(69) { width: 3px;   height: 3px;   top: 27%; left: 92%; animation-delay: 0.3s,  1.6s;  --star-o: 0.35; --star-dx:  15px; --star-dy:   7px; }
.home-stars i:nth-child(70) { width: 2px;   height: 2px;   top: 51%; left: 28%; animation-delay: 0.7s,  0.3s;  --star-o: 0.25; --star-dx: -11px; --star-dy: -10px; }
.home-stars i:nth-child(71) { width: 4px;   height: 4px;   top:  7%; left: 45%; animation-delay: 0.5s,  1.1s;  --star-o: 0.4;  --star-dx:  13px; --star-dy:  10px; }
.home-stars i:nth-child(72) { width: 2px;   height: 2px;   top: 36%; left: 78%; animation-delay: 1.1s,  0.7s;  --star-o: 0.3;  --star-dx: -15px; --star-dy:   6px; }
.home-stars i:nth-child(73) { width: 3px;   height: 3px;   top: 15%; left:  5%; animation-delay: 0.2s,  1.3s;  --star-o: 0.35; --star-dx:  10px; --star-dy: -11px; }
.home-stars i:nth-child(74) { width: 2px;   height: 2px;   top: 48%; left: 55%; animation-delay: 0.6s,  0.9s;  --star-o: 0.25; --star-dx:  -9px; --star-dy:   8px; }
.home-stars i:nth-child(75) { width: 4px;   height: 4px;   top:  1%; left: 35%; animation-delay: 0.9s,  1.5s;  --star-o: 0.4;  --star-dx:  17px; --star-dy:  -7px; }
.home-stars i:nth-child(76) { width: 2px;   height: 2px;   top: 33%; left: 68%; animation-delay: 0.15s, 0.4s;  --star-o: 0.3;  --star-dx: -13px; --star-dy:  12px; }
.home-stars i:nth-child(77) { width: 3px;   height: 3px;   top: 22%; left: 18%; animation-delay: 0.75s, 1.0s;  --star-o: 0.35; --star-dx:  11px; --star-dy:  -9px; }
.home-stars i:nth-child(78) { width: 2px;   height: 2px;   top: 54%; left: 42%; animation-delay: 0.45s, 0.6s;  --star-o: 0.25; --star-dx: -14px; --star-dy:   5px; }
.home-stars i:nth-child(79) { width: 4px;   height: 4px;   top:  9%; left: 88%; animation-delay: 1.0s,  1.7s;  --star-o: 0.4;  --star-dx:  12px; --star-dy:  11px; }
.home-stars i:nth-child(80) { width: 2px;   height: 2px;   top: 41%; left:  3%; animation-delay: 0.35s, 0.2s;  --star-o: 0.3;  --star-dx: -10px; --star-dy:  -8px; }
.home-stars i:nth-child(81) { width: 3px;   height: 3px;   top: 12%; left: 50%; animation-delay: 0.55s, 1.2s;  --star-o: 0.35; --star-dx:  16px; --star-dy:   6px; }
.home-stars i:nth-child(82) { width: 2px;   height: 2px;   top: 38%; left: 32%; animation-delay: 0.8s,  0.85s; --star-o: 0.25; --star-dx: -12px; --star-dy:  10px; }
.home-stars i:nth-child(83) { width: 4px;   height: 4px;   top:  4%; left: 70%; animation-delay: 0.25s, 1.4s;  --star-o: 0.4;  --star-dx:  14px; --star-dy:  -6px; }
.home-stars i:nth-child(84) { width: 2px;   height: 2px;   top: 46%; left: 85%; animation-delay: 0.65s, 0.5s;  --star-o: 0.3;  --star-dx: -15px; --star-dy:   9px; }
.home-stars i:nth-child(85) { width: 3px;   height: 3px;   top: 18%; left: 15%; animation-delay: 0.1s,  1.1s;  --star-o: 0.35; --star-dx:  10px; --star-dy:  13px; }
.home-stars i:nth-child(86) { width: 2px;   height: 2px;   top: 52%; left: 62%; animation-delay: 0.9s,  0.7s;  --star-o: 0.25; --star-dx: -11px; --star-dy:  -4px; }
.home-stars i:nth-child(87) { width: 4px;   height: 4px;   top:  6%; left: 25%; animation-delay: 0.4s,  1.6s;  --star-o: 0.4;  --star-dx:  15px; --star-dy:   8px; }
.home-stars i:nth-child(88) { width: 2px;   height: 2px;   top: 29%; left: 58%; animation-delay: 0.7s,  0.3s;  --star-o: 0.3;  --star-dx: -13px; --star-dy:  11px; }
.home-stars i:nth-child(89) { width: 3px;   height: 3px;   top: 42%; left: 48%; animation-delay: 0.15s, 0.9s;  --star-o: 0.35; --star-dx:  12px; --star-dy:  -7px; }
.home-stars i:nth-child(90) { width: 2px;   height: 2px;   top: 16%; left: 40%; animation-delay: 1.0s,  1.3s;  --star-o: 0.25; --star-dx: -16px; --star-dy:   5px; }
.home-stars i:nth-child(91) { width: 4px;   height: 4px;   top:  2%; left: 60%; animation-delay: 0.5s,  0.6s;  --star-o: 0.4;  --star-dx:  11px; --star-dy:  10px; }
.home-stars i:nth-child(92) { width: 2px;   height: 2px;   top: 34%; left: 90%; animation-delay: 0.85s, 1.5s;  --star-o: 0.3;  --star-dx: -14px; --star-dy:  -9px; }
.home-stars i:nth-child(93) { width: 3px;   height: 3px;   top: 24%; left: 22%; animation-delay: 0.3s,  0.1s;  --star-o: 0.35; --star-dx:  13px; --star-dy:   7px; }
.home-stars i:nth-child(94) { width: 2px;   height: 2px;   top: 47%; left: 72%; animation-delay: 0.6s,  1.0s;  --star-o: 0.25; --star-dx: -10px; --star-dy:  12px; }
.home-stars i:nth-child(95) { width: 4px;   height: 4px;   top:  8%; left: 10%; animation-delay: 0.95s, 0.75s; --star-o: 0.4;  --star-dx:  16px; --star-dy:  -5px; }
.home-stars i:nth-child(96) { width: 2px;   height: 2px;   top: 39%; left: 55%; animation-delay: 0.2s,  1.8s;  --star-o: 0.3;  --star-dx: -12px; --star-dy:   8px; }
.home-stars i:nth-child(97) { width: 3px;   height: 3px;   top: 13%; left: 82%; animation-delay: 0.7s,  0.4s;  --star-o: 0.35; --star-dx:  14px; --star-dy:  11px; }
.home-stars i:nth-child(98) { width: 2px;   height: 2px;   top: 50%; left: 35%; animation-delay: 0.45s, 1.2s;  --star-o: 0.25; --star-dx:  -9px; --star-dy:  -6px; }
.home-stars i:nth-child(99) { width: 4px;   height: 4px;   top:  5%; left: 48%; animation-delay: 0.8s,  0.55s; --star-o: 0.4;  --star-dx:  15px; --star-dy:   9px; }
.home-stars i:nth-child(100){ width: 2px;   height: 2px;   top: 45%; left: 18%; animation-delay: 0.1s,  1.65s; --star-o: 0.3;  --star-dx: -11px; --star-dy:  10px; }

/* Twinkle — fast, continuous opacity oscillation */
@keyframes twinkle {
    0%, 100% { opacity: var(--star-o, 0.2); }
    50%      { opacity: calc(var(--star-o, 0.2) + 0.25); }
}

/* Drift — slow positional movement */
@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(var(--star-dx, 10px), var(--star-dy, 8px)); }
}

/* ── Ocean waves ── */
.home-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    pointer-events: none;
    z-index: 0;
}

.home-waves svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave {
    fill: none;
    stroke: var(--main-color);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wave-1 {
    stroke-width: 1.2;
    opacity: 0.06;
    animation: waveScroll 20s linear infinite;
}

.wave-2 {
    stroke-width: 1.8;
    opacity: 0.09;
    animation: waveScroll 14s linear infinite reverse;
}

.wave-3 {
    stroke-width: 2.5;
    opacity: 0.13;
    animation: waveScroll 10s linear infinite;
}

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause when section not visible */
.home-waves.paused .wave,
.home-stars.paused i {
    animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wave,
    .home-stars i {
        animation: none !important;
    }
    .home-stars i {
        opacity: 0.25 !important;
    }
}

.home-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: var(--main-color);
}

.logo span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-img {
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.home-img img {
    position: relative;
    top: 3rem;
    width: 22vw;
    height: auto;
    border-radius: 15%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

/* Removed duplicate .slider-controls .btn styles */

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Software Engineer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

/* Education Section */
.education {
    padding: 10rem 8%;
    background: var(--second-color);
}

.education h2 {
    margin-bottom: 6rem;
}

/* Timeline Container */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

/* Timeline Line */
.timeline::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-color), rgba(0, 255, 238, 0.3));
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Dot */
.timeline-dot {
    height: 18px;
    width: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    top: 25px;
    background-color: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    z-index: 2;
    border: 3px solid var(--second-color);
}

.dot-active {
    height: 22px;
    width: 22px;
    left: calc(50% - 1px);
    box-shadow: 0 0 20px var(--main-color), 0 0 40px var(--main-color);
}

.dot-progress {
    background-color: #ce93d8;
    box-shadow: 0 0 15px #ce93d8;
}

/* Timeline Data (Date) */
.timeline-data {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 1px;
}

/* Timeline Content Card */
.timeline-content {
    background-color: var(--bg-color);
    border: 2px solid rgba(0, 255, 238, 0.3);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.1);
    transition: 0.3s ease-in-out;
    width: calc(50% - 40px);
    position: relative;
}

.timeline-content:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 25px rgba(0, 255, 238, 0.2);
    transform: translateY(-3px);
}

.content-highlight {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 255, 238, 0.2);
}

/* Alternating Layout */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: calc(50% + 40px);
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 40px);
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-data {
    text-align: right;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-data {
    text-align: left;
    padding-left: calc(50% + 40px);
}

/* Timeline Badge */
.timeline-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.badge-education {
    background: rgba(0, 255, 238, 0.15);
    color: var(--main-color);
    border: 1px solid rgba(0, 255, 238, 0.3);
}

.badge-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-progress {
    background: rgba(206, 147, 216, 0.15);
    color: #ce93d8;
    border: 1px solid rgba(206, 147, 216, 0.3);
}

/* Timeline Content Typography */
.timeline-content h3 {
    font-size: 2rem;
    color: white;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.timeline-org {
    color: var(--main-color);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}



/* Responsive Design */
@media (max-width: 991px) {
    .education {
        padding: 8rem 5%;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot,
    .dot-active,
    .dot-progress {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        width: calc(100% - 50px);
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-data,
    .timeline-item:nth-child(even) .timeline-data {
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .education {
        padding: 6rem 4%;
    }

    .education h2 {
        margin-bottom: 4rem;
    }

    .timeline-item {
        margin-bottom: 3rem;
    }

    .timeline-content {
        padding: 2rem;
    }

    .timeline-content h3 {
        font-size: 1.8rem;
    }

    .timeline-org {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 1.3rem;
    }

}

@media (max-width: 480px) {
    .education {
        padding: 5rem 3%;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-badge {
        font-size: 1rem;
        padding: 0.3rem 1rem;
    }

    .timeline-content h3 {
        font-size: 1.6rem;
    }

}

/* Skills Section */
.skills {
    background: var(--bg-color);
    padding: 10rem 8% 10rem;
}

.skills .heading {
    text-align: center;
    margin-bottom: 6rem;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

/* Skills Category */
.skills-category {
    background: var(--second-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(0, 255, 238, 0.15);
    transition: 0.3s ease;
}

.skills-category:hover {
    border-color: rgba(0, 255, 238, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 238, 0.1);
}

.category-title {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.category-title i {
    font-size: 2.4rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Skill Card */
.skill-card {
    background: var(--bg-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    border-color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 238, 0.15);
}

.skill-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 255, 238, 0.1);
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 2.2rem;
    color: var(--main-color);
}

.skill-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skill-name {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.skill-level {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.level-advanced {
    color: #00e5ff;
}

.level-strong {
    color: #4caf50;
}

.level-intermediate {
    color: #ffb74d;
}

.level-learning {
    color: #ce93d8;
}

/* Professional Cards - No Level Badge */
.professional-card .skill-info {
    gap: 0;
}

.professional-card .skill-name {
    font-size: 1.4rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skills {
        padding: 8rem 6% 8rem;
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 6rem 4% 6rem;
    }

    .skills .heading {
        margin-bottom: 4rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .category-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .skills {
        padding: 5rem 4% 5rem;
    }

    .skills-category {
        padding: 1.5rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    .skill-icon i {
        font-size: 2rem;
    }
}

.certificates {
    background: var(--second-color);
    position: relative;
    padding: 100px 0;
    /* Standard padding */
}

.certificates .heading {
    margin-bottom: 50px;
    text-align: center;
}

.certificates .certificates-item {
    position: relative;
    border-radius: 0;
    box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);
    /* Restored subtle shadow per user request */
    overflow: hidden;
    height: 220px;
    /* Fixed height for consistent 2-row grid */
    cursor: pointer;
    transition: transform 200ms ease-out;
    /* Faster return speed */
}

.certificates .certificates-item:hover {
    transform: rotateZ(-13deg);
    transition: transform 400ms ease-out;
    /* Slower entry speed */
}

.certificates-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease-out;
}

.certificates-image:hover {
    transform: scale(1.2);
    transition: transform 400ms ease-out;
    /* Slower entry speed */
}


/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Modal Close Button */
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 255, 238, 0.2);
    border-color: var(--main-color);
    color: var(--main-color);
    box-shadow: 0 0 12px rgba(0, 255, 238, 0.3);
}

/* Scroll Locking */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

.modal {
    touch-action: none;
}

body.modal-open .slider-controls {
    display: none !important;
}

.modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
}

/* Modal Navigation Buttons */
.modal-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    user-select: none;
}

.modal-nav:hover {
    background: rgba(0, 255, 238, 0.2);
    border-color: var(--main-color);
    color: var(--main-color);
    box-shadow: 0 0 12px rgba(0, 255, 238, 0.3);
}

.modal-nav:active {
    transform: scale(0.92);
}

/* Desktop: Lateral Arrows */
@media (min-width: 1025px) {
    .modal-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .modal-content {
        max-width: 65vw;
        max-height: 80vh;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .modal-nav {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .modal-content {
        max-width: 60vw;
        max-height: 75vh;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .modal-nav {
        display: none;
    }

    .modal-content {
        max-width: 90vw;
        max-height: 80vh;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 94vw;
        max-height: 82vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

#caption {
    display: none;
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
    padding: 5rem 0;
}

.projects h2 {
    margin-bottom: 5rem;
    color: white;
    text-align: center;
}

/* Slider styles moved to the end of the file */


.projects .projects-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--main-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.projects .projects-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2rem 2rem 0 0;
    transition: 0.5s ease;
}

.projects .projects-box:hover img {
    transform: scale(1.1);
}

.projects .hover-items {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 2rem;
    transform: translateY(100%);
    transition: 0.5s ease;
    color: white;
}

.projects .projects-box:hover .hover-items {
    transform: translateY(0);
}

.projects .hover-items h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.projects .hover-items .icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.projects .hover-items a,
.projects .hover-items i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
}

.projects .hover-items a i,
.projects .hover-items i {
    font-size: 2.2rem;
    color: var(--second-color);
}

/* Slider Controls Positioning */


/* Responsive adjustments */


@media (max-width: 768px) {


    .projects .hover-items h3 {
        font-size: 2rem;
    }

    .projects .hover-items a,
    .projects .hover-items i {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
    }
}


/* Popup styles */
.video-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.popup-content {
    position: relative;
    width: 80vw;
    max-width: 900px;
    height: 460px;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease, max-width 0.3s ease, max-height 0.3s ease;
}

.popup-content.zoomed {
    width: 95vw;
    max-width: none;
    height: 90vh;
    max-height: none;
}

.popup-content iframe {
    width: 100%;
    height: 100%;
}

.close-vid {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0;
    line-height: 1;
}

.close-vid:hover,
.close-vid:focus {
    background: rgba(0, 255, 238, 0.2);
    border-color: var(--main-color);
    color: var(--main-color);
    box-shadow: 0 0 12px rgba(0, 255, 238, 0.3);
}

.services {
    background: var(--second-color);
    color: black;
    padding: 5rem 0;
}

.services h2 {
    margin-bottom: 5rem;
    color: white;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 3rem;
    padding: 0 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-box {
    min-height: 300px;
    border-radius: 3rem;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    transition: 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    cursor: pointer;
    padding: 30px;
    height: 100%;
    box-shadow: 0 0 15px rgba(0, 255, 238, 0.2);
}

.service-box:hover {
    border: 2px solid var(--main-color);
    transform: scale(1.03);
    box-shadow: 0 0 30px var(--main-color);
}

.service-box .service-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px;
    margin: 0;
    width: 100%;
}

.service-info h4 {
    color: var(--main-color);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.service-info p {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    margin: 0;
    max-height: none;
    overflow: visible;
}

.articales {
    background: var(--bg-color);
    min-height: 100vh;
    padding: 80px 80px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--second-color);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--main-color);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
}

.search-box input::placeholder {
    color: #888;
}

.search-box i {
    color: var(--main-color);
    font-size: 20px;
}

.articales .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;

}

.row .item {
    display: none;
}

.row .item:nth-child(1),
.row .item:nth-child(2),
.row .item:nth-child(3) {
    display: inline-block;
}

.item-inner img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    /* Removed radius */
}

.articales .articale-items .item-inner {
    display: flex;
    flex-direction: column;
    background: var(--second-color);
    padding: 10px;
    border-radius: 0;
    /* Removed radius per user request */
    transition: 0.4s ease-in-out;
}

.articales .articale-items .item-inner:hover {
    box-shadow: none;
    /* Removed shadow per user request */
}

.articales .articale-items .read-more-cont {
    display: none;
}

.articales .articale-items .item-inner h3 {
    font-size: 20px;
    color: var(--main-color);
    position: relative;
    padding: 15px;
}

.articales .articale-items .item-inner p {
    margin: 0.625rem 0 0;
    line-height: 1.5;
    color: var(--color-p);
    text-align: right;
    direction: rtl;
    padding: 20px;
    padding-bottom: 0;
    font-size: 14px;
    height: 120px;
    overflow: hidden;
}

.articales .articale-items .item-inner .btn {
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    align-self: center;
    margin: 20px;
}

.popup-box {
    position: fixed;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 500;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.popup-box.open {
    visibility: visible;
    opacity: 1;
}

.popup-box .popup-content {
    background-color: var(--bg-color);
    width: 600px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0;
    /* Removed radius per user request */
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.popup-box .popup-header {
    padding: 15px 40px 15px 15px;
    border-bottom: 1px solid #dddddd;
}

.popup-box .popup-header h3 {
    margin: 0;
    color: var(--main-color);
    font-size: 20px;
}

.popup-box .popup-header .popup-close-icon {
    position: absolute;
    height: 30px;
    width: 30px;
    text-align: center;
    color: #555555;
    font-size: 28px;
    line-height: 30px;
    right: 5px;
    top: 5px;
    cursor: pointer;
}

.popup-box .popup-body {
    padding: 15px;
    max-height: 329px;
    overflow-y: auto;
}

.popup-box .popup-body img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
}

.popup-box .popup-body p {
    font-size: 18px;
    color: white;
    margin: 0 0 15px;
    line-height: 2;
    text-align: right;
    direction: rtl;
}

.popup-box .popup-body p a {
    color: var(--main-color);
}

.popup-box .popup-body span {
    text-align: left;
    direction: ltr;
    font-size: 18px;
}

.popup-box .popup-footer {
    padding: 15px 40px 8px;
    background-color: var(--bg-color);
    border-top: 1px solid #dddddd;
    text-align: right;
}

.popup-box .popup-footer .btn:focus {
    outline: none;
}

#load-more {
    padding: 18px 38px;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}





















.contact {
    background-color: var(--second-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: white;
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--second-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 2.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}

@media (max-width:1285px) {
    html {
        font-size: 55%;
    }

    .services-container {
        padding: 0 2rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }


}

@media (max-width:1098px) {
    .articales .articale-items .item-inner h3 {
        font-size: 17px;
    }
}

@media (max-width:991px) {
    .menu-toggle {
        display: flex;
    }

    /* Mobile slide-in panel */
    .navbar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(85vw, 380px);
        height: 100vh;
        height: 100dvh;
        padding: 90px 1.5rem 2rem;
        background: rgba(12, 12, 14, 0.98);
        border-left: 1px solid rgba(0, 255, 238, 0.12);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        pointer-events: auto;
    }

    .navbar.active {
        display: flex;
        transform: translateX(0);
    }

    .navbar a {
        display: block;
        font-size: 1.65rem;
        padding: 0.9rem 1.2rem;
        margin: 0.15rem 0;
        color: rgba(255, 255, 255, 0.7);
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 0 8px 8px 0;
        transition: 0.25s ease;
        font-weight: 500;
    }

    .navbar a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
        border-left-color: rgba(0, 255, 238, 0.4);
    }

    .navbar a.active {
        color: var(--main-color);
        border-left-color: var(--main-color);
        border-bottom: none;
        background: none;
    }

    /* Header stays above navbar */
    .header {
        z-index: 300;
    }

    .menu-toggle {
        z-index: 301;
    }

    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services {
        padding-bottom: 7rem;
    }

    .services-container {
        grid-template-columns: repeat(1, 1fr);
        padding: 0 1rem;
    }

    .service-box {
        padding: 15px;
    }

    .service-info h4 {
        font-size: 2.6rem;
    }

    section .projects {
        padding: 10rem 11% 2rem;
    }

    .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .articales .articale-items .item-inner h3 {
        font-size: 20px;
    }

    .contact form {
        flex-direction: column;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width:895px) {
    .home {
        flex-direction: column-reverse;
        margin: 5rem 4rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 8rem;
        margin-top: 3rem;
    }

    .home-content p {
        max-width: 600px;
    }

    .home-img img {
        width: 40vw;
    }

    .modal-content {
        padding-top: 0;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .articales {
        padding: 80px 60px;
    }

    .footer .social a {
        margin-left: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 6rem;
        text-align: center;
        margin: 5rem 0;
    }

    .services-container {
        padding: 0 1rem;
    }

    .service-info h4 {
        font-size: 1.6rem;
    }



    .popup-content {
        width: 90vw;
        max-width: 90vw;
        max-height: 60vh;
    }

    .close-vid {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 14px;
        right: 14px;
    }

    .row {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 2.5rem;
    }

    .popup-box .popup-content {
        width: calc(100% - 60px);
    }
}

@media (max-width: 480px) {
    .social-icons a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 2rem;
    }

    .service-info h4 {
        font-size: 1.6rem;
    }

    .articales {
        padding: 80px 20px;
    }

    .popup-content {
        width: 95vw;
        max-height: 50vh;
    }

    .close-vid {
        width: 34px;
        height: 34px;
        font-size: 18px;
        top: 12px;
        right: 12px;
    }


}



@media (max-width:480px) {
    .popup-box .popup-body {
        max-height: 325px;
    }

    .popup-content {
        height: 485px;
    }
}








@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words {
    0%, 20% { 
        content: "IT Engineer"; 
    } 21%, 40% {
        content: "Web Designer"; 
    } 41%, 60% { 
        content: "Frontend Designer"; 
    } 61%, 80% { 
        content: "Problem Solver In C++"; 
    } 81%, 100% { 
        content: "Software Engineer"; 
    } 
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

@keyframes glow {
    0% {
        background: var(--bg-color);
    }

    100% {
        background-color: var(--main-color);
        box-shadow: 0 0 10px var(--main-color);
    }
}

/* =========================================
   Project Slider Critical CSS
   ========================================= */

.slider-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 100px;
    /* Uniform padding for controls */
    overflow: hidden;
}

/* Flex container for the slider track */
.project-slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y;
    /* Enable smoother horizontal swipe while allowing vertical scroll */
}

/* Individual Slide Logic */
.project-slide {
    min-width: 100%;
    flex: 0 0 100%;
    /* Ensure each slide takes full width */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Desktop: 3 Columns */
    gap: 5.3rem;
    /* Increased as per user request */
    padding: 1.5rem;
    justify-content: center;
    align-content: start;
}

/* Responsive Grid for Slides */
@media (max-width: 1024px) {
    .project-slide {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 Columns */
    }
}

@media (max-width: 768px) {
    .project-slide {
        grid-template-columns: 1fr;
        /* Mobile: 1 Column */
        padding: 0 20px;
        /* Standard mobile padding */
    }
}

/* Ensure images and boxes fit well */
.project-slide .projects-box {
    width: 100%;
}

/* Slider Controls Positioning (Bottom Center) */
.slider-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    pointer-events: auto;
    z-index: 4;
    margin-bottom: 20px;
}

/* Slider Buttons Styling (Bright & Visible) */
.slider-controls .btn {
    pointer-events: auto;
    background: var(--main-color);
    color: var(--bg-color);
    border: none;
    font-size: 2.5rem;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    /* Reduced from 60px */
    height: 50px;
    /* Reduced from 60px */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    box-shadow: 0 0 15px var(--main-color);
    z-index: 100;
}

.slider-controls .btn:hover {
    background: #fff;
    color: var(--main-color);
    transform: scale(1.1);
    box-shadow: 0 0 25px #fff;
}

.slider-controls .btn i {
    font-size: 3rem;
    /* Reduced from 4rem */
}

/* ── Preloader ── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0c0c0e;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: clamp(100px, 20vw, 180px);
    height: clamp(100px, 20vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    -webkit-mask-image: conic-gradient(
        black 0deg,
        black var(--sweep, 0deg),
        transparent var(--sweep, 0deg),
        transparent 360deg
    );
    mask-image: conic-gradient(
        black 0deg,
        black var(--sweep, 0deg),
        transparent var(--sweep, 0deg),
        transparent 360deg
    );
    animation: circularRevealHide 4s linear;
    filter: drop-shadow(0 0 12px rgba(0, 255, 238, 0.25));
}

.preloader-scroll-lock {
    overflow: hidden;
}

@keyframes circularRevealHide {
    0%    { --sweep: 0deg;   }
    50%   { --sweep: 360deg; }
    100%  { --sweep: 0deg;   }
}

@property --sweep {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-logo {
        animation: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
}