/* ==================== 
   CSS Variables & Root 
==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --accent-2: #06b6d4;
    --accent-3: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --dark-bg: #0a0e1a;
    --dark-surface: #131a2c;
    --dark-surface-2: #1a2338;
    --dark-border: #263049;

    --light-bg: #f8fafc;
    --light-surface: #ffffff;
    --light-surface-2: #f1f5f9;
    --light-border: #e2e8f0;

    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;

    --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    --gradient-2: linear-gradient(135deg, var(--accent-2), var(--primary));
    --gradient-warm: linear-gradient(135deg, var(--accent), var(--accent-3));
    --gradient-text: linear-gradient(135deg, var(--primary-light), var(--secondary) 50%, var(--accent));
    --gradient-border: linear-gradient(135deg, var(--primary), var(--accent-2), var(--accent), var(--primary));

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --glow-primary: 0 0 50px -5px rgba(99,102,241,0.45);
    --glow-accent: 0 0 50px -5px rgba(236,72,153,0.4);
    --glow-cyan: 0 0 50px -5px rgba(6,182,212,0.4);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease);
    --transition-fast: all 0.2s var(--ease);
}

[data-theme="dark"] {
    --bg: var(--dark-bg);
    --surface: var(--dark-surface);
    --surface-2: var(--dark-surface-2);
    --border: var(--dark-border);
    --text: var(--text-light);
    --text-secondary: #94a3b8;
    --glass-bg: rgba(19, 26, 44, 0.7);
    --noise-opacity: 0.03;
}

[data-theme="light"] {
    --bg: var(--light-bg);
    --surface: var(--light-surface);
    --surface-2: var(--light-surface-2);
    --border: var(--light-border);
    --text: var(--text-dark);
    --text-secondary: var(--text-muted);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --noise-opacity: 0.025;
}

/* ==================== 
   Base Styles 
==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    overflow-x: hidden;
    position: relative;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

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

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

::selection {
    background: var(--primary);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

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

/* ====================
   Text Gradient
==================== */
.text-gradient {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ====================
   Scroll Reveal
==================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--delay, 0s);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ====================
   Global chrome: preloader, progress bar, back-to-top, cursor glow, toasts
==================== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-mark {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.preloader-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    z-index: 10000;
    transition: width 0.1s linear;
}

#whatsappButton {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2.4s infinite;
}

#whatsappButton:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    #whatsappButton {
        left: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

#backToTop {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    cursor: pointer;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-primary);
    transform: translateY(-4px);
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241,0.15), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-xl);
    color: var(--text);
    transform: translateX(-120%);
    opacity: 0;
    transition: var(--transition);
}

.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-item.success { border-left-color: var(--success); }
.toast-item.error { border-left-color: var(--danger); }
.toast-item i { margin-top: 2px; }
.toast-item.success i { color: var(--success); }
.toast-item.error i { color: var(--danger); }

/* ====================
   Background patterns
==================== */
.bg-grid {
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    opacity: 0.5;
}

/* ====================
   Glass surfaces
==================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
}

/* ====================
   Tilt + shine interactive cards
==================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.shine:hover::after {
    left: 150%;
}

/* ====================
   Marquee
==================== */
.marquee-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 3rem;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

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

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    font-size: 1.1rem;
}

.marquee-item i {
    font-size: 1.75rem;
    color: var(--primary);
}

/* ==================== 
   Navbar 
==================== */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    top: 0;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
}

.navbar.navbar-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-text {
    color: var(--text);
}

.nav-link {
    position: relative;
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 2px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.btn-theme {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-theme:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.35rem 0.35rem 0.35rem 0.9rem;
    margin: 0.5rem 1rem;
}

.nav-search-form input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    width: 120px;
    font-size: 0.9rem;
}

.nav-search-form button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-search-form button:hover {
    background: var(--primary);
    color: white;
}

@media (min-width: 992px) {
    .nav-search-form {
        margin: 0 0 0 0.5rem;
    }
}

/* ====================
   Hero Section 
==================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg canvas {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobMove 20s infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: var(--accent-2);
    top: 15%;
    left: 5%;
    animation-delay: -7s;
    opacity: 0.35;
}

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

#typed-text {
    color: var(--primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-image {
    position: relative;
    height: 400px;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

.float-icon:hover {
    transform: translateY(-8px) scale(1.1) !important;
    box-shadow: var(--glow-primary);
    color: var(--accent);
}

/* Scattered, irregular placement (not a uniform grid), spread across the
   full width of the hero image - including the right side, which had unused
   space before - with extra breathing room between boxes so they never
   overlap */
.float-icon:nth-child(1)  { top: 4%;  left: 0%;  animation-delay: 0s; }
.float-icon:nth-child(2)  { top: 0%;  left: 25%; animation-delay: -0.5s; }
.float-icon:nth-child(3)  { top: 5%;  left: 38%; animation-delay: -1s; }
.float-icon:nth-child(4)  { top: 2%;  left: 86%; animation-delay: -1.5s; }
.float-icon:nth-child(5)  { top: 27%; left: 5%;  animation-delay: -2s; }
.float-icon:nth-child(6)  { top: 34%; left: 37%; animation-delay: -2.5s; }
.float-icon:nth-child(7)  { top: 28%; left: 69%; animation-delay: -3s; }
.float-icon:nth-child(8)  { top: 33%; left: 85%; animation-delay: -3.5s; }
.float-icon:nth-child(9)  { top: 54%; left: 26%; animation-delay: -4s; }
.float-icon:nth-child(10) { top: 61%; left: 38%; animation-delay: -4.5s; }
.float-icon:nth-child(11) { top: 55%; left: 86%; animation-delay: -5s; }
.float-icon:nth-child(12) { top: 85%; left: 5%;  animation-delay: -5.5s; }
.float-icon:nth-child(13) { top: 81%; left: 39%; animation-delay: -6s; }
.float-icon:nth-child(14) { top: 85%; left: 85%; animation-delay: -6.5s; }

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    display: block;
    margin-top: 0.5rem;
}

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

/* ==================== 
   Sections 
==================== */
.section {
    padding: 5rem 0;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 3rem;
}

/* ==================== 
   Project Cards 
==================== */
.project-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: rgba(99, 102, 241, 0.4);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-weight: 700;
    margin: 0.5rem 0;
}

.project-tech {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==================== 
   Skill Cards 
==================== */
.skill-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(-6deg);
    color: var(--accent);
}

.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: var(--gradient);
    background-size: 200% auto;
    border-radius: 3px;
    transition: width 1.4s var(--ease);
}

.skill-progress.animated {
    animation: gradientShift 3s ease infinite;
}

/* ==================== 
   CTA Section 
==================== */
.cta-section {
    padding: 3rem 0;
}

.cta-card {
    position: relative;
    overflow: hidden;
    background: var(--gradient);
    background-size: 200% auto;
    animation: gradientShift 8s ease infinite;
    padding: 3rem;
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: var(--glow-primary);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.25;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-card p {
    opacity: 0.9;
    margin: 0;
}

/* ==================== 
   Buttons 
==================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--gradient);
    background-size: 200% auto;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background-position 0.5s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-light {
    border: 2px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn {
    position: relative;
}

.magnetic {
    display: inline-block;
    will-change: transform;
}

/* ==================== 
   Footer 
==================== */
.footer {
    position: relative;
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #94a3b8;
    max-width: 300px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link i {
    color: white !important;
    font-size: 1.1rem;
    line-height: 1;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px) scale(1.1);
    color: white !important;
    box-shadow: var(--glow-accent);
}

/* ====================
   Newsletter (footer)
==================== */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--gradient);
    border: none;
    color: #fff;
    width: 44px;
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: var(--transition);
}

.newsletter-form button:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.tech-marquee-section {
    padding: 2.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

/* ====================
   Section rhythm / alternating tint
==================== */
.section-tint {
    position: relative;
    background: var(--surface-2, rgba(99, 102, 241,0.03));
}

/* ====================
   Process steps ("How I Work")
==================== */
.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.process-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--glow-primary);
}

.process-step h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ====================
   Why choose me / feature cards
==================== */
.feature-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
                var(--gradient-border) border-box;
    border: 1px solid transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: #fff;
    transform: rotate(-8deg) scale(1.05);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ====================
   FAQ accordion theming
==================== */
.faq-accordion .accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border);
}

.faq-accordion .accordion-button::after {
    filter: none;
}

.faq-accordion .accordion-body {
    color: var(--text-secondary);
}

[data-theme="dark"] .faq-accordion .accordion-button {
    filter: none;
}

[data-theme="dark"] .faq-accordion .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ====================
   Timeline dot pulse
==================== */
.timeline-dot {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    animation: dotPulse2 2.4s infinite;
}

@keyframes dotPulse2 {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

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

.footer-links-chevron a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-chevron i {
    font-size: 0.65rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.footer-links-chevron a:hover i {
    transform: translateX(3px);
}

/* Footer "Let's Work Together" column */
.footer-cta-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.footer-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-info-row + .footer-info-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-info-row i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.footer-info-row strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-info-row span {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-availability-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    margin-top: 0.3rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: dotPulse 2s infinite;
}

/* Vertical "Hire Me" tab, fixed to the viewport edge */
#hireMeTab {
    position: fixed;
    top: 45%;
    right: 0;
    transform: translateY(-50%);
    background: var(--gradient);
    background-size: 200% auto;
    color: #fff;
    padding: 0.85rem 0.6rem;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: var(--transition);
}

#hireMeTab span {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

#hireMeTab:hover {
    background-position: right center;
    padding-right: 1rem;
    box-shadow: var(--glow-primary);
    color: #fff;
}

@media (max-width: 768px) {
    #hireMeTab {
        display: none;
    }
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 0.75rem;
    width: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

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

/* ==================== 
   Responsive 
==================== */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    #backToTop {
        right: 1rem;
        bottom: 1rem;
        width: 42px;
        height: 42px;
    }

    #toastContainer {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}