/* ==========================================================================
   PORTFOLIO MASTER DESIGN SYSTEM & LIGHT/DARK THEME STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- Root Variables & Themes --- */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(31, 41, 55, 0.9);
    --bg-glass: rgba(17, 24, 39, 0.65);
    --border-glass: rgba(255, 255, 255, 0.12);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-blue: #0ea5e9;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    
    --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-glow: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    --gradient-aura: linear-gradient(135deg, #0ea5e9, #8b5cf6, #ec4899);

    --box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
    
    --navbar-bg: rgba(11, 15, 25, 0.85);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(0, 0, 0, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-blue: #0284c7;
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    
    --gradient-brand: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    --gradient-glow: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(79, 70, 229, 0.08));
    --gradient-card: linear-gradient(145deg, #ffffff, #f1f5f9);
    --gradient-aura: linear-gradient(135deg, #0284c7, #7c3aed, #f43f5e);
    
    --box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --glow-shadow: 0 0 20px rgba(2, 132, 199, 0.15);
    
    --navbar-bg: rgba(248, 250, 252, 0.85);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Common Styling */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: var(--gradient-glow);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-bar {
    width: 70px;
    height: 4px;
    background: var(--gradient-brand);
    margin: 0 auto;
    border-radius: var(--radius-full);
    position: relative;
}

.section-title-bar::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-amber);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-amber);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    color: var(--accent-blue);
}

.btn-outline {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 0.75rem;
    width: 100%;
    max-width: 1240px;
    overflow: hidden;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    box-shadow: var(--glow-shadow);
}

.brand-name span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-resume-btn {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.875rem !important;
    gap: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-resume-btn i {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme Switch Toggle Button */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-bounce);
    backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
    transform: rotate(30deg) scale(1.1);
    border-color: var(--accent-amber);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.mobile-toggler {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-glow);
}

.hero-backdrop {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.hero-backdrop.top-left {
    top: -100px;
    left: -100px;
    background: var(--accent-blue);
}

.hero-backdrop.bottom-right {
    bottom: -100px;
    right: -100px;
    background: var(--accent-purple);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--box-shadow);
    position: relative;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.wave-hand {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-name span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
}

.typing-text {
    color: var(--accent-cyan);
    border-right: 3px solid var(--accent-cyan);
    padding-right: 4px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-cyan); }
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-avatar-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px;
    perspective: 1200px;
}

/* Dot grid behind hero avatar */
.hero-avatar-grid-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: radial-gradient(rgba(14, 165, 233, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 35%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 70%);
}

/* Ambient glow */
.hero-avatar-box::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: var(--gradient-aura);
    filter: blur(35px);
    opacity: 0.5;
    z-index: 0;
    animation: heroAuraPulse 5s ease-in-out infinite alternate;
}

@keyframes heroAuraPulse {
    0% { transform: scale(0.92); opacity: 0.35; }
    100% { transform: scale(1.08); opacity: 0.65; }
}

/* Orbiting rings */
.hero-orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(14, 165, 233, 0.4);
    z-index: 1;
    pointer-events: none;
}

.hero-orbit-1 {
    width: 380px;
    height: 380px;
    animation: orbitSpin 18s linear infinite;
}

.hero-orbit-2 {
    width: 420px;
    height: 420px;
    border-color: rgba(139, 92, 246, 0.3);
    animation: orbitSpin 26s linear infinite reverse;
}

/* Gradient frame wrapper */
.hero-avatar-frame {
    position: relative;
    z-index: 2;
    padding: 5px;
    border-radius: 50%;
    background: var(--gradient-aura);
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    box-shadow:
        0 25px 55px rgba(14, 165, 233, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.hero-avatar-box:hover .hero-avatar-frame {
    transform: rotateY(6deg) rotateX(-4deg) translateY(-8px) scale(1.02);
    box-shadow:
        0 35px 70px rgba(14, 165, 233, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.avatar-wrapper {
    width: 340px;
    height: 340px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--bg-card);
    padding: 6px;
    animation: morph 8s ease-in-out infinite;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.avatar-wrapper::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    width: 24px;
    height: 24px;
    border-top: 3px solid var(--accent-cyan);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 6px 0 0 0;
    z-index: 4;
    opacity: 0.85;
}

.avatar-wrapper::after {
    content: '';
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-bottom: 3px solid var(--accent-purple);
    border-right: 3px solid var(--accent-purple);
    border-radius: 0 0 6px 0;
    z-index: 4;
    opacity: 0.85;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-avatar-box:hover .avatar-wrapper img {
    transform: scale(1.08);
}

/* Shine effect */
.hero-avatar-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.9s ease;
    z-index: 3;
    pointer-events: none;
}

.hero-avatar-box:hover .hero-avatar-shine {
    transform: translateX(100%);
}

/* Bottom gradient on hero image */
.hero-avatar-gradient {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to top,
        rgba(11, 15, 25, 0.5) 0%,
        transparent 45%
    );
    z-index: 2;
    pointer-events: none;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Role tag below avatar */
.hero-role-tag {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 0.55rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    transition: var(--transition-normal);
}

.hero-role-tag i {
    color: var(--accent-amber);
    font-size: 0.75rem;
}

.hero-avatar-box:hover .hero-role-tag {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
    transform: translateX(-50%) translateY(-4px);
}

.tech-badge {
    position: absolute;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
    z-index: 4;
    transition: var(--transition-normal);
}

.hero-avatar-box:hover .tech-badge {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
}

.tech-badge.badge-1 {
    top: 20px;
    left: -20px;
    animation-delay: 0s;
    border-left: 3px solid var(--accent-cyan);
}

.tech-badge.badge-2 {
    bottom: 30px;
    right: -20px;
    animation-delay: 2s;
    border-left: 3px solid var(--accent-purple);
}

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

/* ==========================================================================
   1. ULTRA-MODERN ABOUT IMAGE STYLING (NEW ENHANCEMENTS)
   ========================================================================== */
#about {
    background: radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 60%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
    align-items: center;
}

.about-img-container {
    position: relative;
    padding: 30px;
    perspective: 1200px;
}

/* Dot grid background */
.about-img-grid-bg {
    position: absolute;
    inset: 10px;
    border-radius: 32px;
    background-image: radial-gradient(rgba(14, 165, 233, 0.25) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Animated Ambient Glow Ring Behind Image */
.about-img-container::before {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 30px;
    background: var(--gradient-aura);
    filter: blur(30px);
    opacity: 0.5;
    z-index: 0;
    animation: pulseAura 6s ease-in-out infinite alternate;
}

/* Orbiting decorative rings */
.about-orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(14, 165, 233, 0.35);
    z-index: 1;
    pointer-events: none;
}

.about-orbit-1 {
    inset: -8px;
    animation: orbitSpin 20s linear infinite;
}

.about-orbit-2 {
    inset: -22px;
    border-color: rgba(139, 92, 246, 0.25);
    animation: orbitSpin 28s linear infinite reverse;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseAura {
    0% { transform: scale(0.96) rotate(0deg); opacity: 0.35; }
    100% { transform: scale(1.06) rotate(4deg); opacity: 0.65; }
}

/* Rotating gradient border frame with 3D tilt */
.about-img-frame {
    position: relative;
    z-index: 2;
    padding: 3px;
    border-radius: 32px;
    background: var(--gradient-aura);
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    box-shadow:
        0 25px 50px rgba(14, 165, 233, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.about-img-container:hover .about-img-frame {
    transform: rotateY(-4deg) rotateX(3deg) translateY(-6px);
    box-shadow:
        0 35px 70px rgba(14, 165, 233, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Modern glass card */
.about-img-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.about-img-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-top: 3px solid var(--accent-cyan);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 6px 0 0 0;
    z-index: 4;
    opacity: 0.8;
    transition: var(--transition-normal);
}

.about-img-card::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-bottom: 3px solid var(--accent-purple);
    border-right: 3px solid var(--accent-purple);
    border-radius: 0 0 6px 0;
    z-index: 4;
    opacity: 0.8;
    transition: var(--transition-normal);
}

.about-img-container:hover .about-img-card::before,
.about-img-container:hover .about-img-card::after {
    width: 40px;
    height: 40px;
    opacity: 1;
}

.about-img-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

/* Bottom gradient overlay */
.about-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 15, 25, 0.85) 0%,
        rgba(11, 15, 25, 0.3) 35%,
        transparent 60%
    );
    z-index: 2;
    pointer-events: none;
}

[data-theme="light"] .about-img-gradient {
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(15, 23, 42, 0.2) 35%,
        transparent 60%
    );
}

/* Glass name tag on image */
.about-name-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 4;
    padding: 1rem 1.25rem;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transform: translateY(8px);
    opacity: 0.92;
    transition: var(--transition-normal);
}

.about-img-container:hover .about-name-tag {
    transform: translateY(0);
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(14, 165, 233, 0.4);
}

.about-name-tag-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.about-name-tag-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Shine sweep on hover */
.about-img-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.9s ease;
    z-index: 3;
    pointer-events: none;
}

.about-img-container:hover .about-img-shine {
    transform: translateX(100%);
}

.about-img-container:hover .about-img-card img {
    transform: scale(1.08);
}

/* Ultra Modern Floating Badges on Photo */
.about-floating-chip {
    position: absolute;
    z-index: 4;
    padding: 0.5rem 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-primary);
    animation: chipFloat 5s ease-in-out infinite;
    white-space: nowrap;
}

.about-floating-chip i {
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.about-floating-chip.chip-top {
    top: 5px;
    left: -15px;
    animation-delay: 0s;
    border-left: 4px solid var(--accent-cyan);
}

.about-floating-chip.chip-bottom {
    bottom: 25px;
    right: -20px;
    animation-delay: 2.5s;
    border-left: 4px solid var(--accent-purple);
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

.experience-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    background: var(--gradient-brand);
    color: #ffffff;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    text-align: center;
    z-index: 5;
    animation: badgePop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
    line-height: 1.15;
}

@keyframes badgePop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.experience-badge h3 {
    font-size: 1.35rem;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

.experience-badge p {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.15rem 0 0;
    opacity: 0.95;
}

/* Available status indicator */
.about-status-dot {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-emerald);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.status-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.about-content h3 {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.35;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.2rem 0;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent-blue);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- QUALIFICATIONS / EDUCATION TIMELINE --- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--gradient-brand);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-icon {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--glow-shadow);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.timeline-year {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--gradient-glow);
    border: 1px solid var(--border-glass);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.timeline-grade {
    display: inline-block;
    background: var(--accent-amber);
    color: #000000;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- SKILLS SECTION --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.75rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.skill-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.skill-percent {
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--gradient-glow);
    color: var(--accent-blue);
    border: 1px solid var(--border-glass);
}

.skill-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 0.42, 0.85, 1);
}

/* --- PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-shadow);
}

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-glow);
    color: var(--accent-cyan);
    border: 1px solid var(--border-glass);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-footer {
    display: flex;
    gap: 1rem;
}

.project-footer .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   2. ULTRA-MODERN CERTIFICATES GALLERY (NEW ENHANCEMENTS)
   ========================================================================== */
#certificates {
    background: radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2.25rem;
}

.certificate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--box-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Staggered entrance animation */
.certificate-card:nth-child(1) { animation: certFadeIn 0.5s ease 0.1s both; }
.certificate-card:nth-child(2) { animation: certFadeIn 0.5s ease 0.2s both; }
.certificate-card:nth-child(3) { animation: certFadeIn 0.5s ease 0.3s both; }
.certificate-card:nth-child(4) { animation: certFadeIn 0.5s ease 0.4s both; }
.certificate-card:nth-child(5) { animation: certFadeIn 0.5s ease 0.5s both; }
.certificate-card:nth-child(6) { animation: certFadeIn 0.5s ease 0.6s both; }

@keyframes certFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    z-index: 3;
    pointer-events: none;
}

.certificate-card:hover::before {
    left: 140%;
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-amber);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.certificate-img-container {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
}

.certificate-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.certificate-card:hover .certificate-img-container img {
    transform: scale(1.1);
    filter: brightness(0.85);
}

/* Certificate Ribbon Tag */
.cert-ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-brand);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
}

.certificate-hover-icon {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

.certificate-hover-icon span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.certificate-card:hover .certificate-hover-icon {
    opacity: 1;
}

.cert-meta {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-card);
    transition: var(--transition-fast);
}

.certificate-card:hover .cert-meta {
    background: var(--bg-card-hover);
}

.cert-title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cert-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-glow);
    border: 1px solid var(--border-glass);
    color: var(--accent-amber);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.certificate-card:hover .cert-action-icon {
    background: var(--accent-amber);
    color: #000;
    transform: rotate(90deg);
}

/* ==========================================================================
   3. ULTRA-MODERN CONTACT SECTION & MAP IFRAME (NEW ENHANCEMENTS)
   ========================================================================== */
#contact {
    background: radial-gradient(ellipse at 50% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
}

.contact-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 2px solid var(--border-glass);
    background: var(--bg-card);
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    min-height: 480px;
}

.contact-card:hover {
    box-shadow: 0 25px 55px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Gradient glow border — same as map wrapper */
.contact-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: var(--transition-normal);
}

.contact-card:hover .contact-inner {
    border-color: rgba(14, 165, 233, 0.2);
    background: var(--bg-card-hover);
}

.contact-inner::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.contact-card:hover .form-group:focus-within .form-label {
    color: var(--accent-blue);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.08);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2), 0 4px 20px rgba(14, 165, 233, 0.12);
}

textarea.form-input {
    resize: vertical;
    min-height: 130px;
}

/* Modern Map Wrapper with padding & inner frame */
.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 2px solid var(--border-glass);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    background: var(--bg-card);
    min-height: 480px;
    transition: var(--transition-normal);
}

.map-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 440px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
}

.map-wrapper:hover {
    box-shadow: 0 25px 55px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Ambient Neon Glow Around Map */
.map-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.map-wrapper:hover::before {
    opacity: 1;
}

.map-container {
    width: 100%;
    height: 100%;
    flex: 1;
    position: relative;
    padding: 0.75rem;
    background: var(--bg-primary);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: calc(var(--radius-md) - 4px);
    transition: filter 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.map-wrapper:hover .map-container iframe {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}

/* Dark Mode Filter for Map iframe */
[data-theme="dark"] .map-container iframe {
    filter: grayscale(80%) invert(92%) hue-rotate(180deg) contrast(110%);
}

[data-theme="dark"] .map-wrapper:hover .map-container iframe {
    filter: grayscale(50%) invert(92%) hue-rotate(180deg) contrast(108%);
}

/* Light mode subtle map styling */
[data-theme="light"] .map-container iframe {
    filter: saturate(0.9) contrast(1.05);
}

/* Floating Location Badge on Map */
.map-location-card {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    animation: mapCardSlide 0.6s ease 0.2s both;
}

@keyframes mapCardSlide {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.map-pin-pulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--accent-blue);
    animation: pinPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pinPulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.map-location-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.map-location-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.map-cta-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    animation: mapCardSlide 0.6s ease 0.4s both;
}

/* --- FOOTER --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-bounce);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: #ffffff;
    border-color: transparent;
}

/* Platform-specific hover colors */
.social-facebook:hover {
    background: #1877F2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.45);
}

.social-youtube:hover {
    background: #FF0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.45);
}

.social-instagram:hover {
    background: linear-gradient(45deg, #e90595, #e90595, #e90595, #e90595, #e90595);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.45);
}

.social-linkedin:hover {
    background: #0A66C2;
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.45);
}

.social-github:hover {
    background: #24292f;
    box-shadow: 0 8px 25px rgba(36, 41, 47, 0.5);
}

[data-theme="light"] .social-github:hover {
    background: #1f2328;
    color: #ffffff;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- FLOATING WIDGETS --- */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition-bounce);
}

.float-btn:hover {
    transform: scale(1.15) translateY(-3px);
}

.whatsapp-float {
    background: #25d366;
}

.whatsapp-float:hover {
    background: #128C7E;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.chat-float {
    background: var(--gradient-brand);
}

/* --- AI CHATBOT MODAL --- */
.chat-window {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 360px;
    height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
}

.chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.chat-header {
    background: var(--gradient-brand);
    color: #ffffff;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-close {
    cursor: pointer;
    font-size: 1.3rem;
}

.chat-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.msg-bot {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-user {
    background: var(--gradient-brand);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- LIGHTBOX MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    background: var(--bg-card);
}

.modal-box img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}


/* --- RESPONSIVE MEDIA QUERIES --- */

/* Large tablets / small laptops — tighten gaps before overflow starts */
@media (max-width: 1100px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .brand-logo {
        font-size: 1.15rem;
    }

    .brand-logo img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

   .homemargin{
        margin-top: -20px;
    }
   

    /* Mobile & tablet: hero image pehle, text baad me */
    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-avatar-box {
        order: -1;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .hero-card {
        order: 1;
        padding: 2.5rem;
    }

    .timeline-container::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px !important;
        padding-right: 0 !important;
    }

    .timeline-icon {
        left: 5px !important;
    }

    .brand-name {
        display: none;
    }

    /* About section – tablet */
    .about-grid {
        gap: 2.5rem;
    }

    .about-img-container {
        max-width: 420px;
        margin: 0 auto;
        padding: 20px;
    }

    .about-img-card img {
        height: 400px;
    }

    .experience-badge {
        top: -8px;
        right: -4px;
        padding: 0.45rem 0.7rem;
        border-radius: 12px;
    }

    .experience-badge h3 {
        font-size: 1.15rem;
    }

    .experience-badge p {
        font-size: 0.55rem;
    }

    .about-floating-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.72rem;
    }

    .about-floating-chip.chip-top {
        left: 0;
        top: 0;
    }

    .about-floating-chip.chip-bottom {
        right: 0;
        bottom: 16px;
    }

    .about-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-content p {
        font-size: 0.98rem;
        text-align: center;
    }

    .about-stats {
        gap: 1rem;
    }

    .about-content .btn {
        display: flex;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        justify-content: center;
    }

    /* Mobile navigation — activated at 992px so navbar never overflows horizontally */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 2rem 1.5rem 3rem;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-top: 1px solid var(--border-glass);
        box-shadow: none;
        list-style: none;
    }

    .nav-links.active {
        transform: translateX(0);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    /* Prevent body scroll / layout shift when menu is open */
    body.menu-open {
        overflow: hidden;
        width: 100%;
    }

    .nav-resume-btn {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        gap: 0.4rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-resume-btn i {
        margin: 0 !important;
        line-height: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.15rem;
    }

    section {
        padding: 4.5rem 0;
    }

    .navbar .container {
        height: 75px;
    }

    .nav-links {
        top: 76px;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
    }

    /* Chatbot responsive - tablet (popup style) */
    .floating-widgets {
        bottom: 20px;
        right: 16px;
        gap: 10px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }

    .chat-window {
        bottom: 80px;
        right: 16px;
        width: min(340px, calc(100vw - 32px));
        height: min(450px, calc(100vh - 110px));
        height: min(450px, calc(100dvh - 110px));
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-name {
        font-size: 2.35rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .avatar-wrapper {
        width: 240px;
        height: 240px;
    }

    .hero-orbit-1 {
        width: 280px;
        height: 280px;
    }

    .hero-orbit-2 {
        width: 310px;
        height: 310px;
    }

    .hero-avatar-box {
        margin-top: 50px;
        padding: 16px;
    }

    .tech-badge.badge-1 {
        left: 0;
    }

    .tech-badge.badge-2 {
        right: 0;
        bottom: 20px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .contact-card {
        padding: 1rem;
        min-height: auto;
    }

    .contact-inner {
        padding: 1.25rem;
    }

    .about-img-container {
        max-width: 360px;
        padding: 16px;
    }

    .about-floating-chip.chip-top {
        left: 0;
        top: 0;
    }

    .about-floating-chip.chip-bottom {
        right: 0;
        bottom: 12px;
    }

    .about-img-card img {
        height: 340px;
    }

    .about-orbit-1 {
        inset: -4px;
    }

    .about-orbit-2 {
        inset: -12px;
    }

    .experience-badge {
        top: -6px;
        right: 0;
        padding: 0.4rem 0.6rem;
    }

    .experience-badge h3 {
        font-size: 1.05rem;
    }

    .experience-badge p {
        font-size: 0.5rem;
        letter-spacing: 0.3px;
    }

    .about-name-tag {
        bottom: 30px;
        left: 12px;
        right: 12px;
        padding: 0.75rem 1rem;
    }

    .about-name-tag-title {
        font-size: 1rem;
    }

    .about-name-tag-role {
        font-size: 0.72rem;
        display: none;
    }

    .about-status-dot {
        bottom: -5px;
        font-size: 0.72rem;
        padding: 0.35rem 0.9rem;
    }

    .about-content h3 {
        font-size: 1.35rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
        margin: 1.5rem 0;
    }

    .stat-item {
        padding: 0.9rem 0.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .map-wrapper {
        padding: 1rem;
        min-height: 340px;
    }

    .map-inner {
        min-height: 300px;
    }

    .map-container {
        padding: 0.5rem;
    }

    .map-container iframe {
        min-height: 280px;
    }

    .map-location-card {
        top: 10px;
        left: 10px;
        padding: 0.75rem 1rem;
        max-width: calc(100% - 20px);
    }

    .map-cta-btn {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        height: 75px;
        gap: 0.5rem;
    }

    .nav-links {
        top: 76px;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        padding: 1.5rem 1rem 2.5rem;
    }

    /* Chatbot responsive - mobile (popup, not full width) */
    .floating-widgets {
        bottom: 16px;
        right: 12px;
        gap: 8px;
    }

    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }

    .chat-window {
        bottom: 72px;
        right: 12px;
        left: auto;
        width: min(320px, calc(100vw - 24px));
        height: min(420px, calc(100vh - 100px));
        height: min(420px, calc(100dvh - 100px));
        max-height: calc(100vh - 90px);
        max-height: calc(100dvh - 90px);
        border-radius: var(--radius-lg);
        transform-origin: bottom right;
    }

    .chat-header {
        padding: 1rem 1.1rem;
    }

    .chat-title {
        font-size: 1rem;
    }

    .chat-body {
        padding: 1rem;
        gap: 0.85rem;
    }

    .msg-bubble {
        max-width: 85%;
        padding: 0.65rem 0.9rem;
        font-size: 0.875rem;
    }

    .chat-footer {
        padding: 0.75rem;
    }

    .chat-input {
        padding: 0.65rem 0.9rem;
        font-size: 0.875rem;
    }

    .chat-send-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .skills-grid,
    .projects-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo img {
        width: 60px;
        height: 60px;
    }

    .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .mobile-toggler {
        width: 40px;
        height: 40px;
        font-size: 1.35rem;
    }

    .nav-resume-btn {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.75rem !important;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-name {
        font-size: 1.9rem;
    }

    .hero-card {
        padding: 1.75rem 1.25rem;
    }

    .hero-greeting {
        font-size: 0.95rem;
    }

    .avatar-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-orbit-1 {
        width: 240px;
        height: 240px;
    }

    .hero-orbit-2 {
        width: 270px;
        height: 270px;
    }

    .tech-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.9rem;
    }

    .about-img-container {
        max-width: 300px;
        padding: 12px;
    }

    .about-img-card img {
        height: 280px;
    }

    .about-img-card {
        border-radius: 20px;
    }

    .about-img-frame {
        border-radius: 24px;
        padding: 3px;
    }

    .experience-badge {
        top: -4px;
        right: 2px;
        padding: 0.35rem 0.5rem;
        border-radius: 10px;
    }

    .experience-badge h3 {
        font-size: 0.95rem;
    }

    .experience-badge p {
        font-size: 0.45rem;
    }

    .about-floating-chip {
        padding: 0.3rem 0.55rem;
        font-size: 0.65rem;
        gap: 0.3rem;
    }

    .about-floating-chip i {
        font-size: 0.7rem;
    }

    .about-name-tag {
        padding: 0.6rem 0.8rem;
        border-radius: 12px;
    }

    .about-name-tag-title {
        font-size: 0.9rem;
    }

    .about-content h3 {
        font-size: 1.2rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .about-stats {
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem 0.35rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Resume button: icon perfectly centered on small screens */
    .nav-resume-btn {
        padding: 0 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        gap: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .nav-resume-btn span {
        display: none !important;
    }

    .nav-resume-btn i {
        font-size: 1rem !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        width: 1em;
        height: 1em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .about-img-container {
        max-width: 260px;
        padding: 10px;
    }

    .about-img-card img {
        height: 240px;
    }

    .experience-badge {
        padding: 0.3rem 0.45rem;
    }

    .experience-badge h3 {
        font-size: 0.85rem;
    }

    .experience-badge p {
        font-size: 0.4rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-resume-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        gap: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .nav-resume-btn span {
        display: none !important;
    }

    .nav-resume-btn i {
        font-size: 0.95rem !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .hero-name {
        font-size: 1.65rem;
    }

    /* Chatbot responsive - small phones (popup) */
    .floating-widgets {
        bottom: 12px;
        right: 10px;
    }

    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .chat-window {
        bottom: 66px;
        right: 10px;
        width: min(300px, calc(100vw - 20px));
        height: min(400px, calc(100vh - 90px));
        height: min(400px, calc(100dvh - 90px));
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
    }

    .chat-header {
        padding: 0.85rem 1rem;
    }

    .chat-title {
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .msg-bubble {
        max-width: 88%;
        font-size: 0.85rem;
    }

    .chat-body {
        padding: 0.85rem;
    }

    .chat-footer {
        padding: 0.65rem;
    }
}


/* Admin login link - ONLY mobile view */
.nav-admin-link {
    display: none !important;
}
.nav-admin-link a {
    color: var(--accent-blue) !important;
    font-weight: 600;
}
.nav-admin-link a i {
    margin-right: 0.35rem;
}
@media (max-width: 992px) {
    .nav-admin-link {
        display: list-item !important;
    }
}


/* Admin floating button - visible especially on mobile */
.admin-float {
    background: linear-gradient(135deg, #475569, #334155);
    display: none; /* hide by default on desktop */
}
.admin-float:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 30px rgba(99,102,241,0.45);
}
@media (max-width: 992px) {
    .admin-float {
        display: flex; /* only mobile */
    }
}

