:root {
    --bg-color: #000000;
    --bg-color-alt: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #ffffff;
    --accent-secondary: #888888;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --glow: rgba(255, 255, 255, 0.15);
    --neon-orange: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-primary);
    line-height: 1.6; overflow-x: hidden; position: relative; scroll-behavior: smooth;
}

/* Hero Load Animations - fire immediately, not on scroll */
.hero-anim {
    opacity: 0;
    transform: translateY(25px);
    animation: heroReveal 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, .logo, .btn { font-family: 'Outfit', sans-serif; }

/* Custom Glow Cursor */
.cursor-glow {
    width: 40px; height: 40px; border-radius: 50%; position: fixed; 
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    transition: width 0.2s, height 0.2s, background 0.2s; mix-blend-mode: screen;
}
body:hover .cursor-glow { opacity: 1; }
a:hover ~ .cursor-glow, button:hover ~ .cursor-glow, .tilt:hover ~ .cursor-glow {
    width: 80px; height: 80px; background: radial-gradient(circle, rgba(200, 200, 200, 0.9) 0%, rgba(200, 200, 200, 0) 70%);
}

/* Background Animated Orbs */
.background-orbs { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.15; animation: float 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); }
.orb-1 { width: 60vw; height: 60vw; background: #333; top: -20%; left: -20%; opacity: 0.2; }
.orb-2 { width: 50vw; height: 50vw; background: #444; bottom: -20%; right: -20%; animation-delay: -8s; opacity: 0.2; }
.orb-3 { width: 40vw; height: 40vw; background: #222; top: 30%; left: 30%; animation-direction: reverse; opacity: 0.2; }

@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(15vw, 10vh) scale(1.3); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes hoverFloat { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

.pulse-anim { animation: pulse 3s infinite ease-in-out; }
.float-anim { animation: hoverFloat 4s infinite ease-in-out; }

/* Layout Utilities */
.container { max-width: 1250px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.section { padding: 120px 0; }
.relative { position: relative; }

.section-title {
    font-size: 3rem; font-weight: 800; margin-bottom: 4rem; text-align: center; letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative;
    display: inline-block; left: 50%; transform: translateX(-50%);
}
.section-subtitle { text-align: center; color: var(--text-secondary); max-width: 600px; margin: -3rem auto 4rem; font-size: 1.1rem; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(3, 7, 18, 0.6); backdrop-filter: blur(16px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.03); transition: 0.3s;
}
.navbar.scrolled { padding: 0.8rem 5%; box-shadow: 0 4px 30px rgba(0,0,0,0.5); background: rgba(3, 7, 18, 0.85); }
.logo { font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: -2px; }
.menu-toggle { display: none; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; margin-left: auto; margin-right: 2.5rem; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--accent); transition: 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding-top: 80px; }
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Hero Profile Picture */
.profile-photo-container { width: 150px; height: 150px; border-radius: 50%; padding: 5px; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); margin-bottom: 2rem; box-shadow: 0 0 30px var(--glow); }
.profile-photo-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--bg-color); }

.greeting { font-size: 1.5rem; color: var(--accent); margin-bottom: 1rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; }
.name { font-size: 6.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -3px; }
.glitched-text { position: relative; color: white; text-shadow: 0 0 40px rgba(14, 165, 233, 0.4); }
.title { font-size: 2.2rem; color: #e2e8f0; margin-bottom: 1.5rem; font-weight: 600; }
.tagline { max-width: 650px; margin: 0 auto 2.5rem; font-size: 1.2rem; color: var(--text-secondary); line-height: 1.8; }

.social-badges { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3.5rem; flex-wrap: wrap;}
.badge {
    background: rgba(15, 23, 42, 0.6); border: 1px solid var(--card-border);
    padding: 0.7rem 1.4rem; border-radius: 8px; color: var(--text-primary);
    text-decoration: none; font-size: 0.95rem; font-weight: 500;
    display: flex; align-items: center; gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.badge:hover { transform: translateY(-5px); background: rgba(30, 41, 59, 0.8); border-color: var(--accent); color: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.hero-cta { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem; justify-content: center;
    padding: 1rem 2.2rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1.05rem;
    transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent;
}
.primary-btn { background: var(--accent); color: #000; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.primary-btn:hover { background: #e0e0e0; box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); transform: translateY(-3px) scale(1.05); }
.secondary-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.secondary-btn:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-3px) scale(1.05); }
.nav-resume { padding: 0.6rem 1.4rem; font-size: 0.9rem; border-radius: 5px; box-shadow: none; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }
.mouse { width: 24px; height: 36px; border: 2px solid var(--text-secondary); border-radius: 12px; position: relative; }
.wheel { width: 4px; height: 6px; background: var(--accent); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollMouse 1.5s infinite; }
@keyframes scrollMouse { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* Glasscard General */
.glass-card {
    background: var(--card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border); border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-glow:hover { box-shadow: 0 0 40px var(--glow); border-color: rgba(14, 165, 233, 0.4); }
.hover-float:hover { transform: translateY(-10px); }

/* About Section */
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.about-text p { margin-bottom: 1.5rem; font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; }
.about-text strong { color: #fff; font-weight: 600; }
.focus-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.focus-list li { display: flex; align-items: center; gap: 1.2rem; }
.icon-box { background: rgba(14, 165, 233, 0.1); width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent); border: 1px solid rgba(14, 165, 233, 0.2); }
.focus-list strong { display: block; font-size: 1.1rem; color: #e2e8f0; margin-bottom: 0.2rem; }
.focus-list span { font-size: 0.9rem; color: var(--text-secondary); }

/* Experience Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding-left: 2rem;}
.timeline::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px; background: linear-gradient(to bottom, var(--accent), transparent); border-radius: 2px;}
.timeline-item { position: relative; margin-bottom: 3rem; padding: 2.5rem; }
.timeline-dot { position: absolute; left: -2.7rem; top: 3.2rem; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-color); border: 4px solid var(--accent); box-shadow: 0 0 15px var(--accent); z-index: 10;}
.timeline-content h3 { font-size: 1.5rem; color: #fff; display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.timeline-content h3 i { color: var(--accent); }

/* Reusable Section Image Slot — for user-uploaded images */
.section-img-slot { margin-top: 1.5rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); height: 300px; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.section-img-slot img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 12px; transition: 0.4s; }
.section-img-slot:hover img { transform: scale(1.02); }
.company-name { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; font-weight: 400; font-family: 'Inter';}
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.exp-bullets li { color: #cbd5e1; font-size: 1.05rem; padding-left: 1.5rem; position: relative; }
.exp-bullets li::before { content: '▹'; color: var(--accent); position: absolute; left: 0; font-weight: bold; }

/* Skills Section */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.skill-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; opacity: 0.8; }
.skill-category h3 { font-size: 1.5rem; margin-bottom: 2rem; color: #fff; }
.progress-bars { display: flex; flex-direction: column; gap: 1.2rem; }
.bar-container .label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.95rem; }
.bar { height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--accent-secondary), var(--accent)); border-radius: 4px; transition: 1.5s ease-out; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-tags span { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.6rem 1.2rem; border-radius: 8px; font-size: 0.95rem; transition: 0.3s; }
.skill-tags span:hover { transform: translateY(-3px); background: rgba(14,165,233,0.1); border-color: var(--accent); color: var(--accent); }
.skill-tags .tag-accent { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); color: #818cf8; }

/* Stats & LeetCode */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2.5rem; }
.stat-card { display: flex; flex-direction: column; }
.stat-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--card-border); }
.stat-header h3 { font-size: 1.6rem; color: #fff; margin:0;}
.stat-numbers { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; flex: 1; }
/* SVG Circle Chart */
.circle-chart { width: 100px; height: 100px; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 250px; }
.circle-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; animation: progress 2s ease-out forwards; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.circular-chart.orange .circle { stroke: #FFA116; }
.percentage { fill: #fff; font-family: 'Outfit'; font-size: 0.4em; text-anchor: middle; font-weight: 700; }
.stat-text p { margin-bottom: 0.3rem; font-size: 1.1rem; }
.stat-subtext { color: var(--text-secondary); font-size: 0.9rem !important; }
.github-metrics { display: flex; width: 100%; justify-content: space-between; text-align: center; }
.metric { display: flex; flex-direction: column; gap: 0.5rem; }
.metric .num { font-size: 2rem; font-weight: 800; font-family: 'Outfit'; color: var(--accent); }
.metric .lbl { font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.profile-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-top: auto; }
.profile-link:hover { text-decoration: underline; }

/* Projects Grid Enhanced */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 3rem; }
.project-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.project-img { width: 100%; height: 220px; position: relative; overflow: hidden; background: #0b1120; display: flex; align-items: center; justify-content: center; }
.project-img img { width: 100%; height: 100%; object-fit: contain; transition: 0.6s transform; display: block; }
.project-card:hover .project-img img { transform: scale(1.08); }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--card-bg) 0%, transparent 100%); z-index: 1;}
.project-content { padding: 2rem; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 2; background: var(--card-bg);}
.project-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center;}
.project-card h3 span { font-size: 0.75rem; background: rgba(14,165,233,0.1); color: var(--accent); padding: 0.4rem 0.8rem; border-radius: 4px; display:flex; align-items:center; gap:0.3rem;}
.project-tagline { color: var(--accent-secondary); font-weight: 500; margin-bottom: 1rem; font-size: 1rem;}
.project-desc { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1rem; line-height: 1.6; flex: 1;}
.project-card .tech-stack { margin-bottom: 2rem;}
.project-links { display: flex; gap: 1rem; }
.project-mentor { font-size: 0.85rem; color: var(--text-secondary); font-style: italic; margin-bottom: 1.5rem; }

/* Achievements Grid */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.achievement-card { text-align: center; }
.achievement-icon { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.5rem; }
.achievement-icon.trophy { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 2px solid rgba(234, 179, 8, 0.3); }
.achievement-icon.gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 2px solid rgba(245, 158, 11, 0.3); }
.achievement-icon.fire { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 2px solid rgba(239, 68, 68, 0.3); }
.achievement-icon.blue { background: rgba(14, 165, 233, 0.15); color: var(--accent); border: 2px solid rgba(14, 165, 233, 0.3); }
.achievement-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #fff; }
.achievement-card p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }
.achievement-card strong { color: #e2e8f0; }
.achievement-img-slot { margin-top: 1.5rem; border-radius: 12px; overflow: hidden; height: 200px; background: #0b1120; display: flex; align-items: center; justify-content: center; }
.achievement-img-slot img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; transition: 0.4s; display: block; }
.achievement-card:hover .achievement-img-slot img { transform: scale(1.03); }

/* Certifications Grid */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.cert-item { padding: 1.5rem; text-align: center; }
.cert-img-wrapper { width: 100%; height: 220px; border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; position: relative; background: #0b1120; border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.cert-img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: 0.5s; filter: grayscale(20%); display: block; }
.cert-item:hover .cert-img-wrapper img { transform: scale(1.05); filter: grayscale(0%); }
.overlay-verify { position: absolute; bottom: 10px; right: 10px; background: rgba(16, 185, 129, 0.9); color: #fff; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; opacity: 0; transform: translateY(10px); transition: 0.3s; }
.cert-item:hover .overlay-verify { opacity: 1; transform: translateY(0); }
.cert-item h4 { font-size: 1.15rem; color: #fff; margin-bottom: 0.4rem; }
.cert-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* Education Card */
.edu-card { max-width: 650px; margin: 0 auto; text-align: center; padding: 3rem; }
.edu-icon { font-size: 3rem; color: var(--accent); margin-bottom: 1.5rem; }
.edu-card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; color: #fff; }
.edu-card h4 { font-size: 1.15rem; color: var(--accent); margin-bottom: 1rem; font-weight: 500; }
.edu-university { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 0.3rem; }
.edu-year { color: var(--text-secondary); font-size: 0.95rem; opacity: 0.7; }

/* Contact & Footer */
.contact-box { padding: 4rem; margin-bottom: 4rem; display: flex; flex-direction: column; align-items: center; border-color: rgba(14, 165, 233, 0.3); box-shadow: 0 0 50px rgba(14, 165, 233, 0.05);}
.social-links-big { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.big-btn { padding: 1.2rem 2.5rem; font-size: 1.1rem; border-radius: 8px; }
.linkedin-btn { background: #0077B5; border: none; color: #fff; }
.linkedin-btn:hover { background: #0091db; box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4); }
.email-btn { background: var(--card-bg); }
.footer-badges { display: flex; gap: 2rem; border-top: 1px solid var(--card-border); padding-top: 3rem; width: 100%; justify-content: center;}
.footer-badges a { color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; transition: 0.3s; }
.footer-badges a:hover { color: #fff; }
.copyright { opacity: 0.6; font-size: 0.9rem; margin-top: 2rem; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .name { font-size: 3.5rem; }
    .title { font-size: 1.3rem; }
    .grid-2 { grid-template-columns: 1fr; }
    
    /* Hamburger Menu Styles */
    .menu-toggle { display: block; font-size: 1.8rem; color: #fff; cursor: pointer; z-index: 1001; margin-left: auto; margin-right: 1rem; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000;
        border-left: 1px solid var(--card-border); gap: 2rem;
    }
    .nav-links.active { right: 0; }
    .nav-resume { display: none; } /* Hide resume button in mobile nav bar, keep in hero */
    
    .hero-cta { flex-direction: column; width: 100%; padding: 0 1rem;}
    .secondary-btn { margin-left: 0; width: 100%;}
    .primary-btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr; }
    .timeline-dot { left: -2.3rem; }
    .contact-box { padding: 2rem; }
}

@media (max-width: 600px) {
    .name { font-size: 2.5rem; }
    .title { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .section { padding: 80px 0; }
    .hero { padding-top: 100px; }
    .profile-photo-container { width: 120px; height: 120px; }
    .timeline { padding-left: 1rem; }
    .timeline-dot { left: -1.3rem; width: 18px; height: 18px; }
    .timeline-item { padding: 1.5rem; margin-bottom: 2rem; }
    .contact-box { padding: 1.5rem; }
    .big-btn { padding: 1rem 1.5rem; font-size: 1rem; }
}
