/* ==========================================================================
   NAVIDHU ADEESHA (Mr_N4vi) - PORTFOLIO STYLES
   ========================================================================== */

/* ------------------- Reset & Custom Properties ------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Dark Theme (Pure Cyber Black Default) */
    --bg-base: #06070a;
    --bg-card: #0e1117;
    --bg-card-hover: #131720;
    --bg-card-inner: #080a0e;
    --bg-pill: rgba(255, 255, 255, 0.05);
    --bg-pill-hover: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.22);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9aa1ad;
    --text-muted: #616773;
    
    --accent-primary: #ffffff;
    --accent-primary-text: #06070a;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    
    --badge-live-bg: rgba(34, 197, 94, 0.14);
    --badge-live-text: #4ade80;
    --badge-upcoming-bg: rgba(234, 179, 8, 0.14);
    --badge-upcoming-text: #facc15;
    --badge-active-bg: rgba(59, 130, 246, 0.14);
    --badge-active-text: #60a5fa;

    --nav-bg: rgba(6, 7, 10, 0.85);
    --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 35px rgba(59, 130, 246, 0.25);
    
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-full: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-card-inner: #f8fafc;
    --bg-pill: rgba(0, 0, 0, 0.05);
    --bg-pill-hover: rgba(0, 0, 0, 0.09);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.2);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #0f172a;
    --accent-primary-text: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.07);
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    color-scheme: dark;
}

[data-theme="light"] {
    color-scheme: light;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ------------------- Ambient Glow Background ------------------- */
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    animation: ambient-pulse 10s ease-in-out infinite alternate;
}

.bg-glow-hero {
    top: -150px;
    left: 15%;
    width: 650px;
    height: 550px;
    background: radial-gradient(circle, #3b82f6, #8b5cf6, transparent 70%);
}

.bg-glow-contact {
    bottom: -120px;
    right: 10%;
    width: 550px;
    height: 500px;
    background: radial-gradient(circle, #06b6d4, #3b82f6, transparent 70%);
}

@keyframes ambient-pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
    50% { transform: scale(1.15) translate(20px, -20px); opacity: 0.22; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.15; }
}

/* ------------------- Base Container & Typography ------------------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 6.5rem 0;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    background-color: var(--text-muted);
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
}

.section-header {
    margin-bottom: 3.5rem;
}

/* ------------------- Buttons & Cards ------------------- */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.75rem 1.45rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--accent-primary-text);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.25);
}

.btn-soft {
    background-color: var(--bg-pill);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-soft:hover {
    background-color: var(--bg-pill-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
    transform: translateY(-4px);
}

/* ------------------- Header & Floating Navbar ------------------- */
.nav-wrap {
    position: fixed;
    top: 1.1rem;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    padding-left: 0.25rem;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #181b22;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-tm {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.6rem;
}

.links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.page-link svg {
    width: 14px;
    height: 14px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    background: var(--bg-pill);
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: rotate(20deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: block; }

.nav-cta {
    padding: 0.55rem 1.15rem;
    font-size: 0.86rem;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px;
    justify-content: center;
    border-radius: var(--radius-md);
}

.burger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.2s;
}

.nav-sheet {
    display: none;
}

/* ------------------- Hero Section ------------------- */
.hero {
    padding-top: 10.5rem;
    padding-bottom: 5.5rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 1rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    animation: badge-glow 3s infinite alternate ease-in-out;
}

@keyframes badge-glow {
    0% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
    100% { border-color: rgba(34, 197, 94, 0.35); box-shadow: 0 0 15px rgba(34, 197, 94, 0.15); }
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

.title .greet {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.title .name {
    display: block;
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.title .tm {
    font-weight: 300;
    font-size: 0.6em;
    color: var(--text-muted);
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
}

.typing-cursor {
    display: inline-block;
    color: var(--text-primary);
    font-family: var(--font-mono, monospace);
    font-weight: 400;
    font-size: 1.1em;
    margin-left: 3px;
    animation: blink-cursor 1s step-end infinite;
    user-select: none;
}

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

.desc {
    font-size: clamp(1.05rem, 1.8vw, 1.18rem);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2.2rem;
}

.desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 490px;
}

.stat.card {
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat b {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ------------------- Hero Visual (Profile & Glowing Animated Ring) ------------------- */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.avatar-ring-wrapper {
    position: relative;
    margin-bottom: 2rem;
    animation: profile-float 6s ease-in-out infinite;
}

@keyframes profile-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.avatar-ring {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(59,130,246,0.3) 50%, rgba(255,255,255,0.2) 100%);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.avatar-ring::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, #3b82f6, transparent 60%);
    animation: rotate-conic 8s linear infinite;
    z-index: 0;
}

@keyframes rotate-conic {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background-color: #121419;
    display: block;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(10, 12, 16, 0.9);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    max-width: 380px;
}

.tags span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tags span:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-pill-hover);
    transform: translateY(-2px);
}

/* ------------------- Capabilities (About) ------------------- */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card.cap {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
}

.cap-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-pill);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cap-icon svg {
    width: 24px;
    height: 24px;
}

.card.cap h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.card.cap p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.card.cap ul {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.card.cap ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card.cap ul li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

/* ------------------- Work & Projects ------------------- */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    padding: 0.35rem;
    border-radius: var(--radius-full);
    width: fit-content;
    border: 1px solid var(--border-subtle);
}

.tab {
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent-primary);
    color: var(--accent-primary-text);
}

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

.card.project {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
}

.shot {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #090a0d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shot-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1e2230 0%, #0d0f14 100%);
    transition: transform 0.4s ease;
    padding: 1.5rem;
}

.shot-img {
    max-width: 76%;
    max-height: 72%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.card.project:hover .shot-img {
    transform: scale(1.12) translateY(-4px);
    filter: drop-shadow(0 18px 30px rgba(56, 189, 248, 0.25));
}

.card.project:hover .shot-art {
    transform: scale(1.04);
}

.status {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.s-live {
    background: var(--badge-live-bg);
    color: var(--badge-live-text);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.s-upcoming {
    background: var(--badge-upcoming-bg);
    color: var(--badge-upcoming-text);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.s-active {
    background: var(--badge-active-bg);
    color: var(--badge-active-text);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.project .body {
    padding: 1.6rem 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.ptitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.pdesc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chiprow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    margin-bottom: 1.4rem;
}

.chip {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--bg-pill);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
}

.visit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
}

.visit:hover {
    gap: 0.6rem;
    color: #3b82f6;
}

.visit.soon {
    color: var(--text-muted);
    cursor: default;
}

/* ------------------- Skills & Interactive Orbit ------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.orbit-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-panel {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    position: relative;
}

.orbit {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rings {
    position: absolute;
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.14);
}

.spin {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: orbit-rotate 40s linear infinite;
}

.orbit-wrap:hover .spin {
    animation-play-state: paused;
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cell {
    position: absolute;
    transform: translate(-50%, -50%);
}

.counter {
    animation: orbit-counter 40s linear infinite;
}

.orbit-wrap:hover .counter {
    animation-play-state: paused;
}

@keyframes orbit-counter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.disc {
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
    cursor: pointer;
}

.disc:hover {
    transform: scale(1.35);
    filter: drop-shadow(0 0 16px var(--brand, #38bdf8)) drop-shadow(0 6px 14px rgba(0,0,0,0.95));
}

.disc svg {
    display: block;
    overflow: visible;
}

.orbit .center {
    position: absolute;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(59,130,246,0.3));
    box-shadow: 0 0 35px rgba(0,0,0,0.7);
    z-index: 2;
}

.orbit .center img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.about-lede {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.about-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.about-body strong {
    color: var(--text-primary);
}

.about-cta {
    margin-top: 1rem;
}

/* ------------------- Experience & Education ------------------- */
.exp-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 2rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card.role {
    padding: 1.85rem;
}

.role-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-head h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.period {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    background: var(--bg-pill);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.company {
    font-size: 0.95rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 0.75rem;
}

.rdesc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.rli {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rli li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rli li::before {
    content: "→";
    color: #3b82f6;
    font-weight: 700;
}

/* Education Card with Image */
.card.edu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.85rem;
}

.edu-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.card.edu h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.card.edu .level {
    font-size: 0.88rem;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.edu-photo-wrap {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 16 / 9;
    margin-top: 1.2rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.edu-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.edu-photo-wrap:hover .edu-photo {
    transform: scale(1.06);
}

/* ------------------- Services & Pricing ------------------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card.svc {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-lg);
}

.card.svc.featured {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, var(--bg-card) 100%);
}

.pop {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    background: var(--accent-primary);
    color: var(--accent-primary-text);
    border-radius: var(--radius-full);
}

.svc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-pill);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.card.svc h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.sdesc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.6rem;
    line-height: 1.55;
    min-height: 42px;
}

.price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.price b {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 800;
}

.note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.quote {
    margin-top: auto;
    width: 100%;
}

/* ------------------- Contact Section ------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.field input, .field textarea {
    width: 100%;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.field input:focus, .field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.hp {
    display: none;
}

.send {
    padding: 0.9rem 1.8rem;
    width: fit-content;
    margin-top: 0.5rem;
}

.form-status {
    font-size: 0.85rem;
    color: #4ade80;
    font-weight: 500;
    min-height: 20px;
}

.side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card h3, .socials-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

dl {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

dl .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

dl .row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

dt {
    color: var(--text-muted);
    font-weight: 500;
}

dd {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

dd a {
    color: #60a5fa;
}

dd a:hover {
    text-decoration: underline;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social:hover {
    color: #ffffff;
    background: var(--brand, #3b82f6);
    border-color: var(--brand, #3b82f6);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px -2px var(--brand, #3b82f6);
}

.social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ------------------- Footer ------------------- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0 3rem;
    background: var(--bg-card-inner);
    margin-top: 4rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.foot-brand .brand {
    padding-left: 0;
    margin-bottom: 1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-tag {
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--text-muted);
}

.foot-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 380px;
    margin-bottom: 1.5rem;
}

.foot-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.foot-socials .social {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.foot-socials .social svg {
    width: 17px;
    height: 17px;
}

.foot-col h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.foot-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.foot-col a:hover {
    color: #3b82f6;
}

.foot-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.to-top:hover {
    color: var(--text-primary);
}

/* ------------------- Reveal Animations on Scroll ------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- Responsive ------------------- */
@media (max-width: 960px) {
    .hero-grid, .skills-grid, .exp-grid, .contact-grid, .foot-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cap-grid, .grid, .svc-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .avatar-ring {
        width: 260px;
        height: 260px;
    }

    .links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav-sheet.open {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: calc(100% + 12px);
        left: 1.5rem;
        right: 1.5rem;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    }
}


/* ------------------- Preferences & FX GUI Control Panel ------------------- */
.snow-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 40;
}

/* Floating Settings Trigger (Icon Only) */
.fx-trigger-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 95;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 17, 23, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #38bdf8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
    padding: 0;
}

.fx-trigger-btn:hover {
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 28px rgba(56, 189, 248, 0.4);
}

.fx-trigger-btn svg {
    transition: transform 0.4s ease;
}

.fx-trigger-btn:hover svg {
    transform: rotate(90deg);
}

/* Modal Popup Window */
.fx-modal {
    position: fixed;
    bottom: 4.8rem;
    left: 1.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.fx-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fx-card {
    width: 320px;
    background: rgba(18, 21, 29, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .fx-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.fx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.fx-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fx-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.fx-title-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.fx-subtitle {
    font-size: 0.72rem;
    color: #4ade80;
    font-weight: 600;
}

.fx-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-pill);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.fx-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-pill-hover);
    border-color: var(--border-hover);
}

.fx-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 360px;
    overflow-y: auto;
}

.fx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.35rem 0;
}

.fx-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fx-row-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.fx-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.fx-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Modern Toggle Switch (Slider) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

[data-theme="light"] .slider {
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.15);
}

.slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

input:checked + .slider {
    background-color: #3b82f6;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

input:checked + .slider::before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.fx-footer {
    padding: 0.85rem 1.25rem 1.1rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.fx-reset-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.55rem;
    border-radius: 10px;
    background: var(--bg-pill);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.fx-reset-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-pill-hover);
}

.avatar-festive {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 960px) {
    .avatar-festive {
        top: -40px;
        left: -40px;
        width: 340px;
        height: 340px;
    }
}

@media (max-width: 640px) {
    .fx-trigger-btn {
        bottom: 1rem;
        left: 1rem;
    }
    .fx-modal {
        left: 1rem;
        right: 1rem;
        bottom: 4.5rem;
    }
    .fx-card {
        width: 100%;
    }
}


/* ------------------- Interactive Mouse Trail Canvas ------------------- */
.cursor-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
}
