/* ============================================================
   SHAKIL PORTFOLIO — Premium Upgrade
   ============================================================
   Table of Contents:
   1.  CSS Custom Properties (Variables)
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Scrollbar
   6.  Buttons
   7.  Page Loader
   8.  Custom Cursor
   9.  Navbar (Glassmorphism)
   10. Theme Toggle
   11. Hero Section
   12. About Section
   13. Skills Section
   14. Portfolio Section
   15. Services Section
   16. Contact Section
   17. Toast Notification
   18. Footer
   19. Lightbox
   20. Keyframes
   21. Reduced Motion
   ============================================================ */

/* ===== 1. CSS CUSTOM PROPERTIES ===== */
:root {
    /* --- Primary Colors --- */
    --color-primary: #6366f1;
    --color-primary-light: #8b5cf6;
    --color-primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --color-secondary: #06b6d4;
    --color-cta: #f59e0b;

    /* --- Backgrounds --- */
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-surface: #1a1a28;
    --color-surface-hover: #222235;
    --color-border: #2a2a3e;
    --color-border-light: #3a3a50;

    /* --- Text --- */
    --color-text: #ffffff;
    --color-text-secondary: #b0b0c8;
    --color-text-muted: #6b6b80;

    /* --- Shadows --- */
    --shadow-soft: 0 5px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --shadow-glow-strong: 0 0 50px rgba(99, 102, 241, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* --- Radii --- */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    /* --- Transitions --- */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* --- Typography --- */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- Spacing (8px scale) --- */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;

    /* --- Glassmorphism --- */
    --glass-bg: rgba(26, 26, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;

    /* --- Misc --- */
    --navbar-height: 70px;
    --cursor-size: 8px;
    --cursor-trail-size: 32px;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
    --color-bg: #f8f9fc;
    --color-bg-secondary: #ffffff;
    --color-surface: #ffffff;
    --color-surface-hover: #f0f1f5;
    --color-border: #e2e4ea;
    --color-border-light: #d0d2da;
    --color-text: #1a1a2e;
    --color-text-secondary: #555570;
    --color-text-muted: #8888a0;
    --shadow-soft: 0 5px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.06);
}

/* ===== 2. RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

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


a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* ===== 4. LAYOUT UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-1);
}

.section-title span {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    margin-bottom: clamp(40px, 6vw, 70px);
}

/* ===== 5. SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ===== 6. BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
}

/* Ripple effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== 7. PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-bar {
    width: 160px;
    height: 3px;
    background: var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary-gradient);
    border-radius: 10px;
    animation: loaderFill 1.5s ease forwards;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== 8. CUSTOM CURSOR ===== */
.custom-cursor {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        display: block;
        position: fixed;
        pointer-events: none;
        z-index: 99999;
        top: 0;
        left: 0;
    }

    .cursor-dot {
        width: var(--cursor-size);
        height: var(--cursor-size);
        background: var(--color-primary);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        z-index: 99999;
        pointer-events: none;
        transition: width 0.2s, height 0.2s, background 0.2s;
    }

    .cursor-dot.hover {
        width: calc(var(--cursor-size) * 2.5);
        height: calc(var(--cursor-size) * 2.5);
        background: rgba(99, 102, 241, 0.3);
        mix-blend-mode: difference;
    }

    .cursor-trail {
        width: var(--cursor-trail-size);
        height: var(--cursor-trail-size);
        border: 2px solid var(--color-primary);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        z-index: 99998;
        pointer-events: none;
        transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    }

    .cursor-trail.hover {
        width: calc(var(--cursor-trail-size) * 1.5);
        height: calc(var(--cursor-trail-size) * 1.5);
        border-color: var(--color-secondary);
        background: rgba(6, 182, 212, 0.05);
    }
}

/* ===== 9. NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text);
}

.logo .dot {
    color: var(--color-primary);
}

/* Nav links with animated underline (grows from center) */
.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary-gradient);
    transition: var(--transition-base);
    border-radius: 2px;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

/* Theme toggle + nav toggle wrapper */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    background: none;
    border: none;
    padding: 5px;
}

.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 5px;
}

/* ===== 10. THEME TOGGLE ===== */
.theme-toggle {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.theme-toggle .icon-sun {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

.theme-toggle .icon-moon {
    transform: translateY(100%) rotate(90deg);
    opacity: 0;
}

[data-theme="light"] .theme-toggle .icon-sun {
    transform: translateY(-100%) rotate(-90deg);
    opacity: 0;
}

[data-theme="light"] .theme-toggle .icon-moon {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

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

/* Particle canvas background */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--color-text);
}

.hero-name .char {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Split text character wrapper */
.char {
    display: inline-block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    min-height: 45px;
}

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

.cursor {
    color: var(--color-primary);
    animation: blink 0.7s infinite;
    font-weight: 100;
    margin-left: 2px;
}

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

.hero-description {
    color: var(--color-text-secondary);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

/* ===== HERO IMAGE — Premium Redesign ===== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Photo group wrapper (tilts as one unit) --- */
.hero-photo-group {
    position: relative;
    width: clamp(220px, 25vw, 350px);
    height: clamp(220px, 25vw, 350px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 800px;
}

/* --- Layer 0: Ambient glow backlight --- */
.photo-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* --- Layer 1: Outer dashed orbit ring (slow, counter-rotates) --- */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orbit-ring-outer {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    border: 1.5px dashed rgba(99, 102, 241, 0.2);
    animation: orbitSpin 20s linear infinite;
}

@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* --- Layer 2: Inner gradient ring (conic, indigo→violet→cyan) --- */
.orbit-ring-inner {
    width: 112%;
    height: 112%;
    top: -6%;
    left: -6%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, #6366f1, #8b5cf6, #06b6d4, #6366f1) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringSpin 8s linear infinite;
}

@keyframes ringSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Layer 3: The photo itself --- */
.hero-img-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    animation: heroFloat 4s ease-in-out infinite;
}

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

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Dark gradient vignette overlay — blends photo edges into dark bg */
.photo-vignette {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, transparent 50%, var(--color-bg) 100%);
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.6;
}

/* Subtle noise/grain texture overlay */
.photo-noise {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    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-size: 128px 128px;
}

/* Glass reflection sweep — passes diagonally every 7s */
.photo-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.photo-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    animation: sweepGlide 7s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes sweepGlide {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    10% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    15% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ===== FLOATING TECH BADGES ===== */
.float-badge {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.08);
    pointer-events: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Each badge positioned around the photo perimeter with independent float */
.badge-laravel {
    top: -8%;
    right: -5%;
    color: #ff2d20;
    animation: badgeFloat1 4.5s ease-in-out infinite;
}

.badge-wordpress {
    top: 15%;
    right: -12%;
    color: #21759b;
    animation: badgeFloat2 5.2s ease-in-out infinite;
    animation-delay: -1.2s;
}

.badge-php {
    bottom: 20%;
    right: -10%;
    color: #777bb4;
    animation: badgeFloat3 4.8s ease-in-out infinite;
    animation-delay: -2.5s;
}

.badge-js {
    bottom: -5%;
    left: 20%;
    color: #f7df1e;
    animation: badgeFloat4 5.5s ease-in-out infinite;
    animation-delay: -0.8s;
}

.badge-mysql {
    top: -5%;
    left: -8%;
    color: #4479a1;
    animation: badgeFloat5 4.2s ease-in-out infinite;
    animation-delay: -3s;
}

/* Float badge tilt offset — controlled by JS --tilt-x/y */
.float-badge {
    transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px));
}

/* Independent float keyframes — each badge has unique timing */
@keyframes badgeFloat1 {
    0%, 100% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(0) translateX(0); }
    50% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(-8px) translateX(3px); }
}

@keyframes badgeFloat2 {
    0%, 100% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(0) translateX(0); }
    50% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(6px) translateX(-4px); }
}

@keyframes badgeFloat3 {
    0%, 100% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(0) translateX(0); }
    50% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(-6px) translateX(5px); }
}

@keyframes badgeFloat4 {
    0%, 100% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(0) translateX(0); }
    50% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(8px) translateX(-3px); }
}

@keyframes badgeFloat5 {
    0%, 100% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(0) translateX(0); }
    50% { transform: translate(var(--tilt-x, 0px), var(--tilt-y, 0px)) translateY(-5px) translateX(4px); }
}

/* ===== STATUS PILL ===== */
.status-pill {
    position: absolute;
    bottom: -8%;
    right: -5%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: var(--color-surface);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    animation: pillFadeIn 0.6s ease 1.2s both;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.9); transform: scale(1.15); }
}

.status-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.3px;
}

@keyframes pillFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll-down indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 1;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

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

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

/* ===== 12. ABOUT SECTION ===== */
.about {
    background: var(--color-bg-secondary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.about-img-box img {
    width: 100%;
    height: auto;
}

/* Decorative blob behind about image */
.about-blob {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    z-index: -1;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1), transparent 60%);
    animation: blobMorph 10s ease-in-out infinite;
    border-radius: 50%;
}

.about-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.about-content p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.info-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.info-item i {
    color: var(--color-primary);
    font-size: 1rem;
    width: 20px;
}

.info-label {
    color: var(--color-text-muted);
    font-weight: 500;
    min-width: 80px;
}

.info-value {
    color: var(--color-text);
    font-weight: 500;
}

.info-value.available {
    color: #10b981;
}

/* ===== 13. SKILLS SECTION ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform var(--transition-bounce);
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(-5deg);
}

.skill-card:nth-child(1) .skill-icon { color: #e44d26; }
.skill-card:nth-child(2) .skill-icon { color: #1572b6; }
.skill-card:nth-child(3) .skill-icon { color: #f7df1e; }
.skill-card:nth-child(4) .skill-icon { color: #777bb4; }
.skill-card:nth-child(5) .skill-icon { color: #4479a1; }
.skill-card:nth-child(6) .skill-icon { color: #21759b; }
.skill-card:nth-child(7) .skill-icon { color: #ff2d20; }

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--color-bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--color-primary-gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on progress bar */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.skill-percent {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===== 13b. TECH MARQUEE STRIP ===== */
.tech-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
    padding: 15px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    position: relative;
}

.tech-marquee::before,
.tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-secondary), transparent);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-secondary), transparent);
}

.tech-marquee-track {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.tech-marquee-group {
    display: flex;
    gap: 30px;
    animation: marqueeScroll 30s linear infinite;
    padding: 0 15px;
    flex-shrink: 0;
}

.tech-marquee:hover .tech-marquee-group {
    animation-play-state: paused;
}

.marquee-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: var(--transition-base);
}

.marquee-chip i,
.marquee-chip img {
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.marquee-chip[data-brand="html5"] i { color: #e44d26; }
.marquee-chip[data-brand="css3"] i { color: #1572b6; }
.marquee-chip[data-brand="js"] i { color: #f7df1e; }
.marquee-chip[data-brand="php"] i { color: #777bb4; }
.marquee-chip[data-brand="laravel"] i { color: #ff2d20; }
.marquee-chip[data-brand="wordpress"] i { color: #21759b; }
.marquee-chip[data-brand="bootstrap"] i { color: #7952b3; }
.marquee-chip[data-brand="git"] i { color: #f05032; }
.marquee-chip[data-brand="github"] i { color: var(--color-text); }
.marquee-chip[data-brand="linux"] i { color: #fcc624; }
.marquee-chip[data-brand="figma"] i { color: #f24e1e; }
.marquee-chip[data-brand="npm"] i { color: #cb3837; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 13c. CORE TECH STACK (TIER 1) ===== */
.core-stack {
    margin-bottom: 60px;
}

.core-stack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.core-stack-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.core-stack-title i {
    color: var(--color-cta);
}

.core-stack-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

.core-stack-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.core-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 14px 16px;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.core-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition-base);
    pointer-events: none;
}

.core-card:hover::before {
    background: var(--color-primary-gradient);
}

.core-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.core-card-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.core-card-icon i,
.core-card-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.core-card-svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-card-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    line-height: 1.2;
    min-height: 2.4em;
}

.core-card-bar {
    width: 100%;
    height: 4px;
    background: var(--color-bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.core-card-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: var(--color-primary-gradient);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand-colored glows on hover */
.core-card[data-brand="html5"]:hover { box-shadow: 0 0 25px rgba(228, 77, 38, 0.2); }
.core-card[data-brand="html5"]:hover::before { background: linear-gradient(135deg, #e44d26, #f16529); }
.core-card[data-brand="html5"] .core-card-icon i { color: #e44d26; }

.core-card[data-brand="css3"]:hover { box-shadow: 0 0 25px rgba(21, 114, 182, 0.2); }
.core-card[data-brand="css3"]:hover::before { background: linear-gradient(135deg, #1572b6, #1a8fe0); }
.core-card[data-brand="css3"] .core-card-icon i { color: #1572b6; }

.core-card[data-brand="js"]:hover { box-shadow: 0 0 25px rgba(247, 223, 30, 0.2); }
.core-card[data-brand="js"]:hover::before { background: linear-gradient(135deg, #f7df1e, #f0db4f); }
.core-card[data-brand="js"] .core-card-icon i { color: #f7df1e; }

.core-card[data-brand="php"]:hover { box-shadow: 0 0 25px rgba(119, 123, 180, 0.2); }
.core-card[data-brand="php"]:hover::before { background: linear-gradient(135deg, #777bb4, #8b8fc7); }
.core-card[data-brand="php"] .core-card-icon i { color: #777bb4; }

.core-card[data-brand="laravel"]:hover { box-shadow: 0 0 25px rgba(255, 45, 32, 0.2); }
.core-card[data-brand="laravel"]:hover::before { background: linear-gradient(135deg, #ff2d20, #e11d00); }
.core-card[data-brand="laravel"] .core-card-icon i { color: #ff2d20; }

.core-card[data-brand="wordpress"]:hover { box-shadow: 0 0 25px rgba(33, 117, 155, 0.2); }
.core-card[data-brand="wordpress"]:hover::before { background: linear-gradient(135deg, #21759b, #2a8fc0); }
.core-card[data-brand="wordpress"] .core-card-icon i { color: #21759b; }

.core-card[data-brand="woocommerce"]:hover { box-shadow: 0 0 25px rgba(118, 79, 163, 0.2); }
.core-card[data-brand="woocommerce"]:hover::before { background: linear-gradient(135deg, #764fa3, #8b5fc0); }
.core-card[data-brand="woocommerce"] .core-card-icon i { color: #764fa3; }

.core-card[data-brand="mysql"]:hover { box-shadow: 0 0 25px rgba(68, 121, 161, 0.2); }
.core-card[data-brand="mysql"]:hover::before { background: linear-gradient(135deg, #4479a1, #5c8fbf); }
.core-card[data-brand="mysql"] .core-card-icon i { color: #4479a1; }

.core-card[data-brand="bootstrap"]:hover { box-shadow: 0 0 25px rgba(121, 82, 179, 0.2); }
.core-card[data-brand="bootstrap"]:hover::before { background: linear-gradient(135deg, #7952b3, #9166d0); }
.core-card[data-brand="bootstrap"] .core-card-icon i { color: #7952b3; }

.core-card[data-brand="tailwindcss"]:hover { box-shadow: 0 0 25px rgba(6, 182, 212, 0.2); }
.core-card[data-brand="tailwindcss"]:hover::before { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }

.core-card[data-brand="jquery"]:hover { box-shadow: 0 0 25px rgba(6, 108, 170, 0.2); }
.core-card[data-brand="jquery"]:hover::before { background: linear-gradient(135deg, #0868ac, #0a7cc9); }
.core-card[data-brand="jquery"] .core-card-icon i { color: #0868ac; }

.core-card[data-brand="rest-api"]:hover { box-shadow: 0 0 25px rgba(99, 102, 241, 0.2); }
.core-card[data-brand="rest-api"]:hover::before { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.core-card[data-brand="rest-api"] .core-card-icon i { color: #6366f1; }

.core-card[data-brand="git"]:hover { box-shadow: 0 0 25px rgba(240, 80, 50, 0.2); }
.core-card[data-brand="git"]:hover::before { background: linear-gradient(135deg, #f05032, #e04020); }
.core-card[data-brand="git"] .core-card-icon i { color: #f05032; }

.core-card[data-brand="github"]:hover { box-shadow: 0 0 25px rgba(200, 200, 210, 0.15); }
.core-card[data-brand="github"]:hover::before { background: linear-gradient(135deg, #888, #aaa); }
.core-card[data-brand="github"] .core-card-icon i { color: var(--color-text); }

.core-card[data-brand="linux"]:hover { box-shadow: 0 0 25px rgba(252, 198, 36, 0.15); }
.core-card[data-brand="linux"]:hover::before { background: linear-gradient(135deg, #fcc624, #f0b800); }
.core-card[data-brand="linux"] .core-card-icon i { color: #fcc624; }

.core-card[data-brand="apache"]:hover { box-shadow: 0 0 25px rgba(168, 48, 48, 0.15); }
.core-card[data-brand="apache"]:hover::before { background: linear-gradient(135deg, #a83030, #c04040); }
.core-card[data-brand="apache"] .core-card-icon i { color: #a83030; }

.core-card[data-brand="cloudflare"]:hover { box-shadow: 0 0 25px rgba(248, 130, 50, 0.15); }
.core-card[data-brand="cloudflare"]:hover::before { background: linear-gradient(135deg, #f88232, #f8993a); }

.core-card[data-brand="figma"]:hover { box-shadow: 0 0 25px rgba(242, 78, 30, 0.2); }
.core-card[data-brand="figma"]:hover::before { background: linear-gradient(135deg, #f24e1e, #ff7262); }
.core-card[data-brand="figma"] .core-card-icon i { color: #f24e1e; }

.core-card[data-brand="postman"]:hover { box-shadow: 0 0 25px rgba(255, 108, 55, 0.2); }
.core-card[data-brand="postman"]:hover::before { background: linear-gradient(135deg, #ff6c37, #ff8a5c); }

.core-card[data-brand="vite"]:hover { box-shadow: 0 0 25px rgba(118, 74, 255, 0.2); }
.core-card[data-brand="vite"]:hover::before { background: linear-gradient(135deg, #764aff, #915eff); }

/* ===== 13d. FULL TOOLBOX — TIER 2 (Tabbed) ===== */
.full-toolbox {
    margin-top: 10px;
}

.toolbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbox-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbox-title i {
    color: var(--color-secondary);
}

.toolbox-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

/* Tab pills */
.toolbox-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    position: relative;
}

.toolbox-tab {
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbox-tab span {
    font-size: 1rem;
    line-height: 1;
}

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

.toolbox-tab.active {
    background: var(--color-primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Panels */
.toolbox-panels {
    position: relative;
    min-height: 100px;
}

.toolbox-panel {
    display: none;
    position: relative;
}

.toolbox-panel.active {
    display: block;
}

/* Chip grid */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition-base);
    cursor: default;
}

.chip i,
.chip img {
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.chip:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Brand-colored chip icons */
.chip[data-brand="html5"] i { color: #e44d26; }
.chip[data-brand="css3"] i { color: #1572b6; }
.chip[data-brand="js"] i { color: #f7df1e; }
.chip[data-brand="php"] i { color: #777bb4; }
.chip[data-brand="laravel"] i { color: #ff2d20; }
.chip[data-brand="wordpress"] i { color: #21759b; }
.chip[data-brand="woocommerce"] i { color: #764fa3; }
.chip[data-brand="mysql"] i { color: #4479a1; }
.chip[data-brand="bootstrap"] i { color: #7952b3; }
.chip[data-brand="jquery"] i { color: #0868ac; }
.chip[data-brand="rest-api"] i { color: #6366f1; }
.chip[data-brand="git"] i { color: #f05032; }
.chip[data-brand="github"] i { color: var(--color-text); }
.chip[data-brand="linux"] i { color: #fcc624; }
.chip[data-brand="apache"] i { color: #a83030; }
.chip[data-brand="figma"] i { color: #f24e1e; }
.chip[data-brand="npm"] i { color: #cb3837; }
.chip[data-brand="sass"] i { color: #cc6699; }
.chip[data-brand="typescript"] i { color: #3178c6; }

/* ===== 14. PORTFOLIO SECTION ===== */
.portfolio {
    background: var(--color-bg-secondary);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    transform: translateY(10px);
    transition: var(--transition-base);
    transition-delay: 0.1s;
}

.portfolio-overlay p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    transform: translateY(10px);
    transition: var(--transition-base);
    transition-delay: 0.15s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.portfolio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition-base);
    transform: translateY(10px);
    transition-delay: 0.2s;
}

.portfolio-item:hover .portfolio-link {
    transform: translateY(0) rotate(0deg);
}

.portfolio-link:hover {
    background: var(--color-primary-light);
    transform: rotate(45deg) !important;
}

/* ===== 15. SERVICES SECTION ===== */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition-base);
    pointer-events: none;
}

.service-card:hover::before {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    font-size: 1.8rem;
    transition: var(--transition-base);
    position: relative;
}

.service-card:hover .service-icon {
    background: var(--color-primary-gradient);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== 16. CONTACT SECTION ===== */
.contact {
    background: var(--color-bg-secondary);
}

/* Intro line */
.contact-intro {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 45px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== Contact Card Grid (2x2) ===== */
.contact-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Each card is a clickable <a> with hover lift */
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition-base);
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
}

.contact-card:hover::before {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Icon badge with brand-colored glow */
.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-base);
}

.contact-card-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--glow-color);
    opacity: 0.08;
    filter: blur(8px);
    transition: var(--transition-base);
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { opacity: 0.08; filter: blur(8px); }
    50% { opacity: 0.18; filter: blur(12px); }
}

.contact-card:hover .contact-card-icon::after {
    opacity: 0.25;
    filter: blur(16px);
}

.contact-card-icon i {
    position: relative;
    z-index: 1;
    color: var(--glow-color);
}

/* Body: label + value */
.contact-card-body {
    flex: 1;
    min-width: 0;
}

.contact-card-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Arrow indicator */
.contact-card-arrow {
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: var(--transition-base);
    opacity: 0;
    transform: translateX(-8px);
    flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-primary);
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 2;
    opacity: 0;
    transform: translateY(-4px);
}

.contact-card:hover .copy-btn {
    opacity: 1;
    transform: translateY(0);
}

.copy-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Copy tooltip */
.copy-tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    animation: tooltipFade 1.4s ease forwards;
    z-index: 10;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-text);
}

@keyframes tooltipFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(4px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}

/* ===== Social Row ===== */
.contact-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.contact-social-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.contact-social {
    display: flex;
    gap: 12px;
}

/* ===== 17. TOAST NOTIFICATION ===== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    box-shadow: var(--shadow-card);
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

.toast.toast-out {
    animation: toastOut 0.4s ease forwards;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    margin-left: auto;
    flex-shrink: 0;
}

@keyframes toastIn {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(120%) scale(0.9); opacity: 0; }
}

/* ===== 18. FOOTER ===== */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo .dot {
    color: var(--color-primary);
}

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

/* Back to top with progress ring */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-surface);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-soft);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.back-to-top svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top svg circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-dasharray: 132;
    stroke-dashoffset: 132;
    transition: stroke-dashoffset 0.1s linear;
}

.back-to-top .btt-icon {
    font-size: 1rem;
    color: var(--color-primary);
    z-index: 1;
    transition: var(--transition-base);
}

.back-to-top:hover .btt-icon {
    transform: translateY(-2px);
}

/* ===== 19. LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-base);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* ===== 20. KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--color-primary);
    color: #fff;
}

/* ===== 21. REDUCED MOTION ===== */
@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;
    }

    .hero-img-box {
        animation: none;
    }

    .hero-img-border {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }

    .hero-blob {
        animation: none;
    }

    .about-blob {
        animation: none;
    }

    .skill-progress::after {
        animation: none;
    }

    .contact-item i {
        animation: none;
    }

    .custom-cursor {
        display: none !important;
    }

    #particle-canvas {
        display: none !important;
    }

    .page-loader {
        display: none !important;
    }

    [data-tilt] {
        transform: none !important;
    }

    .tech-marquee-group {
        animation: none !important;
    }

    /* Hero photo premium animations */
    .photo-glow,
    .orbit-ring-outer,
    .orbit-ring-inner,
    .hero-img-box,
    .photo-sweep::after,
    .float-badge,
    .status-dot {
        animation: none !important;
    }
}
