/* --- Global Variables & Space Reset --- */
:root {
    --bg-color: #030712;
    --bg-alt: #0B0F19;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #8B5CF6;
    --secondary-glow: rgba(139, 92, 246, 0.3);
    --accent: #10B981;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(17, 24, 39, 0.6);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-blue: 0 0 40px rgba(59, 130, 246, 0.15), 0 0 80px rgba(59, 130, 246, 0.05);
    --glow-purple: 0 0 40px rgba(139, 92, 246, 0.15), 0 0 80px rgba(139, 92, 246, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Canvas Background --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* --- Layout Utils --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section {
    padding: 120px 0;
    position: relative;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* --- Subtle Animated Background Blobs --- */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.bg-shape-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 65%);
    top: -250px;
    right: -200px;
    animation: float 20s ease-in-out infinite alternate;
}

.bg-shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 65%);
    bottom: -150px;
    left: -200px;
    animation: float 25s ease-in-out infinite alternate-reverse;
}

.bg-shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: float 30s ease-in-out infinite;
    pointer-events: none;
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

/* --- Hero Grid Overlay --- */
.hero-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 100%);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-80px, 40px) scale(1.08);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #fff 40%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* --- Mobile Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Added spacing for icons */
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.2) 0%, rgba(122, 92, 255, 0.2) 100%);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 209, 255, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(0, 209, 255, 0.35);
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.3) 0%, rgba(122, 92, 255, 0.3) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 16px;
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-glow {
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.25), rgba(0, 255, 163, 0.25));
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 209, 255, 0.2);
}

.btn-glow:hover {
    box-shadow: 0 8px 40px rgba(0, 209, 255, 0.4);
}

/* --- Typography --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
    animation: pulseBadge 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes pulseBadge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.08);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

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

/* Split Layout */
/* =====================================================
   Hero Section - Clean Split Layout
   ===================================================== */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 40px 0 80px;
}

/* Left: Text Content */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.hero-left .badge {
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-name-main {
    display: block;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
    line-height: 1.05;
}

.hero-roles {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-role-tag {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
    letter-spacing: -0.01em;
}

.hero-role-dot {
    color: var(--border-hover);
    font-size: 1.2rem;
    line-height: 1;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.25);
}

.hero-desc {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.8;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero {
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
}

.btn-hero i {
    font-size: 1.3rem;
}

/* Hero Metrics */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-metric-num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-metric-sep {
    width: 1px;
    height: 40px;
    background: var(--border);
    border-radius: 1px;
}

/* =====================================================
   Right: Clean Profile Showcase
   ===================================================== */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    width: 100%;
}

.profile-showcase {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1/1;
    z-index: 0;
    pointer-events: none; /* Make it silent/non-interactive */
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(50px);
    z-index: -1;
    opacity: 0.4;
    animation: pulseProfileGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseProfileGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; }
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Atmospheric Masking - Improved smooth edge fade */
    -webkit-mask-image: radial-gradient(closest-side, black 40%, transparent 100%);
    mask-image: radial-gradient(closest-side, black 40%, transparent 100%);
    /* Silent Blend */
    mix-blend-mode: luminosity;
    opacity: 0.4;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(80%) contrast(1.1);
    animation: atmosphericBreathe 8s ease-in-out infinite alternate;
}

@keyframes atmosphericBreathe {
    0% {
        transform: scale(1);
        filter: grayscale(80%) contrast(1.1) brightness(1);
    }
    100% {
        transform: scale(1.06);
        filter: grayscale(80%) contrast(1.1) brightness(1.15);
    }
}

/* Floating Animations (retained if needed for future) */
.float-anim-1 {
    animation: profileFloat 6s ease-in-out infinite alternate;
}

.float-anim-2 {
    animation: profileFloat 7s ease-in-out infinite alternate-reverse;
}

.float-anim-3 {
    animation: profileFloat 5s ease-in-out infinite alternate 1s;
}

@keyframes profileFloat {
    0% {
        transform: translateY(0) translateZ(30px);
    }

    100% {
        transform: translateY(-12px) translateZ(30px);
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

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

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

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }
}

/* --- Tech Marquee --- */
.tech-marquee {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

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

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

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

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 28px;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.85);
    /* Increased contrast */
    font-size: 0.95rem;
    /* Slightly larger */
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.marquee-item:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

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

/* --- Sections --- */
.section-header {
    margin-bottom: 64px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 32px 40px;
    /* Increased top padding */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--glow-blue);
}

.service-card:nth-child(2):hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--glow-purple);
}

.service-card:nth-child(3):hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15), 0 0 60px rgba(6, 182, 212, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.service-card:nth-child(2) .service-icon {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
}

.service-card:nth-child(2):hover .service-icon {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.service-card:nth-child(3) .service-icon {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.15);
    color: var(--accent);
}

.service-card:nth-child(3):hover .service-icon {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.service-features li:hover {
    transform: translateX(4px);
    color: var(--primary);
}

.service-features i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent 50%, rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.project-card:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-color);
    font-weight: 600;
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.project-card:hover h3 {
    color: var(--primary);
}

.project-card p {
    color: var(--text-muted);
}

/* --- Stats/Numbers Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 4px;
}

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

/* --- Timeline --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 64px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 6px;
    left: 9px;
    width: 14px;
    height: 14px;
    background: var(--bg-color);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.3);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--glow-blue);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 16px;
}

.timeline-header h3 {
    font-size: 1.3rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-company {
    display: block;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-box {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-methods {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.contact-methods span,
.contact-methods a {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.contact-methods a:hover {
    color: var(--primary);
    border-color: var(--border);
    background: rgba(59, 130, 246, 0.05);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    width: calc(100% - 48px);
    max-width: 500px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    border: none;
}

.modal-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateX(5px);
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.email-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.wa-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.phone-icon {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.calendly-icon {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.calendly-cta {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.modal-text {
    display: flex;
    flex-direction: column;
}

.modal-text h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

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

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-color);
}

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

/* --- Utilities / Anim --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Tilt / Glow Cursor Effect on Cards --- */
.card-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-roles {
        justify-content: center;
    }

    .hero-name-main {
        font-size: clamp(2.2rem, 8vw, 3rem);
        text-align: center;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero-right {
        display: none;
    }

    .hero-metrics {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-title {
        align-items: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 14px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .scroll-indicator {
        display: none;
    }

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

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

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-split {
        gap: 40px;
    }

    .hero-visual {
        width: 340px;
        height: 340px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .chip-1 {
        left: -5%;
    }

    .chip-6 {
        left: -8%;
    }

    .chip-3 {
        right: -5%;
    }

    .chip-4 {
        right: -3%;
    }
}

/* --- Print Styles --- */
@media print {
    body {
        background: white;
        color: black;
    }

    /* Hide everything except the resume output */
    body * {
        visibility: hidden;
    }

    #resume-output,
    #resume-output * {
        visibility: visible;
    }

    #resume-output {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent !important;
        border: none !important;
    }

    #resume-output h1,
    #resume-output h2,
    #resume-output h3,
    #resume-output p,
    #resume-output li {
        color: black !important;
    }

    #resume-output h2 {
        border-bottom: 1px solid black !important;
    }

    @page {
        margin: 0.75in;
    }
}

/* =====================================================
   AI Chatbot Assistant
   ===================================================== */

.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1051;
}

.chatbot-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.chatbot-fab.pulse-glow {
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.chat-window {
    width: 350px;
    height: 500px;
    max-height: calc(100vh - 120px);
    background: rgba(13, 20, 40, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: var(--transition);
    transform-origin: bottom right;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #60a5fa;
    position: relative;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid var(--bg-alt);
}

.chat-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 2px 0;
}

.chat-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.chat-action-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

.chat-message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    animation: fadeInMsg 0.3s ease-out forwards;
}

@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.ai-message {
    align-self: flex-start;
}

.chat-message.user-message {
    align-self: flex-end;
}

.msg-content {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-message .msg-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}

.user-message .msg-content {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-bottom-right-radius: 4px;
    color: white;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    align-self: flex-start;
    animation: fadeInMsg 0.3s ease-out forwards;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.chat-input-area {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 20px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}

#chat-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 80px;
        right: 20px;
    }

    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
}

/* Chat Quick Replies */
.chat-quick-replies {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.chat-quick-replies::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.quick-reply {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

/* Chat Markdown Formatting */
.ai-message .msg-content p {
    margin-bottom: 8px;
}

.ai-message .msg-content p:last-child {
    margin-bottom: 0;
}

.ai-message .msg-content ul,
.ai-message .msg-content ol {
    margin-left: 20px;
    margin-bottom: 8px;
}

.ai-message .msg-content li {
    margin-bottom: 4px;
}

.ai-message .msg-content strong {
    color: #fff;
    font-weight: 600;
}

.ai-message .msg-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    color: #60a5fa;
}

.ai-message .msg-content a {
    color: #60a5fa;
    text-decoration: underline;
}

.ai-message .msg-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 8px;
}

.ai-message .msg-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}