/* Clean Light Theme SaaS Portfolio */
:root {
    --bg-main: #fcfcfd;
    --bg-surface: #ffffff;
    --bg-secondary: #f4f5f7;
    
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    --accent-purple: #8b5cf6;
    --accent-purple-light: #f3e8ff;
    
    --accent-orange: #f97316;
    --accent-orange-light: #ffedd5;
    
    --accent-blue: #3b82f6;
    --accent-blue-light: #dbeafe;
    
    --accent-green: #10b981;
    --accent-green-light: #d1fae5;
    
    --accent-yellow: #eab308;
    --accent-yellow-light: #fef9c3;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transit: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    align-items: center; justify-content: center;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.8s ease;
}
.preloader.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.loader-brand {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'DM Serif Display', serif;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

html {
    scroll-behavior: smooth;
}
/* lenis scroll specific fixes */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, rgba(234, 88, 12, 0) 65%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998; /* Under topmost z-index elements, transparent so it tints everything nicely */
    mix-blend-mode: multiply; /* Elegantly darkens slightly into the white bg */
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease;
}
.cursor-glow.hover {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, rgba(234, 88, 12, 0) 65%);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Utilities */
.section-spacing {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 24px;
    }
}

.center { text-align: center; }
.left { text-align: left; }

.section-header {
    margin-bottom: 3rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Badges / Pills */
.bento-badge, .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.badge-crypto { background: var(--bg-surface); color: var(--text-main); box-shadow: var(--shadow-sm); border: 1px solid #f3f4f6;}
.badge-purple { background: var(--accent-purple-light); color: var(--accent-purple); }
.badge-orange { background: var(--accent-orange-light); color: var(--accent-orange); }
.badge-blue { background: var(--accent-blue-light); color: var(--accent-blue); }
.badge-green { background: var(--accent-green-light); color: var(--accent-green); }
.badge-yellow { background: var(--accent-yellow-light); color: #854d0e; }

.highlight-purple { color: var(--accent-purple); }

.text-grey {
    color: #9ca3af;
}
.text-serif {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transit);
    border: none;
    outline: none;
}

.btn-primary {
    background: #111827; /* Dark black/grey */
    color: white;
}
.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #e5e7eb;
}
.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: #d1d5db;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    padding: 8px 18px;
    font-size: 0.9rem;
}
.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-block {
    width: 100%;
}

/* Header Container */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transit);
}

.header-container.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 5%;
    box-shadow: var(--shadow-sm);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-main);
    transition: all 0.3s ease;
    display: inline-block;
}
.brand-name:hover {
    background: linear-gradient(90deg, #ea580c, #8b5cf6, #3b82f6, #ea580c);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
    transform: scale(1.02) rotate(-1deg);
}
@keyframes shine {
    to { background-position: 300% center; }
}

.nav-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    padding: 8px 10px;
    display: flex;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.nav-pill a {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.nav-pill a:hover, .nav-pill a.active {
    background: var(--bg-secondary);
    color: var(--text-main);
    transform: scale(1.05);
}

.resume-btn {
    background: #ea580c; /* vibrant orange inspired by photos */
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.4s ease;
}
.resume-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
    background: #c2410c;
    color: white;
}

@media (max-width: 768px) {
    .nav-pill { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-cta { 
        flex-direction: column; 
        gap: 12px; 
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure it's above other header elements */
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
    display: block;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2500;
    display: flex;
    align-items: center; justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    text-align: center;
    position: relative;
    width: 100%;
}

.close-mobile-menu {
    position: absolute;
    top: -100px; right: 40px;
    background: none; border: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-links a {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'DM Serif Display', serif;
    color: var(--text-main);
    transition: var(--transit);
}

.mobile-links a:hover {
    color: var(--accent-purple);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 120px;
}

.hero-title-large {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

/* 2D Decorative Blobs & Sparkles */
@keyframes morph-float {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) scale(1); }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: translate(-2%, 2%) scale(1.05); }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: translate(2%, -2%) scale(0.95); }
}
.bg-blob {
    position: absolute;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.4;
    animation: morph-float 15s ease-in-out infinite alternate;
}
.blob-1 {
    width: 60vw;
    height: 60vw;
    background: #ffedd5; /* soft peach/orange from the reference */
    top: -20vh;
    left: -10vw;
}
.blob-2 {
    width: 50vw;
    height: 50vw;
    background: #f8fafc; /* super soft cool white for depth */
    bottom: -10vh;
    right: -10vw;
    animation-direction: alternate-reverse;
    animation-duration: 18s;
}

.sparkle-1 { top: 15%; right: 10%; animation: spin 10s linear infinite; }
.sparkle-2 { bottom: 25%; left: 15%; animation: spin 12s linear infinite reverse; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Inline Media for Hanzo Style Headings */
.inline-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-surface);
    overflow: hidden;
    margin: 0 12px;
    position: relative;
    top: 12px;
    border: 2px solid #e5e7eb;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.inline-media.shape-1, .inline-media.shape-2 {
    width: auto; height: auto; border: none; background: transparent; top: 0; margin: 0;
}
.vector-shape { width: 110px; height: 110px; vertical-align: middle; }
.inline-media:hover {
    transform: rotate(6deg) scale(1.08); /* 2D simple pop */
}
.inline-media img {
    width: 100%; height: 100%; object-fit: cover;
}

/* New Buttons */
.btn-pill-dark {
    background: #111827;
    color: white;
    padding: 16px 36px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-pill-dark:hover { background: #ea580c; color: white; transform: scale(1.05) translateY(-2px); }
.btn-pill-outline {
    background: transparent;
    color: var(--text-main);
    padding: 16px 36px;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-pill-outline:hover { background: var(--bg-secondary); border-color: #d1d5db; transform: scale(1.03) translateY(-1px); }

/* Location Badge Hero */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 9999px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.location-badge:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Flat Card Styling for Sections */
.card-flat {
    background: var(--bg-surface);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    top: 0;
}
.card-flat:hover {
    background: #ffffff;
    border-color: var(--accent-purple);
    top: -6px; /* gentle simple lift */
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08); /* glowing drop shadow matching new vibe */
}
.section-blob {
    z-index: 0;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.z-0 { z-index: 0; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.inline-block { display: inline-block; }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(auto, auto);
}

.bento-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.8);
    transition: var(--transit);
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.bento-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}
.bento-stack .bento-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.bento-text:last-child { margin-bottom: 0; }

.timeline {
    list-style: none;
    position: relative;
    padding-left: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 4px;
    width: 2px;
    background: #e5e7eb;
}
.timeline li {
    position: relative;
    margin-bottom: 24px;
}
.timeline li:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--accent-orange);
    z-index: 1;
}
.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.timeline-content a {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transit);
}
.timeline-content a:hover { text-decoration-color: var(--text-main); }
.marks { font-weight: 600; color: var(--text-main); font-size: 0.85rem;}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pill-tag {
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.highlight-purple-text {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #4c1d95 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
}

/* Skills Section */
.bg-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: var(--transit);
}
.hover-lift {
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.hover-lift:hover {
    transform: scale(1.01);
}

.skill-icon-group {
    display: flex;
    gap: -10px;
    margin-bottom: 20px;
}
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid white;
    margin-left: -12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, z-index 0s;
}
.icon-circle:first-child { margin-left: 0; }
.icon-circle:hover { 
    transform: scale(1.1) rotate(5deg); 
    z-index: 10; 
    border-color: #d1d5db;
}
.icon-circle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.skill-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.skill-pill svg { /* targeted style for lucide icons in pills */
    width: 18px;
    height: 18px;
}
.skill-pill:nth-child(odd):hover {
    transform: scale(1.05) rotate(-2deg);
    border-color: #d1d5db;
    background: white;
}
.skill-pill:nth-child(even):hover {
    transform: scale(1.05) rotate(2deg);
    border-color: #d1d5db;
    background: white;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 32px;
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Card */
.project-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transit);
}

.project-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Since it's a dashboard screenshot */
    padding: 10px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transit);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-view {
    background: white;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.project-card:hover .btn-view {
    transform: translateY(0);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 8px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    padding: 40px 5%;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    animation: fadeIn 0.4s ease;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 1100px;
    margin: auto;
    position: relative;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.8);
}

.close-modal {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transit);
    line-height: 1;
}

.close-modal:hover { color: var(--text-main); transform: rotate(90deg); }

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.modal-large-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.modal-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 16px 0 32px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.metric-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.text-green { color: var(--accent-green); }
.text-orange { color: #ea580c; }

.project-highlights h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.project-highlights ul {
    list-style: none;
}

.project-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.icon-inline {
    width: 18px;
    height: 18px;
    color: var(--accent-purple);
}

/* Advanced Hover Effects */
.tilt-card {
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Interactive Glow Effect for Hero Title */
.interactive-glow {
    --x: 50%;
    --y: 50%;
    background: radial-gradient(
        circle 150px at var(--x) var(--y),
        #ea580c 0%,
        #8b5cf6 35%,
        var(--text-main) 70%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--text-main);
    transition: color 0.4s ease;
    cursor: default;
}

.interactive-glow span {
    color: inherit !important;
    pointer-events: none;
}

.interactive-glow:hover {
    color: transparent !important;
}

/* Magnetic Button Effect (CSS part) */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Icon Animations */
.icon-circle:hover i, .icon-circle:hover svg, .icon-circle:hover img {
    animation: icon-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.2) rotate(15deg); }
}

/* Mobile Typography Fixes */
@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .bento-card {
        padding: 24px;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info-card h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.contact-info-card .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.detail-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}
.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.detail-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.social-pills {
    display: flex;
    gap: 20px;
}
.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #e5e7eb;
    color: var(--text-main);
    text-decoration: none;
}
.social-icon-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-icon-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: none;
    background: #f8fafc;
}
.github-btn {
    color: #181616;
}
.github-btn:hover {
    background: #24292e;
    color: white;
    border-color: #24292e;
    box-shadow: 0 10px 25px rgba(36, 41, 46, 0.4);
}
.linkedin-btn {
    color: #0a66c2;
}
.linkedin-btn:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.4);
}
.github-btn:hover svg, .linkedin-btn:hover svg {
    transform: rotate(360deg);
}

.cursor {
    display: inline-block;
    width: 2px;
    border-radius: 2px;
    background-color: var(--text-main);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}
@keyframes blink {
    50% { opacity: 0; }
}

.contact-form-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}
.contact-form-card h3 { margin-bottom: 24px; font-size: 1.5rem; }

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background: #fcfcfd;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transit);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--text-main);
    background: white;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}
.form-group textarea { resize: vertical; }

/* Footer */
.clean-footer {
    padding: 40px 5%;
    background: white;
    border-top: 1px solid #e5e7eb;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a:hover { color: var(--text-main); }

/* Animation Utility */
[data-animate="up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Enhancements for Video & Iframe */
.modal-video-container {
    margin-top: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.modal-full-width {
    margin-top: 48px;
    width: 100%;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin-bottom: 40px;
}

.live-workbook-header {
    margin-bottom: 24px;
    text-align: center;
}

.live-workbook-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.live-workbook-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.iframe-container {
    margin-top: 24px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
}

.iframe-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .iframe-container iframe {
        height: 450px;
    }
}
