:root {
    /* Backgrounds — deeper, richer blacks with a hint of blue-slate */
    --bg-primary:     #060912;
    --bg-secondary:   #0c1120;
    --bg-card:        #111827;
    --bg-card-hover:  #162032;
    --bg-glass:       rgba(17, 24, 39, 0.7);

    /* Accent palette — vivid, layered system */
    --accent-primary:   #00ffc8;
    --accent-secondary: #3b82f6;
    --accent-purple:    #8b5cf6;
    --accent-warning:   #f59e0b;
    --accent-danger:    #ef4444;

    /* Text — higher contrast, more nuance */
    --text-primary:   #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted:     #4b5563;
    --text-dim:       #1e293b;

    /* Borders — multi-level */
    --border-subtle:  rgba(255,255,255,0.04);
    --border-color:   rgba(255,255,255,0.08);
    --border-glow:    rgba(0, 255, 200, 0.2);

    /* Gradients */
    --gradient-1:     linear-gradient(135deg, #00ffc8 0%, #3b82f6 100%);
    --gradient-2:     linear-gradient(135deg, #00ffc8 0%, #8b5cf6 100%);
    --gradient-3:     linear-gradient(180deg, rgba(0,255,200,0.08) 0%, transparent 100%);
    --gradient-hero:  radial-gradient(ellipse 80% 60% at 50% 0%,
                        rgba(0,255,200,0.12) 0%,
                        rgba(59,130,246,0.06) 40%,
                        transparent 70%);

    /* Glows */
    --glow-primary:   0 0 40px rgba(0,255,200,0.15), 0 0 80px rgba(0,255,200,0.05);
    --glow-card:      0 0 0 1px rgba(0,255,200,0.08), 0 20px 60px rgba(0,0,0,0.5);
    --glow-strong:    0 0 60px rgba(0,255,200,0.25);

    /* Fonts */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;

    /* Radius */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #00ffc8 #060912;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060912;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffc8, #3b82f6);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffc8, #8b5cf6);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 0 20px rgba(0,255,200,0.4);
}

.section-tag.blink-in {
    opacity: 1;
    transform: translateY(0);
    animation: tagBlink 0.8s ease;
}

@keyframes tagBlink {
    0% { opacity: 0; }
    15% { opacity: 1; }
    30% { opacity: 0.2; }
    45% { opacity: 1; }
    60% { opacity: 0.4; }
    75% { opacity: 1; }
    100% { opacity: 1; }
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient-1);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0,255,200,0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-primary);
    box-shadow: 0 4px 24px rgba(0,255,200,0.2);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0,255,200,0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0,255,200,0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(0,255,200,0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0,255,200,0.15);
    color: var(--accent-primary);
}

.btn-cv {
    background: transparent;
    color: var(--accent-warning);
    border: 2px solid var(--accent-warning);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.btn-cv::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-warning);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.btn-cv:hover::before {
    transform: translateX(0);
}

.btn-cv:hover {
    color: var(--bg-primary);
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.3);
    transform: translateY(-3px);
}

.btn-cv span,
.btn-cv i {
    position: relative;
    z-index: 1;
}

.btn-cv-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--accent-warning);
    border: 2px solid var(--accent-warning);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.btn-cv-contact:hover {
    background: var(--accent-warning);
    color: var(--bg-primary);
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.25);
    transform: translateY(-3px);
}

.cv-download-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cv-hint {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-cv-link {
    color: var(--accent-warning) !important;
    border: 1px solid rgba(245,158,11,0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.nav-cv-link:hover {
    background: rgba(245,158,11,0.1);
    border-color: var(--accent-warning);
    color: var(--accent-warning) !important;
    box-shadow: 0 0 20px rgba(245,158,11,0.15);
}
.nav-cv-link::after {
    display: none !important;
}

.footer-cv { margin-bottom: 1.5rem; }
.footer-cv-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-cv-link:hover { opacity: 1; }

/* CV Terminal Overlay */
.cv-terminal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 18, 0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cv-terminal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cv-terminal-box {
    width: min(640px, 90vw);
    background: #080d14;
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 0 1px rgba(0,255,200,0.05),
        0 30px 80px rgba(0,0,0,0.6),
        0 0 60px rgba(0,255,200,0.05);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.cv-terminal-overlay.active .cv-terminal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cv-terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: #0d1420;
    border-bottom: 1px solid rgba(0,255,200,0.08);
}

.cv-terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.cv-terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.9;
    min-height: 220px;
    color: #00ffc8;
}

.cv-line {
    display: block;
    opacity: 0;
    animation: cvLineFadeIn 0.15s ease forwards;
}

@keyframes cvLineFadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

.cv-line.dim    { color: #4a5568; }
.cv-line.white  { color: var(--text-primary); }
.cv-line.green  { color: #22c55e; }
.cv-line.amber  { color: var(--accent-warning); }
.cv-line.bar    { color: #00ffc8; letter-spacing: 0.05em; }
.cv-line.prompt { color: #00ffc8; }

.cv-progress-track {
    display: inline-block;
    width: 200px;
    background: #111827;
    border-radius: 2px;
    vertical-align: middle;
    overflow: hidden;
    height: 6px;
    margin-left: 0.5rem;
}

.cv-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ffc8, #3b82f6);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-1);
    box-shadow: 0 0 10px rgba(0,255,200,0.5);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(59,130,246,0.1));
    color: var(--accent-primary);
    border: 1px solid rgba(0,255,200,0.25);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,200,0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: rgba(0,255,200,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,255,200,0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 9, 18, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 0 rgba(0,255,200,0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(6, 9, 18, 0.92);
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(0,255,200,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-bracket {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0,255,200,0.6);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a.active::after {
    width: 100%;
    background: var(--gradient-1);
    box-shadow: 0 0 8px rgba(0,255,200,0.5);
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(0,255,200,0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    animation: particleFade 0.6s ease-out forwards;
    box-shadow: 0 0 6px rgba(0,255,200,0.6);
}

@keyframes particleFade {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-orb {
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0,255,200,0.04) 60deg,
        rgba(59,130,246,0.06) 120deg,
        transparent 180deg,
        rgba(139,92,246,0.03) 240deg,
        transparent 300deg
    );
    border-radius: 50%;
    animation: orbRotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbRotate {
    from { transform: translate(-50%, -60%) rotate(0deg); }
    to   { transform: translate(-50%, -60%) rotate(360deg); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,200,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,200,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}

.floating-code {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    opacity: 0.3;
}

.floating-code span {
    position: absolute;
}

.code-pos-1 { top: 15%; left: 8%; animation: float1 18s ease-in-out infinite; }
.code-pos-2 { top: 70%; right: 10%; left: auto; animation: float2 22s ease-in-out infinite; }
.code-pos-3 { bottom: 25%; left: 15%; animation: float3 20s ease-in-out infinite; }
.code-pos-4 { top: 35%; right: 8%; left: auto; animation: float4 24s ease-in-out infinite; }
.code-pos-5 { bottom: 15%; right: 20%; left: auto; animation: float5 19s ease-in-out infinite; }
.code-pos-6 { top: 55%; left: 5%; animation: float6 21s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-15px) translateX(5px); opacity: 0.5; }
    50% { transform: translateY(-25px) translateX(-3px); opacity: 0.4; }
    75% { transform: translateY(-10px) translateX(8px); opacity: 0.5; }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    33% { transform: translateY(-20px) translateX(-8px); opacity: 0.5; }
    66% { transform: translateY(-10px) translateX(5px); opacity: 0.4; }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.25; }
    50% { transform: translateY(-30px) translateX(10px); opacity: 0.45; }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    40% { transform: translateY(-18px) translateX(-6px); opacity: 0.5; }
    80% { transform: translateY(-8px) translateX(4px); opacity: 0.35; }
}

@keyframes float5 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.25; }
    30% { transform: translateY(-12px) translateX(7px); opacity: 0.4; }
    70% { transform: translateY(-22px) translateX(-4px); opacity: 0.45; }
}

@keyframes float6 {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    45% { transform: translateY(-16px) translateX(-5px); opacity: 0.48; }
    90% { transform: translateY(-6px) translateX(3px); opacity: 0.3; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.glitch-wrapper {
    margin-bottom: 1.5rem;
}

.glitch {
    font-size: 4.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 0 80px rgba(0,255,200,0.2);
}

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

.glitch::before {
    animation: glitch-1 2s infinite linear;
    color: var(--accent-primary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite linear;
    color: var(--accent-purple);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
    40% { clip-path: inset(40% 0 20% 0); transform: translate(3px, -2px); }
    60% { clip-path: inset(60% 0 10% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(30% 0 40% 0); transform: translate(3px, -2px); }
    40% { clip-path: inset(10% 0 80% 0); transform: translate(-3px, 2px); }
    60% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -1px); }
    80% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 1px); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 1.8em;
    letter-spacing: 0.02em;
}

.hero-subtitle .cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
    box-shadow: 0 0 8px rgba(0,255,200,0.8);
}

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

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,255,200,0.05);
    border: 1px solid rgba(0,255,200,0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0,255,200,0.1);
    border-color: rgba(0,255,200,0.4);
    box-shadow: 0 0 20px rgba(0,255,200,0.1);
    transform: translateY(-2px);
}

.tag i {
    font-size: 0.8rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,255,200,0.1);
    position: relative;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--gradient-1);
    box-shadow: 0 0 20px rgba(0,255,200,0.4);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    text-shadow: 0 0 30px rgba(0,255,200,0.4);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0c1120 0%, #0a0f1c 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(0,255,200,0.08) 30%,
        rgba(59,130,246,0.08) 70%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,255,200,0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: 2px solid var(--accent-primary);
    box-shadow: inset 0 0 30px rgba(0,255,200,0.02);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(0,255,200,0.07);
    box-shadow: inset 0 0 30px rgba(0,255,200,0.04),
                4px 0 20px rgba(0,255,200,0.1);
    transform: translateX(4px);
}

.highlight-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(0,255,200,0.5));
}

.highlight-item span {
    font-weight: 500;
}

/* Interactive Terminal */
.terminal-window {
    background: #080d14;
    border: 1px solid rgba(0,255,200,0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,255,200,0.04),
        0 30px 70px rgba(0,0,0,0.6),
        0 0 60px rgba(0,255,200,0.04);
}

.terminal-header {
    background: #0d1420;
    border-bottom: 1px solid rgba(0,255,200,0.08);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

#terminalLines {
    min-height: 40px;
}

.terminal-line {
    margin-bottom: 0.25rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line .cmd-echo {
    color: var(--text-secondary);
}

.terminal-line .output-line {
    color: var(--text-secondary);
    padding-left: 0;
}

.terminal-line .output-line.highlight {
    color: var(--accent-primary);
}

.terminal-line .error-line {
    color: #ef4444;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.terminal-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex: 1;
    caret-color: var(--accent-primary);
}

.terminal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.prompt {
    color: var(--accent-primary);
    margin-right: 0;
    user-select: none;
    text-shadow: 0 0 10px rgba(0,255,200,0.5);
}

.output {
    color: var(--text-secondary);
    padding-left: 1rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--accent-primary);
    animation: blink 1s infinite;
}

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

/* Skills Section */
.skills {
    padding: 6rem 0;
    position: relative;
}

/* Skill Filter Tabs */
.skill-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.25rem;
    background: rgba(17,24,39,0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.filter-tab:hover {
    border-color: rgba(0,255,200,0.2);
    color: var(--text-secondary);
}

.filter-tab.active {
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(59,130,246,0.1));
    border-color: rgba(0,255,200,0.4);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0,255,200,0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--glow-card);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(0,255,200,0.3), transparent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.skill-category.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.skill-category:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--glow-card), var(--glow-primary);
    background: var(--bg-card-hover);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(59,130,246,0.1));
    border: 1px solid rgba(0,255,200,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0,255,200,0.1);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 1rem;
    position: relative;
}

.skill-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    cursor: default;
    position: relative;
}

.skill-name[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.skill-name[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--accent-primary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.skill-name[data-tooltip]:hover::after,
.skill-name[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.skill-bar {
    height: 5px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,255,200,0.4);
    transition: width 1s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from { left: -60%; }
    to   { left: 160%; }
}

.tech-stack {
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(17,24,39,0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    min-width: 120px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,200,0.08);
    transform: translateY(-4px);
}

.tech-item i {
    font-size: 1.8rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(0,255,200,0.4));
}

.tech-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0c1120 0%, #0a0f1c 100%);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--glow-card);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    box-shadow: 0 0 12px rgba(0,255,200,0.4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,255,200,0.06) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: none;
}

.project-card:hover::after {
    opacity: 1;
    animation: scanLine 0.8s ease-in-out;
}

@keyframes scanLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--glow-card), var(--glow-primary);
    background: var(--bg-card-hover);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,255,200,0.1), rgba(59,130,246,0.05));
    border: 1px solid rgba(0,255,200,0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 12px rgba(0,255,200,0.2));
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.35rem 0.75rem;
    background: rgba(0,255,200,0.06);
    border: 1px solid rgba(0,255,200,0.12);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.75rem;
}

/* Project Modal */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 2rem;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.25s ease;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,255,200,0.05);
}

.project-modal-overlay.active .project-modal {
    transform: scale(1);
}

.project-modal::-webkit-scrollbar {
    width: 6px;
}
.project-modal::-webkit-scrollbar-track {
    background: transparent;
}
.project-modal::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-2);
    border: 1px solid rgba(0,255,200,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.modal-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.modal-status.completed {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.modal-status.in-progress {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-section ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tags span {
    padding: 0.35rem 0.85rem;
    background: rgba(0,255,200,0.1);
    border: 1px solid rgba(0,255,200,0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

/* Education Section */
.education {
    padding: 6rem 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent,
        var(--accent-primary),
        var(--accent-secondary),
        transparent);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0,255,200,0.08), 0 0 20px rgba(0,255,200,0.3);
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-left: auto;
    position: relative;
    box-shadow: var(--glow-card);
    transition: all 0.35s ease;
}

.timeline-content:hover {
    border-color: var(--border-glow);
    box-shadow: var(--glow-card), var(--glow-primary);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 2px;
    background: var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
}

.timeline-date {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(59,130,246,0.1));
    border: 1px solid rgba(0,255,200,0.2);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-institution {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-gpa {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gpa-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(0,255,200,0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.coursework {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.coursework span {
    padding: 0.35rem 0.75rem;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.coursework span:hover {
    background: rgba(0,255,200,0.08);
    border-color: rgba(0,255,200,0.2);
    color: var(--accent-primary);
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-warning);
    font-size: 0.9rem;
}

/* Certifications Section */
.certifications {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0c1120 0%, #0a0f1c 100%);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    perspective: 1000px;
    background: transparent;
    border: none;
    min-height: 260px;
}

.cert-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.cert-card:hover .cert-card-inner {
    transform: rotateY(180deg);
}

.cert-front, .cert-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.cert-front {
    background: var(--bg-card);
    box-shadow: var(--glow-card);
}

.cert-back {
    background: linear-gradient(145deg,
        rgba(0,255,200,0.08) 0%,
        rgba(59,130,246,0.05) 50%,
        var(--bg-card) 100%);
    border: 1px solid rgba(0,255,200,0.15);
    transform: rotateY(180deg);
}

.cert-back h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.cert-significance {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cert-status {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.cert-status-active {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.cert-status-progress {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}

.cert-card.featured .cert-front {
    border-color: rgba(0,255,200,0.25);
    background: linear-gradient(145deg,
        rgba(0,255,200,0.1) 0%,
        var(--bg-card) 100%);
    box-shadow: var(--glow-card), 0 0 30px rgba(0,255,200,0.08);
}

.cert-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(59,130,246,0.1));
    border: 1px solid rgba(0,255,200,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0,255,200,0.15);
}

.cert-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, rgba(0,255,200,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.35s ease;
}

.contact-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,200,0.06);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(59,130,246,0.1));
    border: 1px solid rgba(0,255,200,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(17,24,39,0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(0,255,200,0.1);
    border-color: rgba(0,255,200,0.3);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0,255,200,0.15);
    transform: translateY(-4px);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    width: 200px; height: 1px;
    background: var(--gradient-1);
    box-shadow: 0 0 20px rgba(0,255,200,0.4);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-footer {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.8rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content::before {
        left: -20px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 9, 18, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .cert-card {
        min-height: 240px;
    }
    .cert-card-inner {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .glitch {
        font-size: 2rem;
    }
    
    .skill-category,
    .project-card,
    .cert-front,
    .cert-back {
        padding: 1.5rem;
    }
    
    .tech-item {
        min-width: 100px;
        padding: 1rem;
    }

    .skill-filter-tabs {
        gap: 0.5rem;
    }
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .hero-buttons .btn {
        min-width: 160px;
    }
}
