﻿/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Baskervville+SC&family=Roboto+Slab:wght@100..900&display=swap');

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* PROFESSIONAL COLOR GRADE */
    --bg-main: #f4f7fb;
    --bg-card: #ffffff;
    --bg-elevated: #f9fcff;

    --primary: #0b6fd6;
    --secondary: #0f172a;
    --accent: #0f766e;
    --warning: #c0841a;

    --text-main: #0f172a;
    --text-muted: #52627a;
    --border-soft: #d7e2ee;
    --brand-gradient: linear-gradient(120deg, #0b6fd6 0%, #0f766e 100%);
    --surface-gradient: linear-gradient(180deg, #f8fbff 0%, #eff5fb 100%);
    
    /* EFFECTS */
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --blue-glow: 0 0 20px rgba(11, 111, 214, 0.22);
    
    /* FONTS */
    --font-heading: 'Baskervville SC', serif; 
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ENABLE INTERACTIVE CURSOR */
html, body {
    cursor: default; 
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-main);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(11, 111, 214, 0.07) 0%, transparent 52%),
        radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.06) 0%, transparent 48%);
}

a, button, select, textarea, .skill-card, .project-card, .sr-close-trigger, .hire-me-btn, .dropbtn, .logo-container {
    cursor: pointer !important; 
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
    cursor: text;
}

#cursr { display: none !important; }

/* =========================================
   2. NAVIGATION & TOP BAR
   ========================================= */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.logo-container { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon { font-size: 2.2rem; color: var(--primary); filter: drop-shadow(0 0 8px var(--primary)); animation: rotateLogo 12s linear infinite; }
@keyframes rotateLogo { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.logo-text .highlight { color: var(--primary); }

.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-menu li { position: relative; }
.nav-menu li a { font-size: 1rem; color: var(--secondary); text-decoration: none; font-weight: 500; padding: 10px 0; transition: 0.3s; font-family: var(--font-body); }
.nav-menu li a:hover, .nav-menu li a.active { color: var(--primary); }

/* Dropdown State */
.dropdown .fa-chevron-down { font-size: 0.7rem; transition: transform 0.3s ease; }
.dropdown.active .fa-chevron-down { transform: rotate(180deg); }
.dropdown-content {
    display: block; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px); background: white; min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px; border: 1px solid rgba(0,0,0,0.05);
    padding: 10px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; z-index: 1001;
}

.dropdown.active .dropdown-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media screen and (min-width: 1025px) {
    .dropdown:hover .dropdown-content { display: block; opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .dropdown:hover .roadmap-grid { display: flex; }
}

.drop-item { display: flex !important; align-items: center; gap: 15px; padding: 12px 15px !important; border-radius: 8px; transition: background 0.2s; }
.drop-item:hover { background: #f0f9ff; }

.icon-box { width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.icon-box.paid { background: #e0f2fe; color: var(--primary); }
.icon-box.free { background: #ccfbf1; color: var(--accent); }
.text-box { display: flex; flex-direction: column; line-height: 1.2; }
.text-box .title { font-weight: 700; color: var(--secondary); font-size: 0.9rem; }
.text-box .desc { font-size: 0.75rem; color: var(--text-muted); }

/* Career Roadmap Grid */
.roadmap-grid { min-width: 450px; gap: 10px; padding: 15px; }
.dropdown.active .roadmap-grid { display: flex; }
.roadmap-col { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.drop-item.small-item { padding: 8px 10px; font-size: 0.9rem; color: var(--secondary); font-weight: 500; border-radius: 8px; display: flex; align-items: center; gap: 10px; transition: 0.2s; }
.drop-item.small-item:hover { background-color: #f0f9ff; color: var(--primary); transform: translateX(3px); }
.roadmap-icon { width: 25px; text-align: center; color: var(--primary); font-size: 1rem; }

/* Engineering Vault & Mobile Top-Bar Button */
.blog-link { position: relative; display: flex; flex-direction: column; align-items: center; }
.trending-badge { position: absolute; top: -7px; background: #ef4444; color: white; font-size: 0.65rem; padding: 2px 8px; border-radius: 50px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 4px; box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); animation: pulse-red 2s infinite; white-space: nowrap; }
.mobile-controls { display: none; align-items: center; gap: 15px; z-index: 1001; }
.mobile-vault-btn { display: flex; align-items: center; gap: 6px; background: linear-gradient(45deg, #ffedd5, #fef2f2); color: #ea580c; padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(234, 88, 12, 0.3); text-decoration: none; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15); }
.mobile-vault-btn i { color: #ef4444; font-size: 1.1rem; animation: firePulse 1s ease-in-out infinite alternate; }

@keyframes firePulse { 0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.5)); } 100% { transform: scale(1.25); filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.9)); } }
@keyframes pulse-red { 0%, 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }

/* Hamburger */
.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--secondary); transition: 0.3s; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.intro { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; padding: 120px 10% 0; position: relative; }
.intro::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: linear-gradient(180deg, #e0f2fe, #f0f9ff); filter: blur(100px); opacity: 0.8; z-index: -1; border-radius: 50%; animation: pulseBlob 8s infinite alternate; }
@keyframes pulseBlob { 0% { transform: translate(-50%, -50%) scale(0.9); } 100% { transform: translate(-50%, -50%) scale(1.1); } }

#my-intro { flex: 1; z-index: 2; }
.gsap-eff { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.2; font-weight: 700; color: var(--secondary); }
.intro-text-2 span { color: var(--primary); position: relative; }
.intro-text-3 { min-height: 60px; display: flex; align-items: center; overflow: hidden; }
.typing-text { font-size: 1.5rem; color: var(--text-muted); margin-top: 20px; font-family: var(--font-body); font-weight: 400; margin: 0; padding: 0; line-height: 1.2; white-space: nowrap; }
#cursor { display: inline-block; vertical-align: baseline; }

.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin: 20px 0; max-width: 500px; font-family: var(--font-body); line-height: 1.6; }
.highlight-premium { color: var(--primary); font-weight: 700; border-bottom: 2px solid rgba(14, 165, 233, 0.3); }
.highlight-free { color: var(--accent); font-weight: 700; border-bottom: 2px solid rgba(20, 184, 166, 0.3); }

/* Hero Image & Float Animation */
.intro .img { flex: 1; max-width: 450px; height: auto; object-fit: cover; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Hero Buttons */
.hero-btn-group { display: flex; gap: 15px; margin-top: 10px; }
.hero-btn { padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: 700; font-family: var(--font-body); transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.premium-btn { background: var(--secondary); color: white; border: 2px solid var(--secondary); box-shadow: 0 5px 15px rgba(15, 23, 42, 0.3); }
.premium-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.resource-btn { background: white; color: var(--secondary); border: 2px solid var(--secondary); }
.resource-btn:hover { background: #f0f9ff; transform: translateY(-3px); }

/* Neon Ticker */
.neon-ticker-wrapper { margin: 30px 0; width: 100%; max-width: 480px; position: relative; z-index: 5; }
.neon-ticker { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; padding: 14px 0; overflow: hidden; position: relative; box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.4), 0 0 15px rgba(2, 132, 199, 0.2); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: slideTicker 15s linear infinite; }
.neon-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: #e2e8f0; font-family: 'Courier New', monospace; font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; letter-spacing: 0.5px; }
.icon-hot { color: #f59e0b; filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5)); }
.icon-code { color: #22d3ee; filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.5)); }
.icon-fast { color: #e879f9; filter: drop-shadow(0 0 5px rgba(232, 121, 249, 0.5)); }
@keyframes slideTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Solar Animation (Desktop & Mobile combined logic) */
.mobile-tech-solar { display: none; }
.tech-solar-system { position: relative; width: 500px; height: 500px; display: flex; justify-content: center; align-items: center; transform-style: preserve-3d; perspective: 1000px; }
.solar-core { width: 80px; height: 80px; background: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 10; font-size: 2rem; color: var(--primary); box-shadow: 0 0 30px rgba(2, 132, 199, 0.4); position: relative; border: 2px solid #e0f2fe; animation: pulseCore 3s infinite; }
.core-glow { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--primary); animation: pulseCoreGlow 2s infinite; opacity: 0; }
@keyframes pulseCore { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(2, 132, 199, 0.4); } 50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(2, 132, 199, 0.6); } }
@keyframes pulseCoreGlow { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.solar-orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(2, 132, 199, 0.3); }

/* Rings Desktop */
.ring-1 { width: 180px; height: 180px; animation: spinRight 15s linear infinite; }
.ring-2 { width: 300px; height: 300px; animation: spinLeft 25s linear infinite; }
.ring-3 { width: 420px; height: 420px; animation: spinRight 40s linear infinite; }
.orbit-icon { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: white; border-radius: 50%; padding: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; }
.orbit-icon img { width: 100%; height: 100%; object-fit: contain; animation: counterSpin 15s linear infinite; }

/* Ring Positions */
.icon-html { transform: translate(-50%, -50%) rotate(0deg) translateY(-90px); } 
.icon-css { transform: translate(-50%, -50%) rotate(180deg) translateY(-90px); } 
.icon-js { transform: translate(-50%, -50%) rotate(0deg) translateY(-150px); }
.icon-react { transform: translate(-50%, -50%) rotate(120deg) translateY(-150px); }
.icon-node { transform: translate(-50%, -50%) rotate(240deg) translateY(-150px); }
.icon-mongo { transform: translate(-50%, -50%) rotate(0deg) translateY(-210px); }
.icon-git { transform: translate(-50%, -50%) rotate(120deg) translateY(-210px); }
.icon-express { transform: translate(-50%, -50%) rotate(240deg) translateY(-210px); }

@keyframes spinRight { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinLeft { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes counterSpin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* Mobile Rings and Dots */
.orbit-1 { width: 100px; height: 100px; animation: spinRight 8s linear infinite; }
.orbit-2 { width: 180px; height: 180px; animation: spinLeft 12s linear infinite; }
.orbit-3 { width: 260px; height: 260px; animation: spinRight 18s linear infinite; }
.solar-planet { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.8); }
.planet-1 { width: 10px; height: 10px; background: #f59e0b; }
.planet-2 { width: 14px; height: 14px; background: var(--primary); }
.planet-3 { width: 8px; height: 8px; background: var(--accent); }

/* =========================================
   4. ABOUT SECTION & STATS
   ========================================= */
#about-section { padding: 100px 10%; background: white; position: relative; overflow: hidden; }
#about-section::before { content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, transparent 70%); border-radius: 50%; z-index: 0; }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: flex-start; position: relative; z-index: 1; }
.sub-heading { color: var(--primary); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.main-heading { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--secondary); }
.highlight { color: var(--accent); position: relative; }
.highlight::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px; background: rgba(20, 184, 166, 0.2); z-index: -1; transform: skewX(-10deg); }
.role-text { font-size: 1.5rem; font-weight: 600; color: var(--text-muted); margin-bottom: 25px; font-family: var(--font-heading); }
.role-text .amp { color: var(--primary); font-style: italic; }
.bio-text { color: var(--text-muted); line-height: 1.8; margin-bottom: 35px; font-size: 1rem; max-width: 90%; }
.services-mini-grid { display: flex; gap: 30px; margin-bottom: 40px; }
.service-item { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--secondary); font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.service-item i { font-size: 1.8rem; color: var(--primary); background: #f0f9ff; padding: 15px; border-radius: 12px; transition: 0.3s; }
.service-item:hover i { background: var(--primary); color: white; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2); }
.download-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 35px; background: var(--secondary); color: white; text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s; box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2); }
.download-btn:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3); }

.about-col-right { background: #f8fafc; padding: 40px; border-radius: 24px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.timeline-title { font-family: var(--font-heading); font-size: 2rem; color: var(--secondary); margin-bottom: 30px; position: relative; padding-left: 15px; border-left: 4px solid var(--primary); }
.timeline-box { border-left: 2px solid #cbd5e1; padding-left: 30px; margin-left: 10px; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -37px; top: 5px; width: 14px; height: 14px; background: white; border: 3px solid var(--primary); border-radius: 50%; z-index: 2; transition: 0.3s; }
.timeline-item:hover .timeline-dot { background: var(--primary); transform: scale(1.3); }
.timeline-date { color: var(--primary); font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; display: inline-block; background: #e0f2fe; padding: 4px 10px; border-radius: 20px; }
.timeline-content h3 { font-size: 1.2rem; color: var(--secondary); margin-bottom: 5px; font-family: var(--font-heading); }
.timeline-content p { color: var(--text-muted); font-size: 0.95rem; }

.stats-grid { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.stat-card { background: white; border-radius: 20px; padding: 25px 20px; text-align: center; flex: 1; min-width: 140px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.stat-icon-box { width: 50px; height: 50px; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin: 0 auto 15px; font-size: 1.2rem; color: white; }
.blue-card .stat-icon-box { background: #3b82f6; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); }
.blue-card h2 { color: #1d4ed8; }
.purple-card .stat-icon-box { background: #a855f7; box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3); }
.purple-card h2 { color: #7e22ce; }
.green-card .stat-icon-box { background: #22c55e; box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3); }
.green-card h2 { color: #15803d; }
.stat-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; font-family: var(--font-heading); }
.stat-card h4 { font-size: 0.9rem; color: var(--secondary); margin-bottom: 5px; font-weight: 700; }
.stat-card p { font-size: 0.75rem; color: var(--text-muted); }

/* =========================================
   5. SKILLS SECTION
   ========================================= */
.skills-section { padding: 80px 0; background: #f8fafc; overflow: hidden; position: relative; }
.skills-header { text-align: center; margin-bottom: 50px; padding: 0 20px; }
.skills-header h2 { font-size: 2.5rem; font-family: var(--font-heading); color: var(--secondary); margin-bottom: 10px; }
.skills-header p { color: var(--text-muted); font-family: var(--font-body); }

.skills-slider { position: relative; width: 100%; overflow: hidden; padding: 20px 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.skills-track { display: flex; gap: 30px; width: max-content; animation: scroll 35s linear infinite; }
.skills-track:hover { animation-play-state: paused; }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Light Skill Card (Legacy support) */
.skill-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 20px 35px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 140px; transition: all 0.3s ease; opacity: 1 !important; transform: translateY(0); }
.skill-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)); transition: transform 0.3s; }
.skill-card p { font-family: var(--font-body); font-weight: 600; color: var(--secondary); font-size: 1rem; }
.skill-card:hover { background: white; border-color: var(--primary); box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15); transform: translateY(-5px) scale(1.05); }
.skill-card:hover img { transform: scale(1.1); }

/* Dark Tech Card (Newer design) */
.tech-card { background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 25px; min-width: 300px; max-width: 300px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: 0.3s; }
.tech-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.card-header { display: flex; align-items: center; gap: 15px; }
.card-header h3 { color: #f8fafc; font-size: 1.1rem; font-weight: 700; margin: 0; }
.icon-box.green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.icon-box.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.icon-box.purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.icon-box.pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.icon-box.teal { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.card-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.card-tags span { background: #1e293b; color: #cbd5e1; padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; border: 1px solid #334155; transition: 0.3s; }
.card-tags span:hover { background: #334155; color: white; border-color: var(--primary); }

/* =========================================
   6. PROJECTS (Free & Premium Store)
   ========================================= */
#projects-section { padding: 80px 5%; background: #f0f9ff; }
.projects-header h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--secondary); text-align: center; margin-bottom: 10px; }
.student-tagline { text-align: center; margin-bottom: 40px; color: var(--text-muted); font-family: var(--font-body); }
.student-tagline .highlight { color: var(--primary); font-weight: bold; text-decoration: underline; }

.projects-scroller { display: flex; overflow-x: auto; gap: 25px; padding: 20px 10px; scrollbar-width: thin; scrollbar-color: var(--primary) #e2e8f0; scroll-behavior: smooth; justify-content: flex-start; }
.projects-scroller::-webkit-scrollbar { height: 8px; }
.projects-scroller::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 4px; }
.projects-scroller::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.project-card { min-width: 300px; max-width: 300px; background: white; border-radius: 16px; border: 1px solid #e2e8f0; transition: 0.3s ease; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 15px 30px rgba(14, 165, 233, 0.15); }
.card-image { height: 180px; width: 100%; overflow: hidden; border-radius: 16px 16px 0 0; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .card-image img { transform: scale(1.05); }

.badge-free { position: absolute; top: 15px; right: 15px; background: #22c55e; color: white; font-size: 0.8rem; font-weight: 800; padding: 5px 10px; border-radius: 6px; box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3); z-index: 10; }

.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 8px; color: var(--secondary); display: flex; justify-content: space-between; align-items: center; }
.card-content p { color: var(--text-muted); margin-bottom: 15px; font-size: 0.9rem; line-height: 1.5; }
.tech-tags { display: flex; gap: 6px; margin-bottom: 20px; margin-top: auto; }
.tech-tags span { font-size: 0.7rem; padding: 4px 10px; background: #f1f5f9; border-radius: 12px; color: var(--text-main); font-weight: 600; border: 1px solid #e2e8f0; }

.btn-group { display: flex; gap: 10px; }
.live-btn, .download-btn-card { flex: 1; padding: 8px 0; font-size: 0.85rem; border-radius: 6px; text-align: center; text-decoration: none; font-weight: 600; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.live-btn { background: transparent; border: 1px solid var(--secondary); color: var(--secondary); }
.live-btn:hover { background: var(--secondary); color: white; }
.download-btn-card { background: var(--primary); color: white; }
.download-btn-card:hover { background: #0369a1; transform: translateY(-2px); }

.view-more-container { text-align: center; margin-top: 40px; }
.view-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; background: white; border: 1px solid var(--secondary); color: var(--secondary); border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.view-more-btn:hover { background: var(--secondary); color: white; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Premium Store Overrides */
#mini-projects { padding: 10px 5% 80px 5%; background: #f0f9ff; }
.premium-card { border: 1px solid rgba(2, 132, 199, 0.2); }
.premium-card:hover { box-shadow: 0 0 20px rgba(2, 132, 199, 0.2); }
.badge-premium { position: absolute; top: 10px; left: 10px; background: linear-gradient(45deg, #f59e0b, #fbbf24); color: white; font-size: 0.75rem; font-weight: 800; padding: 5px 12px; border-radius: 50px; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); z-index: 10; display: flex; align-items: center; gap: 5px; animation: shine 3s infinite; }
@keyframes shine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }
.mini-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--secondary); font-family: var(--font-heading); }
.discount { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; }
.buy-btn { width: 100%; padding: 12px; background: var(--secondary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.buy-btn:hover { background: var(--accent); box-shadow: 0 5px 15px rgba(20, 184, 166, 0.4); transform: scale(1.02); }

/* =========================================
   7. CONTACT (Idea Lab Animation)
   ========================================= */
#contact-modern { padding: 100px 10%; background: #f0f9ff; }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.pre-heading { color: var(--primary); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.highlight-text { color: var(--primary); position: relative; display: inline-block; }
.highlight-text::after { content: ''; position: absolute; width: 100%; height: 8px; bottom: 5px; left: 0; background: rgba(2, 132, 199, 0.2); z-index: -1; transform: skewX(-10deg); }
.motivation-box { border-left: 4px solid var(--primary); padding-left: 20px; margin-bottom: 30px; }
.motivation-box p { font-size: 1.2rem; font-style: italic; color: var(--text-muted); font-family: var(--font-heading); }
.sub-text { color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; font-size: 1rem; max-width: 90%; }

.idea-visual-wrapper { flex: 1; height: 400px; position: relative; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle at center, rgba(2, 132, 199, 0.1) 0%, transparent 70%); border-radius: 30px; overflow: hidden; }
.core-circle { width: 100px; height: 100px; background: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: relative; z-index: 10; box-shadow: 0 0 30px rgba(2, 132, 199, 0.3); border: 4px solid #f0f9ff; }
.core-inner { font-size: 3rem; color: var(--primary); animation: pulseBrain 3s infinite; }
@keyframes pulseBrain { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.pulse-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: expandRing 2.5s linear infinite; }
@keyframes expandRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

.orbit-path { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(2, 132, 199, 0.3); }
.path-1 { width: 180px; height: 180px; animation: spinRight 10s linear infinite; }
.path-2 { width: 280px; height: 280px; animation: spinLeft 15s linear infinite; }
.path-3 { width: 380px; height: 380px; animation: spinRight 20s linear infinite; }
.planet { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; background: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--secondary); box-shadow: 0 5px 15px rgba(0,0,0,0.1); font-size: 1.2rem; }
.p-1 { color: #f59e0b; } .p-2 { color: var(--primary); } .p-3 { color: var(--accent); }
.planet i { animation: counterRotate 10s linear infinite; }
@keyframes counterRotate { 100% { transform: rotate(-360deg); } }

.float-tag { position: absolute; background: white; padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; color: var(--secondary); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border: 1px solid #e0f2fe; z-index: 20; font-family: var(--font-body); }
.t1 { top: 10%; left: 10%; animation: float 4s ease-in-out infinite; }
.t2 { bottom: 15%; right: 5%; animation: float 5s ease-in-out infinite 1s; }
.t3 { top: 20%; right: 10%; animation: float 6s ease-in-out infinite 0.5s; }

/* Share Idea CTA */
.share-idea-cta { margin: 30px 0; padding: 20px; background: rgba(255, 255, 255, 0.6); border-left: 4px solid var(--accent); border-radius: 8px; }
.cta-text { font-size: 1.05rem; color: var(--secondary); margin-bottom: 15px; font-family: var(--font-body); }
.share-btn { padding: 12px 30px; background: var(--secondary); color: white; border: none; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2); display: inline-flex; align-items: center; gap: 10px; }
.share-btn:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3); }
.share-btn i { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-5px);} 60% {transform: translateY(-3px);} }

/* Floating Contact Button */
.hire-me-btn { position: fixed; bottom: 30px; right: 30px; z-index: 1000; background: var(--primary); color: white; padding: 12px 30px; border-radius: 50px; border: none; box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4); font-weight: 700; font-family: var(--font-body); text-decoration: none; line-height: 1; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: all 0.3s ease; }
.hire-me-btn:hover { transform: translateY(-5px); background: #0369a1; box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5); }

/* =========================================
   8. POPUP FORMS & MODALS
   ========================================= */

/* Main Popup Form Overlay */
.popup-form { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.9); z-index: 2500; justify-content: center; align-items: center; backdrop-filter: blur(10px); padding: 20px; }
.form-content { background: #ffffff; padding: 30px 40px 40px; border-radius: 20px; width: 100%; max-width: 550px; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1); max-height: 90vh; overflow-y: auto; border: 1px solid rgba(2, 132, 199, 0.2); }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.form-content h2 { text-align: center; font-family: var(--font-heading); color: var(--secondary); font-size: 2.2rem; margin-bottom: 8px; line-height: 1.2; }
.form-subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }

.input-row { display: flex; gap: 20px; margin-bottom: 0; }
.form-group, .input-group { display: flex; flex-direction: column; flex: 1; margin-bottom: 22px; position: relative; width: 100%; }
.form-group label, .input-group label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; pointer-events: none; }
.form-group input, .form-group select, .form-group textarea, .input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; font-family: var(--font-body); background-color: #f8fafc; color: var(--secondary); outline: none; transition: all 0.2s ease; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus, .input-group input:focus, .input-group textarea:focus, .input-group select:focus { border-color: var(--primary); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1); }
.form-group textarea, .input-group textarea { min-height: 120px; resize: vertical; }

.submit-butn { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit-butn:hover { background: var(--secondary); transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3); }

.close-btn, .close-idea-btn { position: absolute; top: 15px; right: 15px; background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; transition: 0.3s; font-size: 1.5rem; line-height: 1; }
.close-btn:hover, .close-idea-btn:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }

/* Alternative SR Modal Design (from blog/vault components) */
.sr-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: none; z-index: 5000; padding: 20px; justify-content: center; align-items: center; }
.sr-modal-box { background: #ffffff; width: 100%; max-width: 550px; padding: 40px; border-radius: 20px; position: relative; box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4); animation: sr-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1); max-height: 90vh; overflow-y: auto; border: 1px solid rgba(2, 132, 199, 0.1); }
@keyframes sr-slide-up { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sr-main-title { font-family: var(--font-heading); font-size: 2.2rem; color: var(--secondary); text-align: center; margin-bottom: 8px; line-height: 1.2; }
.sr-sub-title { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
.sr-grid-row { display: flex; gap: 20px; }
.sr-field-unit { display: flex; flex-direction: column; margin-bottom: 20px; flex: 1; width: 100%; }
.sr-label { font-size: 0.75rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; line-height: 1; }
.sr-input, .sr-area { width: 100%; padding: 14px 16px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 1rem; font-family: var(--font-body); color: var(--secondary); background: #f8fafc; transition: all 0.2s ease; box-sizing: border-box; }
.sr-area { resize: vertical; min-height: 120px; }
.sr-input:focus, .sr-area:focus { border-color: var(--primary); background: #ffffff; outline: none; box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1); }
.sr-action-btn { width: 100%; padding: 16px; background: var(--primary); color: #ffffff; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.sr-action-btn:hover { background: var(--secondary); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); }
.sr-close-trigger { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #64748b; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.sr-close-trigger:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }

/* Success Messages (Shared) */
.success-message, .sr-success-container { text-align: center; padding: 20px 0; animation: sr-fade-in 0.5s ease-out; }
.check-icon, .sr-icon-box { width: 80px; height: 80px; background: #dcfce7; color: #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 20px; animation: sr-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3); }
.success-message h3, .sr-success-title { font-family: var(--font-heading); font-size: 1.8rem; color: var(--secondary); margin-bottom: 12px; }
.success-message p, .sr-success-text { color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; font-size: 1rem; }
.sr-done-btn { padding: 12px 30px; background: #f1f5f9; color: var(--secondary); border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.sr-done-btn:hover { background: #e2e8f0; }

@keyframes sr-pop { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes sr-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   9. FOOTER
   ========================================= */
#footer-modern { background-color: #0f172a; color: #cbd5e1; padding: 80px 0 0; font-family: var(--font-body); position: relative; border-top: 4px solid var(--primary); overflow: hidden; }
#footer-modern::before { content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.footer-container { max-width: 1200px; margin: 0 auto 50px; padding: 0 5%; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; position: relative; z-index: 1; }

.footer-logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: white; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer-logo i { color: var(--primary); }
.brand-desc, .footer-col.brand-col p { font-size: 0.95rem; line-height: 1.6; max-width: 300px; color: #94a3b8; }

.footer-col h4 { color: white; font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 25px; position: relative; display: inline-block; font-weight: 700; }
.footer-col h4::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }

.footer-links, .footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-col ul li { margin-bottom: 12px; }
.footer-links a, .footer-col ul li a { text-decoration: none; color: #cbd5e1; transition: 0.3s; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover, .footer-col ul li a:hover { color: var(--primary); transform: translateX(5px); }

.social-links { display: flex; gap: 15px; }
.social-btn { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: center; align-items: center; color: white; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1.2rem; }
.social-btn:hover { transform: translateY(-5px); background: white; border-color: white; }
.social-btn.github:hover { color: #333; } .social-btn.linkedin:hover { color: #0077b5; } .social-btn.instagram:hover { color: #e1306c; } .social-btn.facebook:hover { color: #1877f2; }

.footer-bottom { margin-top: 60px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 25px 5%; text-align: center; font-size: 0.9rem; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; }
.footer-bottom i { color: #ef4444; }


/* =========================================
   10. MEDIA QUERIES (Centralized & Clean)
   ========================================= */

/* Desktop / Large Tablets */
@media screen and (max-width: 1024px) {
    .roadmap-grid { min-width: 100%; flex-direction: column; padding: 10px 0; }
    .roadmap-col { gap: 0; }
}

/* Tablet / Mobile Navigation & Layouts */
@media screen and (max-width: 900px) {
    .nav { padding: 15px 5%; }
    .nav-actions { display: none; }
    .hamburger { display: block; z-index: 1001; }
    
    .nav-menu { position: fixed; left: -100%; top: 0; flex-direction: column; background: white; width: 100%; height: 100vh; align-items: center; padding-top: 80px; transition: 0.4s ease-in-out; z-index: 1000; overflow-y: auto; gap: 20px; }
    .nav-menu.active { left: 0; }
    
    .dropdown { width: 100%; text-align: center; }
    .dropdown-content { position: static; transform: none; box-shadow: none; border: none; background: #f8fafc; width: 100%; display: none; opacity: 1; visibility: visible; padding-left: 0; margin-top: 10px; }
    .dropdown.active .dropdown-content { display: block; transform: none; }
    
    .mobile-controls { display: flex; }
    .desktop-vault-only { display: none !important; }
    
    .intro { flex-direction: column-reverse; text-align: center; padding-top: 130px; height: auto; }
    .gsap-eff { font-size: 2.5rem; }
    .intro .img { width: 80%; margin-bottom: 40px; max-width: 300px; display: none !important; }
    
    /* Show Mobile Solar System instead of Image */
    .mobile-tech-solar { display: flex; justify-content: center; align-items: center; position: relative; width: 280px; height: 280px; margin-bottom: 30px; background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, transparent 70%); }
    .solar-core { width: 60px; height: 60px; font-size: 1.5rem; }
    .orbit-1 { width: 100px; height: 100px; }
    .orbit-2 { width: 180px; height: 180px; }
    .orbit-3 { width: 260px; height: 260px; }
    .planet-1 { width: 10px; height: 10px; }
    .planet-2 { width: 14px; height: 14px; }
    .planet-3 { width: 8px; height: 8px; }
    
    .skills-track { gap: 20px; animation-duration: 20s; }
    .skill-card { min-width: 110px; padding: 15px 20px; }
    
    .about-container, .contact-container, .footer-container { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .about-col-left { text-align: center; }
    .services-mini-grid { justify-content: center; }
    .highlight::after { left: 50%; transform: translateX(-50%) skewX(-10deg); width: 80%; }
    
    .idea-visual-wrapper { height: 300px; margin-top: 30px; }
    .path-3 { display: none; }
    .path-2 { width: 240px; height: 240px; }
    .path-1 { width: 140px; height: 140px; }
    
    .footer-col.brand-col p, .brand-desc { margin: 0 auto; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 10px; justify-content: center; }
}

/* Mobile Specific (Forms, Hero Ticker, Stats Grid) */
@media screen and (max-width: 768px) {
    .hero-desc { text-align: center; margin: 20px auto; }
    .neon-ticker-wrapper { margin: 25px auto; }
    .hero-btn-group { justify-content: center; flex-wrap: wrap; }
    #my-intro { align-items: center; display: flex; flex-direction: column; }
    
    .stats-grid { flex-direction: column; }
    .stat-card { width: 100%; margin-bottom: 15px; }
}

/* Small Mobile Screens (Forms) */
@media screen and (max-width: 600px) {
    .input-row, .sr-grid-row { flex-direction: column; gap: 0; }
    .form-content { padding: 30px 20px; width: 95%; }
    .form-content h2 { font-size: 1.8rem; }
    .sr-modal-box { padding: 30px 20px; border-radius: 0; height: 100vh; max-height: 100vh; }
}

/* Extra Small Phones */
@media screen and (max-width: 360px) {
    .mobile-controls { gap: 10px; }
    .mobile-vault-btn .btn-text { display: none; }
    .mobile-vault-btn { padding: 8px; border-radius: 50%; }
}

/* =========================================
   11. PROFESSIONAL MOTION UPGRADE
   ========================================= */

:root {
    --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --surface-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    --surface-shadow-strong: 0 20px 50px rgba(2, 132, 199, 0.2);
    --lift-distance: 8px;
    --reveal-distance: 26px;
    --reveal-duration: 620ms;
}

body[data-motion="subtle"] {
    --lift-distance: 4px;
    --reveal-distance: 16px;
    --reveal-duration: 460ms;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(420px circle at 12% 12%, rgba(14, 165, 233, 0.09), transparent 65%),
        radial-gradient(560px circle at 84% 20%, rgba(13, 148, 136, 0.08), transparent 68%),
        radial-gradient(500px circle at 50% 90%, rgba(56, 189, 248, 0.07), transparent 70%);
    animation: ambientShift 18s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% { filter: saturate(1) brightness(1); transform: translateY(0); }
    100% { filter: saturate(1.08) brightness(1.02); transform: translateY(-8px); }
}

.nav {
    transition: background-color 300ms var(--ease-smooth), box-shadow 300ms var(--ease-smooth), border-color 300ms var(--ease-smooth), padding 300ms var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(2, 132, 199, 0.18);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.logo-container {
    transition: transform 260ms var(--ease-snappy), filter 260ms var(--ease-snappy);
}

.logo-container:hover {
    transform: translateY(-1px) scale(1.01);
    filter: drop-shadow(0 10px 16px rgba(2, 132, 199, 0.22));
}

.nav-menu li a {
    position: relative;
    transition: color 220ms var(--ease-smooth);
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0284c7, #0d9488);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 220ms var(--ease-snappy);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: scaleX(1);
}

.dropdown-content {
    transition: opacity 280ms var(--ease-smooth), transform 280ms var(--ease-snappy), visibility 280ms var(--ease-smooth), box-shadow 280ms var(--ease-smooth);
}

.dropdown.active .dropdown-content,
.dropdown:hover .dropdown-content {
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

.eng-card,
.project-card,
.skill-card,
.tech-card,
.stat-card,
.sr-widget,
.grid-item {
    transition: transform 300ms var(--ease-snappy), box-shadow 300ms var(--ease-smooth), border-color 300ms var(--ease-smooth), background-color 300ms var(--ease-smooth);
    will-change: transform;
}

.eng-card:hover,
.project-card:hover,
.skill-card:hover,
.tech-card:hover,
.stat-card:hover,
.sr-widget:hover,
.grid-item:hover {
    transform: translateY(calc(var(--lift-distance) * -1));
    box-shadow: var(--surface-shadow-strong);
}

.hero-btn,
.eng-btn,
.share-btn,
.download-btn,
.buy-btn,
.view-more-btn {
    transition: transform 220ms var(--ease-snappy), box-shadow 240ms var(--ease-smooth), background-color 240ms var(--ease-smooth), color 240ms var(--ease-smooth), border-color 240ms var(--ease-smooth);
}

.hero-btn:hover,
.eng-btn:hover,
.share-btn:hover,
.download-btn:hover,
.buy-btn:hover,
.view-more-btn:hover {
    transform: translateY(calc(var(--lift-distance) * -0.45));
}

.reveal-item {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition: opacity var(--reveal-duration) var(--ease-smooth), transform var(--reveal-duration) var(--ease-snappy);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================
   12. COLOR GRADE + ADVANCED MOTION
   ========================================= */

#about-section,
#projects-section,
#mini-projects,
#contact-modern,
.skills-section {
    background-image: var(--surface-gradient);
}

.projects-header h2,
.skills-header h2,
.timeline-title,
.eng-title {
    background-image: linear-gradient(110deg, #0f172a 10%, #0b6fd6 52%, #0f766e 92%);
    background-size: 220% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: headingFlow 11s linear infinite;
}

@keyframes headingFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

.nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(11, 111, 214, 0.6) 20%, rgba(15, 118, 110, 0.6) 50%, rgba(11, 111, 214, 0.6) 80%, transparent 100%);
    background-size: 180% 100%;
    animation: navRail 7s linear infinite;
    pointer-events: none;
}

@keyframes navRail {
    0% { background-position: 0% 50%; }
    100% { background-position: 180% 50%; }
}

.eng-card,
.project-card,
.grid-item,
.sr-widget,
.stat-card,
.tech-card {
    border-color: var(--border-soft);
    box-shadow: var(--surface-shadow);
}

.eng-card:hover,
.project-card:hover,
.grid-item:hover,
.sr-widget:hover,
.stat-card:hover,
.tech-card:hover {
    border-color: rgba(11, 111, 214, 0.35);
}

.hero-btn,
.eng-btn,
.share-btn,
.download-btn,
.buy-btn,
.view-more-btn,
.live-btn,
.download-btn-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-btn::before,
.eng-btn::before,
.share-btn::before,
.download-btn::before,
.buy-btn::before,
.view-more-btn::before,
.live-btn::before,
.download-btn-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.45) 45%, transparent 75%);
    transform: translateX(-130%);
    transition: transform 520ms var(--ease-snappy);
    z-index: -1;
}

.hero-btn:hover::before,
.eng-btn:hover::before,
.share-btn:hover::before,
.download-btn:hover::before,
.buy-btn:hover::before,
.view-more-btn:hover::before,
.live-btn:hover::before,
.download-btn-card:hover::before {
    transform: translateX(130%);
}

.badge-premium,
.badge-free {
    animation: badgeDrift 3.2s ease-in-out infinite;
}

@keyframes badgeDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

body[data-motion="balanced"] .motion-tilt {
    transition: transform 260ms var(--ease-snappy), box-shadow 260ms var(--ease-smooth);
    transform-style: preserve-3d;
}

body[data-motion="subtle"] .projects-header h2,
body[data-motion="subtle"] .skills-header h2,
body[data-motion="subtle"] .timeline-title,
body[data-motion="subtle"] .eng-title {
    animation-duration: 18s;
}

body[data-motion="subtle"] .nav::after {
    animation-duration: 12s;
}

/* =========================================
   13. CREATIVE STARTUP PRESET
   ========================================= */

body[data-visual="startup"] {
    background:
        radial-gradient(900px circle at -10% -10%, rgba(11, 111, 214, 0.2) 0%, transparent 45%),
        radial-gradient(760px circle at 110% 0%, rgba(15, 118, 110, 0.18) 0%, transparent 48%),
        linear-gradient(180deg, #f5f9ff 0%, #eef5fd 58%, #ebf7f4 100%);
}

body[data-visual="startup"] .nav {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(11, 111, 214, 0.2);
    box-shadow: 0 12px 30px rgba(11, 111, 214, 0.08);
}

body[data-visual="startup"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 36px rgba(10, 30, 80, 0.14);
}

body[data-visual="startup"] .intro::before {
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(11, 111, 214, 0.24) 0%, rgba(15, 118, 110, 0.16) 40%, transparent 74%);
    filter: blur(85px);
    animation: startupHeroPulse 6s ease-in-out infinite alternate;
}

@keyframes startupHeroPulse {
    0% { transform: translate(-50%, -50%) scale(0.92) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1.08) rotate(4deg); }
}

body[data-visual="startup"] .eng-title,
body[data-visual="startup"] .projects-header h2,
body[data-visual="startup"] .skills-header h2,
body[data-visual="startup"] .timeline-title {
    background-size: 280% 100%;
    animation: headingFlow 6s linear infinite;
}

body[data-visual="startup"] .eng-card,
body[data-visual="startup"] .project-card,
body[data-visual="startup"] .grid-item,
body[data-visual="startup"] .sr-widget,
body[data-visual="startup"] .tech-card,
body[data-visual="startup"] .stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(11, 111, 214, 0.18);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

body[data-visual="startup"] .eng-card:hover,
body[data-visual="startup"] .project-card:hover,
body[data-visual="startup"] .grid-item:hover,
body[data-visual="startup"] .sr-widget:hover,
body[data-visual="startup"] .tech-card:hover,
body[data-visual="startup"] .stat-card:hover {
    box-shadow: 0 26px 48px rgba(11, 111, 214, 0.24);
}

body[data-visual="startup"] .hero-btn,
body[data-visual="startup"] .eng-btn.primary,
body[data-visual="startup"] .download-btn-card,
body[data-visual="startup"] .buy-btn,
body[data-visual="startup"] .share-btn {
    background-image: linear-gradient(120deg, #0b6fd6 0%, #0f766e 100%);
    border-color: transparent;
    color: #ffffff;
}

body[data-visual="startup"] .hero-btn:hover,
body[data-visual="startup"] .eng-btn.primary:hover,
body[data-visual="startup"] .download-btn-card:hover,
body[data-visual="startup"] .buy-btn:hover,
body[data-visual="startup"] .share-btn:hover {
    filter: saturate(1.08);
    box-shadow: 0 16px 34px rgba(11, 111, 214, 0.28);
}

body[data-visual="startup"] .badge-premium {
    background: linear-gradient(120deg, #f59e0b 0%, #f97316 100%);
    animation: startupBadgeGlow 1.8s ease-in-out infinite;
}

@keyframes startupBadgeGlow {
    0%, 100% { box-shadow: 0 6px 16px rgba(245, 158, 11, 0.32); transform: translateY(0); }
    50% { box-shadow: 0 14px 26px rgba(249, 115, 22, 0.48); transform: translateY(-2px); }
}

body[data-visual="startup"] .neon-ticker {
    background: linear-gradient(120deg, #0f172a 0%, #102a52 48%, #0f766e 100%);
    box-shadow: 0 12px 34px rgba(11, 111, 214, 0.28), 0 0 18px rgba(15, 118, 110, 0.24);
}

body[data-visual="startup"] .reveal-item {
    transition-duration: calc(var(--reveal-duration) * 0.86);
}

/* Animated Section Dividers */
#student-results,
#start-here-roadmap,
#placement-90-day,
#interview-vault-home,
#skills-tab,
#projects-section,
#mini-projects,
#final-year-blueprints,
#starter-kit,
#about-section,
#contact-modern,
.project-grid-section,
.sr-blog-feed {
    position: relative;
    overflow: hidden;
}

#student-results::before,
#start-here-roadmap::before,
#placement-90-day::before,
#interview-vault-home::before,
#skills-tab::before,
#projects-section::before,
#mini-projects::before,
#final-year-blueprints::before,
#starter-kit::before,
#about-section::before,
#contact-modern::before,
.project-grid-section::before,
.sr-blog-feed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4%;
    width: 92%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(11, 111, 214, 0.8) 30%, rgba(15, 118, 110, 0.82) 70%, transparent 100%);
    background-size: 220% 100%;
    animation: dividerFlow 7s linear infinite;
}

#student-results::after,
#start-here-roadmap::after,
#placement-90-day::after,
#interview-vault-home::after,
#skills-tab::after,
#projects-section::after,
#mini-projects::after,
#final-year-blueprints::after,
#starter-kit::after,
#about-section::after,
#contact-modern::after,
.project-grid-section::after,
.sr-blog-feed::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(11, 111, 214, 0.14) 0%, transparent 66%);
    animation: dividerBlob 9s ease-in-out infinite alternate;
}

@keyframes dividerFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

@keyframes dividerBlob {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0.55; }
    100% { transform: translate(-18px, 16px) scale(1.08); opacity: 0.2; }
}

