:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --light: #f5f7fa;
    --white: #fafbfc;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #0a0e1a;
    --text-color: #e2e8f0;
    --card-bg: #1a1f35;
    --border-color: #2d3548;
    --section-bg: #0f1729;
    --gray: #cbd5e1;
    --gray-light: #94a3b8;
}

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

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.011em;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

/* AI Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ai-loader {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 3rem;
}

.ai-core {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-center {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--primary), 0 0 80px var(--primary);
    animation: pulse-core 2s ease-in-out infinite;
}

@keyframes pulse-core {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--primary), 0 0 80px var(--primary);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 60px var(--primary), 0 0 120px var(--primary);
    }
}

.ai-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
}

.orbit-ring {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: orbit 8s linear infinite;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.ring-1 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 3s;
}

.ring-1::before {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.ring-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 5s;
    animation-direction: reverse;
}

.ring-2::before {
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
}

.ring-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 7s;
}

.ring-3::before {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes orbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.data-stream {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: stream 2s ease-in-out infinite;
    opacity: 0.6;
}

.stream-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.stream-2 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    animation-delay: 0.5s;
}

.stream-3 {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    animation-delay: 1s;
}

.stream-4 {
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(270deg);
    animation-delay: 1.5s;
}

@keyframes stream {
    0%, 100% {
        opacity: 0.3;
        height: 40px;
    }
    50% {
        opacity: 1;
        height: 80px;
    }
}

.loading-progress {
    width: 300px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
}

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

.progress-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.loading-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: fade-in-out 2s ease-in-out infinite;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================================
   NAVIGATION – Floating Pill Style
   ============================================================ */

.highlight {
    color: var(--secondary);
    font-weight: 600;
}
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDown 0.6s ease;
}

nav.nav-hidden {
    transform: translateX(-50%) translateY(-120%);
}

nav.nav-scrolled {
    top: 1rem;
}

@keyframes slideDown {
    from { 
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to { 
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-pill {
    background: rgba(26, 31, 53, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

[data-theme="dark"] .nav-link {
    color: var(--text-color);
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* ── UPDATED: Only sections (not Home) get active pill styling ── */
.nav-link.active:not([href="#home"]) {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

[data-theme="dark"] .nav-link.active:not([href="#home"]) {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.nav-link.contact-btn {
    background: var(--dark);
    color: white;
}

[data-theme="dark"] .nav-link.contact-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.nav-link.contact-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(99, 102, 241, 0.3);
}

.theme-toggle i {
    font-size: 1.1rem;
    color: var(--dark);
}

[data-theme="dark"] .theme-toggle i {
    color: var(--text-color);
}

/* Hamburger Menu - Hidden by default */
.hamburger {
    display: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: var(--section-bg);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    color: #61a790;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid #61a790;
    cursor: pointer;
    transition: all 0.3s ease;
}

.availability-badge:hover {
    background: #161616;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #61a790;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero h1 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.025em;
}

[data-theme="dark"] .hero h1 {
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--gray);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.011em;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--dark);
    color: white;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1e293b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--secondary);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid #e2e8f0;
}

[data-theme="dark"] .btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn-secondary:hover {
    border-color: var(--primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    z-index: 1;
}

.mouse {
    width: 35px;
    height: 60px;
    border: 3px solid var(--gray);
    border-radius: 18px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 5px;
    height: 10px;
    background: var(--gray);
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

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

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

/* Section Styles */
section {
    padding: 5rem 0;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

section > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

[data-theme="dark"] .section-title {
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   ABOUT SECTION - WITH BLUR TO CLEAR EFFECT
   ============================================================ */
.about {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .about {
    background: var(--section-bg);
}

.ai-background-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.ai-background-effect canvas {
    width: 100%;
    height: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: box-shadow 0.6s ease;
}

.about-image-wrapper:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .about-image-wrapper:hover {
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(8px) grayscale(30%);
}

.about-image-wrapper:hover .about-profile-img {
    transform: scale(1.05);
    filter: blur(0px) grayscale(0%);
}

.image-ai-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-text h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

[data-theme="dark"] .about-text h3 {
    color: var(--text-color);
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.011em;
}

.about-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 0.9375rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 1s ease;
}

[data-theme="dark"] .stat-box {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.stat-number {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: -0.011em;
    line-height: 1.4;
}

/* ============================================================
   TECH STACK - WITH IMAGE ICONS
   ============================================================ */
.tech-stack {
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .tech-stack {
    background: var(--bg-color);
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.tech-card {
    background: var(--white);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
}

.tech-card:hover::before {
    width: 250px;
    height: 250px;
}

.tech-card.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .tech-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tech-icon-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.tech-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .tech-card h3 {
    color: var(--text-color);
}

.tech-description {
    font-size: 0.75rem;
    color: var(--gray-light);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ============================================================
   EXPERIENCE – Vertical Timeline
   ============================================================ */
.experience {
    background: white;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .experience {
    background: var(--section-bg);
}

.timeline-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.2;
}

.timeline {
    position: relative;
    max-width: 860px;
    margin: 2.5rem auto 0;
    padding: 0 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), rgba(99, 102, 241, 0.15));
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-card-wrap {
    width: calc(50% - 2.5rem);
    position: relative;
}

.timeline-card {
    background: #1a1f35;
    border: 1px solid #2d3548;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
}

.timeline-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}

.timeline-dot {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1f35;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.timeline-dot .dot-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

.dot-icon-green { color: #00a862 !important; }
.dot-icon-red   { color: #e82127 !important; }

.timeline-date-badge {
    position: absolute;
    top: 1.5rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-date-badge {
    right: calc(50% + 3rem);
}

.timeline-item:nth-child(even) .timeline-date-badge {
    left: calc(50% + 3rem);
}

.tc-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.tc-logo-box {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    flex-shrink: 0;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
}

.tc-logo-green { background: var(--gradient-4) !important; }
.tc-logo-red   { background: var(--gradient-2) !important; }

.tc-title { flex: 1; }

.tc-title h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.tc-title .tc-company {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.tc-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.tc-bullets li {
    padding: 0.38rem 0 0.38rem 1.5rem;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.55;
    position: relative;
}

.tc-bullets li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.7rem;
    top: 0.55rem;
}

.tc-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.tc-tag {
    padding: 0.28rem 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.25s;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   SERVICES SECTION - WITH FIXED ICON COLORS
   ============================================================ */
.services {
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .services {
    background: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .service-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
}

.service-card:hover::before {
    width: 300px;
    height: 300px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 10px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .service-icon img {
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

[data-theme="dark"] .service-card h3 {
    color: var(--text-color);
}

.service-card p {
    color: var(--gray);
    line-height: 1.65;
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: -0.011em;
}

/* ============================================================
   PROJECTS - WITH VIEW ALL BUTTON
   ============================================================ */
.projects {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .projects {
    background: var(--section-bg);
}

.projects-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 5%;
}

.projects-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
    padding: 0 8%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.project-card-small {
    background: #1a1f35;
    border: 1px solid #2d3548;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    text-decoration: none;
    display: block;
}

.project-card-small:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--primary);
}

.project-image-container {
    width: calc(100% - 1.5rem);
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0f1729;
    margin: 0.75rem 0.75rem 0.5rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-card-small:hover .project-image {
    transform: scale(1.05);
    filter: blur(2px);
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.project-external-link {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.project-card-small:hover .project-external-link {
    transform: scale(1);
}

.project-external-link i {
    color: white;
    font-size: 1.25rem;
}

.project-gh-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1a1f35;
    border: 2px solid #2d3548;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    z-index: 2;
}

.project-card-small:hover .project-gh-badge {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(360deg);
}

.project-content-small {
    padding: 0.75rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.project-content-small h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.project-content-small p {
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    flex: 1;
}

.project-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.fp-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}

.fp-tag {
    padding: 0.28rem 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.25s;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-tag:hover {
    background: var(--primary);
    color: #fff;
}

.tool-tag {
    padding: 0.3rem 0.7rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.25s;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.view-all-projects-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 0 5%;
}

.btn-view-all-projects {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-view-all-projects::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-view-all-projects:hover::before {
    width: 300px;
    height: 300px;
}

.btn-view-all-projects:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    background: var(--secondary);
}

.btn-view-all-projects i:first-child {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-view-all-projects i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-view-all-projects:hover i:last-child {
    transform: translateX(5px);
}

[data-theme="dark"] .btn-view-all-projects {
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .btn-view-all-projects:hover {
    background: var(--secondary);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

[data-theme="dark"] footer {
    background: #0a0e1a;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.1);
}

.footer-link i {
    font-size: 1.25rem;
}

.footer-link span {
    display: none;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--secondary);
}

.submit-btn i {
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
    section > * {
        padding-left: 4%;
        padding-right: 4%;
    }

    .projects-grid-cards {
        padding: 0 4%;
    }
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .projects-grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 5%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 968px) {
    nav {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: calc(100% - 2rem);
    }

    nav.nav-scrolled {
        top: 0.5rem;
    }

    nav.nav-hidden {
        transform: translateY(-120%);
    }

    .nav-pill {
        width: 100%;
        padding: 0.7rem 1rem;
        gap: 1rem;
        justify-content: space-between;
    }

    .nav-logo-img {
        width: 35px;
        height: 35px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    section {
        padding: 3.5rem 0;
    }

    section > * {
        padding-left: 5%;
        padding-right: 5%;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

@media (max-width: 768px) {
    .services-grid,
    .projects-grid-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .projects-grid-cards {
        padding: 0 5%;
    }

    .project-card-small {
        max-width: 100%;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .btn-view-all-projects {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }

    .timeline {
        padding: 0 1rem 2rem;
    }

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

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        display: block;
        flex-direction: column;
        margin-bottom: 2.5rem;
        position: relative;
        padding-left: 60px;
    }

    .timeline-date-badge {
        position: static !important;
        display: block;
        margin-bottom: 1rem;
        margin-left: 0 !important;
        width: fit-content;
        font-size: 0.75rem;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .timeline-dot {
        position: absolute;
        left: 0;
        top: 0;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .timeline-card-wrap {
        width: 100%;
        margin: 0;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .tc-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .tc-logo-box {
        width: 36px;
        height: 36px;
    }

    .tc-title h3 {
        font-size: 1rem;
    }

    .tc-bullets li {
        font-size: 0.8rem;
        padding: 0.3rem 0 0.3rem 1.3rem;
    }

    .tc-tags {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
    }

    .fp-tags {
        grid-template-columns: repeat(3, 2fr);
    }

    .timeline {
        padding: 0 0.5rem 2rem 0.5rem;
    }

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

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

    .timeline-dot {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .availability-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

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

    .section-subtitle {
        font-size: 0.875rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .info-item {
        font-size: 0.85rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

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

    .tech-card {
        padding: 1.5rem 1rem;
    }

    .timeline {
        padding: 0 0.25rem 2rem 0.25rem;
    }

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

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

    .timeline-dot {
        width: 35px;
        height: 35px;
        left: 8px;
    }

    .timeline-card {
        padding: 1.25rem;
    }

    .tc-tags,
    .fp-tags {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .footer-info h3 {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .btn-view-all-projects {
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .btn-view-all-projects i:first-child {
        font-size: 1rem;
    }
}