﻿:root {
    --text: #e2e8f0;
    --muted-bg: rgba(15, 23, 42, 0.12);
    --accent: #6366f1;
}

/* Lightweight reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: var(--text);
    scroll-behavior: smooth;
    background-color: #080312;
    background-image: none;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

strong, b { font-weight: 700; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 16% 20%, rgba(59, 130, 246, 0.15), transparent 16%),
        radial-gradient(circle at 84% 18%, rgba(168, 213, 255, 0.15), transparent 18%),
        radial-gradient(circle at 34% 74%, rgba(168, 85, 247, 0.10), transparent 14%);
    filter: blur(1px);
    animation: backgroundShift 22s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 120px 120px, 60px 60px;
    background-position: 14% 18%, 72% 84%;
    opacity: 0.04;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-2%, 1.5%) scale(1.02);
    }
}

/* NAVBAR */

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(79, 70, 229, 0.18);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(147, 51, 234, 0.20);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.10);
}

/* LOGO */
.logo {
    color: #e0e7ff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links li {
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-links a {
    color: #dbeafe;
    text-decoration: none;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #c4b5fd;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links li:hover a {
    color: #d8b4fe;
    transform: translateY(-2px);
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.18);
    box-shadow: 8px 12px 30px rgba(79, 70, 229, 0.08);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* 3D HOVER EFFECT */
.profile:hover {
    transform: rotateX(10deg) rotateY(-10deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.3);
}

/* PROFILE IMAGE */
.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.45);
    transform: translateZ(20px);
}

/* TEXT */
.info h4 {
    color: #0f172a;
    font-size: 14px;
}

.info p {
    color: #2563eb;
    font-size: 12px;
}

/* Header */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-bottom: 1px solid rgba(99, 102, 241, 0.10);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#hero-content {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 32px 40px;
    border-radius: 28px;
    background: transparent;
}

#hero-content > * {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

header h1 {
    position: relative;
    font-family: inherit;
    font-size: clamp(3rem, 6vw, 5rem);
    margin: 20px 0 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.05;
    color: #eef2ff;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.35);
}

header h1::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
}

header h1:hover::before {
    opacity: 1;
    transform: scale(1.08);
}

header h1 .name-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 30%, #7c3aed 60%, #d946ef 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: text-shadow 0.35s ease, transform 0.35s ease;
    animation: gradientFlow 6s ease infinite;
}

header h1:hover .name-highlight {
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.9), 0 0 20px rgba(123, 44, 237, 0.85);
    transform: translateY(-2px);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 30%, #7c3aed 60%, #d946ef 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: gradientFlow 6s ease infinite;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hero-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-button:hover,
.hero-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(99, 102, 241, 0.24);
    opacity: 0.98;
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.admin-logout {
    display: inline-flex;
    margin-top: 16px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.project-card {
    position: relative;
    padding: 24px;
    border-radius: 22px;
    background: transparent;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.project-card[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: rgba(11,17,33,0.7);
    z-index: 0;
}

.project-card[style*="background-image"] > * {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(79, 70, 229, 0.16);
}

.project-tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #eef2ff;
    background: rgba(99, 102, 241, 0.18);
    margin-bottom: 16px;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
    color: #eef2ff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-link:hover,
.project-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.project-link-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #c7d2fe;
}

/* ====== CONTACT SECTION ====== */
#contact {
    position: relative;
    overflow: hidden;
}
.contact-bg-orb {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.12), rgba(124,58,237,0.06), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.contact-subtitle {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.2fr);
    gap: 28px;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.contact-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(99,102,241,0.12);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.contact-icon svg {
    width: 20px;
    height: 20px;
}
.contact-info-item:hover .contact-icon {
    transform: scale(1.08);
}
.contact-icon-email {
    background: rgba(59,130,246,0.18);
    color: #60a5fa;
}
.contact-icon-whatsapp {
    background: rgba(34,197,94,0.18);
    color: #4ade80;
}
.contact-icon-location {
    background: rgba(168,85,247,0.18);
    color: #c084fc;
}

.contact-info-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-item strong {
    color: #c7d2fe;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-info-item a,
.contact-info-item span {
    color: #eef2ff;
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 0.2s;
}

.contact-info-item a:hover {
    color: #818cf8;
}

/* Social links */
.contact-social {
    display: flex;
    gap: 12px;
    padding: 6px 0;
}
.social-link {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
}
.social-link svg {
    width: 20px;
    height: 20px;
}
.social-link:hover {
    transform: translateY(-3px);
    border-color: rgba(99,102,241,0.3);
}
.social-link:hover:first-child { color: #f0f6fc; background: rgba(36,41,46,0.9); border-color: rgba(255,255,255,0.2); }
.social-link:nth-child(2):hover { color: #e1306c; background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.3); }
.social-link:nth-child(3):hover { color: #ff0000; background: rgba(255,0,0,0.1); border-color: rgba(255,0,0,0.25); }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
}
.contact-form:focus-within {
    box-shadow: 0 0 40px rgba(99,102,241,0.08);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}
.input-group:focus-within .input-icon {
    color: #818cf8;
}
.input-icon-textarea {
    align-self: flex-start;
    margin-top: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 197, 253, 0.15);
    background: rgba(15, 23, 42, 0.7);
    color: #eef2ff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form textarea {
    padding-left: 44px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99,102,241,0.3);
}
.contact-submit-btn:active {
    transform: translateY(0);
}
.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.contact-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.form-error {
    color: #f8d7da;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: none;
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Light mode overrides */
body.light-mode .contact-info-card {
    background: rgba(255,255,255,0.8);
    border-color: rgba(148,197,253,0.3);
}
body.light-mode .contact-info-item strong { color: #475569; }
body.light-mode .contact-info-item a,
body.light-mode .contact-info-item span { color: #334155; }
body.light-mode .contact-info-item a:hover { color: #6366f1; }
body.light-mode .contact-form {
    background: rgba(255,255,255,0.8);
    border-color: rgba(148,197,253,0.3);
}
body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: rgba(241,245,249,0.9);
    color: #1e293b;
    border-color: rgba(0,0,0,0.1);
}
body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
body.light-mode .input-icon { color: #94a3b8; }
body.light-mode .input-group:focus-within .input-icon { color: #6366f1; }
body.light-mode .social-link {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: #64748b;
}
body.light-mode .contact-bg-orb {
    background: radial-gradient(circle, rgba(99,102,241,0.08), rgba(124,58,237,0.04), transparent 70%);
}

@media (max-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .project-actions {
        justify-content: flex-start;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s ease, transform 0.85s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

h2,
.skill-card h3,
.video-card-details h3,
.footer-branding h3,
.project-title {
    background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 40%, #c084fc 70%, #9333ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-card h3 {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

header p#typing {
    color: #eef2ff;
    font-size: 1.05rem;
    max-width: 640px;
    line-height: 1.8;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* Typing cursor */
#typing {
    display: inline-block;
    white-space: pre-wrap;
}

#typing::after {
    content: '|';
    display: inline-block;
    margin-left: 6px;
    color: rgba(255,255,255,0.9);
    animation: blinkCursor 1s steps(2, start) infinite;
    font-weight: 300;
}

@keyframes blinkCursor {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Click hint and pointer cursor for revealable areas */
.revealable {
    cursor: pointer;
    position: relative;
}

.revealable .click-hint {
    position: absolute;
    right: 12px;
    top: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.22));
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    opacity: 0.95;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px) saturate(120%);
    backdrop-filter: blur(4px) saturate(120%);
    box-shadow: 0 6px 18px rgba(2,6,23,0.28);
}

/* Profile */
.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(125, 211, 252, 0.52);
    box-shadow: 0 16px 50px rgba(47, 124, 224, 0.24), 0 0 60px rgba(99, 102, 241, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(47, 124, 224, 0.35), 0 0 80px rgba(99, 102, 241, 0.25);
}

/* 3D Skill Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    perspective: 1000px;
}

/* Hint text shown under the upload field */
.upload-hint {
    margin-top: 6px;
    color: #dbeafe;
    font-size: 0.92rem;
}

.no-js-warning {
    display: block;
    margin: 0;
    padding: 18px 24px;
    background: rgba(220, 38, 38, 0.12);
    color: #f8fafc;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(248, 113, 113, 0.35);
}

.mute-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    margin-top: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.mute-button:hover,
.mute-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 940px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 18px 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-links.nav-open {
        max-height: 260px;
    }

    .profile {
        justify-content: center;
        margin: 0 auto;
    }

    header {
        padding-top: 40px;
    }

    .video-portfolio-container {
        padding: 0 16px;
    }

    .video-management-panel {
        width: 100%;
        padding: 26px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.60);
        border: 1px solid rgba(148, 197, 253, 0.18);
    }

    .admin-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 22px;
        border: 1px solid rgba(255, 173, 88, 0.25);
        border-radius: 999px;
        background: linear-gradient(135deg, #ac6c2d, #d89f6b);
        color: #fff;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    }

    .admin-btn:hover,
    .admin-btn:focus {
        transform: translateY(-1px);
        box-shadow: 0 20px 40px rgba(255, 158, 82, 0.15);
        opacity: 0.96;
    }
}

@media (max-width: 780px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-branding,
    .footer-links {
        width: 100%;
        max-width: 480px;
    }

    .footer-links {
        padding-top: 15px;
    }

    .video-header h2 {
        font-size: 1.9rem;
    }

    .video-header p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 18px 18px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-toggle span {
        width: 20px;
    }

    .profile {
        width: 100%;
        justify-content: center;
    }

    header {
        padding: 40px 18px 60px;
    }

    header h1 {
        font-size: 2.75rem;
    }

    header p#typing {
        font-size: 1rem;
        max-width: 100%;
    }

    section {
        padding: 60px 16px;
    }

    .video-showcase-grid {
        gap: 18px;
    }

    .video-management-panel {
        padding: 22px;
    }
}

.skill-card {
    background: transparent;
    padding: 24px;
    border-radius: 22px;
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(79, 70, 229, 0.10);
}

.skill-card h3 {
        margin-bottom: 10px;
        font-family: inherit;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 40%, #c084fc 70%, #9333ea 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.skill-rating {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.skill-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    font-size: 0.88rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-top: 6px;
}

.skill-level {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa, #7c3aed);
    transition: width 0.4s ease;
}

.skill-level-95 { width: 95%; }
.skill-level-92 { width: 92%; }
.skill-level-90 { width: 90%; }
.skill-level-88 { width: 88%; }
.skill-level-85 { width: 85%; }
.skill-level-80 { width: 80%; }

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1140px;
    margin: 0 auto;
    background: transparent;
    border-radius: 28px;
}

#about {
    color: #e2e8f0;
}

#about h2 {
    color: #f8fafc;
}

#about p {
    color: #cbd5e1;
    line-height: 1.9;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00c0ff;
    color: #040b18;
    padding: 12px 20px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(0, 138, 241, 0.28);
    transition: 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
    background: #d67a38;
    transform: translateY(-2px);
}

.site-footer {
    background: transparent;
    border-top: 1px solid rgba(167, 139, 250, 0.15);
    padding: 40px 20px 20px;
    margin-top: 40px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.06));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    animation: footerGlow 6s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
    background: transparent;
    padding: 28px;
    border-radius: 24px;
}

.footer-branding h3,
.footer-links p {
    margin: 0 0 10px;
    background: linear-gradient(90deg, #60a5fa 0%, #8b5cf6 45%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-profile h4,
.footer-profile p {
    margin: 0;
    color: #dbeafe;
}

.footer-branding p,
.footer-links a {
    color: #eef2ff;
}

.footer-links a {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-links .email-button {
    border: 1px solid rgba(66, 133, 244, 0.85);
    color: #4285f4;
    background: rgba(66, 133, 244, 0.08);
}

.footer-links .email-button:hover {
    color: #ffffff;
    background: rgba(66, 133, 244, 0.95);
    border-color: rgba(66, 133, 244, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.18);
}

.footer-links .whatsapp-button {
    border: 1px solid rgba(37, 211, 102, 0.85);
    color: #25d366;
    background: rgba(37, 211, 102, 0.10);
}

.footer-links .whatsapp-button:hover {
    color: #ffffff;
    background: rgba(37, 211, 102, 0.95);
    border-color: rgba(37, 211, 102, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.18);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 780px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-branding,
    .footer-links {
        width: 100%;
        max-width: 480px;
    }

    .footer-links {
        padding-top: 15px;
    }
}

/* Admin visibility ΓÇö must be outside any media query */
.admin-only {
    display: none !important;
}

.admin-only.admin-visible {
    display: block !important;
}

.admin-floating-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 25;
    padding: 16px 22px;
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.28);
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-floating-btn:hover,
.admin-floating-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.34);
}

/* Remove button on video cards */
.delete-video-btn {
    margin-top: 14px;
    padding: 8px 18px;
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-video-btn:hover {
    background: #991b1b;
}

/* Container Layout Architecture */
.video-portfolio-container {
    max-width: 1140px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.video-header {
    text-align: center;
    margin-bottom: 40px;
}

.video-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 40%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.video-header p {
    color: #c7d2fe;
    font-size: 1.05rem;
}

/* Grid Design Rules */
.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-showcase-card {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.35), rgba(107, 33, 168, 0.32));
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(192, 132, 252, 0.75);
    box-shadow: 0 25px 70px rgba(79, 70, 229, 0.24);
}

.video-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-frame-container iframe,
.video-frame-container video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

.video-card-details {
    padding: 20px;
}

.video-card-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #eef2ff;
}

.video-card-details p {
    margin: 0;
    font-size: 0.95rem;
    color: #dbeafe;
    line-height: 1.6;
}

/* Management Form Panel Styles */
.video-management-panel {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(148, 197, 253, 0.20);
    border-radius: 20px;
    padding: 32px;
    max-width: 680px;
    margin: 0 auto;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.video-management-panel h3 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 1.4rem;
}

.panel-note {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.upload-form-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input,
.input-group textarea {
    background: #222222;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.98rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
}

.submit-video-btn {
    background: #00bcd4;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.submit-video-btn:hover {
    background: #0097a7;
}

/* Small floating Theme button linking to fonts-and-colors.html */
.meta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(124,58,237,0.95));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(79,70,229,0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.meta-button:hover { transform: translateY(-2px); opacity: 0.98 }

/* Footer layout: center bottom text and button */
.site-footer .footer-bottom { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Place Theme button under footer branding */
.footer-branding { display:flex; flex-direction:column; align-items:flex-start; gap:8px }
.footer-branding .meta-button { margin-top:6px; padding:8px 12px; font-size:0.95rem }

/* Styles for the fonts-and-colors page */
.meta-page { max-width: 880px; margin: 48px auto; padding: 28px; }
.meta-page .font-sample { margin-top: 18px; padding: 18px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.meta-page .font-sample.primary { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; }
.meta-page .font-sample.secondary { font-family: 'Courier New', monospace; }
.meta-page .mt-18 { margin-top: 18px; }
.meta-page .swatches { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.meta-page .swatch { width:120px; height:80px; border-radius:8px; box-shadow:0 8px 20px rgba(2,6,23,0.12); display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700 }
.meta-page .swatch--text { background: #e2e8f0; color: #0f172a }
.meta-page .swatch--accent { background: #6366f1 }
.meta-page .swatch--gradient { background: linear-gradient(90deg,#60a5fa,#6366f1,#7c3aed,#d946ef) }
.meta-page .swatch--navbar { background: rgba(79,70,229,0.18) }

.resume-card {
    position: relative;
    max-width: 760px;
    margin: 32px auto;
    padding: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.resume-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.resume-header .resume-intro {
    max-width: none;
}

.profile-photo {
    width: 110px;
    height: 110px;
    justify-self: start;
    align-self: center;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resume-header h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 3rem);
    line-height: 1.05;
}

.resume-header .role {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.05rem;
}

.resume-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-section:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.resume-grid {
    display: grid;
    gap: 18px;
}

.resume-grid > div {
    display: grid;
    gap: 10px;
}

.resume-section h2 {
    margin: 0 0 12px;
    font-size: 1.18rem;
    color: #eef2ff;
}

.resume-section p,
.resume-section ul {
    color: #dbeafe;
    line-height: 1.7;
}

.resume-section ul {
    list-style: disc inside;
    padding-left: 0;
}

.resume-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

.resume-footer .back {
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 700;
}

.resume-footer .back:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .profile-photo {
        width: 100px;
        height: 100px;
        justify-self: center;
    }
}

/* Admin password modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 24px;
    padding: 36px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.modal-box h3 {
    margin: 0 0 8px;
    color: #eef2ff;
    font-size: 1.4rem;
}

.modal-box p {
    color: #94a3b8;
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.modal-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.9);
    color: #eef2ff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-box input[type="password"]:focus {
    border-color: #6366f1;
}

.modal-error {
    color: #fca5a5;
    font-size: 0.9rem;
    display: none;
    margin-top: 8px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-buttons .submit-video-btn {
    flex: 1;
    margin-top: 0;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

/* Admin panel on main page */
.admin-panel {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-panel-inner {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    padding: 32px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.admin-panel-inner h3 {
    margin: 0 0 20px;
    color: #eef2ff;
    font-size: 1.3rem;
}

.admin-panel-inner label {
    display: block;
    color: #c7d2fe;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-panel-inner input,
.admin-panel-inner textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 197, 253, 0.2);
    background: rgba(15, 23, 42, 0.8);
    color: #eef2ff;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s;
}

.admin-panel-inner input:focus,
.admin-panel-inner textarea:focus {
    border-color: #6366f1;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.admin-actions .submit-video-btn {
    flex: 1;
    min-width: 140px;
}

.export-btn {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.35) !important;
}

.logout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.feature-status {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    padding: 40px 20px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    margin: 20px 0;
}

/* Fix admin-only inline display for button containers */
.admin-only.admin-visible.admin-panel {
    display: block !important;
}

.admin-actions .submit-video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comments section */
.comments-section {
    margin-top: 16px;
    border-top: 1px solid rgba(148,163,184,0.15);
    padding-top: 12px;
}
.comments-toggle {
    background: none;
    border: 1px solid rgba(148,163,184,0.2);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
}
.comments-toggle:hover {
    background: rgba(99,102,241,0.1);
    color: #e2e8f0;
    border-color: #6366f1;
}
.comments-content {
    margin-top: 12px;
}
.comment-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(148,163,184,0.1);
}
.comment-item strong {
    color: #818cf8;
    font-size: 0.85rem;
}
.comment-item p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin: 4px 0 0;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.comment-form input,
.comment-form textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #6366f1;
}
.comment-submit {
    align-self: flex-start;
    padding: 6px 16px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: opacity 0.2s;
}
.comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Video project player */
.video-project-player {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #000;
}
.video-project-player iframe,
.video-project-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

/* ====== GRAIN TEXTURE OVERLAY ====== */
.profile-img-fallback {
  display: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(99,102,241,0.25);
}
.profile-img-fallback.show { display: flex; }
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    mix-blend-mode: overlay;
    opacity: 0.06;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ====== GLASSMORPHISM NAVBAR ====== */
.navbar {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(148, 197, 253, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ====== GRADIENT BORDER ON PROJECT CARDS ====== */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(124, 58, 237, 0.08), rgba(217, 70, 239, 0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(79, 70, 229, 0.25);
}

/* ====== SKILL BAR ANIMATION (start at 0, animate on scroll) ====== */
.skill-level {
    width: 0 !important;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.skill-level.animated {
    width: var(--target-width) !important;
}

/* ====== SMOOTH SCROLL ====== */
html {
    scroll-behavior: smooth;
}

/* ====== DARK MODE ====== */
body.light-mode {
    --text: #1e293b;
    --muted-bg: rgba(241, 245, 249, 0.8);
    background-color: #f5f3ff;
}
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 197, 253, 0.3);
}
body.light-mode .navbar a { color: #1e293b; }
body.light-mode .logo { color: #334155; }
body.light-mode .project-card {
    background: transparent;
}
body.light-mode section {
    background: transparent;
}
body.light-mode #about {
    background: transparent;
}
body.light-mode #about p { color: #334155; }
body.light-mode .skill-card {
    background: transparent;
}
body.light-mode .site-footer {
    background: transparent;
}
body.light-mode header p#typing { color: #334155; }
body.light-mode .hero-button-secondary {
    color: #1e293b;
    border-color: rgba(0,0,0,0.15);
}

/* ====== CURSOR FOLLOWER ====== */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(129, 140, 248, 0.7);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.06s linear, background 0.3s;
    mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(129, 140, 248, 0.35);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
    mix-blend-mode: difference;
}
.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(129, 140, 248, 0.6);
}
@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 197, 253, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.25);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(99, 102, 241, 1);
    transform: translateY(-3px);
}
.back-to-top svg {
    width: 20px;
    height: 20px;
}
.back-to-top .progress-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.back-to-top .progress-ring circle {
    fill: none;
    stroke: rgba(255,255,255,0.3);
    stroke-width: 2;
    cx: 24;
    cy: 24;
    r: 20;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.3s;
}

/* ====== PROJECT MODAL ====== */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.project-modal.open {
    display: flex;
}
.project-modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 197, 253, 0.2);
    border-radius: 24px;
    padding: 32px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.project-modal-close {
    float: right;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.project-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}
.project-modal h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.project-modal .modal-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(99,102,241,0.2);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.project-modal .modal-desc {
    color: #cbd5e1;
    line-height: 1.7;
    margin: 12px 0 20px;
}
.project-modal .modal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-modal .modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99,102,241,0.3);
}

/* ====== SCROLL ANIMATIONS ====== */
.animate-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.animate-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.animate-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ====== AVAILABILITY BADGE ====== */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.availability-badge.available {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.availability-badge.busy {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.availability-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.availability-badge.available .dot {
    background: #4ade80;
    animation: pulse-dot 2s infinite;
}
.availability-badge.busy .dot {
    background: #f87171;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ====== DARK MODE TOGGLE ====== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(148,197,253,0.2);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-left: 8px;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(15deg);
}
body.light-mode .theme-toggle {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    color: #334155;
}

/* ====== DARK MODE TRANSITION ====== */
body, .navbar, .project-card, section, .contact-form input, .contact-form textarea,
.skill-card, .site-footer, .back-to-top, #about, .theme-toggle,
.contact-info-card, .contact-form, .social-link, .input-icon,
.stats-grid, .timeline, .search-bar, .skeleton, .lightbox {
    transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* ====== PAGE TRANSITION FADE ====== */
body {
    opacity: 0;
    animation: pageFadeIn 0.4s ease forwards;
}
@keyframes pageFadeIn {
    to { opacity: 1; }
}

/* ====== PROJECT SEARCH ====== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 32px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(148,197,253,0.15);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.search-bar svg {
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}
.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #eef2ff;
    font-size: 0.95rem;
    font-family: inherit;
}
.search-bar input::placeholder { color: #64748b; }
body.light-mode .search-bar { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.1); }
body.light-mode .search-bar input { color: #1e293b; }
body.light-mode .search-bar svg { color: #94a3b8; }

/* ====== LOADING SKELETON ====== */
.skeleton-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.skeleton {
    height: 220px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border: 1px solid rgba(148,197,253,0.08);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
body.light-mode .skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
    border-color: rgba(0,0,0,0.06);
}

/* ====== STATS BAR ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0 0;
}
.stat-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}
.stat-label {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
body.light-mode .stat-card { background: rgba(255,255,255,0.8); border-color: rgba(148,197,253,0.3); }
body.light-mode .stat-label { color: #64748b; }

/* ====== WORK PROCESS TIMELINE ====== */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.timeline-step {
    position: relative;
    padding: 24px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    text-align: center;
    transition: transform 0.3s ease;
}
.timeline-step:hover {
    transform: translateY(-6px);
}
.timeline-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(124,58,237,0.2));
    color: #a5b4fc;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.timeline-step h4 {
    margin: 0 0 6px;
    color: #e2e8f0;
    font-size: 1.05rem;
}
.timeline-step p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}
body.light-mode .timeline-step { background: rgba(255,255,255,0.8); border-color: rgba(148,197,253,0.3); }
body.light-mode .timeline-step h4 { color: #1e293b; }
body.light-mode .timeline-step p { color: #64748b; }
body.light-mode .timeline-step .step-num { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(124,58,237,0.15)); }

/* ====== IMAGE LIGHTBOX ====== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}
.lightbox.open {
    display: flex;
}
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
    animation: lightboxIn 0.3s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* ====== SHARE BUTTON ====== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148,197,253,0.12);
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    transition: all 0.2s;
    margin-right: 6px;
}
.share-btn:hover {
    background: rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.25);
    color: #a5b4fc;
}
.share-btn svg {
    width: 14px;
    height: 14px;
}
.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,197,253,0.2);
    color: #e2e8f0;
    font-size: 0.9rem;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    backdrop-filter: blur(8px);
}
.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
body.light-mode .share-btn { color: #64748b; border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.03); }
body.light-mode .share-btn:hover { background: rgba(99,102,241,0.1); color: #6366f1; }
body.light-mode .share-toast { background: rgba(255,255,255,0.95); color: #1e293b; border-color: rgba(0,0,0,0.1); }

/* ====== 5 SELECTABLE BACKGROUND THEMES ====== */
body.bg-nebula {
    background-color: #0a0a1a;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.10) 0%, transparent 40%);
}
body.bg-nebula::before {
    background:
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.12), transparent 30%),
        radial-gradient(circle at 75% 65%, rgba(139, 92, 246, 0.10), transparent 30%),
        radial-gradient(circle at 45% 80%, rgba(168, 85, 247, 0.08), transparent 25%);
    animation: bgFloatNebula 20s ease-in-out infinite;
}
@keyframes bgFloatNebula {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(1%, -1.5%) scale(1.03); }
    66% { transform: translate(-1%, 1%) scale(0.98); }
}

body.bg-matrix {
    background-color: #0a0f0a;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(0, 255, 100, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 200, 80, 0.04) 0%, transparent 50%);
}
body.bg-matrix::before {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 100, 0.03) 2px, rgba(0, 255, 100, 0.03) 3px),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 100, 0.05), transparent 40%);
    animation: bgRain 8s linear infinite;
    filter: none;
}
@keyframes bgRain {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

body.bg-galaxy {
    background-color: #050510;
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 30%),
        radial-gradient(ellipse at 20% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
}
body.bg-galaxy::before {
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 25% 55%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 85% 80%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 35% 90%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 75% 50%, rgba(255,255,255,0.3), transparent);
    background-size: 200% 200%;
    animation: bgTwinkle 6s ease-in-out infinite alternate;
    filter: none;
}
@keyframes bgTwinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

body.bg-ocean {
    background-color: #0a121e;
    background-image:
        radial-gradient(ellipse at 50% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 40%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
}
body.bg-ocean::before {
    background:
        linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.04) 25%, rgba(14, 165, 233, 0.04) 50%, rgba(99, 102, 241, 0.04) 75%, transparent 100%);
    background-size: 200% 100%;
    animation: bgSwell 12s ease-in-out infinite;
    filter: none;
}
@keyframes bgSwell {
    0%, 100% { background-position: 0% 0%; opacity: 0.5; }
    50% { background-position: 100% 0%; opacity: 1; }
}

body.bg-aurora {
    background-color: #0a0e1a;
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.04) 0%, transparent 40%);
}
body.bg-aurora::before {
    background:
        linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.06) 20%, rgba(99, 102, 241, 0.06) 40%, rgba(168, 85, 247, 0.06) 60%, rgba(236, 72, 153, 0.04) 80%, transparent 100%);
    background-size: 300% 100%;
    animation: bgAurora 15s ease-in-out infinite;
    filter: blur(4px);
}
@keyframes bgAurora {
    0%, 100% { background-position: 0% 0%; opacity: 0.4; }
    25% { background-position: 50% 0%; opacity: 0.8; }
    50% { background-position: 100% 0%; opacity: 0.6; }
    75% { background-position: 50% 0%; opacity: 0.9; }
}

.about-grid { max-width: 720px; margin: 0 auto; }
.about-text p { color: #94a3b8; line-height: 1.8; font-size: 1rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.about-highlight { display: flex; align-items: flex-start; gap: 12px; background: rgba(15,23,42,0.12); border-radius: 12px; padding: 16px; }
.about-highlight .about-icon { font-size: 1.4rem; line-height: 1.4; }
.about-highlight strong { color: #eef2ff; }
.about-highlight div { color: #94a3b8; font-size: 0.85rem; line-height: 1.5; }
.light-mode .about-text p { color: #475569; }
.light-mode .about-highlight { background: rgba(255,255,255,0.5); }
.light-mode .about-highlight strong { color: #1e293b; }
.light-mode .about-highlight div { color: #475569; }
@media (max-width: 600px) { .about-highlights { grid-template-columns: 1fr; } }

.testimonials-carousel {
  position: relative;
  max-width: 650px;
  margin: 30px auto 0;
}
.testimonials-track {
  overflow: hidden;
  min-height: 160px;
}
.test-carousel-slide {
  display: none;
  animation: testFade 0.5s ease;
}
.test-carousel-slide.active {
  display: block;
}
@keyframes testFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.test-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,23,42,0.3);
  color: #94a3b8;
  border: 1px solid rgba(148,197,253,0.08);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.test-carousel-btn:hover { background: rgba(99,102,241,0.2); color: #eef2ff; }
.test-prev { left: -50px; }
.test-next { right: -50px; }
.test-dots { text-align: center; margin-top: 16px; display: flex; justify-content: center; gap: 8px; }
.test-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(148,197,253,0.15); cursor: pointer; transition: background 0.2s; }
.test-dot.active { background: #6366f1; }
.testimonial-card-body { padding: 28px; background: rgba(15,23,42,0.08); border-radius: 20px; }
.testimonial-quote {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(99,102,241,0.3);
}
.testimonial-author { color: #e2e8f0; font-size: 0.9rem; }
.testimonial-author strong { color: #eef2ff; }
.testimonial-author span { color: #818cf8; font-size: 0.82rem; }
.light-mode .testimonial-quote { color: #475569; border-left-color: rgba(99,102,241,0.4); }
.light-mode .testimonial-author strong { color: #1e293b; }
.light-mode .testimonial-author span { color: #6366f1; }
.light-mode .testimonial-author { color: #334155; }
@media (max-width: 760px) {
  .test-prev { left: -10px; }
  .test-next { right: -10px; }
  .test-carousel-btn { width: 32px; height: 32px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  header h1 { font-size: 2rem; }
  header p#typing { font-size: 0.9rem; }
  .hero-badge { font-size: 0.7rem; padding: 4px 14px; }
  .hero-actions .hero-button { font-size: 0.85rem; padding: 10px 22px; }
  .section-title { font-size: 1.4rem; }
  section { padding: 48px 14px; }
  .project-card { padding: 18px; border-radius: 16px; }
  .stat-number { font-size: 1.7rem; }
  .stat-card { padding: 16px 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-grid { gap: 20px; }
  .test-carousel-slide { padding: 28px 20px; }
  .test-text { font-size: 0.9rem; }
  .test-author { font-size: 0.85rem; }
  .test-role { font-size: 0.75rem; }
  .about-highlights { gap: 10px; }
  .highlight-card { padding: 16px; }
  .highlight-card .h-icon { font-size: 1.4rem; }
  .highlight-card h4 { font-size: 0.85rem; }
  .highlight-card p { font-size: 0.78rem; }
  .category-tabs { gap: 6px; }
  .category-tab { font-size: 0.78rem; padding: 8px 14px; }
  .admin-header h1 { font-size: 1.2rem; }
  .admin-logout { font-size: 0.78rem; padding: 8px 16px !important; }
  .profile-card { flex-direction: column; text-align: center; padding: 20px; }
  .photo-upload-wrap { width: 90px; height: 90px; }
  .form-row { flex-direction: column; gap: 0; }
  .footer-content { gap: 10px; }
  .footer-branding h3 { font-size: 1.1rem; }
  .resume-page .header { flex-direction: column; text-align: center; padding: 24px 18px; }
  .resume-page .body { grid-template-columns: 1fr; }
  .resume-page .sidebar { border-right: none; border-bottom: 1px solid rgba(148,197,253,0.06); }
  .skills-grid { grid-template-columns: 1fr; }
}

/* Scroll progress bar */
.scroll-progress { position:fixed;top:0;left:0;width:0%;height:3px;background:linear-gradient(90deg,#6366f1,#a78bfa);z-index:1001;transition:width 0.1s linear; }

/* Category filters */
.category-filters { display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:0 auto 20px;max-width:900px;padding:0 16px; }
.cat-filter { padding:8px 20px;border-radius:20px;border:1px solid rgba(99,102,241,0.25);background:transparent;color:#94a3b8;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.2s; }
.cat-filter:hover { border-color:#6366f1;color:#e2e8f0; }
.cat-filter.active { background:#6366f1;color:#fff;border-color:#6366f1; }

