/* ==========================================
   Base & Variables
   ========================================== */
:root {
    --bg-color: #020617;
    --bg-secondary: #0a1128;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8; /* Premium Sky Blue */
    --accent-glow: rgba(56, 189, 248, 0.25);
    --accent-subtle: rgba(56, 189, 248, 0.08);
    --border-color: rgba(56, 189, 248, 0.15);
    --glass-bg: rgba(2, 6, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 72px;

    /* Brand colors for tech icons */
    --clr-html5: #E44D26;
    --clr-css3: #264DE4;
    --clr-js: #F7DF1E;
    --clr-vue: #42B883;
    --clr-react: #61DAFB;
    --clr-bootstrap: #7952B3;
    --clr-tailwind: #06B6D4;
    --clr-wordpress: #21759B;
    --clr-figma: #F24E1E;
    --clr-git: #F05032;
    --clr-vscode: #007ACC;
    --clr-chrome: #4285F4;
    --clr-php: #777BB4;
    --clr-google: #4285F4;
    --clr-openai: #10A37F;
    --clr-aws: #FF9900;
    --clr-mysql: #4479A1;
    --clr-mongodb: #47A248;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none; /* Hide default cursor for custom GSAP cursor */
}

/* ==========================================
   Animated Tech Grid Background (Full Page)
   ========================================== */
#techGridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Section-level glow accents */
.section-glow {
    position: relative;
}
.section-glow::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Glowing separator line between sections */
.glow-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.2;
    margin: 0;
    border: none;
}

::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* ==========================================
   Custom Cursor
   ========================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* ==========================================
   Sticky Navbar
   ========================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-nav.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--glass-border), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s;
}
.nav-logo:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--bg-color);
    background: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 24px;
    transition: var(--transition);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}
.nav-cta:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.mobile-nav-links li {
    margin: 1.5rem 0;
}
.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}
.mobile-nav-link:hover {
    color: var(--accent-color);
}

/* ==========================================
   Typography & Utilities
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0;
}

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

.mono-accent {
    font-family: var(--font-mono);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.text-light-gray {
    color: var(--text-muted);
}

/* Layout Helpers */
.py-8 { padding-top: 8rem; padding-bottom: 8rem; }
.mt-8 { margin-top: 8rem; }
.pt-8 { padding-top: 8rem; }

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    padding-top: calc(var(--nav-height) + 40px);
    overflow: hidden;
}

/* Hero grid overlay (supplements canvas grid) */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.z-index-content {
    position: relative;
    z-index: 10;
}

.display-title {
    font-size: clamp(2.5rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 0;
    line-height: 1.05;
}

/* Hero meta tags */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2rem;
}
.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--accent-subtle);
    letter-spacing: 0.5px;
}
.hero-tag i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Word splitting classes for GSAP */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-right: 0.2em; /* Spacing between words */
}
.word span {
    display: inline-block;
    transform: translateY(110%);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}
.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}
.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transform: translateY(-100%);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Abstract Parallax Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.3;
}
.shape-1 {
    width: 400px;
    height: 400px;
    background: #0284c7; /* Deep Sky Blue */
    top: 10%;
    right: -10%;
}
.shape-2 {
    width: 300px;
    height: 300px;
    background: #312e81; /* Indigo */
    bottom: 10%;
    left: -5%;
}
.shape-3 {
    width: 250px;
    height: 250px;
    background: #0ea5e9;
    top: 40%;
    left: 30%;
    opacity: 0.15;
}

/* ==========================================
   Philosophy Section
   ========================================== */
.philosophy-text {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -1px;
    color: var(--text-main);
}
.scrub-word {
    opacity: 0.2; /* Initial state for GSAP text scrub */
}

/* ==========================================
   Expertise Section
   ========================================== */
.section-title {
    font-size: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.expertise-card {
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}
.expertise-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.expertise-card:hover .card-glow {
    opacity: 1;
}
.expertise-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.expertise-card:hover::before {
    opacity: 0.15;
}
.expertise-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}
.expertise-card h4 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.expertise-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Stats Strip */
.stats-strip {
    display: flex;
    justify-content: space-between;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.counter-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}
.counter-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
}
.stat-block-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* ==========================================
   Case Studies (Swiper.js)
   ========================================== */
.work-swiper {
    padding: 0 5vw 4rem;
    overflow: visible; /* Show adjacent slides for awwwards look */
}

.swiper-slide {
    width: 65%; /* Adjusted for Coverflow */
    transition: var(--transition);
}

.project-card {
    position: relative;
    border-radius: 0; /* Neo-brutalist sharp edges */
    overflow: hidden;
    cursor: grab;
    aspect-ratio: 16/9;
}
.project-card:active {
    cursor: grabbing;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0) 60%);
    transition: opacity 0.4s ease;
}

.project-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}
.project-card:hover .project-content,
.swiper-slide-active .project-content {
    transform: translateY(0);
    opacity: 1;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.project-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.2rem;
}
.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 5px 10px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s, gap 0.3s;
}
.project-link:hover {
    color: #fff;
    gap: 10px;
}

/* Pagination */
.swiper-pagination-bullet {
    background: var(--text-muted);
    border-radius: 0;
    width: 20px;
    height: 3px;
    transition: var(--transition);
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 40px;
}

/* ==========================================
   Engine Section (AI Workflows)
   ========================================== */
.ai-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
}
.ai-tool-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 8px 16px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.ai-tool-pill:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.ai-stats-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 2px solid var(--border-color);
    padding-left: 3rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}
.stat-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ==========================================
   Tech Stack / Skills Section
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.skill-category {
    padding: 2rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}
.skill-category:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.04);
}
.skill-cat-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}
.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-pill {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
}
.skill-pill i {
    font-size: 1.15rem;
    transition: var(--transition);
}
.skill-pill:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    color: var(--accent-color);
    transform: translateY(-3px);
    background: rgba(56, 189, 248, 0.12);
}
.skill-pill:hover i {
    filter: brightness(1.3) drop-shadow(0 0 4px currentColor);
    transform: scale(1.2);
}

/* ---- Brand-colored tech icons ---- */
.devicon-html5-plain { color: var(--clr-html5); }
.devicon-css3-plain { color: var(--clr-css3); }
.devicon-javascript-plain { color: var(--clr-js); }
.devicon-vuejs-plain { color: var(--clr-vue); }
.devicon-react-original { color: var(--clr-react); }
.devicon-bootstrap-plain { color: var(--clr-bootstrap); }
.devicon-tailwindcss-original { color: var(--clr-tailwind); }
.devicon-wordpress-plain { color: var(--clr-wordpress); }
.devicon-figma-plain { color: var(--clr-figma); }
.devicon-git-plain { color: var(--clr-git); }
.devicon-vscode-plain { color: var(--clr-vscode); }
.devicon-chrome-plain { color: var(--clr-chrome); }
.devicon-php-plain { color: var(--clr-php); }
.devicon-google-plain { color: var(--clr-google); }
.ti.ti-brand-openai { color: var(--clr-openai); }
.ti.ti-sparkles { color: #c084fc; }  /* Antigravity purple */
.ti.ti-video { color: #f472b6; }
.ti.ti-wand { color: #fbbf24; }
.ti.ti-needle { color: #34d399; }
.ti.ti-carousel-horizontal { color: #60a5fa; }
.ti.ti-scroll { color: #a78bfa; }
.ti.ti-brand-gsap { color: #88CE02; }
.devicon-amazonwebservices-plain-wordmark { color: var(--clr-aws); }
.devicon-mysql-plain { color: var(--clr-mysql); }
.devicon-mongodb-plain { color: var(--clr-mongodb); }
.ti.ti-server { color: var(--clr-aws); }
.ti.ti-terminal-2 { color: #a78bfa; }

/* Marquee */
.marquee-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    overflow: hidden;
}
.marquee-content {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    transition: color 0.3s, opacity 0.3s;
}
.marquee-content span:hover {
    color: var(--accent-color);
    opacity: 1;
}

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

/* ==========================================
   Experience Timeline
   ========================================== */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 860px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 2rem;
    width: 30px;
    display: flex;
    justify-content: center;
}
.marker-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 6px var(--accent-color);
    position: relative;
}
.marker-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.2;
    animation: markerPulse 2s ease-in-out infinite;
}
.marker-edu {
    background: var(--text-muted);
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 6px var(--text-muted);
}
.marker-edu::after {
    background: var(--text-muted);
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.8); opacity: 0; }
}

.timeline-card {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}
.timeline-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.04);
}
.timeline-card-edu {
    border-color: rgba(148, 163, 184, 0.2);
}
.timeline-card-edu:hover {
    border-color: rgba(148, 163, 184, 0.4);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.timeline-role {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}
.timeline-company {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-color);
    margin: 0;
    font-weight: 500;
}
.timeline-location {
    color: var(--text-muted);
    font-weight: 400;
}
.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--accent-subtle);
}

.timeline-duties {
    list-style: none;
    padding: 0;
    margin: 0;
}
.timeline-duties li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}
.timeline-duties li:last-child {
    margin-bottom: 0;
}
.timeline-duties li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ==========================================
   Swiper Navigation
   ========================================== */
.swiper-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 0 5vw;
}
.swiper-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.swiper-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

/* ==========================================
   Footer & Contact Form
   ========================================== */
.footer-section {
    background-color: #010409;
}

.footer-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -2px;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    padding: 3rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.6;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.form-group-full {
    grid-column: 1 / -1;
}

/* Form Labels */
.form-label-custom {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 0.6rem;
}

/* Form Inputs */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}
.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(56, 189, 248, 0.04);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

/* Textarea */
.form-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}
.form-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: #000;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 3rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.btn-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-custom:hover::before {
    width: 300px;
    height: 300px;
}
.btn-custom:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}
.social-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}
.social-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s;
}
.social-link:hover {
    color: var(--accent-color);
}
.social-link:hover::after {
    width: 100%;
}


/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* --- Large Tablets / Small Desktops (≤1200px) --- */
@media (max-width: 1200px) {
    .display-title {
        font-size: clamp(2.2rem, 7vw, 5.5rem);
    }
    .philosophy-text {
        font-size: clamp(1.4rem, 4vw, 2.8rem);
    }
    .project-title {
        font-size: 2rem;
    }
    .stat-num {
        font-size: 3.2rem;
    }
    .footer-headline {
        font-size: clamp(2.2rem, 5vw, 4rem);
    }
}

/* --- Tablets (≤991px) --- */
@media (max-width: 991px) {
    /* Navbar: show hamburger, hide desktop links */
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .site-nav {
        padding: 0 1rem;
    }

    /* Hero */
    .hero-section {
        padding-top: calc(var(--nav-height) + 20px);
    }
    .display-title {
        font-size: clamp(2rem, 6.5vw, 4.5rem);
    }

    /* Stats strip wrapping */
    .stats-strip {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .stat-block {
        flex: 0 0 45%;
    }

    /* Engine section */
    .ai-stats-box {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--border-color);
        padding-top: 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2.5rem;
    }
    .stat-item {
        flex: 1 1 auto;
        min-width: 120px;
    }

    /* Skills grid → 2 columns */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Timeline */
    .timeline {
        max-width: 100%;
    }
}

/* --- Mobile Landscape / Small Tablets (≤768px) --- */
@media (max-width: 768px) {
    /* Spacing reduction */
    .py-8 { padding-top: 4rem; padding-bottom: 4rem; }
    .mt-8 { margin-top: 4rem; }
    .pt-8 { padding-top: 4rem; }

    /* Restore default cursor on touch devices */
    body { cursor: auto; }

    /* Hero */
    .scroll-indicator { display: none; }
    .display-title {
        font-size: clamp(1.8rem, 8vw, 3.5rem);
        letter-spacing: -1px;
    }
    .hero-meta {
        flex-direction: column;
        gap: 0.6rem;
    }
    .hero-tag {
        width: fit-content;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .hero-grid-bg {
        background-size: 30px 30px;
    }

    /* Shape blobs smaller on mobile */
    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 120px; height: 120px; }

    /* Philosophy */
    .philosophy-text {
        font-size: clamp(1.2rem, 5vw, 2rem);
        line-height: 1.4;
    }

    /* Section titles */
    .section-title {
        font-size: 1.6rem;
    }

    /* Expertise cards */
    .expertise-card {
        padding: 2rem 1.5rem;
    }

    /* Stats */
    .stats-strip {
        gap: 1.5rem;
        padding: 2rem 0;
    }
    .stat-block {
        flex: 0 0 45%;
    }
    .counter-num {
        font-size: 2.5rem;
    }
    .counter-suffix {
        font-size: 1.5rem;
    }
    .stat-block-label {
        font-size: 0.68rem;
    }

    /* Swiper / Projects */
    .swiper-slide { width: 90%; }
    .project-title { font-size: 1.6rem; }
    .project-desc { font-size: 0.9rem; margin-bottom: 1rem; }
    .project-content {
        padding: 1.5rem;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }
    .project-tags { gap: 6px; margin-bottom: 0.8rem; }
    .project-tags span { font-size: 0.65rem; padding: 4px 8px; }
    /* Always show project content on mobile (no hover) */
    .project-content {
        transform: translateY(0);
        opacity: 1;
    }

    /* AI tools */
    .ai-tools-list { gap: 8px; }
    .ai-tool-pill { font-size: 0.72rem; padding: 6px 12px; }
    .ai-stats-box {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .stat-num { font-size: 2.8rem; }

    /* Skills → single column */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .skill-category {
        padding: 1.5rem;
    }
    .skill-pill {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    /* Marquee */
    .marquee-content {
        gap: 2rem;
        animation-duration: 20s;
    }
    .marquee-content span {
        font-size: 1rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 30px;
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-marker {
        left: -30px;
        width: 22px;
    }
    .marker-dot {
        width: 10px;
        height: 10px;
    }
    .timeline-card {
        padding: 1.5rem;
    }
    .timeline-header {
        flex-direction: column;
        gap: 0.8rem;
    }
    .timeline-role {
        font-size: 1.3rem;
    }
    .timeline-company {
        font-size: 0.9rem;
    }
    .timeline-period {
        font-size: 0.7rem;
        padding: 5px 10px;
        align-self: flex-start;
    }
    .timeline-duties li {
        font-size: 0.88rem;
        padding-left: 1.2rem;
        line-height: 1.6;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 2rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .form-hint {
        text-align: center;
    }
    .btn-custom {
        justify-content: center;
    }

    /* Swiper nav */
    .swiper-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .swiper-nav-wrapper {
        gap: 1rem;
    }

    /* Footer */
    .footer-headline {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
    }
    .btn-custom {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }

    /* Mobile overlay text size */
    .mobile-nav-link {
        font-size: 1.8rem;
    }
}

/* --- Small Phones (≤576px) --- */
@media (max-width: 576px) {
    /* Further spacing reduction */
    .py-8 { padding-top: 3rem; padding-bottom: 3rem; }
    .mt-8 { margin-top: 3rem; }
    .pt-8 { padding-top: 3rem; }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero shrink */
    .display-title {
        font-size: clamp(1.6rem, 9vw, 2.8rem);
    }
    .mono-accent {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.35rem;
    }

    /* Stats 2-column stays but smaller */
    .counter-num {
        font-size: 2rem;
    }
    .counter-suffix {
        font-size: 1.2rem;
    }
    .stat-block-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    /* Projects */
    .swiper-slide { width: 95%; }
    .work-swiper { padding: 0 1rem 3rem; }
    .project-title { font-size: 1.3rem; }
    .project-desc { font-size: 0.85rem; }
    .project-content { padding: 1rem; bottom: 8px; left: 8px; width: calc(100% - 16px); border-radius: 8px; }
    .project-link { font-size: 0.75rem; }

    /* Engine */
    .display-4 {
        font-size: 1.8rem !important;
    }
    .lead {
        font-size: 0.95rem !important;
    }

    /* Skills */
    .skill-cat-title {
        font-size: 0.7rem;
    }
    .skill-pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    .skill-category {
        padding: 1.2rem;
    }

    /* Marquee */
    .marquee-content span {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    .marquee-content {
        gap: 1.5rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 24px;
    }
    .timeline::before {
        left: 7px;
    }
    .timeline-marker {
        left: -24px;
        width: 16px;
    }
    .timeline-card {
        padding: 1.2rem;
    }
    .timeline-role {
        font-size: 1.15rem;
    }
    .timeline-duties li {
        font-size: 0.82rem;
        line-height: 1.55;
        margin-bottom: 0.6rem;
    }
    .timeline-item {
        margin-bottom: 2rem;
    }

    /* Footer */
    .footer-headline {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
    .social-links {
        gap: 1rem;
    }
    .social-link {
        font-size: 0.78rem;
    }
    .btn-custom {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .form-input {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    .form-textarea {
        min-height: 120px;
    }
    .btn-custom {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    /* Swiper nav */
    .swiper-btn {
        width: 36px;
        height: 36px;
    }

    /* Mobile nav */
    .mobile-nav-link {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    .mobile-nav-links li {
        margin: 1.2rem 0;
    }
}

/* --- Tiny Phones (≤400px) --- */
@media (max-width: 400px) {
    .display-title {
        font-size: clamp(1.4rem, 10vw, 2.2rem);
        letter-spacing: 0;
    }

    .hero-section {
        padding-top: calc(var(--nav-height) + 10px);
        min-height: auto;
        padding-bottom: 6rem;
    }

    .hero-tag {
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .expertise-card {
        padding: 1.5rem 1rem;
    }
    .expertise-card h4 {
        font-size: 1.2rem;
    }
    .expertise-card p {
        font-size: 0.85rem;
    }

    .stats-strip {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .stat-block {
        flex: 0 0 48%;
    }
    .counter-num {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .project-card {
        aspect-ratio: 4/3;
    }

    .ai-stats-box {
        gap: 1.2rem;
    }
    .stat-num {
        font-size: 2.2rem;
    }

    .timeline-role {
        font-size: 1.05rem;
    }
    .timeline-period {
        font-size: 0.65rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }
}
