/* =========================================================================
   CLEAN VERCEL-STYLE HIGH-END THEME VARIABLES
   ========================================================================= */
   :root {
    /* Rich Dark Palette */
    --bg-dark: #050505;
    --bg-surface: #0b0f19;
    --bg-card: rgba(15, 23, 42, 0.4);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --grad-blue-purple: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    --grad-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.5));
    --grad-border: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
    
    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    
    /* Typopgraphy */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Aesthetics */
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --border-radius-xl: 24px;
    --border-radius-lg: 16px;
}

/* =========================================================================
   GLOBAL RESET
   ========================================================================= */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 { color: var(--text-main); line-height: 1.2; font-weight: 700; letter-spacing: -0.03em;}
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius-lg); }

/* =========================================================================
   AMBIENT BACKGROUND EFFECTS 
   ========================================================================= */
.fixed-bg {
    position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}

.grid-overlay {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
}

.glow-blob {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; /* Subtle */
    animation: floatBlob 20s infinite alternate ease-in-out;
}
.glow-blob-1 { top: -20%; left: -10%; width: 50vw; height: 50vw; background: rgba(59, 130, 246, 0.3); }
.glow-blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: rgba(139, 92, 246, 0.2); animation-delay: -5s; }
.glow-blob-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: rgba(6, 182, 212, 0.15); animation-delay: -10s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 8rem 0; position: relative; z-index: 1; }
.max-w-4xl { max-width: 56rem; margin: 0 auto; }
.max-w-2xl { max-width: 42rem; margin: 0 auto; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-accent { color: #38bdf8 !important; }
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 2.5rem; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; } .justify-center { justify-content: center; } .gap-4 { gap: 1rem; } .ml-2 { margin-left: 0.5rem; }
.pb-0 { padding-bottom: 0 !important; } .border-0 { border: 0 !important; }

/* Animated Gradient Text */
.text-gradient {
    background: var(--grad-blue-purple);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}
.text-gradient-subtle {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes shine { to { background-position: 200% center; } }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; }
.section-badge {
    display: inline-block; font-family: monospace; color: #38bdf8; font-size: 0.875rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}

/* Grids */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* =========================================================================
   GLASSMORPHISM CARDS
   ========================================================================= */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.glass-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1; transition: opacity 0.3s ease; opacity: 0;
}
.glass-card:hover {
    transform: translateY(-6px) scale(1.03); /* Requested Scale */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 40px -10px rgba(139, 92, 246, 0.2);
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
}
.glass-card:hover::before { opacity: 1; }
.card-inner { padding: 2.5rem; position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;}
.card-icon-large { font-size: 3rem; margin-bottom: 1.5rem; }

/* =========================================================================
   BUTTONS & BADGES
   ========================================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; font-weight: 600; border-radius: 12px; cursor: pointer; transition: var(--transition-smooth);
    position: relative; overflow: hidden; gap: 0.5rem;
}

.btn-glow-large, .btn-glow-sm {
    background: var(--grad-blue-purple); color: #fff; border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-glow-large { padding: 1rem 2rem; font-size: 1.1rem; border-radius: 14px; }
.btn-glow-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; border-radius: 10px; }

.btn-glow-large:hover, .btn-glow-sm:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px);
}

.badge-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px; font-size: 0.875rem; color: var(--text-muted); margin: 0 auto;
}
.pulse-dot {
    width: 8px; height: 8px; background-color: #10b981; border-radius: 50%;
    box-shadow: 0 0 10px #10b981; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }

/* Tags */
.glass-tag {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted); padding: 0.35rem 0.8rem; border-radius: 8px; font-size: 0.8rem; font-weight: 500;
    transition: var(--transition-smooth);
}
.glass-tag:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.accent-tag { background: rgba(59, 130, 246, 0.1); color: #38bdf8; border-color: rgba(59, 130, 246, 0.2); }
.tags-left { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto;}
.tags-center { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed; top: 0; width: 100%;
    background-color: transparent; z-index: 1000; transition: var(--transition-smooth); padding: 1.5rem 0; border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background-color: rgba(11, 15, 25, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0; border-bottom: 1px solid var(--glass-border);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-item {
    font-size: 0.95rem; font-weight: 500; color: var(--text-muted); position: relative; padding-bottom: 4px; transition: color 0.3s;
}
.nav-item::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background: var(--grad-blue-purple); transition: width 0.3s ease; border-radius: 2px;
}
.nav-item:hover, .nav-links li.active .nav-item { color: #fff; }
.nav-item:hover::after, .nav-links li.active .nav-item::after { width: 100%; }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 2px; background-color: #fff; margin: 6px; transition: var(--transition-smooth); }

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center;}

/* Avatar */
.profile-avatar-wrapper {
    width: 13rem; height: 13rem; margin-bottom: 2rem;
    border-radius: 50%; padding: 4px; background: var(--grad-blue-purple);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    display: flex; align-items: center; justify-content: center;
}
.profile-avatar {
    width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%;
    border: 4px solid var(--bg-surface);
}

.hero-title { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1.5px; }
.hero-subtitle { font-size: 1.8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 2rem; }
.hero-desc { font-size: 1.125rem; color: #64748b; margin: 0 auto 3rem; max-width: 600px; line-height: 1.8;}
.hero-cta { display: flex; justify-content: center; gap: 1.5rem; }

/* Typing Effect Cursor */
.cursor { display: inline-block; width: 3px; background-color: #38bdf8; animation: blink 1s infinite; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* =========================================================================
   TIMELINE (Education & Experience)
   ========================================================================= */
.timeline { position: relative; border-left: 1px solid var(--glass-border); margin-left: 1rem; }
.timeline-item { position: relative; padding-left: 2.5rem; padding-bottom: 2.5rem; }
.timeline-dot {
    position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
    background-color: var(--text-muted); transition: var(--transition-smooth);
}
.glow-dot { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.timeline-item:hover .timeline-dot { background-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.8); transform: scale(1.3); }

.flex-between { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.bullet-list { margin-top: 1rem; margin-bottom: 1rem;}
.bullet-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;}
.bullet-list li::before { content: "→"; color: #38bdf8; position: absolute; left: 0; top: 0; font-family: monospace;}

/* =========================================================================
   PROJECTS (Hover Image Overlays)
   ========================================================================= */
.project-card { padding: 0; }
.project-card .card-inner { padding: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.project-img-wrapper { position: relative; overflow: hidden; height: 220px; }
.project-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.6s ease; filter: brightness(0.8); }
.project-overlay {
    position: absolute; inset: 0; background: rgba(11, 15, 25, 0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease;
}
.project-card:hover .project-img { transform: scale(1.05); filter: brightness(1); }
.project-card:hover .project-overlay { opacity: 1; }

/* =========================================================================
   ICONS & ORBS
   ========================================================================= */
.icon-orb {
    width: 64px; height: 64px; margin: 0 auto 1.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
    color: #38bdf8; transition: var(--transition-smooth);
}
.glass-card:hover .icon-orb { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); transform: scale(1.1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }

.social-orb {
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-muted); transition: var(--transition-smooth);
}
.social-orb:hover { background: #fff; color: #000; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,255,255,0.2); }

/* Contact Links */
.glass-contact-item {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 1rem 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px;
    font-size: 1rem; color: var(--text-muted); transition: var(--transition-smooth);
}
.glass-contact-item:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }

/* Quick Links in About */
.contact-quick { display: flex; flex-direction: column; gap: 0.75rem; }
.quick-link { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.95rem; }
.quick-link i { color: #38bdf8; width: 20px;}
a.quick-link:hover { color: #fff; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--glass-border); padding: 3rem 0; text-align: center; background: rgba(0,0,0,0.2); }
.footer .logo { margin-bottom: 1rem; display: inline-block; }

/* =========================================================================
   ANIMATIONS (Scroll Reveal)
   ========================================================================= */
.fade-in { opacity: 0; filter: blur(5px); transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.8s ease-out; }
.slide-up { transform: translateY(40px); }
.fade-in.show { opacity: 1; filter: blur(0); transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media screen and (max-width: 1024px) {
    .grid-4-col { grid-template-columns: repeat(2, 1fr); }
    .grid-3-col { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .grid-2-col, .grid-3-col, .grid-4-col { grid-template-columns: 1fr; }
    .card-inner { padding: 1.5rem; }
    .hero-cta { flex-direction: column; }
    
    .nav-links {
        position: fixed; right: 0; top: 0; height: 100vh; width: 260px;
        background: rgba(11, 15, 25, 0.98); backdrop-filter: blur(20px); border-left: 1px solid var(--glass-border);
        flex-direction: column; justify-content: center; transform: translateX(100%); transition: var(--transition-smooth);
    }
    .nav-links.nav-active { transform: translateX(0); }
    .burger { display: block; z-index: 1001; }
}

.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
