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

:root {
    --primary: #7ef9c6;
    --primary-dark: #3adca0;
    --secondary: #7ab8ff;
    --secondary-strong: #5ad6ff;
    --accent: #ba8eff;
    --accent-2: #6ef8ff;
    --dark-bg: #040d16;
    --dark-alt: #0d1b2c;
    --dark-soft: #0f1d2d;
    --card-bg: rgba(12, 22, 33, 0.88);
    --text-primary: #ebf7ff;
    --text-secondary: #acc1d1;
    --muted: #7b8ea7;
    --border-color: rgba(126, 249, 198, 0.22);
    --neon-glow: 0 0 10px rgba(126, 249, 198, 0.7), 0 0 24px rgba(109, 216, 255, 0.35);
    --panel-shadow: 0 20px 60px rgba(1, 5, 11, 0.58);
    --surface-glass: rgba(15, 29, 45, 0.72);
    --elite-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background:
        radial-gradient(circle at top left, rgba(126, 249, 198, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(90, 214, 255, 0.10), transparent 22%),
        radial-gradient(circle at bottom left, rgba(186, 142, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #040b12 0%, #07151f 30%, #040b12 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    will-change: scroll-position;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    -webkit-filter: blur(110px);
    -moz-filter: blur(110px);
    filter: blur(110px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.22;
    animation: orbFloat 18s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
}

body::before {
    top: -12rem;
    left: -8rem;
    background: rgba(126, 249, 198, 0.9);
}

body::after {
    bottom: -14rem;
    right: -8rem;
    background: rgba(90, 214, 255, 0.8);
    animation-delay: 3s;
}

@keyframes orbFloat {
    0% { transform: translate3d(0, 0, 0) scale(0.96); }
    100% { transform: translate3d(30px, 40px, 0) scale(1.08); }
}

#mesh-canvas-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    opacity: 0.72;
}

#meshCanvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: blur(0.2px);
}

.animated-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(126, 249, 198, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(126, 249, 198, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black 25%, transparent 88%);
    animation: gridMove 26s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 52px 52px; }
}

.bg-stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: rgba(126, 249, 198, 0.9);
    box-shadow: 0 0 12px rgba(126, 249, 198, 0.8);
    animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.4); }
}

.plasma-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(126, 249, 198, 0.12) 0%, transparent 28%),
        radial-gradient(ellipse at 75% 70%, rgba(90, 214, 255, 0.14) 0%, transparent 34%),
        radial-gradient(ellipse at 50% 50%, rgba(186, 142, 255, 0.08) 0%, transparent 32%);
    animation: plasmaFlow 20s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes plasmaFlow {
    0% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.8; }
    50% { transform: scale(1.12) translate3d(18px, -12px, 0); opacity: 1; }
    100% { transform: scale(1.05) translate3d(-16px, 18px, 0); opacity: 0.9; }
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ===== NAVBAR ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    position: sticky;
    top: 0;
    background: rgba(6, 16, 24, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(126, 249, 198, 0.12);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transform: translateZ(0);
    will-change: transform;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: var(--neon-glow);
    letter-spacing: 4px;
    animation: logoGlow 2.8s ease-in-out infinite;
    will-change: text-shadow;
    transform: translateZ(0);
}
.logo a.text-logo{
    font-size: 1.125rem;
}
@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 8px rgba(126, 249, 198, 0.7), 0 0 18px rgba(126, 249, 198, 0.3); }
    50% { text-shadow: 0 0 20px rgba(126, 249, 198, 0.9), 0 0 40px rgba(126, 249, 198, 0.55), 0 0 60px rgba(109, 216, 255, 0.25); }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 34px;
    align-items: center;
    will-change: transform;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    font-size: 0.86rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
    opacity: 0.84;
    transform: translateZ(0);
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-2), var(--accent));
    transition: width 0.35s ease;
    box-shadow: var(--neon-glow);
    will-change: width;
    transform: translateZ(0);
}

nav a:hover,
nav a.active {
    color: var(--primary);
    text-shadow: 0 0 12px rgba(126, 249, 198, 0.5);
    opacity: 1;
}

nav a:hover::before,
nav a.active::before {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -17%;
    right: -5%;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(126, 249, 198, 0.18) 0%, rgba(126, 249, 198, 0.05) 22%, transparent 72%);
    animation: floatRight 18s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -18%;
    left: -10%;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(90, 214, 255, 0.16) 0%, rgba(90, 214, 255, 0.05) 22%, transparent 72%);
    animation: floatLeft 22s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatRight {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-30px, 32px, 0) scale(1.07); }
}

@keyframes floatLeft {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(30px, -30px, 0) scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: min(1120px, 100%);
    padding: 58px 30px 18px;
    border: 1px solid rgba(126, 249, 198, 0.18);
    background: linear-gradient(180deg, rgba(8, 19, 27, 0.86), rgba(10, 18, 28, 0.6));
    box-shadow: var(--elite-shadow);
    border-radius: 30px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(126, 249, 198, 0.10) 35%, rgba(90, 214, 255, 0.08) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: sheen 9s ease-in-out infinite;
}

@keyframes sheen {
    0% { transform: translateX(-130%); }
    40%, 100% { transform: translateX(130%); }
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    animation: fadeInDown 1s ease-out;
    text-shadow: 0 0 12px rgba(126, 249, 198, 0.5);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 900;
    animation: fadeInUp 1s ease-out 0.1s both;
    position: relative;
    line-height: 0.9;
}

.hero h1 span {
    color: var(--primary);
    text-shadow: var(--neon-glow);
    display: inline-block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero p {
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin: 0 auto 34px;
    max-width: 760px;
    line-height: 1.85;
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: 0.8px;
}

.typing-effect {
    display: inline-block;
    color: var(--primary);
    text-shadow: 0 0 12px rgba(126, 249, 198, 0.5);
    min-height: 1.8em;
}

.typing-effect::after {
    content: '|';
    animation: blink 0.8s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.cta-buttons {
    display: flex;
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s both;
    margin-bottom: 70px;
}

.btn {
    padding: 15px 36px;
    border: 1px solid rgba(126, 249, 198, 0.9);
    background: rgba(126, 249, 198, 0.04);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.28s ease;
    font-family: 'Courier New', monospace;
    border-radius: 999px;
    box-shadow: inset 0 0 20px rgba(126, 249, 198, 0.06), 0 0 18px rgba(126, 249, 198, 0.08);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn:hover {
    color: #04140d;
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(126, 249, 198, 0.34), inset 0 0 26px rgba(126, 249, 198, 0.18);
    background: linear-gradient(135deg, var(--primary), var(--secondary-strong));
}

.btn-secondary {
    border-color: rgba(90, 214, 255, 0.9);
    color: var(--secondary-strong);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #041924;
}

.hero-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.float-card {
    position: absolute;
    background: rgba(11, 23, 33, 0.78);
    border: 1px solid rgba(126, 249, 198, 0.22);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(4, 13, 22, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 18px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(0);
    animation: floatCard 11s ease-in-out infinite;
}

.float-card-left {
    left: 7%;
    bottom: 18%;
}

.float-card-right {
    right: 7%;
    top: 20%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

.float-card .float-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.float-card strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.float-card small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 32px;
    height: 56px;
    border: 2px solid rgba(126, 249, 198, 0.7);
    border-radius: 18px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 18px rgba(126, 249, 198, 0.24);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 4px;
    animation: scroll 1.6s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(22px); }
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(126, 249, 198, 0.08);
    border-bottom: 1px solid rgba(126, 249, 198, 0.06);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.9;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-primary);
    position: relative;
    font-weight: 900;
    animation: slideInTop 0.8s ease-out;
}

h2 span {
    color: var(--primary);
    text-shadow: var(--neon-glow);
}

@keyframes slideInTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-2), transparent);
    box-shadow: 0 0 18px rgba(126, 249, 198, 0.5);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 60px;
    align-items: flex-start;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile-image-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 50px rgba(126, 249, 198, 0.3), 0 0 80px rgba(90, 214, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 0 70px rgba(126, 249, 198, 0.45), 0 0 100px rgba(90, 214, 255, 0.25);
}

.profile-image-glow {
    position: absolute;
    inset: -12px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(126, 249, 198, 0.35), rgba(90, 214, 255, 0.25));
    z-index: 1;
    opacity: 0.65;
    filter: blur(16px);
    animation: profileGlow 3s ease-in-out infinite;
}

.profile-image-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2.5px solid rgba(126, 249, 198, 0.55);
    z-index: 3;
    background: linear-gradient(135deg, 
        rgba(126, 249, 198, 0.18) 0%, 
        rgba(126, 249, 198, 0.08) 50%, 
        rgba(90, 214, 255, 0.12) 100%);
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(126, 249, 198, 0.4), 0 0 40px rgba(90, 214, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(126, 249, 198, 0.6), 0 0 65px rgba(90, 214, 255, 0.35);
    }
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 380px;
}

.stat-mini {
    background: linear-gradient(180deg, rgba(126, 249, 198, 0.1), rgba(8, 18, 27, 0.8));
    border: 1.5px solid rgba(126, 249, 198, 0.3);
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: inset 0 0 25px rgba(126, 249, 198, 0.05), 0 0 20px rgba(0, 0, 0, 0.2);
}

.stat-mini:hover {
    background: linear-gradient(180deg, rgba(126, 249, 198, 0.18), rgba(8, 18, 27, 0.85));
    border-color: rgba(126, 249, 198, 0.6);
    box-shadow: 0 0 28px rgba(126, 249, 198, 0.25), inset 0 0 20px rgba(126, 249, 198, 0.08);
    transform: translateY(-6px);
}

.stat-mini .number {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary);
    font-weight: 900;
    text-shadow: 0 0 12px rgba(126, 249, 198, 0.4);
}

.stat-mini .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h3 {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    color: var(--primary);
    margin-bottom: 24px;
    text-shadow: 0 0 18px rgba(126, 249, 198, 0.3);
    letter-spacing: 2px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
    font-size: 1.04rem;
}

.code-block {
    background: rgba(8, 17, 25, 0.92);
    border: 1px solid rgba(126, 249, 198, 0.35);
    border-radius: 14px;
    padding: 22px 20px;
    margin: 22px 0;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(126, 249, 198, 0.05);
}

.code-block::before {
    content: '> ';
    color: var(--accent-2);
    font-weight: bold;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.stat-mini {
    background: linear-gradient(180deg, rgba(126, 249, 198, 0.08), rgba(8, 18, 27, 0.75));
    border: 1px solid rgba(126, 249, 198, 0.24);
    padding: 20px 18px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: inset 0 0 20px rgba(126, 249, 198, 0.04);
}

.stat-mini:hover {
    background: rgba(126, 249, 198, 0.12);
    border-color: rgba(126, 249, 198, 0.5);
    box-shadow: 0 0 22px rgba(126, 249, 198, 0.18);
    transform: translateY(-6px);
}

.stat-mini .number {
    font-size: clamp(1.6rem, 2vw, 2.5rem);
    color: var(--primary);
    font-weight: 900;
    text-shadow: 0 0 12px rgba(126, 249, 198, 0.35);
}

.stat-mini .label {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
}

.skill-category {
    background: linear-gradient(135deg, rgba(126, 249, 198, 0.06), rgba(109, 216, 255, 0.04));
    border: 1px solid rgba(126, 249, 198, 0.25);
    border-radius: 16px;
    padding: 30px 26px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out;
    box-shadow: inset 0 0 24px rgba(126, 249, 198, 0.02);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    animation: slideRight 2.3s ease-in-out infinite;
}

@keyframes slideRight {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.skill-category:hover {
    border-color: rgba(109, 216, 255, 0.6);
    box-shadow: 0 0 28px rgba(126, 249, 198, 0.14), inset 0 0 34px rgba(126, 249, 198, 0.04);
    transform: translateY(-10px) scale(1.01);
}

.skill-category h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(126, 249, 198, 0.08);
    border: 1px solid rgba(126, 249, 198, 0.28);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.skill-tag:hover {
    background: rgba(126, 249, 198, 0.18);
    box-shadow: 0 0 16px rgba(126, 249, 198, 0.2);
    transform: translateY(-3px) scale(1.04);
}

.timeline {
    position: relative;
    padding: 30px 0 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(126, 249, 198, 0.5), rgba(109, 216, 255, 0.9), transparent);
    box-shadow: 0 0 18px rgba(126, 249, 198, 0.25);
}

.timeline-item {
    margin-bottom: 60px;
    width: 45%;
    position: relative;
    animation: fadeInScale 0.7s ease-out;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 4px solid rgba(6,16,24,0.9);
    border-radius: 50%;
    left: calc(50% - 30px);
    transform: translateX(-50%);
    top: 12px;
    box-shadow: 0 0 20px rgba(126, 249, 198, 0.7);
    z-index: 10;
}
.timeline-item:nth-child(2n) {
    .timeline-dot {
        left: calc(50% + 30px);
    }
}
.timeline-content {
    background: linear-gradient(135deg, rgba(126, 249, 198, 0.06), rgba(109, 216, 255, 0.04));
    border: 1px solid rgba(126, 249, 198, 0.25);
    padding: 70px 28px 30px 28px;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 26px rgba(126, 249, 198, 0.03);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 22px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -12px;
    border-width: 10px 0 10px 14px;
    border-color: transparent transparent transparent rgba(126, 249, 198, 0.25);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -12px;
    border-width: 10px 14px 10px 0;
    border-color: transparent rgba(126, 249, 198, 0.25) transparent transparent;
}

.timeline-content:hover {
    border-color: rgba(109, 216, 255, 0.6);
    box-shadow: 0 0 28px rgba(109, 216, 255, 0.12), inset 0 0 34px rgba(126, 249, 198, 0.04);
    transform: translateY(-8px);
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(126, 249, 198, 0.25);
}

.timeline-company {
    color: var(--accent-2);
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.75;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    display: inline-block;
    background: rgba(126, 249, 198, 0.08);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    border: 1px solid rgba(126, 249, 198, 0.25);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tech-tag:hover {
    background: rgba(126, 249, 198, 0.18);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(126, 249, 198, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: linear-gradient(135deg, rgba(126, 249, 198, 0.06), rgba(109, 216, 255, 0.05));
    border: 1px solid rgba(126, 249, 198, 0.24);
    padding: 36px 26px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out;
    box-shadow: inset 0 0 26px rgba(126, 249, 198, 0.02);
}

.service-box::before {
    content: '';
    position: absolute;
    inset: -30% auto auto -25%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(126, 249, 198, 0.12), transparent 70%);
    border-radius: 50%;
    transform: scale(1.2);
}

.service-box:hover {
    border-color: rgba(109, 216, 255, 0.62);
    box-shadow: 0 0 32px rgba(126, 249, 198, 0.18), inset 0 0 30px rgba(126, 249, 198, 0.05);
    transform: translateY(-12px) scale(1.01);
}

.service-icon {
    font-size: 3.2rem;
    margin-bottom: 18px;
    color: var(--primary);
    text-shadow: 0 0 22px rgba(126, 249, 198, 0.4);
    position: relative;
    z-index: 2;
    display: block;
}

.service-box h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
}

.service-box p {
    color: var(--text-secondary);
    line-height: 1.72;
    position: relative;
    z-index: 2;
}

.contact-content {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.85;
}

footer {
    background: rgba(6, 16, 24, 0.82);
    border-top: 1px solid rgba(126, 249, 198, 0.14);
    padding: 46px 0 52px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(126, 249, 198, 0.42);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.28s ease;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    background: rgba(126, 249, 198, 0.04);
    box-shadow: inset 0 0 18px rgba(126, 249, 198, 0.06);
}

.social-btn .bi {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-btn:hover::before {
    transform: translateY(0);
}

.social-btn:hover {
    border-color: transparent;
    box-shadow: 0 0 24px rgba(126, 249, 198, 0.22);
    transform: translateY(-4px);
}

.social-btn:hover .bi {
    color: #04140d;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.copyright-accent {
    color: var(--primary);
    text-shadow: 0 0 12px rgba(126, 249, 198, 0.35);
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-metrics {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 28px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.metric-pill {
    background: rgba(9, 20, 30, 0.8);
    border: 1px solid rgba(126, 249, 198, 0.18);
    border-radius: 18px;
    padding: 16px 18px;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 10px 28px rgba(2, 10, 18, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.metric-number {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 16px rgba(126, 249, 198, 0.3);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.74rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 44px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(126, 249, 198, 0.08);
    border: 1px solid rgba(126, 249, 198, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 18px;
    box-shadow: 0 0 16px rgba(126, 249, 198, 0.12);
}

.platform-showcase {
    padding-top: 110px;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
}

.mockup-panel {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-window {
    position: relative;
    width: min(100%, 760px);
    min-height: 440px;
    background: linear-gradient(180deg, rgba(14, 24, 35, 0.92), rgba(9, 18, 27, 0.94));
    border: 1px solid rgba(126, 249, 198, 0.22);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(4, 12, 18, 0.52);
    transform: perspective(1200px) rotateX(5deg) rotateY(-8deg);
}

.window-bar {
    height: 52px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(126, 249, 198, 0.12);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    background: linear-gradient(135deg, #ff7a7a, #ff4d4d);
    box-shadow: 0 0 18px rgba(255, 120, 120, 0.3);
}

.window-bar span:nth-child(2) {
    background: linear-gradient(135deg, #ffe66d, #ffbc42);
}

.window-bar span:nth-child(3) {
    background: linear-gradient(135deg, #7ef9c6, #3adca0);
}

.window-body {
    display: grid;
    grid-template-columns: 90px 1fr;
    min-height: 388px;
}

.sidebar {
    background: rgba(126, 249, 198, 0.04);
    border-right: 1px solid rgba(126, 249, 198, 0.08);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.side-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(126, 249, 198, 0.18);
}

.side-dot.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 18px rgba(126, 249, 198, 0.28);
}

.dashboard-main {
    padding: 26px 24px 18px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.header-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.header-tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(126, 249, 198, 0.08);
    color: var(--primary);
    border: 1px solid rgba(126, 249, 198, 0.18);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.chart-box {
    position: relative;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(126, 249, 198, 0.04), rgba(90, 214, 255, 0.02));
    border: 1px solid rgba(126, 249, 198, 0.10);
    overflow: hidden;
    margin-bottom: 20px;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 249, 198, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 249, 198, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.chart-line {
    position: absolute;
    inset: 12% 8% 16% 8%;
    border-radius: 50% / 100% 100% 0 0;
    background: linear-gradient(180deg, rgba(126, 249, 198, 0.65), rgba(90, 214, 255, 0.2));
    clip-path: polygon(0 76%, 10% 72%, 20% 68%, 32% 56%, 52% 60%, 70% 34%, 82% 28%, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 0 30px rgba(126, 249, 198, 0.2);
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mini-card {
    background: rgba(126, 249, 198, 0.04);
    border: 1px solid rgba(126, 249, 198, 0.12);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: left;
}

.mini-card.selected {
    background: linear-gradient(135deg, rgba(126, 249, 198, 0.12), rgba(90, 214, 255, 0.08));
    border-color: rgba(126, 249, 198, 0.22);
}

.mini-card label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mini-card strong {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.floating-stat {
    position: absolute;
    background: rgba(10, 20, 29, 0.88);
    border: 1px solid rgba(126, 249, 198, 0.18);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 18px 50px rgba(2, 10, 18, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.floating-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.floating-stat strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.stat-one {
    left: 6%;
    bottom: 8%;
    animation: floatCard 9s ease-in-out infinite;
}

.stat-two {
    right: 4%;
    top: 9%;
    animation: floatCard 11s ease-in-out infinite reverse;
}

.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feature-item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 18px;
    padding: 24px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(126, 249, 198, 0.06), rgba(90, 214, 255, 0.05));
    border: 1px solid rgba(126, 249, 198, 0.14);
    box-shadow: inset 0 0 18px rgba(126, 249, 198, 0.02);
}

.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(126, 249, 198, 0.1), rgba(90, 214, 255, 0.1));
    border: 1px solid rgba(126, 249, 198, 0.16);
    color: var(--primary);
    font-size: 1.7rem;
    box-shadow: 0 0 18px rgba(126, 249, 198, 0.08);
}

.feature-copy h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.feature-copy p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.mini-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mini-bars span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(126, 249, 198, 0.7), rgba(90, 214, 255, 0.7));
    width: var(--w);
    box-shadow: 0 0 12px rgba(126, 249, 198, 0.18);
}

@media (max-width: 980px) {
    .showcase-layout {
        grid-template-columns: 1fr;
    }

    .feature-stack {
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        padding: 16px 0 18px;
    }

    nav ul {
        gap: 14px 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.72rem;
        letter-spacing: 1.2px;
    }

    .hero {
        padding: 80px 0 56px;
        min-height: auto;
    }

    .hero-content {
        padding: 42px 18px 6px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 2rem;
    }

    .about-wrapper {
        gap: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-section {
        order: 2;
    }

    .about-text {
        order: 1;
    }

    .profile-image-container {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .profile-image-frame {
        max-width: 100%;
    }

    .stats-mini {
        max-width: 100%;
    }

    .focus-card {
        padding: 32px 24px !important;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 18px;
    }

    .timeline-item .timeline-content::after {
        display: none;
    }

    .float-card {
        position: static;
        margin: 12px auto 0;
        width: min(100%, 280px);
    }

    .hero-floating {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        align-items: center;
    }

    section {
        padding: 70px 0;
    }

    .container {
        padding: 0 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-metrics {
        margin-top: 12px;
        margin-bottom: 18px;
        gap: 10px;
    }

    .metric-pill {
        width: 100%;
        min-width: 0;
    }

    .platform-showcase {
        padding-top: 80px;
    }

    .mockup-window {
        transform: none;
    }

    .floating-stat {
        position: static;
        margin-top: 12px;
    }

    .mockup-panel {
        display: block;
    }

    .window-body {
        grid-template-columns: 60px 1fr;
    }

    .mini-cards {
        grid-template-columns: 1fr;
    }

    .feature-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }
}

/* ===== POLISHED DEVELOPER PORTFOLIO ===== */
:root {
    --primary: #69f0c0;
    --primary-dark: #34d399;
    --secondary: #a4b7ff;
    --secondary-strong: #77ddff;
    --accent: #b99aff;
    --accent-2: #77ddff;
    --dark-bg: #070b12;
    --dark-alt: #0c1420;
    --dark-soft: #101b29;
    --card-bg: rgba(14, 23, 35, 0.88);
    --text-primary: #eff6ff;
    --text-secondary: #a6b4c6;
    --muted: #78899e;
    --border-color: rgba(148, 163, 184, 0.16);
    --neon-glow: 0 0 22px rgba(105, 240, 192, 0.22);
    --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --surface-glass: rgba(13, 21, 33, 0.82);
    --elite-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
}

html {
    scroll-padding-top: 92px;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at 76% 10%, rgba(65, 113, 157, 0.12), transparent 38%),
        linear-gradient(180deg, #080d15 0%, #0a111b 52%, #080d15 100%);
    line-height: 1.7;
}

body::before,
body::after {
    width: 32rem;
    height: 32rem;
    filter: blur(130px);
    opacity: 0.12;
}

body::before {
    background: #36d7a2;
}

body::after {
    background: #5088f4;
}

#mesh-canvas-wrap {
    opacity: 0.28;
}

.animated-background {
    background-size: 64px 64px;
    background-image:
        linear-gradient(90deg, rgba(145, 170, 196, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(145, 170, 196, 0.035) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.bg-stars .star {
    background: #b9d4e9;
    box-shadow: 0 0 10px rgba(138, 195, 227, 0.45);
}

.container {
    max-width: 1240px;
    padding-right: 32px;
    padding-left: 32px;
}

nav {
    width: min(100% - 48px, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: rgba(8, 13, 21, 0.82);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-shadow: none;
}

.logo::before {
    content: "</";
    color: var(--secondary-strong);
    margin-right: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

nav ul {
    gap: clamp(16px, 2.5vw, 34px);
}

nav a {
    color: #b8c4d4;
    font-size: 0.72rem;
    letter-spacing: 1.4px;
    opacity: 1;
}

nav a::before {
    bottom: -7px;
    height: 2px;
    box-shadow: none;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    text-shadow: none;
}

.hero {
    min-height: min(850px, calc(100svh - 62px));
    padding: 90px 0 100px;
    background-image: radial-gradient(ellipse at 72% 50%, rgba(41, 85, 103, 0.15), transparent 48%);
}

.hero::before {
    top: 2%;
    right: -7%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 224, 181, 0.12), transparent 68%);
}

.hero::after {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(96, 137, 231, 0.1), transparent 70%);
}

.hero-content {
    width: min(900px, 76%);
    padding: 48px 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-content::before {
    display: none;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 8px 13px;
    border: 1px solid rgba(105, 240, 192, 0.22);
    border-radius: 999px;
    background: rgba(105, 240, 192, 0.06);
    color: #8df2cb;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    letter-spacing: 1.4px;
    text-shadow: none;
}

.hero-subtitle::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(105, 240, 192, 0.75);
}

.hero h1 {
    margin-bottom: 23px;
    font-size: clamp(3.6rem, 9vw, 7.2rem);
    letter-spacing: -0.075em;
    line-height: 0.98;
    text-transform: none;
}

.hero h1 span {
    margin-top: 8px;
    background: linear-gradient(100deg, #75edc0 4%, #80d9f2 52%, #a5b7ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 690px;
    margin: 0 0 30px;
    color: #a9b8c9;
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    letter-spacing: 0;
    line-height: 1.9;
}

.typing-effect {
    color: #80e9c1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.93em;
    text-shadow: none;
}

.cta-buttons {
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 46px;
}

.btn {
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid rgba(105, 240, 192, 0.42);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(105, 240, 192, 0.14), rgba(105, 240, 192, 0.06));
    color: #9af3d1;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: none;
}

.btn:hover {
    color: #07130f;
    background: linear-gradient(135deg, #7beec1, #82dbec);
    box-shadow: 0 10px 35px rgba(79, 214, 175, 0.2);
}

.btn-secondary {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.035);
    color: #cfdae8;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #8ba9ff, #83dded);
    color: #07111a;
}

.hero-metrics {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.metric-pill {
    min-width: 0;
    padding: 12px 16px;
    border-color: rgba(148, 163, 184, 0.14);
    border-radius: 13px;
    background: rgba(17, 27, 40, 0.66);
    box-shadow: none;
}

.metric-number {
    color: #e8f2fb;
    font-size: 1rem;
    text-shadow: none;
}

.metric-label {
    color: #93a4b8;
    font-size: 0.65rem;
    letter-spacing: 0.7px;
}

.float-card {
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 15px;
    background: rgba(13, 22, 34, 0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.float-card-left {
    left: auto;
    right: 6%;
    bottom: 19%;
}

.float-card-right {
    right: 10%;
    top: 15%;
}

.float-card .float-label {
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 1px;
}

.scroll-indicator {
    bottom: -4rem;
}

.scroll-indicator span {
    width: 25px;
    height: 42px;
    border-width: 1px;
    border-color: rgba(163, 180, 198, 0.5);
    box-shadow: none;
}

section {
    padding: 100px 0;
    border-top-color: rgba(148, 163, 184, 0.08);
    border-bottom: 0;
}

section::before {
    opacity: 0.24;
}

h2 {
    margin-bottom: 58px;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.045em;
    text-transform: none;
}

h2 span {
    color: var(--primary);
    text-shadow: none;
}

h2::after {
    bottom: -17px;
    width: 54px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-strong));
    box-shadow: none;
}

.about-content {
    gap: clamp(32px, 6vw, 80px);
}

.about-text h3 {
    color: #e2edf8;
    letter-spacing: -0.025em;
    text-shadow: none;
}

.focus-card {
    padding: 48px !important;
    border: 1.5px solid rgba(126, 249, 198, 0.3) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(ellipse at top right, rgba(126, 249, 198, 0.12), transparent 50%),
        linear-gradient(145deg, rgba(18, 29, 43, 0.95), rgba(12, 20, 31, 0.92)) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(126, 249, 198, 0.05) !important;
    text-align: left !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.focus-card:hover {
    border-color: rgba(126, 249, 198, 0.5) !important;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(126, 249, 198, 0.08) !important;
    transform: translateY(-8px);
}

.focus-card .elite-icon {
    color: var(--primary);
    font-size: 2.3rem;
    text-shadow: none;
}

.focus-card h3 {
    margin: 16px 0 12px !important;
    color: #e6f1fb !important;
    font-size: 1.15rem;
    letter-spacing: 1px !important;
}

.focus-card p {
    margin-bottom: 22px !important;
    color: #a6b4c6 !important;
}

.focus-card-code {
    color: #8cebc5;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    line-height: 1.9;
}

.about-text p,
.timeline-description,
.service-box p,
.feature-copy p {
    color: #a6b4c6;
}

.code-block {
    border-color: rgba(105, 240, 192, 0.18);
    border-radius: 12px;
    background: rgba(7, 13, 21, 0.82);
    color: #8cebc5;
    font-size: 0.83rem;
}

.stats-mini {
    gap: 12px;
}

.stat-mini,
.skill-category,
.timeline-content,
.service-box,
.feature-item {
    border-color: rgba(148, 163, 184, 0.14);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(18, 29, 43, 0.88), rgba(12, 20, 31, 0.86));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.15);
}

.stat-mini {
    padding: 18px 14px;
}

.stat-mini .number,
.skill-category h4,
.timeline-content h3,
.service-icon {
    color: var(--primary);
    text-shadow: none;
}

.stat-mini .label {
    color: #95a6b8;
    letter-spacing: 0.7px;
}

.stat-mini:hover,
.skill-category:hover,
.timeline-content:hover,
.service-box:hover {
    border-color: rgba(105, 240, 192, 0.35);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.26), 0 0 28px rgba(105, 240, 192, 0.06);
}

.skill-category {
    padding: 28px;
}

.skill-category::before {
    height: 1px;
    opacity: 0.5;
}

.skill-category h4 {
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: none;
}

.skill-tag,
.tech-tag {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: #b6c6d7;
}

.skill-tag:hover,
.tech-tag:hover {
    border-color: rgba(105, 240, 192, 0.4);
    background: rgba(105, 240, 192, 0.09);
    color: #a3f4d4;
    box-shadow: none;
}

.timeline::before {
    background: linear-gradient(180deg, rgba(105, 240, 192, 0.55), rgba(119, 221, 255, 0.3), transparent);
    box-shadow: none;
}

.timeline-dot {
    background: var(--primary);
    border-color: #0b121b;
    box-shadow: 0 0 16px rgba(105, 240, 192, 0.45);
}

.timeline-content h3 {
    font-size: 1.12rem;
    letter-spacing: 0;
    text-transform: none;
}

.timeline-company {
    color: #8bdcf0;
}

.timeline-date {
    color: #8e9fb2;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    border-left-color: rgba(148, 163, 184, 0.14);
}

.timeline-item:nth-child(even) .timeline-content::after {
    border-right-color: rgba(148, 163, 184, 0.14);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.service-box {
    padding: 30px 24px;
    text-align: left;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(105, 240, 192, 0.16);
    border-radius: 14px;
    background: rgba(105, 240, 192, 0.07);
    font-size: 1.5rem;
}

.service-box h3 {
    font-size: 1.08rem;
    letter-spacing: 0;
    text-transform: none;
}

.service-box::before {
    background: radial-gradient(circle, rgba(105, 240, 192, 0.07), transparent 70%);
}

.section-intro h2 {
    margin-bottom: 0;
}

.eyebrow {
    border-color: rgba(105, 240, 192, 0.18);
    background: rgba(105, 240, 192, 0.05);
    box-shadow: none;
}

.mockup-window {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.feature-item {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 22px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-color: rgba(105, 240, 192, 0.16);
    border-radius: 15px;
    background: rgba(105, 240, 192, 0.07);
    color: var(--primary);
    box-shadow: none;
}

.feature-copy h3 {
    letter-spacing: 0;
}

.contact-content {
    max-width: 820px;
    padding: clamp(28px, 6vw, 60px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at top right, rgba(105, 240, 192, 0.08), transparent 46%),
        rgba(14, 23, 35, 0.72);
    box-shadow: var(--panel-shadow);
}

.contact-content p {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-content .cta-buttons {
    justify-content: center;
    margin-bottom: 0;
}

footer {
    margin-top: 30px;
    border-top-color: rgba(148, 163, 184, 0.12);
    background: rgba(7, 12, 19, 0.78);
}

.social-btn {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.035);
    color: #b9c8d9;
    box-shadow: none;
}

.social-btn::before {
    background: linear-gradient(135deg, var(--primary), var(--secondary-strong));
}

.copyright {
    color: #8393a6;
    font-size: 0.78rem;
}

.copyright-accent {
    color: var(--primary);
    text-shadow: none;
}

.reveal {
    transform: translateY(24px);
}

.reveal.active {
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

a:focus-visible {
    outline: 2px solid var(--secondary-strong);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    nav {
        width: calc(100% - 24px);
        padding: 13px 16px;
        border-radius: 0 0 16px 16px;
    }

    nav ul {
        gap: 9px 15px;
    }

    nav a {
        font-size: 0.65rem;
    }

    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hero {
        min-height: auto;
        padding: 70px 0 68px;
    }

    .hero-content {
        width: 100%;
        padding: 16px 0 4px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.66rem;
        letter-spacing: 0.8px;
    }

    .hero h1 {
        font-size: clamp(3.15rem, 15vw, 5.4rem);
        letter-spacing: -0.07em;
    }

    .hero p {
        margin-right: auto;
        margin-left: auto;
        font-size: 0.97rem;
    }

    .cta-buttons,
    .hero-metrics {
        justify-content: center;
    }

    .hero-metrics {
        display: grid;
        grid-template-columns: 1fr;
    }

    .metric-pill {
        width: min(100%, 350px);
        margin: 0 auto;
    }

    .float-card-left {
        margin-top: 0;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 76px 0;
    }

    .focus-card {
        padding: 30px 22px !important;
    }

    .mockup-panel {
        min-height: 0;
    }

    .mockup-window {
        min-height: 0;
    }

    .window-body {
        min-height: 310px;
    }

    .dashboard-main {
        padding: 20px 14px;
    }

    .feature-item {
        text-align: left;
    }

    .feature-icon {
        margin: 0;
    }

    .contact-content .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    nav {
        width: calc(100% - 16px);
    }

    nav ul {
        gap: 8px 11px;
    }

    nav a {
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }

    .hero-subtitle {
        font-size: 0.58rem;
    }

    .window-body {
        grid-template-columns: 42px 1fr;
    }

    .sidebar {
        padding: 18px 10px;
    }

    .dashboard-main {
        padding: 18px 10px;
    }

    .header-title {
        font-size: 0.92rem;
    }
}

/* ===== THEME SWITCHER ===== */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--primary);
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(105, 240, 192, 0.48);
    background: rgba(105, 240, 192, 0.1);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--secondary-strong);
    outline-offset: 3px;
}

html[data-theme="light"] {
    color-scheme: light;
    --primary: #07845f;
    --primary-dark: #087c5a;
    --secondary: #4269c7;
    --secondary-strong: #1683a8;
    --accent: #7552b9;
    --accent-2: #1683a8;
    --dark-bg: #f4f7fb;
    --dark-alt: #eaf0f6;
    --dark-soft: #e5edf4;
    --card-bg: rgba(255, 255, 255, 0.94);
    --text-primary: #172536;
    --text-secondary: #526478;
    --muted: #687b90;
    --border-color: rgba(62, 82, 105, 0.16);
    --neon-glow: 0 0 18px rgba(8, 132, 95, 0.12);
    --panel-shadow: 0 24px 70px rgba(31, 50, 72, 0.1);
    --surface-glass: rgba(255, 255, 255, 0.88);
    --elite-shadow: 0 28px 90px rgba(31, 50, 72, 0.12);
    color: var(--text-primary);
    background: #f4f7fb;
}

html[data-theme="light"] body {
    color: var(--text-primary);
    background:
        radial-gradient(ellipse at 76% 10%, rgba(85, 133, 186, 0.09), transparent 38%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 52%, #f7f9fc 100%);
}

html[data-theme="light"] body::before {
    background: #42c99a;
    opacity: 0.07;
}

html[data-theme="light"] body::after {
    background: #7394e1;
    opacity: 0.07;
}

html[data-theme="light"] #mesh-canvas-wrap {
    opacity: 0.12;
}

html[data-theme="light"] .animated-background {
    background-image:
        linear-gradient(90deg, rgba(58, 81, 105, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(58, 81, 105, 0.045) 1px, transparent 1px);
}

html[data-theme="light"] .plasma-bg {
    opacity: 0.22;
}

html[data-theme="light"] nav.container {
    border-color: rgba(62, 82, 105, 0.13);
    background: rgba(249, 251, 253, 0.9);
    box-shadow: 0 12px 36px rgba(31, 50, 72, 0.1);
}

html[data-theme="light"] nav a {
    color: #526478;
}

html[data-theme="light"] nav a:hover,
html[data-theme="light"] nav a.active {
    color: #087c5a;
}

html[data-theme="light"] .hero {
    background-image: radial-gradient(ellipse at 72% 50%, rgba(87, 155, 166, 0.1), transparent 48%);
}

html[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(59, 196, 149, 0.12), transparent 68%);
}

html[data-theme="light"] .hero::after {
    background: radial-gradient(circle, rgba(96, 137, 231, 0.08), transparent 70%);
}

html[data-theme="light"] .hero-subtitle {
    border-color: rgba(8, 132, 95, 0.2);
    background: rgba(8, 132, 95, 0.055);
    color: #087c5a;
}

html[data-theme="light"] .hero-subtitle::before {
    background: #0b9a70;
}

html[data-theme="light"] .hero h1 {
    color: #172536;
}

html[data-theme="light"] .hero h1 span {
    background-image: linear-gradient(100deg, #07845f 4%, #1683a8 52%, #596fc0 100%);
}

html[data-theme="light"] .hero p,
html[data-theme="light"] .about-text p,
html[data-theme="light"] .timeline-description,
html[data-theme="light"] .service-box p,
html[data-theme="light"] .feature-copy p,
html[data-theme="light"] .contact-content p {
    color: #526478;
}

html[data-theme="light"] .typing-effect {
    color: #087c5a;
}

html[data-theme="light"] .btn {
    border-color: rgba(8, 132, 95, 0.36);
    background: rgba(8, 132, 95, 0.07);
    color: #087c5a;
}

html[data-theme="light"] .btn:hover {
    background: linear-gradient(135deg, #0b9a70, #3ba5c4);
    color: #fff;
}

html[data-theme="light"] .btn-secondary {
    border-color: rgba(62, 82, 105, 0.22);
    background: rgba(255, 255, 255, 0.68);
    color: #40536a;
}

html[data-theme="light"] .btn-secondary:hover {
    background: linear-gradient(135deg, #6688db, #43a4c0);
    color: #fff;
}

html[data-theme="light"] .metric-pill,
html[data-theme="light"] .float-card,
html[data-theme="light"] .stat-mini,
html[data-theme="light"] .skill-category,
html[data-theme="light"] .timeline-content,
html[data-theme="light"] .service-box,
html[data-theme="light"] .feature-item,
html[data-theme="light"] .contact-content {
    border-color: rgba(62, 82, 105, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 248, 0.94));
    box-shadow: 0 16px 42px rgba(31, 50, 72, 0.07);
}

html[data-theme="light"] .metric-pill {
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .metric-number,
html[data-theme="light"] .float-card strong,
html[data-theme="light"] .timeline-content h3,
html[data-theme="light"] .service-box h3,
html[data-theme="light"] .feature-copy h3 {
    color: #172536;
}

html[data-theme="light"] .metric-label,
html[data-theme="light"] .float-card small,
html[data-theme="light"] .float-card .float-label,
html[data-theme="light"] .stat-mini .label,
html[data-theme="light"] .timeline-date {
    color: #63768b;
}

html[data-theme="light"] .about-text h3 {
    color: #203348;
}

html[data-theme="light"] .focus-card {
    border-color: rgba(8, 132, 95, 0.35) !important;
    background:
        radial-gradient(ellipse at top right, rgba(8, 132, 95, 0.12), transparent 50%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 248, 0.95)) !important;
    box-shadow: 0 28px 80px rgba(31, 50, 72, 0.15), inset 0 0 30px rgba(8, 132, 95, 0.05) !important;
}

html[data-theme="light"] .focus-card:hover {
    border-color: rgba(8, 132, 95, 0.5) !important;
    box-shadow: 0 32px 100px rgba(31, 50, 72, 0.2), inset 0 0 40px rgba(8, 132, 95, 0.08) !important;
}

html[data-theme="light"] .focus-card h3 {
    color: #203348 !important;
}

html[data-theme="light"] .focus-card p {
    color: #526478 !important;
}

html[data-theme="light"] .focus-card-code,
html[data-theme="light"] .code-block {
    color: #087c5a;
}

html[data-theme="light"] .code-block {
    border-color: rgba(8, 132, 95, 0.2);
    background: #edf4f5;
    box-shadow: inset 0 0 24px rgba(8, 132, 95, 0.025);
}

html[data-theme="light"] .profile-image {
    box-shadow: 0 0 40px rgba(8, 132, 95, 0.3);
}

html[data-theme="light"] .profile-image:hover {
    box-shadow: 0 0 60px rgba(8, 132, 95, 0.4), 0 0 80px rgba(96, 137, 231, 0.25);
}

html[data-theme="light"] .profile-image-border {
    border-color: rgba(8, 132, 95, 0.6);
    background: linear-gradient(135deg, 
        rgba(8, 132, 95, 0.2) 0%, 
        rgba(8, 132, 95, 0.1) 50%, 
        rgba(96, 137, 231, 0.15) 100%);
}

html[data-theme="light"] .profile-image-glow {
    background: linear-gradient(135deg, rgba(8, 132, 95, 0.4), rgba(96, 137, 231, 0.25));
    opacity: 0.8;
}

html[data-theme="light"] h2 {
    color: #172536;
}

html[data-theme="light"] h2 span {
    color: #087c5a;
}

html[data-theme="light"] section {
    border-top-color: rgba(62, 82, 105, 0.1);
}

html[data-theme="light"] section::before {
    opacity: 0.12;
}

html[data-theme="light"] .stat-mini .number,
html[data-theme="light"] .skill-category h4,
html[data-theme="light"] .service-icon {
    color: #087c5a;
}

html[data-theme="light"] .skill-tag,
html[data-theme="light"] .tech-tag {
    border-color: rgba(62, 82, 105, 0.16);
    background: rgba(241, 245, 249, 0.9);
    color: #43576c;
}

html[data-theme="light"] .skill-tag:hover,
html[data-theme="light"] .tech-tag:hover {
    border-color: rgba(8, 132, 95, 0.3);
    background: rgba(8, 132, 95, 0.07);
    color: #087c5a;
}

html[data-theme="light"] .timeline::before {
    background: linear-gradient(180deg, rgba(8, 132, 95, 0.48), rgba(22, 131, 168, 0.28), transparent);
}

html[data-theme="light"] .timeline-dot {
    border-color: #f4f7fb;
    background: #0b9a70;
}

html[data-theme="light"] .timeline-company {
    color: #167f9d;
}

html[data-theme="light"] .timeline-item:nth-child(odd) .timeline-content::after {
    border-left-color: rgba(62, 82, 105, 0.15);
}

html[data-theme="light"] .timeline-item:nth-child(even) .timeline-content::after {
    border-right-color: rgba(62, 82, 105, 0.15);
}

html[data-theme="light"] .service-icon,
html[data-theme="light"] .feature-icon {
    border-color: rgba(8, 132, 95, 0.16);
    background: rgba(8, 132, 95, 0.06);
    color: #087c5a;
}

html[data-theme="light"] .eyebrow {
    border-color: rgba(8, 132, 95, 0.18);
    background: rgba(8, 132, 95, 0.05);
    color: #087c5a;
}

html[data-theme="light"] .mockup-window {
    border-color: rgba(62, 82, 105, 0.17);
}

html[data-theme="light"] .contact-content {
    background:
        radial-gradient(ellipse at top right, rgba(8, 132, 95, 0.06), transparent 46%),
        rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] footer {
    border-top-color: rgba(62, 82, 105, 0.13);
    background: rgba(235, 241, 247, 0.9);
}

html[data-theme="light"] .social-btn {
    border-color: rgba(62, 82, 105, 0.18);
    background: rgba(255, 255, 255, 0.7);
    color: #40536a;
}

html[data-theme="light"] .copyright {
    color: #687b90;
}

html[data-theme="light"] .copyright-accent {
    color: #087c5a;
}

html[data-theme="light"] .theme-toggle {
    border-color: rgba(62, 82, 105, 0.2);
    background: rgba(8, 132, 95, 0.07);
    color: #087c5a;
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
}

/* Keep navigation in the document at page load; pin it after the scroll threshold. */
nav.container {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1000;
    margin: 0 auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
}

nav.container.is-visible {
    position: fixed;
    top: 0;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    animation: navbarDropIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes navbarDropIn {
    from {
        opacity: 0.5;
        translate: 0 -22px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@media (max-width: 768px) {
    nav.container {
        width: calc(100% - 24px);
        padding: 13px 16px;
    }

    nav.container > ul {
        will-change: auto;
    }

    nav.container > ul > li:last-child {
        position: absolute;
        top: 10px;
        right: 12px;
    }

    nav.container.is-visible {
        top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    nav.container,
    nav.container.is-visible {
        transition: none;
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    #mesh-canvas-wrap,
    .bg-stars,
    .animated-background,
    .plasma-bg {
        display: none;
    }
}

/* ===== WIDE-SCREEN HERO COMPOSITION ===== */
.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: clamp(38px, 5vw, 88px);
    max-width: 1440px;
}

.hero-content {
    width: 100%;
    padding: 36px 0 24px;
}

.hero h1 {
    font-size: clamp(3.4rem, 5.2vw, 6rem);
}

.hero h1 span {
    display: block;
    max-width: 100%;
}

.hero p {
    max-width: 720px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-visual {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 560px;
    justify-self: end;
    padding: clamp(24px, 4vw, 54px);
}

.hero-visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 10% 4%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(69, 220, 172, 0.17), rgba(103, 143, 244, 0.19));
    filter: blur(65px);
    animation: terminalGlow 8s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    from { opacity: 0.55; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1.08); }
}

.code-window {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(163, 187, 208, 0.19);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(17, 27, 41, 0.97), rgba(9, 15, 25, 0.97));
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5), 0 0 60px rgba(83, 199, 177, 0.08);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    animation: editorFloat 7s ease-in-out infinite;
}

@keyframes editorFloat {
    0%, 100% { transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-9px); }
}

.code-window-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(163, 187, 208, 0.12);
    background: rgba(255, 255, 255, 0.018);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f07178;
}

.window-controls i:nth-child(2) {
    background: #e9bc62;
}

.window-controls i:nth-child(3) {
    background: #5fd1a7;
}

.code-file {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #aebed0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
}

.code-file .bi {
    color: #e8c56a;
}

.code-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #8be8c3;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.62rem;
    letter-spacing: 1px;
}

.code-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #68edb7;
    box-shadow: 0 0 10px rgba(104, 237, 183, 0.75);
    animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
    50% { opacity: 0.4; box-shadow: 0 0 2px rgba(104, 237, 183, 0.4); }
}

.code-editor {
    position: relative;
    padding: 24px clamp(14px, 2vw, 28px) 28px;
    color: #d8e3ee;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(0.64rem, 1vw, 0.82rem);
    line-height: 2;
}

.code-editor::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(transparent 50%, rgba(125, 237, 199, 0.018) 50%);
    background-size: 100% 6px;
    opacity: 0.65;
}

.code-line {
    position: relative;
    white-space: nowrap;
}

.code-line::before {
    content: counter(code-line);
    display: inline-block;
    width: 2.2em;
    margin-right: 1.4em;
    color: #52657a;
    text-align: right;
    counter-increment: code-line;
    user-select: none;
}

.code-editor {
    counter-reset: code-line;
}

.code-indent {
    padding-left: 2.2em;
}

.code-indent-more {
    padding-left: 4.4em;
}

.code-purple { color: #c69bff; }
.code-blue { color: #82cfff; }
.code-green { color: #91e5b1; }
.code-orange { color: #eab879; }
.code-comment { color: #71869a; }

.code-run {
    margin-top: 15px;
}

.code-comment {
    white-space: normal;
}

.code-cursor {
    display: inline-block;
    width: 7px;
    height: 1.15em;
    margin-left: 5px;
    vertical-align: text-bottom;
    background: #79e8c0;
    animation: cursorBlink 1s steps(2, start) infinite;
}

@keyframes cursorBlink {
    to { visibility: hidden; }
}

.code-window-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px;
    border-top: 1px solid rgba(163, 187, 208, 0.1);
    background: rgba(105, 240, 192, 0.035);
    color: #8195a9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.7px;
}

.code-window-footer span:first-child {
    color: #8be8c3;
}

.code-window-footer .bi {
    margin-right: 5px;
}

.visual-orbit {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(125, 237, 199, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.visual-orbit-one {
    inset: 0;
    transform: rotate(-18deg) scaleY(0.58);
    animation: orbitDrift 16s linear infinite;
}

.visual-orbit-two {
    inset: 6% -2%;
    border-color: rgba(132, 171, 255, 0.11);
    transform: rotate(28deg) scaleY(0.62);
    animation: orbitDrift 22s linear infinite reverse;
}

@keyframes orbitDrift {
    to { rotate: 360deg; }
}

@media (max-width: 980px) {
    .hero .container {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(3.7rem, 7vw, 5.5rem);
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-visual {
        padding: 24px 8px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .hero-content {
        padding: 16px 0 4px;
    }

    .hero h1 {
        font-size: clamp(3.15rem, 15vw, 5.4rem);
    }

    .hero-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        width: min(100%, 500px);
        justify-self: center;
        padding: 22px 8px;
    }

    .code-window {
        transform: none;
        animation: none;
    }

    .visual-orbit {
        display: none;
    }
}

@media (max-width: 420px) {
    .hero-visual {
        padding-right: 0;
        padding-left: 0;
    }

    .code-window-bar {
        gap: 9px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .code-editor {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 0.6rem;
    }

    .code-line::before {
        width: 1.6em;
        margin-right: 0.8em;
    }
}

/* ===== PERFORMANCE OPTIMIZATION ===== */
@supports (display: grid) {
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
}

/* GPU Acceleration for smooth animations */
@supports (will-change: transform) {
    .reveal,
    .hero-content,
    .hero-visual,
    .float-card,
    nav a,
    .btn,
    .stat-mini,
    .mobile-menu-drawer,
    .mobile-menu-overlay {
        will-change: auto;
    }

    .hero-content::before {
        will-change: transform;
    }

    .btn::before {
        will-change: transform;
    }

    nav a::before {
        will-change: width;
    }
}

/* Reduce particle count on low-end devices */
@media (max-width: 480px) {
    body::before,
    body::after {
        width: 28rem;
        height: 28rem;
        filter: blur(80px);
        opacity: 0.15;
    }
}

/* Optimize animations for smaller screens */
@media (max-width: 768px) {
    body::before,
    body::after {
        animation-duration: 20s;
    }

    @keyframes logoGlow {
        0%, 100% { text-shadow: 0 0 6px rgba(126, 249, 198, 0.6); }
        50% { text-shadow: 0 0 16px rgba(126, 249, 198, 0.8); }
    }
}
