/**
 * Mishi Khan - Portfolio Website
 * Premium Dark Theme with Glassmorphism
 * 
 * Design System:
 * - Background: #0B0D10
 * - Cards: rgba(255,255,255,0.05)
 * - Accent: #FF2D95 → #D81BFF
 * - Text: #FFFFFF (headings), #B5B8C1 (body)
 * - Borders: rgba(255,255,255,0.08)
 */

/* ==========================================
   CSS CUSTOM PROPERTIES
   ========================================== */
:root {
    /* Colors */
    --color-bg: #0B0D10;
    --color-bg-secondary: #12151A;
    --color-card: rgba(255, 255, 255, 0.05);
    --color-card-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);

    /* Accent Gradient */
    --color-accent-start: #FF2D95;
    --color-accent-end: #D81BFF;
    --gradient-accent: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));

    /* Text Colors */
    --color-heading: #FFFFFF;
    --color-text: #B5B8C1;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;

    /* Status Colors */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Typography */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 45, 149, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ==========================================
   BACKGROUND GLOW EFFECT
   ========================================== */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.background-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 45, 149, 0.08) 0%, transparent 60%);
    animation: glowPulse 8s ease-in-out infinite;
}

.background-glow::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(216, 27, 255, 0.06) 0%, transparent 60%);
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent-start);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.section-title .accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   GLASSMORPHISM CARDS
   ========================================== */
.glass-card {
    background: var(--color-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--color-card-hover);
    border-color: var(--color-border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.3;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #000;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(255, 45, 149, 0.3);
}

.btn-secondary {
    background: var(--color-card);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--color-card-hover);
    border-color: var(--color-accent-start);
    color: var(--color-accent-start);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent-start);
    border: 1px solid var(--color-accent-start);
}

.btn-outline:hover {
    background: var(--gradient-accent);
    color: #000;
}

.btn-small {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
}

.btn-large {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar {
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.main-header.scrolled .navbar {
    background: rgba(11, 13, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-heading);
}

.logo-accent {
    color: var(--color-accent-start);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-heading);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-heading);
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* ==========================================
   HERO SECTION (LinkedIn Style)
   ========================================== */
.hero-section {
    padding-top: 100px;
    padding-bottom: var(--space-16);
}

.hero-section .container {
    position: relative;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 280px;
    min-height: 340px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    overflow: hidden;
    background: #0B0D10;
    display: block;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100%; */
    /* height: 100%; */
    min-height: 280px;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 45, 149, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(216, 27, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, rgba(11, 13, 16, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-profile-card {
    position: relative;
    padding: var(--space-8);
    margin-top: -60px;
    background: rgba(18, 21, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    z-index: 10;
}

/* Top Row: Image + Header Info + CTAs */
.profile-top-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
}

.profile-image-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-top: -50px;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    border: 4px solid transparent;
    background:
        linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary)) padding-box,
        var(--gradient-accent) border-box;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.profile-header-info {
    flex: 1;
    min-width: 0;
    padding-top: var(--space-2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.profile-name {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: #60a5fa;
}

.verified-badge i {
    font-size: 0.75rem;
}

.profile-title {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.profile-tagline {
    font-size: var(--text-base);
    font-weight: 500;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex-shrink: 0;
    min-width: 200px;
    padding-top: var(--space-2);
}

.hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
}

/* Bottom Row: Bio + Meta */
.profile-bottom-row {
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    /* border-top: 1px solid var(--color-border); */
}

.profile-bio {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: var(--space-5);
    line-height: 1.8;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.meta-item i {
    color: var(--color-accent-start);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #fff;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: var(--space-16) 0;
}

.about-card {
    padding: var(--space-10);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.about-text h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
}

.about-text h2 .accent {
    font-family: var(--font-accent);
    font-style: italic;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--color-text);
    margin-bottom: var(--space-4);
    line-height: 1.8;
}

.about-highlights {
    margin-top: var(--space-8);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    color: #000;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.highlight-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.about-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.animated-svg {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 400px;
}

/* Pulse Circle Animation */
.pulse-circle {
    animation: pulseCircle 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulseCircle {

    0%,
    100% {
        r: 180;
        opacity: 0.3;
    }

    50% {
        r: 190;
        opacity: 0.5;
    }
}

/* Code Brackets Animation */
.bracket-left {
    animation: bracketLeft 2s ease-in-out infinite;
    transform-origin: 100px 200px;
}

.bracket-right {
    animation: bracketRight 2s ease-in-out infinite;
    transform-origin: 300px 200px;
}

@keyframes bracketLeft {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-10px);
        opacity: 0.7;
    }
}

@keyframes bracketRight {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(10px);
        opacity: 0.7;
    }
}

/* Code Lines Animation */
.code-line {
    animation: codeLine 2.5s ease-in-out infinite;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.line1 {
    animation-delay: 0s;
}

.line2 {
    animation-delay: 0.3s;
}

.line3 {
    animation-delay: 0.6s;
}

@keyframes codeLine {
    0% {
        stroke-dashoffset: 200;
        opacity: 0;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -200;
        opacity: 0;
    }
}

/* Floating Dots Animation */
.floating-dot {
    animation: floatDot 4s ease-in-out infinite;
}

.dot1 {
    animation-delay: 0s;
}

.dot2 {
    animation-delay: 1s;
}

.dot3 {
    animation-delay: 2s;
}

.dot4 {
    animation-delay: 1.5s;
}

@keyframes floatDot {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Central Icon Animation */
.central-icon {
    animation: iconPulse 3s ease-in-out infinite;
    transform-origin: center;
}

.laptop-base {
    animation: laptopGlow 2s ease-in-out infinite;
}

.laptop-screen {
    animation: screenFlicker 3s ease-in-out infinite;
}

.screen-line {
    animation: lineAppear 2s ease-in-out infinite;
}

.screen-line:nth-child(2) {
    animation-delay: 0.2s;
}

.screen-line:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes laptopGlow {

    0%,
    100% {
        stroke-opacity: 1;
        filter: drop-shadow(0 0 5px rgba(255, 45, 149, 0.5));
    }

    50% {
        stroke-opacity: 0.8;
        filter: drop-shadow(0 0 15px rgba(255, 45, 149, 0.8));
    }
}

@keyframes screenFlicker {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes lineAppear {
    0% {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        opacity: 0;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -100;
        opacity: 0;
    }
}

/* Orbiting Elements Animation */
.orbit-path {
    animation: orbitRotate 20s linear infinite;
    transform-origin: center;
}

.orbit-dot {
    animation: orbitRotate 20s linear infinite;
    transform-origin: 200px 200px;
}

.orbit1 {
    animation-duration: 20s;
}

.orbit2 {
    animation-duration: 18s;
    animation-direction: reverse;
}

.orbit3 {
    animation-duration: 22s;
}

.orbit4 {
    animation-duration: 16s;
    animation-direction: reverse;
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: var(--space-24) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.service-card {
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 45, 149, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    font-size: var(--text-2xl);
    color: var(--color-accent-start);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gradient-accent);
    color: #000;
    transform: scale(1.1);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-description {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================
   WORKFLOW SECTION
   ========================================== */
.workflow-section {
    padding: var(--space-24) 0;
    background: var(--color-bg-secondary);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    position: relative;
}

.workflow-step {
    position: relative;
    padding: var(--space-8);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.workflow-step:hover {
    border-color: var(--color-accent-start);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: var(--space-6);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-accent);
    color: #000;
    border-radius: var(--radius-full);
}

.step-content {
    padding-top: var(--space-4);
}

.step-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.step-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio-section {
    padding: var(--space-24) 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

.filter-btn {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-accent);
    color: #000;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.project-card {
    overflow: hidden;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: var(--space-6);
}

.project-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-tag {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-accent-start);
    background: rgba(255, 45, 149, 0.1);
    border-radius: var(--radius-sm);
}

/* ==========================================
   CASE STUDIES SECTION
   ========================================== */
.case-studies-section {
    padding: var(--space-24) 0;
    background: var(--color-bg-secondary);
}

.case-studies-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    overflow: hidden;
}

.case-study-card:nth-child(even) {
    direction: rtl;
}

.case-study-card:nth-child(even)>* {
    direction: ltr;
}

.case-study-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-6);
}

.case-study-subtitle {
    font-size: var(--text-sm);
    color: var(--color-accent-start);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.case-study-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.case-study-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.case-study-results {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.result-item {
    text-align: center;
}

.result-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-section {
    padding: var(--space-24) 0;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.skills-column h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.skills-column h3 i {
    color: var(--color-accent-start);
}

.skill-item {
    margin-bottom: var(--space-5);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.skill-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-heading);
}

.skill-level {
    font-size: var(--text-sm);
    color: var(--color-accent-start);
}

.skill-bar {
    height: 6px;
    background: var(--color-card);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-4);
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.tool-item:hover {
    border-color: var(--color-accent-start);
    transform: translateY(-2px);
}

.tool-item i {
    font-size: var(--text-2xl);
    color: var(--color-text);
    transition: color var(--transition-base);
}

.tool-item:hover i {
    color: var(--color-accent-start);
}

.tool-item span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-section {
    padding: var(--space-24) 0;
    background: var(--color-bg-secondary);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.experience-item {
    padding: var(--space-8);
    position: relative;
}

.experience-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.company-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-2);
}

.company-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.meta-separator {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.employment-type,
.experience-duration,
.experience-location {
    color: var(--color-text-muted);
}

.experience-roles {
    margin-bottom: var(--space-5);
}

.timeline-container {
    position: relative;
    padding-left: var(--space-8);
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.experience-role {
    position: relative;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
}

.experience-role:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent-start);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-border);
    z-index: 1;
}

.role-content {
    width: 100%;
}

.promotion-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-6) 0;
    position: relative;
    gap: var(--space-3);
    padding-left: var(--space-8);
}

.promotion-line-left,
.promotion-line-right {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-border) 20%,
            var(--color-border) 80%,
            transparent);
}

.promotion-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-accent);
    color: var(--color-bg);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: var(--shadow-glow);
}

.promotion-badge i {
    font-size: var(--text-xs);
}

.role-content .role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.role-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-heading);
}

.role-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.role-dates {
    color: var(--color-text-muted);
}

.role-duration {
    color: var(--color-text-muted);
}

.work-arrangement {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

.role-description-wrapper {
    position: relative;
}

.role-description {
    font-size: var(--text-sm);
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

.role-description-text {
    margin: 0;
    margin-bottom: 0;
}

.role-description-text-inner {
    display: inline;
}

.role-description-expanded {
    margin-top: var(--space-4);
}

.role-description-expanded p {
    margin: 0;
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.role-highlights {
    margin-top: var(--space-4);
}

.role-highlights-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-3);
}

.role-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.role-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text);
    line-height: 1.6;
}

.role-highlight-item i {
    color: #22C55E;
    font-size: var(--text-base);
    margin-top: 2px;
    flex-shrink: 0;
}

.role-highlight-item span {
    flex: 1;
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--color-accent-start);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: var(--space-1);
    transition: color var(--transition-base);
    text-decoration: none;
    display: inline;
}

.see-more-btn:hover {
    color: var(--color-accent-end);
    text-decoration: underline;
}

.see-more-btn:focus {
    outline: 2px solid var(--color-accent-start);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.role-description.expanded .see-more-btn {
    display: inline;
}

.role-description.expanded .see-more-btn::before {
    content: '';
}

.experience-skills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.experience-skills i {
    color: var(--color-accent-start);
    margin-right: var(--space-1);
}

.skill-tag {
    color: var(--color-text);
}

.skill-more {
    color: var(--color-accent-start);
    font-weight: 500;
}

/* ==========================================
   EDUCATION SECTION
   ========================================== */
.education-section {
    padding: var(--space-24) 0;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.education-item {
    padding: var(--space-8);
    position: relative;
}

.education-header {
    margin-bottom: var(--space-4);
}

.education-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.institution-name {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
}

.education-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.degree-name {
    font-weight: 500;
    color: var(--color-text);
}

.field-name {
    color: var(--color-text-muted);
}

.education-dates {
    color: var(--color-text-muted);
}

.education-duration {
    color: var(--color-text-muted);
}

.education-location {
    color: var(--color-text-muted);
}

.education-grade {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

.education-grade strong {
    color: var(--color-accent-start);
    font-weight: 600;
}

.education-description {
    font-size: var(--text-sm);
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    margin-top: var(--space-4);
}

/* ==========================================
   RESUME DOWNLOAD SECTION
   ========================================== */
.resume-section {
    padding: var(--space-24) 0;
}

.resume-card {
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.resume-card:hover::before {
    transform: scaleX(1);
}

.resume-content {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.resume-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 45, 149, 0.1);
    border: 1px solid rgba(255, 45, 149, 0.2);
    border-radius: var(--radius-xl);
    color: var(--color-accent-start);
    font-size: var(--text-3xl);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.resume-card:hover .resume-icon {
    background: var(--gradient-accent);
    color: var(--color-bg);
    transform: scale(1.05);
    border-color: transparent;
}

.resume-text {
    flex: 1;
    min-width: 250px;
}

.resume-text h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.resume-text p {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.resume-card .btn-primary {
    margin-left: auto;
    min-width: 200px;
    justify-content: center;
    white-space: nowrap;
    padding: var(--space-4) var(--space-8);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 45, 149, 0.2);
}

.resume-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 45, 149, 0.3);
}

.resume-card .btn-primary i {
    font-size: var(--text-lg);
}

/* Responsive Resume Section */
@media (max-width: 768px) {
    .resume-section {
        padding: var(--space-16) 0;
    }

    .resume-card {
        padding: var(--space-8);
    }

    .resume-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }

    .resume-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: var(--text-2xl);
    }

    .resume-text {
        width: 100%;
        min-width: 100%;
    }

    .resume-text h3 {
        font-size: var(--text-xl);
    }

    .resume-text p {
        font-size: var(--text-sm);
    }

    .resume-card .btn-primary {
        width: 100%;
        margin-left: 0;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .resume-card {
        padding: var(--space-6);
    }

    .resume-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: var(--text-xl);
    }

    .resume-text h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }
}

/* ==========================================
   TESTIMONIALS / SOCIAL PROOF
   ========================================== */
.testimonials-section {
    padding: var(--space-24) 0;
    background: var(--color-bg-secondary);
}

/* Testimonials Slider */
.testimonials-slider-wrapper {
    position: relative;
    margin-bottom: var(--space-12);
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 var(--space-3);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.testimonial-card {
    padding: var(--space-8);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    margin-bottom: var(--space-6);
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent-start);
    opacity: 0.5;
    margin-bottom: var(--space-4);
}

.testimonial-quote {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.author-name {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.author-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Slider Navigation Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.slider-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.slider-btn:hover:not(:disabled) {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--color-bg);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 45, 149, 0.3);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
    position: relative;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: transparent;
    transition: all var(--transition-base);
}

.slider-dot:hover {
    background: var(--color-accent-start);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--gradient-accent);
    width: 32px;
}

.slider-dot.active::before {
    width: 32px;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
    padding: var(--space-10);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.stats-item {
    text-align: center;
}

.stats-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stats-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 45, 149, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: var(--space-16);
    background: linear-gradient(135deg, rgba(255, 45, 149, 0.1) 0%, rgba(216, 27, 255, 0.05) 100%);
    border: 1px solid rgba(255, 45, 149, 0.2);
}

.cta-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title .accent {
    font-family: var(--font-accent);
    font-style: italic;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    padding: var(--space-16) 0 var(--space-8);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.footer-tagline {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: var(--space-16);
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav li {
    margin-bottom: var(--space-2);
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-accent-start);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #000;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.copyright,
.footer-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.heart {
    color: var(--color-accent-start);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #000;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================
   ANIMATIONS SYSTEM
   ========================================== */

/* Base Animation States */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

/* Heading Animation - Character Stagger */
.animate-heading {
    opacity: 0;
    transform: translateY(20px);
    min-height: 1.2em;
    /* Prevent layout shift */
}

.animate-heading.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fallback: Show heading if animation doesn't trigger (for accessibility) */
@supports (animation: fadeInFallback) {
    .animate-heading:not(.animated) {
        animation: fadeInFallback 0.1s ease-out 1.5s forwards;
    }
}

@keyframes fadeInFallback {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure heading container is visible even when characters are animating */
.animate-heading {
    visibility: visible;
}

/* Ensure accent spans work within animated headings - always visible */
.animate-heading .accent {
    display: inline !important;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit;
}

/* Force accent span to be visible even if characters aren't created */
.animate-heading .accent,
.animate-heading.animated .accent {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
}

/* Paragraph Animation - Gentle Fade Up */
.animate-paragraph {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-paragraph.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Card Animation - Staggered Fade Up with Blue Tint */
.animate-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for cards */
.animate-card:nth-child(1) {
    transition-delay: 0ms;
}

.animate-card:nth-child(2) {
    transition-delay: 50ms;
}

.animate-card:nth-child(3) {
    transition-delay: 100ms;
}

.animate-card:nth-child(4) {
    transition-delay: 150ms;
}

.animate-card:nth-child(5) {
    transition-delay: 200ms;
}

.animate-card:nth-child(6) {
    transition-delay: 250ms;
}

.animate-card:nth-child(7) {
    transition-delay: 300ms;
}

.animate-card:nth-child(8) {
    transition-delay: 350ms;
}

.animate-card:nth-child(9) {
    transition-delay: 400ms;
}

.animate-card:nth-child(10) {
    transition-delay: 450ms;
}

.animate-card:nth-child(11) {
    transition-delay: 500ms;
}

.animate-card:nth-child(12) {
    transition-delay: 550ms;
}

/* Section Label Animation */
.animate-label {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-label.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Description Text Animation */
.animate-description {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-description.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header Entrance Animation */
.animate-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-header.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Entrance Animations */
.animate-hero-banner {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-hero-banner.animated {
    opacity: 1;
    transform: scale(1);
}

.animate-hero-profile-image {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-hero-profile-image.animated {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.animate-hero-name {
    opacity: 0;
    transform: translateY(20px);
}

.animate-hero-name.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-hero-title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s;
}

.animate-hero-title.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-hero-tagline {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
}

.animate-hero-tagline.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
}

.animate-hero-ctas.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-hero-bio {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out 0.4s, transform 0.5s ease-out 0.4s;
}

.animate-hero-bio.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-hero-meta {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s;
}

.animate-hero-meta.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {

    .animate-heading,
    .animate-paragraph,
    .animate-card,
    .animate-label,
    .animate-description,
    .animate-header,
    .animate-hero-banner,
    .animate-hero-profile-image,
    .animate-hero-name,
    .animate-hero-title,
    .animate-hero-tagline,
    .animate-hero-ctas,
    .animate-hero-bio,
    .animate-hero-meta {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    .animate-heading .char,
    .animate-hero-name .char {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* ==========================================
   CONTACT MODAL (Multi-Step Form)
   ========================================== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-base);
    overflow: auto;
    pointer-events: none;
}

.contact-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 16, 0.95);
    backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 0;
}

.modal-container {
    position: relative;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 700px;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    pointer-events: auto;
    margin: auto;
}

.contact-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-card-hover);
    color: var(--color-heading);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-2);
}

.modal-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.contact-form {
    padding: var(--space-8);
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-start) var(--color-card);
}

.contact-form::-webkit-scrollbar {
    width: 6px;
}

.contact-form::-webkit-scrollbar-track {
    background: var(--color-card);
    border-radius: var(--radius-full);
}

.contact-form::-webkit-scrollbar-thumb {
    background: var(--color-accent-start);
    border-radius: var(--radius-full);
}

.contact-form::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-end);
}

/* Progress Indicator */
.form-progress {
    margin-bottom: var(--space-8);
    flex-shrink: 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    position: relative;
    gap: var(--space-2);
    padding: 0;
}

/* Connecting line between pills - positioned behind */
.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
    transform: translateY(-50%);
}

.progress-step {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    justify-content: center;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-5);
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    cursor: default;
    min-height: 40px;
}

.step-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

/* Active State */
.progress-step.active .step-pill {
    background: var(--gradient-accent);
    border-color: var(--color-accent-start);
    color: var(--color-bg);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.progress-step.active .step-label {
    color: var(--color-bg);
    font-weight: 700;
}

/* Completed State */
.progress-step.completed .step-pill {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-bg);
}

.progress-step.completed .step-label {
    color: var(--color-bg);
}

.progress-step.completed .step-pill::after {
    content: '✓';
    margin-left: var(--space-2);
    font-size: var(--text-sm);
}

/* Active progress line - positioned behind pills */
/* .progress-step.active::after,
.progress-step.completed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--gradient-accent);
    z-index: 1;
    transform: translateY(-50%);
} */

.progress-step:first-child.active::after,
.progress-step:first-child.completed::after {
    display: none;
}

/* .progress-step.active::before,
.progress-step.completed::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 50%;
    height: 2px;
    background: var(--gradient-accent);
    z-index: 1;
    transform: translateY(-50%);
} */

.progress-step:last-child.active::before,
.progress-step:last-child.completed::before {
    display: none;
}

.progress-bar {
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    transition: width var(--transition-base);
}

/* Progress Steps (Pill Buttons) - New Design */
.progress-steps-pill {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    position: relative;
    padding: 0 var(--space-2);
    gap: var(--space-2);
}

/* Horizontal line behind pills */
.progress-steps-pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
    transform: translateY(-50%);
}

.progress-pill {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    cursor: default;
}

.progress-pill.active {
    background: var(--gradient-accent);
    border-color: var(--color-accent-start);
    color: var(--color-bg);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.progress-pill.completed {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-bg);
}

.pill-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: 600;
    transition: all var(--transition-base);
}

.progress-pill.active .pill-number {
    background: var(--color-bg);
    color: var(--color-accent-start);
}

.progress-pill.completed .pill-number {
    background: var(--color-bg);
    color: var(--color-success);
}

.progress-pill.completed .pill-number::after {
    content: '✓';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: var(--text-sm);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-success);
}

.progress-pill.completed .pill-number {
    font-size: 0;
}

.pill-label {
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

.progress-pill.active .pill-label {
    color: var(--color-bg);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    margin-bottom: var(--space-6);
}

/* Services Selection */
.services-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    width: 100%;
    box-sizing: border-box;
}

.service-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.service-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-card-option {
    padding: var(--space-5);
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.service-card-option:hover {
    border-color: var(--color-accent-start);
    background: var(--color-card-hover);
    transform: translateY(-2px);
}

.service-checkbox:checked+.service-card-option {
    border-color: var(--color-accent-start);
    background: rgba(255, 45, 149, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.service-icon i {
    font-size: var(--text-xl);
    color: var(--color-bg);
}

.service-content {
    flex: 1;
}

.service-content .service-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-1);
}

.service-content .service-description {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.service-check {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 24px;
    height: 24px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-base);
}

.service-checkbox:checked+.service-card-option .service-check {
    opacity: 1;
    transform: scale(1);
}

.service-check i {
    color: var(--color-bg);
    font-size: var(--text-xs);
}

/* Form Fields */
.form-group {
    margin-bottom: var(--space-6);
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-2);
}

.form-group .required {
    color: var(--color-error);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    max-width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-start);
    box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B5B8C1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

.error-message {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: var(--space-1);
    min-height: 18px;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--color-error);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.form-actions .btn {
    flex: 1;
}

/* Review Summary */
.review-summary {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.review-item {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.review-value {
    font-size: var(--text-sm);
    color: var(--color-text);
    line-height: 1.6;
}

.review-services {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.review-service-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 45, 149, 0.1);
    border: 1px solid var(--color-accent-start);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-accent-start);
}

/* Success Message */
.form-success {
    padding: var(--space-8);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success);
    border-radius: var(--radius-full);
}

.success-icon i {
    font-size: var(--text-4xl);
    color: var(--color-bg);
}

.form-success h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-3);
}

.form-success p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .profile-top-row {
        flex-wrap: wrap;
    }

    .profile-header-info {
        flex: 1;
        min-width: 280px;
    }

    .hero-ctas {
        width: 100%;
        flex-direction: row;
        margin-top: var(--space-4);
    }

    .hero-ctas .btn {
        flex: 1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-illustration {
        min-height: 300px;
        order: -1;
    }

    .animated-svg {
        max-width: 100%;
        max-height: 300px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .case-study-card,
    .case-study-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .experience-header {
        flex-direction: column;
        gap: var(--space-4);
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .timeline-container {
        padding-left: var(--space-6);
    }

    .timeline-container::before {
        left: 5px;
    }

    .timeline-dot {
        left: -24px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .promotion-indicator {
        padding-left: var(--space-6);
    }

    .role-content .role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .role-description {
        font-size: var(--text-xs);
        line-height: 1.6;
    }

    .role-description-expanded p {
        font-size: var(--text-xs);
        line-height: 1.6;
    }

    .role-highlights-title {
        font-size: var(--text-xs);
    }

    .role-highlight-item {
        font-size: var(--text-xs);
        gap: var(--space-2);
    }

    .role-highlight-item i {
        font-size: var(--text-sm);
    }

    .see-more-btn {
        font-size: var(--text-xs);
    }

    .experience-skills {
        font-size: var(--text-xs);
    }

    .education-item {
        padding: var(--space-5);
    }

    .institution-name {
        font-size: var(--text-lg);
    }

    .education-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
        font-size: var(--text-xs);
    }

    .education-meta .meta-separator {
        display: none;
    }

    .education-grade {
        font-size: var(--text-xs);
        margin-top: var(--space-3);
    }

    .education-description {
        font-size: var(--text-xs);
        margin-top: var(--space-3);
        line-height: 1.6;
    }

    .education-header {
        margin-bottom: var(--space-3);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-20) var(--space-6);
        background: var(--color-bg-secondary);
        border-left: 1px solid var(--color-border);
        gap: var(--space-4);
        transition: right var(--transition-base);
        z-index: var(--z-modal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: calc(var(--z-modal) + 1);
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero-banner {
        height: 240px;
        min-height: 240px;
    }

    .banner-image {
        min-height: 240px;
    }

    .hero-profile-card {
        padding: var(--space-6);
        margin-top: -50px;
    }

    .profile-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image-wrapper {
        margin-top: -80px;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    .profile-header {
        justify-content: center;
    }

    .profile-header-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-bottom-row {
        text-align: center;
    }

    .profile-bio {
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-ctas {
        width: 100%;
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: var(--space-6);
    }

    .slider-controls {
        margin-top: var(--space-6);
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: var(--text-base);
    }
}

@media (max-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 var(--space-2);
    }
}

@media (max-width: 640px) {
    .testimonial-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 var(--space-2);
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: var(--space-6);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-8);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 200px;
        min-height: 200px;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .banner-image {
        min-height: 160px;
    }

    .hero-profile-card {
        padding: var(--space-5);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        margin-top: -40px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-image-wrapper {
        margin-top: -60px;
    }

    .profile-name {
        font-size: var(--text-xl);
    }

    .profile-title {
        font-size: var(--text-base);
    }

    .profile-tagline {
        font-size: var(--text-sm);
    }

    .verified-badge {
        font-size: 0.65rem;
        padding: 2px var(--space-2);
    }

    .profile-bottom-row {
        margin-top: var(--space-4);
        padding-top: var(--space-4);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: var(--space-8);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Contact Modal Responsive */
    .contact-modal {
        padding: var(--space-2);
    }

    .modal-container {
        max-width: 100%;
        max-height: calc(100vh - 1rem);
        border-radius: var(--radius-xl);
        margin: var(--space-2);
    }

    .modal-header {
        padding: var(--space-5);
        padding-bottom: var(--space-4);
    }

    .modal-title {
        font-size: var(--text-xl);
    }

    .modal-subtitle {
        font-size: var(--text-xs);
    }

    .contact-form {
        padding: var(--space-5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-progress {
        margin-bottom: var(--space-6);
    }

    .progress-steps {
        gap: var(--space-1);
        padding: 0;
        margin-bottom: var(--space-3);
    }

    .step-pill {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
        min-height: 36px;
    }

    .step-label {
        font-size: var(--text-xs);
    }

    /* Pill button responsive */
    .progress-steps-pill {
        gap: var(--space-1);
        padding: 0;
        margin-bottom: var(--space-3);
    }

    .progress-pill {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }

    .pill-number {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .progress-pill.completed .pill-number::after {
        font-size: var(--text-xs);
    }

    .pill-label {
        font-size: var(--text-xs);
    }

    .progress-bar {
        height: 3px;
    }

    .services-selection {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .service-card-option {
        padding: var(--space-4);
    }

    .step-title {
        font-size: var(--text-xl);
    }

    .step-description {
        font-size: var(--text-xs);
        margin-bottom: var(--space-4);
    }

    .form-group {
        margin-bottom: var(--space-4);
    }

    .form-actions {
        flex-direction: column;
        gap: var(--space-3);
        margin-top: var(--space-6);
        padding-top: var(--space-4);
    }

    .form-actions .btn {
        width: 100%;
    }

    .review-summary {
        padding: var(--space-4);
    }

    .form-success {
        padding: var(--space-6);
    }

    /* Contact Modal - Very Small Screens */
    .contact-modal {
        padding: 0;
    }

    .modal-container {
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .modal-header {
        padding: var(--space-4);
    }

    .modal-title {
        font-size: var(--text-lg);
    }

    .contact-form {
        padding: var(--space-4);
    }

    .progress-steps {
        gap: var(--space-1);
        padding: 0;
        flex-wrap: wrap;
    }

    .step-pill {
        padding: var(--space-1) var(--space-2);
        font-size: 10px;
        min-height: 32px;
    }

    .step-label {
        font-size: 10px;
    }

    .progress-step {
        flex: 1;
        min-width: 0;
    }

    /* Pill button responsive - very small screens */
    .progress-steps-pill {
        gap: var(--space-1);
        padding: 0;
    }

    .progress-pill {
        padding: var(--space-1) var(--space-2);
        font-size: 10px;
    }

    .pill-number {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }

    .progress-pill.completed .pill-number::after {
        font-size: 9px;
    }

    .pill-label {
        font-size: 9px;
    }

    .services-selection {
        gap: var(--space-2);
    }

    .service-card-option {
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .service-icon {
        width: 40px;
        height: 40px;
    }

    .service-content .service-title {
        font-size: var(--text-sm);
    }

    .service-content .service-description {
        font-size: 11px;
    }
}

/* ==========================================
   PROJECT DETAIL PAGE
   ========================================== */
.project-detail-section {
    padding: var(--space-24) 0;
    min-height: 100vh;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-8);
    transition: all var(--transition-base);
}

.back-button:hover {
    color: var(--color-accent-start);
    transform: translateX(-4px);
}

.back-button i {
    transition: transform var(--transition-base);
}

.back-button:hover i {
    transform: translateX(-4px);
}

.project-detail-header {
    margin-bottom: var(--space-12);
}

.project-header-content {
    max-width: 800px;
}

.project-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent-start);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
}

.project-detail-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.project-detail-description {
    font-size: var(--text-lg);
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    margin-bottom: var(--space-6);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.project-type-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

.project-type-badge i {
    color: var(--color-accent-start);
}

.live-link-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-accent);
    color: var(--color-bg);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.live-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Project Gallery */
.project-gallery {
    margin-bottom: var(--space-12);
}

.gallery-main {
    width: 100%;
    margin-bottom: var(--space-6);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

.gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-base);
}

.gallery-main:hover .gallery-main-image {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
    background: var(--color-card);
}

.gallery-thumb:hover {
    border-color: var(--color-accent-start);
    transform: translateY(-4px);
}

.gallery-thumb.active {
    border-color: var(--color-accent-start);
    box-shadow: var(--shadow-glow);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* Project Content */
.project-detail-content {
    margin-bottom: var(--space-12);
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
}

.section-subtitle {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-6);
}

.overview-content {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.8;
}

.overview-content p {
    margin: 0;
    margin-bottom: var(--space-4);
}

.overview-content p:last-child {
    margin-bottom: 0;
}

/* Tech Stack */
.tech-stack-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.tech-stack-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.tech-stack-item:hover {
    border-color: var(--color-accent-start);
    background: var(--color-card-hover);
    transform: translateX(4px);
}

.tech-stack-item i {
    color: var(--color-accent-start);
    font-size: var(--text-lg);
}

.tech-stack-item span {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

/* Project Features */
.project-features {
    margin-top: var(--space-10);
    padding: var(--space-8);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text);
    line-height: 1.6;
}

.features-list li i {
    color: var(--color-success);
    font-size: var(--text-base);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 24px;
}

.project-actions .btn {
    flex-shrink: 0;
    width: auto;
    min-width: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-card);
    border-color: var(--color-accent-start);
    color: var(--color-accent-start);
}

/* Responsive */
@media (max-width: 1024px) {
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .project-detail-title {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 768px) {
    .project-detail-section {
        padding: var(--space-16) 0;
    }

    .project-detail-title {
        font-size: var(--text-3xl);
    }

    .project-detail-description {
        font-size: var(--text-base);
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .project-detail-title {
        font-size: var(--text-2xl);
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-subtitle {
        font-size: var(--text-xl);
    }
}

/* ==========================================
   CHATBOT WIDGET
   ========================================== */
.chatbot-widget {
    position: fixed;
    bottom: calc(var(--space-8) + 50px + var(--space-4));
    right: var(--space-8);
    z-index: var(--z-fixed);
    font-family: var(--font-primary);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    border: none;
    color: var(--color-bg);
    font-size: var(--text-xl);
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--color-error);
    color: var(--color-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    border: 2px solid var(--color-bg);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 600px;
    max-height: calc(100vh - 8rem);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
    overflow: hidden;
}

.chatbot-widget.active .chatbot-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-card);
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-accent-start);
    flex-shrink: 0;
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-header-text {
    flex: 1;
    min-width: 0;
}

.chatbot-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-1);
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.availability-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    animation: pulse-dot 2s infinite;
}

.availability-available .status-dot {
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.availability-busy .status-dot {
    background: var(--color-warning);
    box-shadow: 0 0 8px var(--color-warning);
}

.availability-away .status-dot {
    background: var(--color-text-muted);
    box-shadow: 0 0 8px var(--color-text-muted);
}

.availability-offline .status-dot {
    background: var(--color-error);
    box-shadow: 0 0 8px var(--color-error);
}

.availability-available {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

.availability-busy {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.availability-away {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-text-muted);
}

.availability-offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.response-time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.chatbot-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.chatbot-close:hover {
    background: var(--color-card-hover);
    color: var(--color-heading);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    scroll-behavior: smooth;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-start) var(--color-card);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: var(--color-card);
    border-radius: var(--radius-full);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--color-accent-start);
    border-radius: var(--radius-full);
}

.chatbot-message {
    display: flex;
    gap: var(--space-3);
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message-user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    max-width: 75%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

.chatbot-message-user .message-content {
    background: var(--gradient-accent);
    color: var(--color-bg);
    border: none;
}

.message-content p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-text);
}

.chatbot-message-user .message-content p {
    color: var(--color-bg);
}

.message-time {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.chatbot-message-user .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chatbot-quick-actions {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
    background: var(--color-card);
}

.quick-action-btn {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.quick-action-btn:hover {
    background: var(--color-card-hover);
    border-color: var(--color-accent-start);
    color: var(--color-accent-start);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: var(--text-base);
}

.chatbot-input-container {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-2);
    background: var(--color-card);
    flex-shrink: 0;
}

.chatbot-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--color-accent-start);
    box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.1);
}

.chatbot-input::placeholder {
    color: var(--color-text-muted);
}

.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gradient-accent);
    border: none;
    color: var(--color-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: calc(var(--space-4) + 50px + var(--space-3));
        right: var(--space-4);
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
        font-size: var(--text-lg);
    }

    .chatbot-container {
        width: calc(100vw - 2rem);
        height: calc(100vh - 8rem);
        max-height: 80vh;
        bottom: 80px;
        right: 0;
        border-radius: var(--radius-xl);
    }

    .chatbot-header {
        padding: var(--space-4);
    }

    .chatbot-avatar {
        width: 40px;
        height: 40px;
    }

    .chatbot-name {
        font-size: var(--text-sm);
    }

    .chatbot-messages {
        padding: var(--space-4);
    }

    .message-content {
        max-width: 85%;
        padding: var(--space-2) var(--space-3);
    }

    .chatbot-quick-actions {
        padding: var(--space-3) var(--space-4);
        flex-wrap: wrap;
    }

    .quick-action-btn {
        min-width: calc(33.333% - var(--space-2));
    }

    .chatbot-input-container {
        padding: var(--space-3) var(--space-4);
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-widget {
        bottom: calc(50px + var(--space-2));
        right: var(--space-2);
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================
   PORTFOLIO SECTION (NEW DESIGN)
   ========================================== */
.portfolio-section {
    position: relative;
    padding: var(--space-24) 0;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.tab-btn {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    font-weight: 500;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.tab-btn:hover {
    border-color: var(--color-accent-start);
    color: var(--color-heading);
    transform: translateY(-2px);
    background: var(--color-card-hover);
}

.tab-btn.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #000;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

/* Subcategory Pills */
.portfolio-subcategories {
    margin-bottom: var(--space-10);
    animation: fadeIn 0.3s ease-out;
}

.subcategory-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.subcat-pill {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.subcat-pill:hover {
    color: var(--color-heading);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-light);
}

.subcat-pill.active {
    color: #000;
    background: var(--gradient-accent);
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-10);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-6);
    border: 1px solid var(--color-border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 16, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .btn {
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.project-overlay .btn:hover {
    background: var(--gradient-accent);
    color: #000;
    border-color: transparent;
    transform: translateY(0) scale(1);
}

.project-card:hover .project-overlay .btn {
    transform: translateY(0) scale(1);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
    margin-bottom: var(--space-3);
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
    line-height: 1.7;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-tag {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-light);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-heading);
}

/* Portfolio Empty State */
.portfolio-empty {
    text-align: center;
    padding: var(--space-16);
    background: var(--color-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    margin-top: var(--space-8);
}

.portfolio-empty i {
    font-size: 3rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.portfolio-empty p {
    font-size: var(--text-lg);
    color: var(--color-text);
}

/* Helper Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive specific to portfolio */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-tabs {
        gap: var(--space-2);
    }

    .tab-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */
.contact-page-section {
    padding: var(--space-24) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-10);
    align-items: stretch;
}

/* Contact Info Card */
.contact-info {
    padding: var(--space-8);
}

.contact-info h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-4);
}

.contact-info>p {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.contact-details {
    margin-bottom: var(--space-8);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.contact-item:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: var(--text-xl);
    color: var(--color-bg);
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-2);
}

.contact-text p,
.contact-text a {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.6;
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-text a:hover {
    color: var(--color-accent-start);
}

/* Contact Social Links */
.contact-social {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.contact-social h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-4);
}

.contact-social .social-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.contact-social .social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.contact-social .social-link:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--color-bg);
    transform: translateY(-2px);
}

/* Contact Form Container */
.contact-form-container {
    padding: var(--space-8);
}

.contact-form-container h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-6);
}

.simple-contact-form {
    display: flex;
    flex-direction: column;
}

.simple-contact-form .form-group {
    margin-bottom: var(--space-6);
}

.simple-contact-form .form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.simple-contact-form .form-group input,
.simple-contact-form .form-group textarea,
.simple-contact-form .form-group select {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    line-height: 1.5;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.simple-contact-form .form-group input:focus,
.simple-contact-form .form-group textarea:focus,
.simple-contact-form .form-group select:focus {
    outline: none;
    border-color: var(--color-accent-start);
    box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.1);
    background: var(--color-card);
}

.simple-contact-form .form-group textarea {
    resize: vertical;
    min-height: 140px;
    padding-top: var(--space-4);
}

.simple-contact-form .form-group select {
    cursor: pointer;
}

.simple-contact-form .required {
    color: var(--color-error);
    margin-left: var(--space-1);
}

.simple-contact-form .btn-primary {
    margin-top: var(--space-4);
    width: 100%;
    justify-content: center;
}

/* Form Messages */
.form-message {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

.form-message i {
    font-size: var(--text-lg);
    flex-shrink: 0;
    margin-top: 2px;
}

.form-message p {
    margin: 0;
    flex: 1;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .contact-info,
    .contact-form-container {
        padding: var(--space-6);
    }

    .contact-info h3,
    .contact-form-container h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-4);
    }

    .contact-item {
        gap: var(--space-3);
        margin-bottom: var(--space-5);
        padding-bottom: var(--space-5);
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .contact-icon i {
        font-size: var(--text-lg);
    }

    .simple-contact-form .form-group {
        margin-bottom: var(--space-5);
    }
}

@media (max-width: 480px) {
    .contact-page-section {
        padding: var(--space-16) 0;
    }

    .contact-info,
    .contact-form-container {
        padding: var(--space-5);
    }

    .contact-social .social-link {
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
}

/* ============================================================================
   PROJECT DETAIL PAGE STYLES
   ============================================================================ */

/* CSS variable aliases for compatibility */
:root {
    --accent: var(--color-accent-start);
    --text: var(--color-heading);
    --text-muted: var(--color-text-muted);
}

/* Breadcrumb */
.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.project-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color .2s;
}

.project-breadcrumb a:hover {
    color: var(--color-accent-start);
}

.project-breadcrumb i {
    font-size: 10px;
    opacity: .5;
}

.project-breadcrumb span {
    color: var(--color-accent-start);
}

/* Project Hero */
.project-hero-content {
    max-width: 720px;
}

.project-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.project-category-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.project-subcategory-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .06);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.project-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
    color: var(--color-heading);
}

.project-tagline {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 600px;
}

/* Project actions override (hero section) */
.project-hero-content .project-actions {
    padding-top: 20px;
}

.project-hero-content .project-actions .btn {
    flex-shrink: 0;
    width: auto;
}

/* Main image showcase */
.project-showcase .project-main-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.project-showcase .project-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project layout: main + sidebar */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 960px) {
    .project-layout {
        grid-template-columns: 1fr;
    }
}

/* Overview + Features + Gallery cards */
.project-overview,
.project-features,
.project-gallery {
    padding: 28px 32px;
    margin-bottom: 20px;
}

.project-overview:last-child,
.project-features:last-child,
.project-gallery:last-child {
    margin-bottom: 0;
}

.project-overview h2,
.project-features h2,
.project-gallery h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-heading);
    letter-spacing: -.01em;
}

.project-overview p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

/* Features list — 2-column grid */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

@media (max-width: 600px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    font-size: 14px;
    color: var(--color-text);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--color-accent-start);
    margin-top: 2px;
    flex-shrink: 0;
}

.features-list li span {
    line-height: 1.5;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    cursor: zoom-in;
    transition: transform .2s, box-shadow .2s;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* Sidebar cards */
.sidebar-card {
    padding: 20px 22px;
    margin-bottom: 16px;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(255, 45, 149, .08);
    color: var(--color-accent-start);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 45, 149, .15);
    font-weight: 500;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.info-label i {
    width: 14px;
    text-align: center;
    color: var(--color-accent-start);
}

.info-value {
    color: var(--color-heading);
    font-weight: 500;
    text-align: right;
}

/* Project navigation */
.project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.project-nav-item {
    padding: 18px 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    color: inherit;
}

.project-nav-item:hover {
    border-color: var(--color-accent-start);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.nav-direction {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
}

/* Education page improvements */
.education-item {
    margin-bottom: 20px;
}

/* ==========================================
   PORTFOLIO PAGE — INNER PAGES
   ========================================== */

/* Inner page header (for Portfolio, Experience, Contact etc.) */
.inner-page-header {
    position: relative;
    padding: 140px 0 60px;
    /* 140px = navbar height + visual breathing room */
    overflow: hidden;
}

.inner-page-header-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% -10%, rgba(255, 45, 149, .1) 0%, transparent 70%);
    pointer-events: none;
}

.inner-page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-heading);
    line-height: 1.15;
    margin-bottom: 14px;
}

.inner-page-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
}

/* Portfolio section wrapper */
.portfolio-section-wrap {
    padding-top: 0;
}

/* ── Main category filter tabs ── */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.filter-tab:hover {
    color: var(--color-heading);
    border-color: var(--color-border-light);
    background: var(--color-card-hover);
}

.filter-tab.active {
    background: var(--gradient-accent);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 45, 149, .3);
}

.tab-count {
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, .15);
    border-radius: 10px;
    padding: 2px 7px;
}

.filter-tab.active .tab-count {
    background: rgba(0, 0, 0, .2);
}

/* ── Subcategory filter row ── */
.subcategory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding: 14px 18px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    animation: fadeSlideDown .2s ease;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.sub-filter-btn:hover {
    color: var(--color-heading);
    border-color: var(--color-border-light);
}

.sub-filter-btn.active {
    color: var(--color-accent-start);
    border-color: var(--color-accent-start);
    background: rgba(255, 45, 149, .08);
}

/* ── Projects grid ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Project card ── */
.project-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: var(--color-card-hover);
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Project image with overlay */
.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Project content */
.project-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.3;
    /* prevent text from running out of card */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.project-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.project-tech .tech-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 45, 149, .08);
    border: 1px solid rgba(255, 45, 149, .15);
    color: var(--color-accent-start);
    font-weight: 500;
}

/* Empty state */
.empty-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
}

.empty-projects a {
    color: var(--color-accent-start);
}

/* ==========================================
   PROJECT.PHP SECTION SPACING
   ========================================== */
/* Override the global .section padding (6rem) for project detail pages */
.project-hero.section {
    padding-top: 110px;
    /* accounts for fixed nav */
    padding-bottom: 32px;
}

.project-showcase.section {
    padding-top: 0;
    padding-bottom: 32px;
}

.project-details.section {
    padding-top: 0;
    padding-bottom: 40px;
}

.project-nav-section.section {
    padding-top: 0;
    padding-bottom: 60px;
}

/* Disable card hover lift on project detail cards (avoid layout jitter) */
.project-overview.glass-card:hover,
.project-features.glass-card:hover,
.project-gallery.glass-card:hover,
.sidebar-card.glass-card:hover {
    transform: none;
}

/* ==========================================
   FEATURED PROJECTS SLIDER
   ========================================== */

.featured-projects-section {
    overflow: hidden;
}

/* Slider outer wrapper — holds buttons + viewport */
.fp-slider-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
}

/* Clipping window */
.fp-slider-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

/* Sliding rail */
.fp-slider-track {
    display: flex;
    gap: 10px;
    align-items: stretch;
    /* all cards stretch to the tallest card's height */
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each project-card slot (note: .project-card IS also .glass-card — same element) */
.fp-slider-track .project-card {
    /* Width is set directly by JS: card.style.width = calc % */
    flex-shrink: 0;
    padding: 2px 3px;
    /* 12px each side → 24 px gap between cards */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* make inner content stretch to full height */
    min-width: 0;
}

/* Project card inner content (description grows, tags stay at bottom) */
.fp-slider-track .project-card .project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fp-slider-track .project-card .project-description {
    flex: 1;
    /* fills available space → pushes tech tags down */
}

.fp-slider-track .project-card .project-tech {
    margin-top: auto;
    padding-top: var(--space-3);
}

/* Project image keeps consistent height inside slider */
.fp-slider-track .project-card .project-image {
    height: 220px;
    /* fixed image height for uniform look */
    flex-shrink: 0;
}

.fp-slider-track .project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrow navigation buttons */
.fp-slider-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.fp-slider-btn:hover:not(:disabled) {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #000;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.fp-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dot indicators */
.fp-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.fp-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--color-border-light);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.fp-dot.active {
    width: 28px;
    background: var(--gradient-accent);
    box-shadow: 0 0 12px rgba(255, 45, 149, 0.5);
}

.fp-dot:hover:not(.active) {
    background: var(--color-text-muted);
}

/* View All Portfolio button row */
.fp-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12);
}

/* Responsive */
@media (max-width: 1023px) {
    .fp-slider-btn {
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
}

@media (max-width: 639px) {
    .fp-slider-btn {
        width: 36px;
        height: 36px;
    }

    .fp-slider-wrapper {
        gap: var(--space-2);
    }
}

/* ==========================================
   BLOG SYSTEM STYLES
   ========================================== */

/* ── Blog card ── */
.blog-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.blog-card:hover {
    background: var(--color-card-hover);
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.blog-card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-secondary);
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.05);
}

.blog-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: var(--color-border-light);
}

.blog-card-cover-link {
    display: block;
    text-decoration: none;
}

.blog-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-category {
    display: inline-block;
    background: rgba(255, 45, 149, .12);
    color: var(--color-accent-start);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: background .2s;
}

.blog-card-category:hover {
    background: rgba(255, 45, 149, .22);
}

.blog-card-read-time {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.35;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.blog-card-title a:hover {
    color: var(--color-accent-start);
}

.blog-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.blog-card-date {
    font-size: 12px;
    color: var(--color-text-muted);
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-start);
    text-decoration: none;
    transition: gap .2s;
}

.blog-card-read-more:hover {
    gap: 10px;
}

.blog-card-read-more i {
    font-size: 11px;
    transition: transform .2s;
}

.blog-card-read-more:hover i {
    transform: translateX(2px);
}

/* Blog card in fp-slider */
.fp-slider-track .blog-card {
    flex-shrink: 0;
    padding: 0 12px;
    box-sizing: border-box;
    min-width: 0;
}

/* ── Blog listing grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Blog listing hero ── */
.page-hero-section {
    padding-top: 140px;
}

.blog-home-section {
    overflow: hidden;
}

/* ── Category tabs (blog listing) ── */
.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
}

.blog-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.blog-tab:hover {
    color: var(--color-heading);
    border-color: var(--color-border-light);
    background: var(--color-card-hover);
}

.blog-tab.active {
    background: var(--gradient-accent);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 45, 149, .3);
}

/* ── Blog pagination ── */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.page-btn:hover {
    background: var(--color-card-hover);
    color: var(--color-heading);
}

.page-btn.active {
    background: var(--gradient-accent);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 45, 149, .3);
}

/* ── Blog empty ── */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
}

.blog-empty i {
    font-size: 3rem;
    opacity: .3;
    margin-bottom: 16px;
    display: block;
}

.blog-empty h3 {
    font-size: 1.25rem;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.blog-listing-section {
    padding-top: 0;
}

/* ── Breadcrumb ── */
.breadcrumb-section {
    padding: 100px 0 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

.breadcrumb-item a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color .2s;
}

.breadcrumb-item a:hover {
    color: var(--color-accent-start);
}

.breadcrumb-item.active {
    color: var(--color-accent-start);
}

.breadcrumb-sep {
    color: var(--color-border-light);
    font-size: 10px;
    margin: 0 6px;
    opacity: .7;
}

/* ── Single post layout ── */
.blog-post-article {
    padding-bottom: 80px;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-post-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .blog-post-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Post meta top row */
.blog-post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 28px;
}

.blog-category-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: opacity .2s;
}

.blog-category-badge:hover {
    opacity: .85;
}

.blog-read-time {
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Post title */
.blog-post-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-heading);
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

/* Author row */
.blog-post-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.blog-post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border-light);
}

.blog-author-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-heading);
}

.blog-post-date {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Share buttons */
.blog-share-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.share-btn:hover {
    background: var(--color-card-hover);
    color: var(--color-heading);
    border-color: var(--color-border-light);
}

.share-linkedin:hover {
    background: rgba(0, 119, 181, .12);
    border-color: #0077b5;
    color: #0077b5;
}

.share-twitter:hover {
    background: rgba(0, 0, 0, .2);
    border-color: #ccc;
    color: #e7e9ea;
}

.share-copy:hover {
    background: rgba(255, 45, 149, .12);
    border-color: var(--color-accent-start);
    color: var(--color-accent-start);
}

/* Cover image */
.blog-post-cover {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid var(--color-border);
}

.blog-post-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

/* ── Prose body ── */
.prose {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.85;
    color: var(--color-text);
}

.prose h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--color-heading);
    margin: 2em 0 .75em;
    letter-spacing: -.015em;
}

.prose h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--color-heading);
    margin: 1.75em 0 .6em;
}

.prose h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 1.5em 0 .5em;
}

.prose p {
    margin: 0 0 1.4em;
}

.prose a {
    color: var(--color-accent-start);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration: none;
}

.prose strong {
    color: var(--color-heading);
    font-weight: 700;
}

.prose ul,
.prose ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

.prose li {
    margin-bottom: .4em;
}

.prose blockquote {
    border-left: 3px solid var(--color-accent-start);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: rgba(255, 45, 149, .06);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.prose code {
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: .9em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.prose pre {
    background: rgba(0, 0, 0, .5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 1.4em;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
}

.prose img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
    font-size: .95em;
}

.prose th,
.prose td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.prose th {
    background: var(--color-bg-secondary);
    font-weight: 700;
    color: var(--color-heading);
}

.prose hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5em 0;
}

/* Tags */
.blog-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.tags-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.blog-tag-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all .2s;
}

.blog-tag-pill:hover {
    color: var(--color-accent-start);
    border-color: var(--color-accent-start);
    background: rgba(255, 45, 149, .08);
}

/* Share bottom */
.blog-post-share-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.blog-post-share-bottom p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 600;
}

/* ── Sidebar cards for blog post ── */
.sidebar-card {
    padding: 22px;
    margin-bottom: 20px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-author-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 12px;
    border: 2px solid var(--color-border-light);
}

.sidebar-author-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.sidebar-author-role {
    font-size: 12px;
    color: var(--color-accent-start);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}

.sidebar-author-bio {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.sidebar-heading {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-related-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    transition: opacity .2s;
}

.sidebar-related-item:hover {
    opacity: .8;
}

.sidebar-related-item img {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-related-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.4;
    margin-bottom: 3px;
}

.sidebar-related-date {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
}