:root {
    --primary: #ffffff;
    --secondary: #6366f1; /* Indigo */
    --accent: #10b981; /* Emerald */
    --text-main: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --bg-main: #ffffff;
    --bg-alt: #f4f4f5;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glow-primary: rgba(99, 102, 241, 0.12);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body:not(.light-mode) {
    --primary: #070709;
    --secondary: #818cf8; /* Light Indigo */
    --accent: #34d399; /* Light Emerald */
    --text-main: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --bg-main: #070709;
    --bg-alt: #0e0e12;
    --glass-bg: rgba(20, 25, 40, 0.4);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glow-primary: rgba(129, 140, 248, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 0;
}

/* Background Glowing Orbs for Glassmorphism Refraction */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    transition: var(--transition);
}
body::before {
    top: -15%; left: -10%; width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
    background: var(--secondary);
}
body::after {
    bottom: -15%; right: -10%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
    background: #a855f7; /* Purple */
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -0.03em; color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.gradient-text, .hero-title strong {
    background: linear-gradient(135deg, var(--secondary) 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 5%;
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.nav-left, .nav-right { flex: 1; display: flex; align-items: center; }
.nav-right { justify-content: flex-end; gap: 1rem; }
.nav-center { flex: 2; display: flex; justify-content: center; }

/* Profile Badge Left Nav */
.profile-badge { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #a855f7);
    color: white; font-weight: 800; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
}
.profile-info { display: flex; flex-direction: column; line-height: 1.2; }
.profile-name { font-weight: 700; font-size: 0.95rem; }
.profile-status { font-size: 0.75rem; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 0.25rem; }
.status-dot { width: 6px; height: 6px; background-color: var(--accent); border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }

/* Center Nav floating pill */
.nav-pill-menu { background: var(--bg-alt); border: 1px solid var(--glass-border); border-radius: 100px; padding: 0.3rem; display: flex; gap: 0.25rem; }
.nav-pill-menu a { padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); transition: var(--transition); }
.nav-pill-menu a.active, .nav-pill-menu a:hover { background: var(--primary); color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* Right Nav Actions */
.btn-connect { background: #09090b; color: #ffffff; padding: 0.6rem 1.3rem; border-radius: 100px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
body:not(.light-mode) .btn-connect { background: #ffffff; color: #09090b; }
.btn-connect:hover { transform: translateY(-1px); opacity: 0.9; }
.theme-toggle-btn { background: var(--bg-alt); border: 1px solid var(--glass-border); cursor: pointer; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: var(--transition); }
.theme-toggle-btn:hover { transform: scale(1.05); }

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.glass-panel:hover { border-color: rgba(99, 102, 241, 0.2); box-shadow: 0 16px 40px -15px var(--glow-primary); }
.tilt-card { will-change: transform; transition: transform 0.1s ease-out, border-color 0.3s; }

/* Sections General */
.section { padding: 100px 10%; position: relative; }
.dark-section { background-color: var(--bg-alt); }
.section-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; display: flex; align-items: center; justify-content: center;}
.section-badge { display: inline-block; padding: 0.3rem 0.8rem; background: var(--glow-primary); color: var(--secondary); font-weight: 600; border-radius: 100px; font-size: 0.8rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }

/* HERO FULL FRAME BACKGROUND */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left align */
    padding: 140px 10% 80px;
    min-height: 100vh;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1559839734-2b71ea197ec2?auto=format&fit=crop&w=1920&q=80'); /* Professional Doctor Background */
    background-size: cover;
    background-position: center 20%;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
    max-width: 700px;
}
.hero-header-pill {
    margin: 0 0 2rem 0;
    display: inline-flex; align-items: center; gap: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 0.9rem; font-weight: 600;
    color: white;
}
.hero-title {
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.1; font-weight: 900; margin-bottom: 1.5rem;
    color: white;
}
.hero-subtitle {
    font-size: 1.4rem; color: rgba(255,255,255,0.9);
    margin-bottom: 3rem; max-width: 600px;
}
.hero-actions { display: flex; gap: 1.5rem; justify-content: flex-start; }

.btn-hero-primary { background-color: var(--secondary); color: white; padding: 0.8rem 1.8rem; border-radius: 100px; font-size: 1rem; font-weight: 600; box-shadow: 0 10px 25px var(--glow-primary); display: flex; align-items: center; gap: 0.5rem; }
.btn-hero-primary:hover { transform: translateY(-2px); }
.btn-hero-secondary { background-color: rgba(255,255,255,0.1); backdrop-filter: blur(10px); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 0.8rem 1.8rem; border-radius: 100px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s;}
.btn-hero-secondary:hover { background-color: white; color: black; }

/* MASSIVE STATS WITH SHADOW BOXES */
.stats-section { padding: 80px 10%; background: var(--bg-alt); }
.stats-grid { 
    display: flex; justify-content: space-between; gap: 1.5rem; 
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1rem;
}
.stat-box {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--bg-main);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    flex: 1; min-width: 200px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-5px); }
.stat-number {
    font-size: 4rem; font-weight: 900;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem; line-height: 1; white-space: nowrap;
}
.stat-label { font-size: 1rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px;}

/* About & Skills */
.about-card { padding: 4rem; text-align: center; font-size: 1.25rem; line-height: 1.8; border-radius: var(--radius-lg); }
.about-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-image: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=1920&q=80'); 
    background-size: cover; background-position: center; opacity: 0.04; 
    z-index: 0; pointer-events: none;
}
body:not(.light-mode) .about-bg { opacity: 0.08; }
.text-center-card { text-align: center; max-width: 850px; margin: 0 auto; }

/* Skills Tabs */
.skills-tab-container { display: flex; flex-direction: column; gap: 2rem; }
.skills-tabs { display: flex; gap: 1rem; justify-content: center; }
.tab-btn { padding: 1rem 2rem; border: none; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 100px; font-size: 1rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all 0.3s; }
.tab-btn:hover { background: rgba(79, 70, 229, 0.1); color: var(--secondary); }
.tab-btn.active { background: var(--secondary); color: white; border-color: var(--secondary); box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }

/* Skills Panel */
.skills-panel { padding: 3rem; border-radius: var(--radius-lg); }
.skills-panel-header { text-align: center; margin-bottom: 3rem; }
.panel-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.panel-desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.skills-grid-bars { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-item { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-header { display: flex; justify-content: space-between; font-weight: 600; }
.skill-bar-bg { width: 100%; height: 12px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--accent)); border-radius: 100px; transform-origin: left; transform: scaleX(0); }
.skill-bar-fill.animate { animation: fillBar 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fillBar { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* EXPERIENCE - CENTERED & SCROLL SPY */
.experience-wrapper { padding-top: 2rem; position: relative; max-width: 800px; margin: 0 auto; }
.timeline-line { position: absolute; top: 2.5rem; bottom: 0; left: 2rem; width: 2px; background: var(--glass-border); transform-origin: top; }
.timeline-line-active { position: absolute; top: 2.5rem; left: 2rem; width: 2px; background: linear-gradient(to bottom, var(--secondary), var(--accent)); transition: height 0.3s ease; }

.exp-card {
    position: relative; padding: 2.5rem 2.5rem 2.5rem 4.5rem; border-radius: var(--radius-lg);
    opacity: 0.3; transform: scale(0.95); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2rem;
}
.exp-card.active-exp { opacity: 1; transform: scale(1); background: var(--glass-bg); box-shadow: 0 10px 30px var(--glow-primary); }

.timeline-dot {
    position: absolute; left: 1.35rem; top: 3.5rem; width: 24px; height: 24px; border-radius: 50%;
    background: var(--bg-main); border: 4px solid var(--glass-border); z-index: 10; transition: all 0.6s ease;
}
.exp-card.active-exp .timeline-dot { border-color: var(--secondary); background: var(--secondary); box-shadow: 0 0 15px var(--secondary); }
.exp-card.active-exp .timeline-dot::after { content: '✓'; color: white; font-size: 12px; font-weight: bold; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.exp-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--glass-border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.exp-logo-box, .exp-logo-img { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px var(--glow-primary); flex-shrink: 0; }
.exp-logo-box { background: linear-gradient(135deg, var(--secondary), #a855f7); color: white; font-weight: 800; font-size: 1.1rem; }
.exp-logo-img { object-fit: cover; background: white; border: 2px solid var(--border); }
.exp-title-block { display: flex; flex-direction: column; }
.exp-role { font-size: 1.4rem; font-weight: 800; }
.exp-company { font-size: 1rem; font-weight: 600; color: var(--secondary); }
.exp-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.exp-period { background: var(--bg-alt); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }
.exp-location { font-size: 0.8rem; color: var(--text-muted); }
.exp-desc { color: var(--text-secondary); font-size: 1.05rem; }

/* Custom Bullets for achievements */
.exp-achievements { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--glass-border); }
.achievements-list { list-style-type: none; padding-left: 0; color: var(--text-secondary); font-size: 0.95rem; display: flex; flex-direction: column; gap: 0.8rem; }
.achievements-list li { position: relative; padding-left: 1.5rem; line-height: 1.5; }
.achievements-list li::before {
    content: '→';
    position: absolute; left: 0; top: 0;
    color: var(--secondary);
    font-weight: 800;
}
.btn-toggle-achievements { background: none; border: none; color: var(--secondary); font-weight: 600; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.btn-toggle-achievements:hover { text-decoration: underline; }

/* CERTIFICATIONS & AWARDS (Attachment Exact Replicas) */
.certifications-block { margin-bottom: 5rem; }
.section-header-left { margin-bottom: 2.5rem; max-width: 700px; text-align: left; }
.section-title-medium { font-size: 2.2rem; margin-bottom: 0.75rem; font-weight: 800; }
.section-subtitle-small { color: var(--text-secondary); font-size: 1.1rem; }
.three-col-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }

/* Slider Container */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}
.slider-container {
    /* Fade out the sharp edges for a smooth glass-like blend */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    padding: 1rem 0; /* Add padding so hover shadows aren't completely masked */
}

.blog-scroll-wrapper {
    position: relative;
    padding: 1rem 0;
    width: 100%;
    overflow: hidden;
}
.slider-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-left 25s linear infinite;
    padding-left: 20px; /* Slight buffer for the mask */
}
.slider-track:hover {
    animation-play-state: paused;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.card-v2 {
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex; flex-direction: column;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    width: 440px;
    height: 300px;
    flex: 0 0 auto;
}
.card-v2:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.card-v2-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.icon-box-v2 {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.icon-box-cert { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-box-award { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.date-pill-v2 { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.gold-pill-v2 { background: rgba(245, 158, 11, 0.1); color: #d97706; padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.title-v2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3; position: relative; z-index: 2;}
.subtitle-v2 { font-size: 0.95rem; color: var(--secondary); font-weight: 600; margin-bottom: 1rem; position: relative; z-index: 2;}
.desc-v2 { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0; position: relative; z-index: 2;}

/* Hover Photo overlay */
.card-hover-photo {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.4s ease;
    z-index: 1;
}
.card-v2:hover .card-hover-photo { opacity: 0.15; }

/* Photo Gallery Slider Items */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 440px;
    height: 300px;
    flex: 0 0 auto;
}
.gallery-item-title {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 1.2rem; font-weight: 700;
}

/* Hide scrollbar for blog scroll snap container */
.blog-grid::-webkit-scrollbar { display: none; }
.blog-grid { -ms-overflow-style: none; scrollbar-width: none; }
.blog-grid:hover { animation-play-state: paused; }

/* Blogs */
/* Blog Section (Grid overrides handled in HTML style block for flex scroll) */
.blog-card { border-radius: var(--radius-lg); overflow: hidden; height: 100%; transition: transform 0.4s ease; display: flex; flex-direction: column; background: var(--bg-main); border: 1px solid var(--glass-border); width: 360px; height: 480px; flex: 0 0 auto; scroll-snap-align: start; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.blog-date { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.75rem; }
.blog-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.4; transition: color 0.3s ease; }
.blog-card:hover .blog-title { color: var(--secondary); }
.blog-excerpt { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* Service cards for slider */
.service-card { width: 440px; height: 300px; flex: 0 0 auto; text-align: center; padding: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.06);}
.service-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; transition: transform 0.4s;}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.service-card:hover .service-icon { transform: translateY(-8px) scale(1.1); }
.service-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }

/* Let's Connect / Contact */
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.contact-link { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 100px; color: var(--text-primary); font-weight: 700; transition: all 0.3s; }
.contact-link:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.contact-link.phone:hover { background: #10b981; color: white; border-color: #10b981; }
.contact-link.whatsapp:hover { background: #25d366; color: white; border-color: #25d366; }
.contact-link.linkedin:hover { background: #0077b5; color: white; border-color: #0077b5; }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-main); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); width: 90%; max-width: 1000px;
    max-height: 90vh; overflow-y: auto; padding: 0;
    transform: translateY(20px); transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); position: relative;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; width: 45px; height: 45px;
    border-radius: 50%; background: var(--bg-alt); color: var(--text-primary);
    border: 2px solid var(--glass-border); cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; z-index: 1010; transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.modal-close:hover { background: var(--secondary); color: white; border-color: var(--secondary); transform: scale(1.1); }
.modal-img { width: 100%; height: 350px; object-fit: cover; }
.modal-body { padding: 3rem; }
.modal-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal-date { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 2rem; }
.modal-text { color: var(--text-secondary); line-height: 1.8; font-size: 1.05rem; }
.btn-share { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--glass-bg); color: var(--text-primary); border: 1px solid var(--glass-border); padding: 0.75rem 1.25rem; border-radius: 100px; font-weight: 700; cursor: pointer; transition: all 0.3s; font-size: 1.1rem;}
.btn-share.fb:hover { background: #1877F2; color: white; border-color: #1877F2; }
.btn-share.msgr:hover { background: #00B2FF; color: white; border-color: #00B2FF; }
.btn-share.wa:hover { background: #25D366; color: white; border-color: #25D366; }
.btn-share.ig:hover { background: #E1306C; color: white; border-color: #E1306C; }
.btn-share.link:hover { background: var(--text-primary); color: var(--bg-main); border-color: var(--text-primary); }
.btn-share.twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.btn-share.linkedin:hover { background: #0077b5; color: white; border-color: #0077b5; }

/* Let's Connect / Contact Background */
.contact-section {
    background: linear-gradient(rgba(243, 244, 246, 0.9), rgba(243, 244, 246, 0.9)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat fixed;
}

/* Footer */
footer { text-align: center; padding: 4rem 2rem; color: var(--text-muted); font-size: 0.95rem; border-top: 1px solid var(--glass-border); }

/* Highlight Drawn Text */
.highlight-drawn, .about-card p strong {
    color: var(--secondary);
    font-weight: 800;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}
.highlight-drawn::after, .about-card p strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q 50 10 100 0' stroke='%234F46E5' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
}

.reveal.active .highlight-drawn::after, .reveal.active .about-card p strong::after {
    animation: drawHighlightLine 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes drawHighlightLine {
    to { transform: scaleX(1); }
}
.admin-link { font-size: 0.85rem; opacity: 0.6; margin-top: 15px; display: inline-block; }
.admin-link:hover { opacity: 1; color: var(--secondary); }

/* Animations & Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
.hero-animate-up { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-animate-in { opacity: 0; animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }

/* Responsive layout */
@media (max-width: 900px) {
    .navbar { padding: 0.75rem 5%; }
    .nav-container { flex-wrap: wrap; gap: 0.75rem; }
    .nav-left, .nav-right { flex: 1 1 0; }
    .nav-center { order: 3; flex: 0 0 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .nav-center::-webkit-scrollbar { display: none; }
    .nav-pill-menu { width: max-content; }

    .section { padding: 80px 6%; }
    .stats-section { padding: 64px 6%; }
    .hero { padding: 120px 8% 72px; background-attachment: scroll; }
    .hero-content-wrapper { max-width: 620px; }
    .hero-title { font-size: clamp(42px, 8vw, 64px); }
    .hero-subtitle { font-size: 1.2rem; }

    .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .stat-box { min-width: 0; padding: 2rem 1rem; }
    .stat-number { font-size: clamp(2.6rem, 7vw, 3.5rem); }

    .about-card { padding: 2.5rem; font-size: 1.1rem; }
    .three-col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-v2, .gallery-item, .service-card { width: 360px; }
}

@media (max-width: 640px) {
    body::before, body::after { filter: blur(90px); }
    .navbar { padding: 0.65rem 1rem; }
    .profile-status { display: none; }
    .profile-name { font-size: 0.85rem; }
    .btn-connect { padding: 0.6rem 0.9rem; font-size: 0.8rem; }
    .theme-toggle-btn { width: 36px; height: 36px; }
    .nav-pill-menu a { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

    .section, .stats-section { padding: 64px 1.25rem; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 1.9rem; line-height: 1.2; }
    .section-title-medium { font-size: 1.75rem; }
    .section-subtitle-small { font-size: 1rem; }

    .hero { min-height: auto; padding: 88px 1.5rem 64px; background-position: 65% center; }
    .hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.45)); }
    .hero-header-pill { margin-bottom: 1.5rem; padding: 0.45rem 0.8rem; font-size: 0.78rem; gap: 0.45rem; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 3.6rem); margin-bottom: 1rem; }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: 2rem; }
    .hero-actions { width: 100%; flex-direction: column; gap: 0.75rem; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; padding: 0.9rem 1rem; }

    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .stat-box { padding: 1.5rem 1rem; }
    .stat-label { font-size: 0.85rem; }

    .about-card, .skills-panel { padding: 1.5rem; }
    .about-card { font-size: 1rem; line-height: 1.7; }
    .skills-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.25rem; }
    .tab-btn { white-space: nowrap; padding: 0.8rem 1rem; font-size: 0.88rem; }
    .panel-title { font-size: 1.5rem; }
    .skills-panel-header { margin-bottom: 2rem; }

    .experience-wrapper { padding-top: 0; }
    .timeline-line, .timeline-line-active { left: 0.85rem; }
    .timeline-dot { left: 0.2rem; top: 2rem; width: 20px; height: 20px; border-width: 3px; }
    .exp-card { padding: 1.5rem 1rem 1.5rem 2.5rem; margin-bottom: 1.25rem; }
    .exp-header { align-items: flex-start; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; }
    .exp-role { font-size: 1.15rem; }
    .exp-meta { align-items: flex-start; }

    .three-col-grid { grid-template-columns: 1fr; }
    .card-v2, .gallery-item, .service-card { width: min(78vw, 300px); height: 280px; }
    .slider-track { gap: 1rem; animation-duration: 12s; }
    .blog-card { width: min(78vw, 300px); height: 440px; }
    .blog-card img { height: 175px !important; }
    .blog-title { font-size: 1.2rem; }
    .blog-excerpt { font-size: 0.92rem; }

    .contact-links { flex-direction: column; gap: 0.75rem; }
    .contact-link { justify-content: center; padding: 0.9rem 1rem; }
    footer { padding: 2.5rem 1.25rem; }

    .blog-scroll-wrapper { margin-inline: -0.25rem; width: calc(100% + 0.5rem); }
    .blog-card { width: min(84vw, 320px); height: auto; min-height: 390px; }
    .blog-card > div:last-child { padding: 1.25rem !important; }
    .blog-card img { height: 170px !important; }

    .modal-overlay { padding: 0.75rem; }
    .modal-content { width: 100%; max-height: 94vh; }
    .modal-img { height: 180px; }
    .modal-body { padding: 1.5rem; }
    .modal-close { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; font-size: 1.2rem; }
    .modal-title { font-size: 1.5rem; line-height: 1.25; }
    .modal-date { margin-bottom: 1rem; font-size: 0.78rem; }
    .modal-text { font-size: 0.98rem; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
    .slider-track { animation-play-state: paused; }
}
