/* ============================================
   AVINASH DHANANI — PORTFOLIO
   Modern Dark Theme with 3D Effects
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;
    --accent-cyan: #22d3ee;
    --accent-emerald: #34d399;
    --accent-rose: #fb7185;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --gradient-glow: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Performance: content-visibility for offscreen sections */
.section {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--accent-primary);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

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

#heroCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.stat-card {
    padding: 24px 16px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 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.75rem;
    animation: float 3s ease-in-out infinite;
}

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

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

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

/* Animation classes */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.3s; }
.animate-in:nth-child(3) { animation-delay: 0.5s; }
.animate-in:nth-child(4) { animation-delay: 0.7s; }
.animate-in:nth-child(5) { animation-delay: 0.9s; }

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

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text.lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-highlights {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.highlight-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.highlight-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Code Window */
.code-window {
    position: sticky;
    top: 120px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.9;
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-prop { color: #f07178; }
.code-string { color: #c3e88d; }
.code-bool { color: #ff9cac; }
.code-method { color: #82aaff; }

/* ============================================
   WHY HIRE ME
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

/* 3D Orbit */
.skills-orbit-wrapper {
    perspective: 800px;
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.skills-orbit {
    width: 350px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg) rotateX(15deg);
    animation: none;
}

.skills-orbit.orbit-spinning {
    animation: orbitRotate 30s linear infinite;
}

@keyframes orbitRotate {
    from { transform: rotateY(0deg) rotateX(15deg); }
    to { transform: rotateY(360deg) rotateX(15deg); }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
    z-index: 10;
}

.orbit-center-text {
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
    line-height: 1.2;
}

.orbit-item {
    position: absolute;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.orbit-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
    z-index: 20;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.skill-category {
    padding: 32px;
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backend-icon { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.frontend-icon { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.database-icon { background: rgba(52, 211, 153, 0.15); color: var(--accent-emerald); }
.devops-icon { background: rgba(251, 113, 133, 0.15); color: var(--accent-rose); }

.skill-cat-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-level {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-primary);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:nth-child(2) .skill-fill {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.skill-category:nth-child(3) .skill-fill {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.skill-category:nth-child(4) .skill-fill {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
}

/* Tech Cloud */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-badge {
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
    animation: fadeInBadge 0.5s calc(var(--delay) * 0.05s) forwards;
    opacity: 0;
}

@keyframes fadeInBadge {
    to { opacity: 1; }
}

.tech-badge:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.project-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    padding: 0;
    overflow: hidden;
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

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

.project-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.05;
    line-height: 1;
}

/* Sprift Visual — Property Search Interface */
.sprift-visual {
    background: linear-gradient(135deg, #1a1035, #0d1b2a);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-bar {
    width: 100%;
    padding: 0;
}

.search-input {
    height: 36px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: searchPulse 2.5s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% { background: rgba(99, 102, 241, 0.15); }
    50% { background: rgba(99, 102, 241, 0.25); }
}

.property-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.property-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 8px;
    animation: cardSlide 3s ease-in-out infinite;
}

.property-card:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes cardSlide {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(4px); opacity: 1; }
}

.card-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.2);
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.15);
}

.info-line.short {
    width: 60%;
}

/* Moonstripe Visual — Booking Calendar Interface */
.moonstripe-visual {
    background: linear-gradient(135deg, #0d1b2a, #1a0d2e);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-pill {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.8);
}

.availability-stat {
    font-size: 0.75rem;
    color: rgba(34, 211, 153, 0.8);
    font-weight: 600;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.booking-slot {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1.5px solid rgba(99, 102, 241, 0.15);
    transition: all 0.6s ease-in-out;
}

.booking-slot.available {
    background: rgba(99, 102, 241, 0.12);
    animation: availablePulse 2s ease-in-out infinite;
}

.booking-slot.booked {
    background: rgba(251, 113, 133, 0.2);
    border-color: rgba(251, 113, 133, 0.3);
}

@keyframes availablePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
    50% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.2); }
}

/* Ark Air Visual — Logistics Dashboard */
.arkair-visual {
    background: linear-gradient(135deg, #0a1628, #1a0d2e);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.stat-box {
    flex: 1;
    padding: 16px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: statGlow 2.5s ease-in-out infinite;
}

.stat-box:nth-child(2) {
    animation-delay: 0.3s;
}

.stat-box:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes statGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
    50% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.15); }
}

.stat-val {
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 0 8px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.1));
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: barGrow 2.5s ease-out forwards;
}

.chart-bar:nth-child(1) { animation-delay: 0s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.4s; }
.chart-bar:nth-child(4) { animation-delay: 0.6s; }
.chart-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes barGrow {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Arch Visual */
.arch-visual {
    background: linear-gradient(135deg, #0a1628, #1a0d2e);
}

.visual-routes {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.route-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
    width: 80%;
    left: 10%;
}

.route-line:nth-child(1) { top: 35%; }
.route-line:nth-child(2) { top: 50%; }
.route-line:nth-child(3) { top: 65%; }

.route-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
    animation: moveDot 4s ease-in-out infinite;
}

.dot-1 { top: calc(35% - 5px); left: 20%; animation-delay: 0s; }
.dot-2 { top: calc(50% - 5px); left: 50%; animation-delay: 1s; }
.dot-3 { top: calc(65% - 5px); left: 35%; animation-delay: 2s; }

@keyframes moveDot {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(100px); }
}

/* SaaS Visual */
.saas-visual {
    background: linear-gradient(135deg, #1a0d2e, #0d1b2a);
}

.visual-meters {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 40px;
    height: 100%;
}

.meter {
    flex: 1;
    background: rgba(251, 113, 133, 0.1);
    border-radius: 8px 8px 0 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.meter-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--fill);
    background: linear-gradient(to top, rgba(251, 113, 133, 0.3), rgba(251, 113, 133, 0.1));
    border-radius: 8px 8px 0 0;
    animation: meterGrow 2s ease-out;
}

@keyframes meterGrow {
    from { height: 0; }
}

/* Chat Visual */
.chat-visual {
    background: linear-gradient(135deg, #0d1b2a, #0a1628);
}

.visual-chat {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.chat-bubble {
    border-radius: 16px;
    height: 36px;
    max-width: 65%;
}

.chat-bubble.left {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.15);
    align-self: flex-start;
    width: 60%;
}

.chat-bubble.right {
    background: rgba(52, 211, 153, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.15);
    align-self: flex-end;
    width: 50%;
}

.chat-bubble.small {
    width: 40%;
    height: 28px;
}

.chat-typing {
    display: flex;
    gap: 4px;
    align-self: flex-start;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
    opacity: 0.5;
}

/* Project Content */
.project-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card:nth-child(even) .project-content {
    padding: 40px 0 40px 40px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tag {
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-tertiary);
}

.project-title-link {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.project-title-link:hover .project-title {
    color: var(--accent-primary);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-impact {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

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

.impact-metric {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.project-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 24px;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    position: relative;
}

.marker-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.timeline-content {
    padding: 32px;
}

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

.timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--accent-primary);
    display: block;
    margin-top: 4px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-details li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

a.contact-value:hover {
    color: var(--accent-primary);
}

/* Contact Card Links */
.contact-card-link {
    cursor: pointer;
    text-decoration: none;
    display: flex;
}

.contact-card-link:hover {
    border-color: var(--accent-primary);
}

.contact-card-link:hover .contact-value {
    color: var(--accent-primary);
}

.contact-card-link:hover .contact-icon {
    background: rgba(99, 102, 241, 0.2);
}

/* Contact Action Buttons */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

/* Form states */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-success {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.4) !important;
}

.btn-error {
    background: linear-gradient(135deg, #fb7185, #f43f5e) !important;
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.4) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

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

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

/* ============================================
   HAMBURGER ANIMATION
   ============================================ */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Active nav link */
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* ============================================
   TOUCH DEVICE HANDLING
   ============================================ */
@media (hover: none) {
    .cursor-glow {
        display: none;
    }

    .glass-card:hover {
        transform: none;
    }

    [data-tilt] {
        transform: none !important;
    }
}

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

/* Large tablets / small desktops */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .code-window {
        position: static;
    }

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

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

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .project-image {
        min-height: 250px;
    }

    .project-content {
        padding: 0 32px 32px !important;
    }

    .hero-stats {
        gap: 12px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links, .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

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

    .stat-card {
        padding: 16px 12px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

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

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

    .skill-category {
        padding: 24px;
    }

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

    .why-card {
        padding: 24px 20px;
    }

    .skills-orbit-wrapper {
        margin-bottom: 40px;
    }

    .skills-orbit {
        width: 260px;
        height: 260px;
    }

    .orbit-item {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .orbit-center {
        width: 80px;
        height: 80px;
    }

    .orbit-center-text {
        font-size: 0.75rem;
    }

    .project-image {
        min-height: 200px;
    }

    .project-content {
        padding: 0 24px 24px !important;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-impact {
        gap: 16px;
        flex-wrap: wrap;
    }

    .impact-metric {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -38px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-header {
        flex-direction: column;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-text.lead {
        font-size: 1.1rem;
    }

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

    .highlight-item {
        padding: 12px 16px;
    }

    .highlight-item strong {
        font-size: 0.88rem;
    }

    .highlight-item span {
        font-size: 0.8rem;
    }

    .code-body code {
        font-size: 0.75rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .contact-actions .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .tech-cloud {
        gap: 8px;
    }

    .tech-badge {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 90px 12px 40px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 32px;
    }

    .stat-card {
        padding: 14px 8px;
    }

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

    .stat-suffix {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .project-image {
        min-height: 180px;
    }

    .project-content {
        padding: 0 16px 20px !important;
    }

    .project-tags {
        gap: 6px;
    }

    .project-tag {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

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

    .project-desc {
        font-size: 0.88rem;
    }

    .project-features li {
        font-size: 0.85rem;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: -1px;
    }

    .timeline-marker {
        left: -32px;
    }

    .marker-dot {
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 16px;
    }

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

    .timeline-details li {
        font-size: 0.85rem;
    }

    .contact-card {
        padding: 16px;
        gap: 12px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-value {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .skills-orbit-wrapper {
        margin-bottom: 32px;
    }

    .skills-orbit {
        width: 220px;
        height: 220px;
    }

    .orbit-center {
        width: 65px;
        height: 65px;
    }

    .orbit-center-text {
        font-size: 0.65rem;
    }

    .orbit-item {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

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

    .highlight-icon {
        width: 36px;
        height: 36px;
    }

    .why-card {
        padding: 20px 16px;
    }

    .why-icon {
        width: 52px;
        height: 52px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

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

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .project-impact {
        flex-direction: column;
        gap: 12px;
    }

    .impact-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .contact-value {
        font-size: 0.8rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90vw;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.toast-error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(251, 113, 133, 0.3);
    color: #fb7185;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); }
    to { transform: translateX(-50%) translateY(0); }
}

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

.toast.removing {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.spin {
    animation: spin 1s linear infinite;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .skills-orbit {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .animate-in {
        opacity: 1;
        transform: none;
    }
}
