/* ============================================
   1. GLOBAL VARIABLES & RESET
   ============================================ */
:root {
    /* Color Palette - Cyberpunk/Modern */
    --primary: #00f2ff;       /* Cyan Neon */
    --primary-dim: rgba(0, 242, 255, 0.1);
    --secondary: #7000ff;     /* Purple Neon */
    --accent: #ff0055;        /* Pink Accent */
    
    /* Dark Mode Colors (Default) */
    --bg-color: #050511;      /* Deep Space Black */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 20, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-glass: rgba(10, 10, 20, 0.85);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Spacing & UI */
    --nav-height: 80px;
    --container-width: 1200px;
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Mode Overrides (Optional if you toggle theme) */
html:not(.dark-mode) {
    --bg-color: #f4f7f6;
    --text-main: #1a1a2e;
    --text-muted: #555;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --nav-glass: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle Background Gradient */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 255, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   2. FLOATING NAVIGATION (Fixed at Top)
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 1000;
    padding: 0.7rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: -1px; }
.logo-text span { color: var(--primary); }

.nav-menu { display: flex; list-style: none; gap: 5px; align-items: center; }

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary); background: var(--primary-dim); }
.nav-link.active { background: var(--primary); color: #000; font-weight: 600; box-shadow: 0 0 15px var(--primary-dim); }

.theme-toggle {
    background: transparent; border: 1px solid var(--glass-border); color: var(--text-main);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); margin-left: 15px;
}
.theme-toggle:hover { background: var(--primary); color: #000; border-color: var(--primary); transform: rotate(15deg); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--text-main); border-radius: 2px; transition: 0.3s; }

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

/* 1. Background & Layout */
.hero.modern-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    z-index: 1;
    overflow: hidden;
    padding-top: 120px;
}

/* Moving Grid Animation */
.hero-grid-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    animation: moveGrid 20s linear infinite;
}
@keyframes moveGrid { 0% { transform: translateY(0); } 100% { transform: translateY(40px); } }

/* Ambient Color Blurs */
.hero-blur {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    filter: blur(100px); z-index: -1; opacity: 0.4;
}
.blur-left { top: -100px; left: -100px; background: rgba(112, 0, 255, 0.3); }
.blur-right { bottom: -100px; right: -100px; background: rgba(0, 242, 255, 0.2); }

.hero-content { position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; }

.hero-main {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    width: 100%; gap: 4rem;
}

/* 2. Left Side: Text Animations */
.hero-intro {
    flex: 1; max-width: 650px; display: flex; flex-direction: column;
    gap: 1.5rem; align-items: flex-start; text-align: left;
}

/* Entrance Animation Class */
.animate-in { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Availability Badge */
.availability-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 242, 255, 0.08); color: #00f2ff;
    font-weight: 700; border-radius: 30px; padding: 6px 16px;
    font-size: 0.85rem; letter-spacing: 1px; border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1); transition: 0.3s;
}
.availability-badge:hover { box-shadow: 0 0 25px rgba(0, 242, 255, 0.3); transform: scale(1.05); }
.blink-dot { width: 8px; height: 8px; background: #00f2ff; border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 10px #00f2ff; } 50% { opacity: 0.4; } }

.hero-title-modern { font-size: 3.5rem; font-weight: 800; color: var(--text-main); line-height: 1.1; margin: 0; }
.hero-hello { font-size: 2rem; color: var(--text-muted); font-weight: 500; }
.hero-name-gradient {
    background: linear-gradient(90deg, #00f2ff, #0099ff, #7000ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% auto; animation: gradientText 5s linear infinite;
}
@keyframes gradientText { to { background-position: 200% center; } }

/* Badges Row */
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
    color: var(--text-muted); transition: 0.3s;
}
.hero-badge i { color: var(--primary); }
.hero-badge.blue { background: rgba(0, 242, 255, 0.1); border-color: rgba(0, 242, 255, 0.3); color: #fff; }
.hero-badge:hover { transform: translateY(-3px); border-color: var(--primary); color: #fff; }

.hero-bio-modern { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 90%; }
.hero-bio-modern b { color: var(--text-main); }

/* Buttons */
.hero-buttons-modern { display: flex; gap: 15px; }
.btn {
    position: relative; overflow: hidden; padding: 14px 32px; border-radius: 50px;
    font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; transition: 0.3s;
}

.btn-primary {
    background: var(--primary); color: #000; z-index: 1;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4); border: none;
}
/* Shimmer Effect on Button */
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: 0.5s; z-index: -1; transform: skewX(-20deg);
}
.btn-primary:hover::before { left: 100%; transition: 0.5s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0, 242, 255, 0.6); }

.btn-secondary { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(0, 242, 255, 0.05); }

.hero-social-modern { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.hero-social-modern span { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); }
.social-link-group { display: flex; gap: 10px; }
.social-link-group a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
    font-size: 1.2rem; transition: 0.3s; border: 1px solid transparent;
}
.social-link-group a:hover { background: var(--primary); color: #000; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3); }

/* 3. Right Side: Profile Image */
.hero-profile-modern { flex: 1; display: flex; justify-content: flex-end; position: relative; perspective: 1000px; }

.profile-img-glow {
    position: relative; width: 400px; height: 400px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.5s ease;
}
.hero-profile-modern:hover .profile-img-glow { transform: rotateY(-5deg) rotateX(5deg); }

.profile-img-glow img {
    width: 360px; height: 360px; border-radius: 50%; object-fit: cover;
    border: 5px solid var(--bg-color); z-index: 2; position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Rotating Spinner Border */
.spinner-border {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 50%, var(--primary) 100%);
    animation: spin 3s linear infinite; z-index: 1;
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Floating Badges */
.profile-badge {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: rgba(20, 25, 35, 0.85); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    padding: 10px 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 3; transition: 0.3s; animation: floatBadge 4s ease-in-out infinite;
}
.profile-badge:hover { transform: scale(1.1); border-color: var(--primary); z-index: 10; }

.badge-icon {
    width: 36px; height: 36px; background: rgba(0, 242, 255, 0.1);
    color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.badge-icon.gold { color: #ffd700; background: rgba(255, 215, 0, 0.1); }
.badge-icon.green { color: #00ff88; background: rgba(0, 255, 136, 0.1); }

.badge-info { display: flex; flex-direction: column; line-height: 1.2; }
.badge-info strong { font-size: 1.1rem; color: #fff; }
.badge-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Float Positions & Delays */
.float-1 { top: 40px; left: -20px; animation-delay: 0s; }
.float-2 { bottom: 60px; left: -30px; animation-delay: 1.5s; }
.float-3 { top: 100px; right: -30px; animation-delay: 3s; }

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

/* 4. Scroll Down Indicator */
.scroll-down-btn {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-muted); opacity: 0.7; transition: 0.3s;
}
.scroll-down-btn:hover { color: var(--primary); opacity: 1; }
.mouse {
    width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 20px; position: relative;
}
.wheel {
    width: 4px; height: 8px; background: currentColor; border-radius: 2px;
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 20px; } }

/* 5. Responsive */
@media (max-width: 1024px) {
    .hero-main { flex-direction: column-reverse; text-align: center; gap: 3rem; }
    .hero-intro { align-items: center; max-width: 100%; }
    .hero-buttons-modern { justify-content: center; }
    .hero-profile-modern { justify-content: center; }
    .hero-badges { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-title-modern { font-size: 2.5rem; }
    .profile-img-glow { width: 300px; height: 300px; }
    .profile-img-glow img { width: 260px; height: 260px; }
    .float-1 { top: 10px; left: -10px; }
    .float-3 { top: 20px; right: -10px; }
}
/* ============================================
   4. COMMON SECTION STYLES
   ============================================ */
section { padding: 100px 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: block;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary); margin: 10px auto 0; border-radius: 2px;
}

.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 30px; transition: var(--transition); box-shadow: var(--shadow);
}
.glass-card:hover { transform: translateY(-10px); border-color: var(--primary); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* ============================================
   5. ABOUT SECTION
   ============================================ */
.about-content { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--glass-border); }
.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--text-main); }
.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.stat-box { background: var(--glass-bg); padding: 20px; border-radius: 15px; border: 1px solid var(--glass-border); text-align: center; }
.stat-box h4 { font-size: 1.5rem; color: var(--primary); margin-bottom: 5px; }

/* ============================================
   6. SKILLS SECTION
   ============================================ */
.skill-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border); padding-bottom: 15px;
}
.skill-header h3 { margin: 0; font-size: 1.4rem; }
.skill-header .skill-icon { margin: 0; font-size: 1.8rem; color: var(--primary); }

.skill-list { display: flex; flex-direction: column; gap: 15px; }
.skill-item { width: 100%; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }

.progress-bar {
    width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1);
    border-radius: 10px; overflow: hidden; position: relative; border: 1px solid rgba(255, 255, 255, 0.05);
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px; position: relative; box-shadow: 0 0 10px var(--primary-dim);
    animation: fillBar 1.5s ease-out forwards; transform-origin: left; transform: scaleX(0); 
}
@keyframes fillBar { to { transform: scaleX(1); } }

.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
    font-size: 0.8rem; padding: 6px 12px; background: var(--primary-dim);
    color: var(--primary); border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 20px; font-weight: 500; transition: var(--transition); cursor: default;
}
.badge:hover { background: var(--primary); color: #000; transform: translateY(-3px); box-shadow: 0 5px 15px var(--primary-dim); }

/* ============================================
   7. SERVICES SECTION
   ============================================ */
.service-card { position: relative; overflow: hidden; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.service-number {
    position: absolute; top: -20px; right: -20px; font-size: 8rem; font-weight: 900;
    color: var(--text-main); opacity: 0.03; transition: var(--transition); z-index: -1; font-family: sans-serif;
}
.service-card:hover .service-number { transform: translateY(-10px) rotate(-5deg); opacity: 0.08; color: var(--primary); }

.service-icon-box {
    width: 70px; height: 70px; background: var(--primary-dim); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    color: var(--primary); margin-bottom: 25px; transition: var(--transition); border: 1px solid rgba(0, 242, 255, 0.2);
}
.service-card:hover .service-icon-box { background: var(--primary); color: #000; box-shadow: 0 0 25px var(--primary-dim); transform: scale(1.1) rotate(5deg); }

.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; }
.service-card p { color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; }
.service-features { list-style: none; border-top: 1px solid var(--glass-border); padding-top: 20px; }
.service-features li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.service-features li i { color: var(--primary); font-size: 0.8rem; }
.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin: left; transition: 0.4s ease;
}
.service-card:hover::after { transform: scaleX(1); }

/* ============================================
   8. PROJECTS SECTION
   ============================================ */
.browser-bar { height: 30px; background: rgba(0, 0, 0, 0.05); border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; padding: 0 15px; gap: 8px; }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }

.project-img-container { position: relative; overflow: hidden; height: 220px; width: 100%; }
.project-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img-container img { transform: scale(1.1); }

.project-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); display: flex;
    justify-content: center; align-items: center; gap: 20px; opacity: 0; transform: translateY(20px); transition: all 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; transform: translateY(0); }

.icon-btn {
    width: 45px; height: 45px; background: var(--glass-bg); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: var(--primary);
    font-size: 1.2rem; text-decoration: none; transition: 0.3s; border: 1px solid var(--primary);
}
.icon-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); box-shadow: 0 0 15px var(--primary-dim); }

.project-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.project-category { font-size: 0.8rem; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 5px; letter-spacing: 1px; }
.project-content h3 { margin-bottom: 10px; font-size: 1.4rem; color: var(--text-main); }
.project-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.tech-stack { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag {
    font-size: 0.75rem; padding: 5px 12px; border-radius: 15px; background: var(--primary-dim);
    color: var(--text-main); border: 1px solid rgba(0, 242, 255, 0.1); font-weight: 600; transition: 0.3s;
}
.project-card:hover .tech-tag { border-color: var(--primary); box-shadow: 0 0 5px var(--primary-dim); }

/* ============================================
   9. EDUCATION TIMELINE
   ============================================ */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent); border-radius: 2px; box-shadow: 0 0 10px var(--primary-dim);
}
.timeline-item { position: relative; padding-left: 50px; padding-bottom: 50px; }
.timeline-dot {
    position: absolute; left: -9px; top: 0; width: 20px; height: 20px;
    background: var(--bg-color); border: 3px solid var(--primary); border-radius: 50%;
    box-shadow: 0 0 15px var(--primary); z-index: 2; transition: var(--transition);
}
.timeline-item:hover .timeline-dot { background: var(--primary); box-shadow: 0 0 25px var(--primary); transform: scale(1.2); }
.timeline-content { position: relative; transition: transform 0.3s ease; }
.timeline-content:hover { transform: translateX(10px); }

.timeline-date {
    display: inline-block; font-size: 0.85rem; color: var(--primary); font-weight: 600;
    margin-bottom: 8px; background: var(--primary-dim); padding: 4px 12px; border-radius: 20px;
}
.institution { color: var(--text-muted); font-size: 1rem; font-style: italic; margin-bottom: 15px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
.edu-details { margin-top: 15px; }
.edu-badge { display: inline-block; font-size: 0.8rem; padding: 4px 10px; border-radius: 5px; margin-right: 10px; margin-bottom: 10px; font-weight: 600; }
.edu-badge.grade { background: rgba(39, 201, 63, 0.15); color: #27c93f; border: 1px solid rgba(39, 201, 63, 0.3); }
.edu-badge.stream { background: rgba(112, 0, 255, 0.15); color: var(--secondary); border: 1px solid rgba(112, 0, 255, 0.3); }
.edu-badge.status { background: rgba(0, 242, 255, 0.15); color: var(--primary); border: 1px solid rgba(0, 242, 255, 0.3); }

/* ============================================
   10. CONTACT SECTION
   ============================================ */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-info-col h3 { font-size: 2rem; background: linear-gradient(90deg, var(--text-main), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; }
.contact-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 1rem; line-height: 1.6; }

.info-cards { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.info-card { display: flex; align-items: center; gap: 20px; padding: 20px; transition: var(--transition); }
.info-card:hover { transform: translateX(10px); border-color: var(--primary); }
.info-icon { width: 50px; height: 50px; background: var(--primary-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); }
.info-text span { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.info-text a, .info-text p { color: var(--text-main); font-size: 1.1rem; font-weight: 600; text-decoration: none; margin: 0; }
.info-text a:hover { color: var(--primary); }

.social-connect h4 { color: var(--text-main); margin-bottom: 15px; }
.social-icons { display: flex; gap: 15px; }
.social-btn { width: 45px; height: 45px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-main); font-size: 1.2rem; transition: var(--transition); text-decoration: none; }
.social-btn:hover { transform: translateY(-5px) rotate(360deg); color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.social-btn.github:hover { background: #333; border-color: #333; }
.social-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.social-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.social-btn.instagram:hover { background: #e1306c; border-color: #e1306c; }

.contact-form-box { padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-main); font-weight: 500; }
.contact-form-box input, .contact-form-box textarea { width: 100%; padding: 12px 15px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-main); font-family: 'Poppins', sans-serif; transition: 0.3s ease; }
.contact-form-box input:focus, .contact-form-box textarea:focus { outline: none; border-color: var(--primary); background: var(--primary-dim); box-shadow: 0 0 10px rgba(0, 242, 255, 0.1); }
.send-btn { width: 100%; justify-content: center; margin-top: 10px; padding: 15px; font-size: 1rem; }

/* ============================================
   11. FOOTER
   ============================================ */
.footer { background: var(--glass-bg); border-top: 1px solid var(--glass-border); padding: 50px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h3 { font-size: 1.8rem; margin-bottom: 15px; }
.footer-links h4 { color: var(--primary); margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 5px 20px rgba(0,242,255,0.4); z-index: 99; }

/* ============================================
   12. RESPONSIVE FIXES - COMPREHENSIVE
   ============================================ */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-title-modern { font-size: 4rem; }
    .hero-name-gradient { font-size: 4.5rem; }
    .profile-img-glow { width: 450px; height: 450px; }
    .profile-img-glow img { width: 400px; height: 400px; }
}

/* Desktop to Laptop (1200px - 1399px) */
@media (max-width: 1399px) {
    .container { max-width: 1140px; }
    .hero-title-modern { font-size: 3.2rem; }
    .profile-img-glow { width: 380px; height: 380px; }
    .profile-img-glow img { width: 340px; height: 340px; }
}

/* Laptop to Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
    .container { max-width: 960px; padding: 0 30px; }
    .hero-main { gap: 3rem; }
    .hero-title-modern { font-size: 2.8rem; }
    .hero-hello { font-size: 1.6rem; }
    .profile-img-glow { width: 350px; height: 350px; }
    .profile-img-glow img { width: 310px; height: 310px; }
    .hero-bio-modern { font-size: 1rem; }
    .section-title { font-size: 2.2rem; }
    .contact-wrapper { gap: 40px; }
    .footer-grid { gap: 30px; }
}

/* Tablet Landscape (992px - 1023px) */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero-main { flex-direction: column-reverse; text-align: center; gap: 3rem; }
    .hero-intro { align-items: center; text-align: center; max-width: 100%; }
    .hero-buttons-modern { justify-content: center; }
    .availability-badge::before { display: none; }
    .hero-profile-modern { justify-content: center; }
    .hero-bio-modern { max-width: 100%; text-align: center; }
    .hero-social-modern { justify-content: center; }
    
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-text { order: 2; }
    .about-image { order: 1; max-width: 500px; margin: 0 auto; }
    .about-stats-grid { justify-content: center; max-width: 400px; margin: 30px auto 0; }
    
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-info-col { text-align: center; }
    .info-cards { align-items: center; }
    .info-card { justify-content: center; }
    .social-icons { justify-content: center; }
    
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    section { padding: 80px 0; }
    .section-title { font-size: 2rem; margin-bottom: 50px; }
    
    .hero.modern-hero { padding-top: 100px; }
    .hero-title-modern { font-size: 2.5rem; }
    .hero-hello { font-size: 1.4rem; }
    .hero-name-gradient { font-size: 3rem; }
    .profile-img-glow { width: 320px; height: 320px; }
    .profile-img-glow img { width: 280px; height: 280px; }
    
    .hero-badges { justify-content: center; }
    .hero-badge { font-size: 0.85rem; padding: 6px 14px; }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    
    .timeline { padding-left: 20px; }
    .timeline::before { left: 10px; }
    .timeline-dot { left: 1px; }
    .timeline-item { padding-left: 45px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; text-align: center; }
}

/* Mobile Landscape / Small Tablet (768px) */
@media (max-width: 768px) {
    .navbar { width: 95%; padding: 10px 20px; top: 15px; border-radius: 40px; }
    .logo-text { font-size: 1.3rem; }
    .nav-menu { 
        position: fixed; 
        top: 80px; 
        left: 50%; 
        transform: translateX(-50%) translateY(-20px); 
        width: 95%; 
        background: var(--nav-glass); 
        backdrop-filter: blur(15px); 
        -webkit-backdrop-filter: blur(15px); 
        border: 1px solid var(--glass-border); 
        flex-direction: column; 
        padding: 20px; 
        border-radius: 20px; 
        gap: 10px; 
        opacity: 0; 
        visibility: hidden; 
        transition: all 0.3s ease; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    }
    .nav-menu.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .nav-link { padding: 12px 20px; width: 100%; text-align: center; border-radius: 10px; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    
    section { padding: 70px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    
    .hero.modern-hero { min-height: auto; padding: 120px 0 80px; }
    .hero-title-modern { font-size: 2rem; }
    .hero-hello { font-size: 1.2rem; }
    .hero-name-gradient { font-size: 2.5rem; }
    .hero-bio-modern { font-size: 0.95rem; line-height: 1.6; }
    .hero-badges { gap: 8px; }
    .hero-badge { font-size: 0.8rem; padding: 6px 12px; }
    
    .profile-img-glow { width: 280px; height: 280px; }
    .profile-img-glow img { width: 240px; height: 240px; }
    .profile-badge { font-size: 0.75rem; padding: 6px 10px; }
    .profile-badge .badge-icon { width: 30px; height: 30px; font-size: 0.9rem; }
    .profile-badge .badge-info strong { font-size: 0.95rem; }
    .profile-badge .badge-info span { font-size: 0.65rem; }
    .profile-badge-projects { top: 10px; left: -5px; }
    .profile-badge-year { bottom: 40px; left: -15px; }
    .profile-badge-skills { top: 20px; right: -5px; }
    
    .scroll-down-btn { display: none; }
    
    .about-content { gap: 30px; }
    .about-text h3 { font-size: 1.5rem; }
    .about-text p { font-size: 0.95rem; }
    .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-box { padding: 15px; }
    .stat-box h4 { font-size: 1.2rem; }
    
    .grid-3 { grid-template-columns: 1fr; gap: 25px; }
    .glass-card { padding: 25px; }
    
    .skill-header h3 { font-size: 1.2rem; }
    .skill-header .skill-icon { font-size: 1.5rem; }
    .tech-badges { gap: 8px; }
    .badge { font-size: 0.75rem; padding: 5px 10px; }
    
    .service-card h3 { font-size: 1.3rem; }
    .service-icon-box { width: 60px; height: 60px; font-size: 1.5rem; }
    .service-number { font-size: 6rem; }
    
    .project-img-container { height: 200px; }
    .project-content { padding: 20px; }
    .project-content h3 { font-size: 1.2rem; }
    .tech-tag { font-size: 0.7rem; padding: 4px 10px; }
    
    .timeline-content h3 { font-size: 1.2rem; }
    .edu-badge { font-size: 0.75rem; }
    
    .contact-info-col h3 { font-size: 1.6rem; }
    .contact-form-box { padding: 25px; }
    .form-group label { font-size: 0.85rem; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer h3 { font-size: 1.5rem; }
    .footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .footer-links a { margin-bottom: 0; }
    
    .back-to-top { width: 45px; height: 45px; bottom: 20px; right: 20px; }
}

/* Mobile Portrait (576px - 767px) */
@media (max-width: 576px) {
    .container { padding: 0 20px; }
    section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; margin-bottom: 35px; }
    
    .hero.modern-hero { padding: 100px 0 60px; }
    .hero-title-modern { font-size: 1.8rem; }
    .hero-hello { font-size: 1.1rem; }
    .hero-name-gradient { font-size: 2.2rem; }
    .hero-bio-modern { font-size: 0.9rem; }
    
    .hero-buttons-modern { flex-direction: column; width: 100%; gap: 12px; }
    .btn { width: 100%; justify-content: center; padding: 12px 24px; font-size: 0.9rem; }
    
    .hero-social-modern { flex-direction: column; gap: 12px; }
    .social-link-group a { width: 38px; height: 38px; font-size: 1rem; }
    
    .profile-img-glow { width: 240px; height: 240px; }
    .profile-img-glow img { width: 200px; height: 200px; }
    .profile-badge { padding: 5px 8px; gap: 8px; }
    .profile-badge .badge-icon { width: 26px; height: 26px; font-size: 0.8rem; }
    .profile-badge .badge-info strong { font-size: 0.85rem; }
    .profile-badge .badge-info span { font-size: 0.6rem; }
    
    .hero-badges { gap: 6px; }
    .hero-badge { font-size: 0.75rem; padding: 5px 10px; gap: 5px; }
    .hero-badge i { font-size: 0.7rem; }
    
    .about-image img { border-radius: 15px; }
    .about-text h3 { font-size: 1.3rem; }
    .about-stats-grid { grid-template-columns: 1fr; }
    
    .glass-card { padding: 20px; border-radius: 15px; }
    
    .skill-header { flex-direction: column; text-align: center; gap: 10px; }
    .skill-info { font-size: 0.85rem; }
    
    .service-icon-box { width: 55px; height: 55px; font-size: 1.3rem; margin-bottom: 20px; }
    .service-card h3 { font-size: 1.2rem; }
    .service-card p { font-size: 0.9rem; }
    .service-features li { font-size: 0.85rem; }
    
    .project-img-container { height: 180px; }
    .project-content { padding: 18px; }
    .project-category { font-size: 0.7rem; }
    .project-content h3 { font-size: 1.1rem; }
    .project-content p { font-size: 0.85rem; margin-bottom: 15px; }
    
    .timeline-item { padding-left: 35px; padding-bottom: 40px; }
    .timeline-content { padding: 20px; }
    .timeline-date { font-size: 0.8rem; padding: 3px 10px; }
    .timeline-content h3 { font-size: 1.1rem; }
    .institution { font-size: 0.9rem; }
    .edu-details p { font-size: 0.85rem; }
    
    .info-card { flex-direction: column; text-align: center; gap: 15px; padding: 20px 15px; }
    .info-icon { width: 45px; height: 45px; font-size: 1rem; }
    .info-text a, .info-text p { font-size: 1rem; }
    
    .social-icons { gap: 12px; }
    .social-btn { width: 42px; height: 42px; font-size: 1.1rem; }
    
    .contact-form-box { padding: 20px; }
    .contact-form-box input, .contact-form-box textarea { padding: 10px 12px; font-size: 0.9rem; }
    .send-btn { padding: 12px; font-size: 0.95rem; }
    
    .footer { padding: 40px 0 15px; margin-top: 40px; }
    .footer h3 { font-size: 1.3rem; }
    .footer p { font-size: 0.9rem; }
    .copyright { font-size: 0.8rem; padding-top: 15px; }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .navbar { width: 96%; padding: 8px 15px; top: 10px; }
    .logo-text { font-size: 1.2rem; }
    .theme-toggle { width: 36px; height: 36px; margin-left: 10px; }
    
    section { padding: 50px 0; }
    .section-title { font-size: 1.4rem; margin-bottom: 30px; }
    .section-title::after { width: 50px; height: 3px; }
    
    .hero.modern-hero { padding: 90px 0 50px; }
    .hero-title-modern { font-size: 1.5rem; }
    .hero-hello { font-size: 1rem; }
    .hero-name-gradient { font-size: 1.8rem; }
    .hero-bio-modern { font-size: 0.85rem; line-height: 1.5; }
    
    .availability-badge { font-size: 0.7rem; padding: 4px 12px; }
    .blink-dot { width: 6px; height: 6px; }
    
    .profile-img-glow { width: 200px; height: 200px; }
    .profile-img-glow img { width: 170px; height: 170px; border-width: 3px; }
    
    /* FIX: Restored Spinner */
    .spinner-border { 
        display: block; 
    }
    
    /* FIX: Restored Badges with adjustments */
    .profile-badge { 
        display: flex; /* restored */
        transform: scale(0.7); /* Smaller scale for mobile */
        padding: 4px 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    /* Adjust Badge Content size */
    .profile-badge .badge-icon { width: 24px; height: 24px; font-size: 0.7rem; }
    .profile-badge .badge-info strong { font-size: 0.75rem; }
    .profile-badge .badge-info span { font-size: 0.55rem; }
    
    /* Mobile specific positions to avoid blocking the face */
    .profile-badge-projects { top: -15px; left: -10px; }
    .profile-badge-year { bottom: 0px; left: -15px; }
    .profile-badge-skills { top: 20px; right: -15px; }
    
    .hero-badges { display: none; }
    
    .btn { padding: 10px 20px; font-size: 0.85rem; }
    
    .about-text h3 { font-size: 1.2rem; margin-bottom: 15px; }
    .about-text p { font-size: 0.85rem; margin-bottom: 15px; }
    .stat-box { padding: 12px; }
    .stat-box h4 { font-size: 1rem; }
    .stat-box p { font-size: 0.75rem; }
    
    .glass-card { padding: 18px; }
    
    .skill-header h3 { font-size: 1.1rem; }
    .skill-header .skill-icon { font-size: 1.3rem; }
    .skill-info { font-size: 0.8rem; }
    .progress-bar { height: 6px; }
    .badge { font-size: 0.7rem; padding: 4px 8px; }
    
    .service-number { font-size: 5rem; }
    .service-icon-box { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 15px; }
    .service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
    .service-card p { font-size: 0.85rem; margin-bottom: 20px; }
    .service-features { padding-top: 15px; }
    .service-features li { font-size: 0.8rem; margin-bottom: 8px; }
    
    .browser-bar { height: 25px; padding: 0 10px; }
    .browser-bar .dot { width: 8px; height: 8px; }
    .project-img-container { height: 160px; }
    .project-content { padding: 15px; }
    .project-category { font-size: 0.65rem; letter-spacing: 0.5px; }
    .project-content h3 { font-size: 1rem; margin-bottom: 8px; }
    .project-content p { font-size: 0.8rem; margin-bottom: 12px; line-height: 1.5; }
    .tech-stack { gap: 6px; }
    .tech-tag { font-size: 0.65rem; padding: 3px 8px; }
    .icon-btn { width: 40px; height: 40px; font-size: 1rem; }
    
    .timeline::before { width: 2px; left: 8px; }
    .timeline-dot { width: 16px; height: 16px; left: 0; border-width: 2px; }
    .timeline-item { padding-left: 30px; padding-bottom: 35px; }
    .timeline-content { padding: 15px; }
    .timeline-date { font-size: 0.75rem; }
    .timeline-content h3 { font-size: 1rem; margin-bottom: 5px; }
    .institution { font-size: 0.85rem; margin-bottom: 10px; padding-bottom: 8px; }
    .edu-details { margin-top: 10px; }
    .edu-badge { font-size: 0.7rem; padding: 3px 8px; margin-right: 5px; margin-bottom: 8px; }
    .edu-details p { font-size: 0.8rem; }
    
    .contact-info-col h3 { font-size: 1.4rem; }
    .contact-desc { font-size: 0.9rem; margin-bottom: 25px; }
    .info-card { padding: 15px; }
    .info-icon { width: 40px; height: 40px; font-size: 0.9rem; }
    .info-text span { font-size: 0.7rem; }
    .info-text a, .info-text p { font-size: 0.9rem; }
    .social-connect h4 { font-size: 0.9rem; margin-bottom: 12px; }
    .social-btn { width: 38px; height: 38px; font-size: 1rem; }
    
    .contact-form-box { padding: 15px; }
    .form-group { margin-bottom: 15px; }
    .form-group label { font-size: 0.8rem; margin-bottom: 6px; }
    .contact-form-box input, .contact-form-box textarea { padding: 10px; font-size: 0.85rem; }
    .contact-form-box textarea { min-height: 100px; }
    .send-btn { padding: 10px; font-size: 0.9rem; }
    
    .footer { padding: 35px 0 12px; margin-top: 35px; }
    .footer h3 { font-size: 1.2rem; margin-bottom: 10px; }
    .footer p { font-size: 0.85rem; }
    .footer-links h4 { font-size: 1rem; margin-bottom: 15px; }
    .footer-links a { font-size: 0.85rem; }
    .copyright { font-size: 0.75rem; }
    
    .back-to-top { width: 40px; height: 40px; bottom: 15px; right: 15px; font-size: 0.9rem; }
}

/* Ultra Small Screens (360px and below) */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .navbar { padding: 6px 12px; }
    .logo-text { font-size: 1.1rem; }
    
    .hero-title-modern { font-size: 1.3rem; }
    .hero-hello { font-size: 0.9rem; }
    .hero-name-gradient { font-size: 1.5rem; }
    .hero-bio-modern { font-size: 0.8rem; }
    
    .profile-img-glow { width: 180px; height: 180px; }
    .profile-img-glow img { width: 150px; height: 150px; }
    
    .section-title { font-size: 1.25rem; }
    
    .glass-card { padding: 15px; }
    
    .about-text h3 { font-size: 1.1rem; }
    .about-text p { font-size: 0.8rem; }
    
    .service-card h3, .project-content h3, .timeline-content h3 { font-size: 0.95rem; }
    
    .contact-info-col h3 { font-size: 1.2rem; }
}

/* ============================================
   13. RIGHT-SIDE OVERFLOW FIX & UTILITIES
   ============================================ */
html, body { 
    max-width: 100vw; 
    overflow-x: hidden !important; 
    position: relative; 
}
section { 
    max-width: 100%; 
    overflow-x: hidden !important; 
    position: relative; 
}
.navbar { 
    box-sizing: border-box; 
    max-width: 95%; 
}

/* Smooth scrolling for all devices */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .glass-card:hover { transform: none; }
    .btn:hover { transform: none; }
    .social-link-group a:hover { transform: none; }
    .profile-badge:hover { transform: none; }
    .nav-link:hover { background: transparent; }
    .nav-link.active { background: var(--primary); }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-img-glow img { image-rendering: -webkit-optimize-contrast; }
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero.modern-hero { min-height: auto; padding: 80px 0 40px; }
    .hero-main { flex-direction: row; gap: 2rem; }
    .hero-intro { text-align: left; align-items: flex-start; }
    .hero-profile-modern { display: none; }
    .scroll-down-btn { display: none; }
}

/* Print styles */
@media print {
    .navbar, .hamburger, .theme-toggle, .back-to-top, .scroll-down-btn { display: none !important; }
    body { background: white; color: black; }
    .glass-card { background: #f5f5f5; border: 1px solid #ddd; box-shadow: none; }
    section { padding: 30px 0; page-break-inside: avoid; }
}