/* ==========================================================================
   Dr. Uzira Azam Khan Portfolio - Modern Medical Aesthetic Stylesheet
   ========================================================================== */

/* --- CSS Root Variables --- */
:root {
    /* DEFAULT LIGHT THEME (Monochrome Blue & Slate) */
    --bg-dark: #f8fafc;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-mobile-nav: rgba(255, 255, 255, 0.95);
    --bg-header-scrolled: rgba(248, 250, 252, 0.85);
    
    --primary: #2563eb;          /* Royal Blue */
    --primary-glow: #1d4ed8;       /* Darker Blue */
    --primary-rgb: 37, 99, 235;
    
    --accent: #3b82f6;           /* Accent Blue */
    --accent-glow: #1d4ed8;
    --accent-rgb: 59, 130, 246;
    
    --border-color: #e2e8f0;
    --border-hover: #3b82f6;
    
    --text-main: #0f172a;        /* Slate 900 */
    --text-muted: #475569;       /* Slate 600 */
    --text-light: #64748b;       /* Slate 500 */
    
    /* Input Form Variables */
    --bg-input: #ffffff;
    --bg-input-focus: #ffffff;
    --bg-input-label: #ffffff;
    
    /* Typography */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Glows */
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.01);
    --shadow-header: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 4px 20px rgba(37, 99, 235, 0.15);
    --shadow-cyan: 0 4px 20px rgba(59, 130, 246, 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-theme {
    /* DARK THEME (Monochrome Dark Blue) */
    --bg-dark: #070c19;
    --bg-darker: #03060d;
    --bg-card: rgba(13, 22, 47, 0.65);
    --bg-card-hover: rgba(22, 34, 60, 0.85);
    --bg-mobile-nav: rgba(4, 7, 18, 0.95);
    --bg-header-scrolled: rgba(4, 7, 18, 0.85);
    
    --primary: #3b82f6;          /* Bright Blue */
    --primary-glow: #60a5fa;       /* Light Blue */
    --primary-rgb: 59, 130, 246;
    
    --accent: #60a5fa;
    --accent-glow: #93c5fd;
    --accent-rgb: 96, 165, 250;
    
    --border-color: rgba(59, 130, 246, 0.15);
    --border-hover: rgba(96, 165, 250, 0.45);
    
    --text-main: #f8fafc;        /* Slate 50 */
    --text-muted: #94a3b8;       /* Slate 400 */
    --text-light: #64748b;       /* Slate 500 */
    
    /* Input Form Variables */
    --bg-input: rgba(4, 7, 14, 0.5);
    --bg-input-focus: rgba(4, 7, 14, 0.8);
    --bg-input-label: #0a1023;   /* Matches dark card bg */
    
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-header: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);
    --shadow-cyan: 0 0 25px rgba(96, 165, 250, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    transition: background-color 0.4s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* --- Background Glow Effects --- */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.05;
    mix-blend-mode: normal;
    transition: var(--transition-smooth);
}

body.dark-theme .glow-orb {
    opacity: 0.12;
    mix-blend-mode: screen;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: orbFloat 25s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -10%;
    left: 5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: orbFloat 30s infinite alternate-reverse ease-in-out;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 12%) scale(1.15); }
}

/* --- Reusable Components & Layout utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.subheading {
    display: inline-block;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 4rem;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-secondary {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary);
    color: var(--primary-glow);
    transform: translateY(-3px);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.btn-block {
    width: 100%;
}

/* --- Header & Navigation Bar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--bg-header-scrolled);
    backdrop-filter: blur(12px);
    border-color: var(--border-color);
    box-shadow: var(--shadow-header);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
    padding: 0.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    animation: heartPulse 2s infinite ease-in-out;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--primary)); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1.05); }
    42% { transform: scale(1.22); filter: drop-shadow(0 0 4px var(--primary-glow)); }
    70% { transform: scale(1); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

.nav-btn {
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    color: var(--primary) !important;
}

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

.nav-btn:hover {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Theme Toggle Buttons styling */
.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary);
    transform: scale(1.08);
}

.theme-toggle-btn .sun-icon {
    display: none;
    width: 20px;
    height: 20px;
}

.theme-toggle-btn .moon-icon {
    display: block;
    width: 20px;
    height: 20px;
}

body.dark-theme .theme-toggle-btn .sun-icon {
    display: block;
    color: #eab308; /* Warm sun gold */
}

body.dark-theme .theme-toggle-btn .moon-icon {
    display: none;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-mobile-nav);
    backdrop-filter: blur(15px);
    z-index: 99;
    padding: 8rem 2rem 2rem;
    border-left: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.mobile-nav.active {
    right: 0;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.mobile-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge-accent {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(var(--primary-rgb), 0.05);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-card {
    border-left: 2px solid var(--border-color);
    padding-left: 1.25rem;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-left-color: var(--primary);
    transform: translateX(3px);
}

.stat-num {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Image Showcase Wrapper */
.image-wrapper {
    position: relative;
    width: 320px;
    height: 380px;
    border-radius: 24px;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.image-wrapper:hover .hero-img {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 28px;
    z-index: -1;
    animation: ringPulse 4s infinite linear;
}

@keyframes ringPulse {
    0% { transform: scale(0.98); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 0.4; }
    100% { transform: scale(0.98); opacity: 0.8; }
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    z-index: 2;
    min-width: 200px;
}

.floating-badge h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.floating-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 18px;
    height: 18px;
}

.badge-bottom {
    bottom: 10%;
    right: -15%;
}

.image-wrapper:hover .badge-bottom {
    transform: translate(10px, 5px) scale(1.05);
    border-color: var(--border-hover);
}

.animate-float {
    animation: float 6s infinite ease-in-out;
}

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

/* --- Biography & Qualifications Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-lead {
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.about-para {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.personal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 500;
}

/* Qualification Cards Side */
.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qualification-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-card);
}

.qualification-card:hover {
    transform: translateX(10px) translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.qualification-card .card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.qualification-card:hover .card-icon {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-content .card-year {
    display: inline-block;
    padding: 0.15rem 0.75rem;
    border-radius: 30px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.card-content .card-inst {
    font-size: 0.95rem;
    color: var(--primary-glow);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.card-content .card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Professional Posting Timeline --- */
.timeline-section {
    background: var(--bg-darker);
    transition: background-color 0.4s ease;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 3rem;
    z-index: 2;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 3px solid var(--primary);
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item.left .timeline-dot {
    right: -9px;
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.3);
}


.timeline-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-card);
    display: inline-block;
    width: 100%;
    max-width: 440px;
}

.timeline-item.left .timeline-card {
    float: right;
}

.timeline-item:hover .timeline-card {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 30px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.timeline-org {
    font-size: 0.95rem;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.timeline-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.timeline-item:hover .timeline-tag {
    color: var(--text-main);
}

/* --- Research & Publications Section --- */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.75rem;
    border-radius: 30px;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.pub-card {
    position: relative;
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pub-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.pub-badge {
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.pub-year {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.pub-authors {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pub-journal {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--primary-glow);
}

/* Background overlay sweep on card hover */
.pub-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: var(--transition-smooth);
}

.pub-card:hover .pub-glow {
    transform: scale(2);
}

/* --- Presentations & Awards Section --- */
.presentations-section {
    background: var(--bg-darker);
    transition: background-color 0.4s ease;
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.global-card {
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-card);
}

.global-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-cyan);
    background: var(--bg-card-hover);
}

.global-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    transition: var(--transition-smooth);
}

.global-card:hover .global-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.global-icon {
    width: 28px;
    height: 28px;
}

.global-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.global-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-glow);
    margin-bottom: 1rem;
}

.global-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Highlighted Award Card styling */
.award-card {
    border-color: rgba(234, 179, 8, 0.25);
    background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.05), transparent 60%), var(--bg-card);
}

.award-card:hover {
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.25);
}

.global-icon-wrapper.highlight {
    background: rgba(234, 179, 8, 0.1);
    color: #f59e0b;
    border-color: rgba(234, 179, 8, 0.2);
}

.award-card:hover .global-icon-wrapper.highlight {
    background: #f59e0b;
    color: #000000;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.award-card .global-meta {
    color: #f59e0b;
}

/* Local Trainings sub-section */
.trainings-container {
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
    margin-top: 2rem;
}

.trainings-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3rem;
    text-align: center;
}

.trainings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 4rem;
}

.training-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.training-number {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.25);
    line-height: 1;
    transition: var(--transition-smooth);
}

.training-item:hover .training-number {
    color: var(--primary);
}

.training-info h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    transition: var(--transition-smooth);
}

.training-item:hover .training-info h4 {
    color: var(--primary);
}

.training-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-info h3, .contact-form-wrapper h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.contact-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.c-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.c-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.c-detail-item:hover .c-icon {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.c-icon svg {
    width: 20px;
    height: 20px;
}

.c-text h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.c-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.c-text p a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.contact-form-wrapper:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    outline: none;
}

.form-group textarea {
    resize: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
    background: var(--bg-input-focus);
}

/* Floating Label Animation */
.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1.1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group textarea ~ label {
    top: 1.1rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-input-label);
    padding: 0 0.5rem;
    border-radius: 4px;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 0;
    transition: background-color 0.4s ease;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-info {
    max-width: 500px;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

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

.footer-links h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    text-align: center;
}

body.dark-theme .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    /* Hero */
    .hero-title {
        font-size: 3.25rem;
    }
    .hero-container {
        gap: 2rem;
    }
    .badge-bottom {
        right: -10%;
    }
    
    /* About */
    .about-grid {
        gap: 3rem;
    }
    
    /* Contact */
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .header-line {
        margin-bottom: 3rem;
    }

    /* Navigation Menu Toggle */
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hamburger to X Transformation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Stack */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
        padding-top: 4rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1; /* Image on top for mobile view */
        margin-bottom: 1.5rem;
    }
    
    .badge-bottom {
        right: -5%;
    }
    
    /* About Grid Stack */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    /* Timeline Single-Column Layout */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-dot {
        left: 11px !important;
        right: auto !important;
    }
    
    .timeline-card {
        float: none !important;
        max-width: 100%;
    }
    
    /* Global cards */
    .global-grid {
        grid-template-columns: 1fr;
    }
    
    /* Local training */
    .trainings-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact Stack */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 3rem;
    }
}

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

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stat-card {
        border-left: none;
        border-bottom: 2px solid var(--border-color);
        padding-left: 0;
        padding-bottom: 0.5rem;
        width: 150px;
    }
    
    .image-wrapper {
        width: 280px;
        height: 330px;
    }
    
    .floating-badge {
        display: none; /* Hide floating badges on very small phones to reduce clutter */
    }
    
    .about-lead {
        font-size: 1.45rem;
    }
    
    .personal-details-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CREDENTIALS / ACADEMIC PROFILE SECTION
   ========================================================================== */

.credentials-section {
    padding: 7rem 0;
    background: var(--bg-dark);
}

.credentials-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.credentials-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-family: var(--font-body);
}

.credentials-table thead tr {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--accent-rgb), 0.04) 100%);
    border-bottom: 2px solid var(--border-color);
}

.credentials-table th {
    padding: 1.1rem 1.5rem;
    text-align: left;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.credentials-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.25s ease;
}

.credentials-table tbody tr:last-child {
    border-bottom: none;
}

.credentials-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.credentials-table td {
    padding: 1.1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    vertical-align: middle;
}

.credentials-table td:first-child {
    font-weight: 700;
    color: var(--text-main);
    min-width: 120px;
}

.credentials-table td:last-child {
    font-weight: 700;
    color: var(--text-main);
    min-width: 70px;
    text-align: center;
}

.degree-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 30px;
    margin-left: 8px;
    letter-spacing: 0.05em;
    vertical-align: middle;
    text-transform: uppercase;
}

.degree-badge.postgrad {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.credentials-extra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cred-extra-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.cred-extra-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.cred-extra-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cred-extra-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
}

.cred-extra-content h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.cred-extra-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cred-extra-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 20px;
    padding: 0.18rem 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==========================================================================
   CONTACT SECTION — MODERN REDESIGN
   ========================================================================== */

.contact-card-modern {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.contact-info-modern {
    flex: 1;
    padding: 2.5rem 3rem;
}

.contact-field-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cf-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cf-row:last-child {
    border-bottom: none;
}

.cf-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 145px;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.cf-value {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cf-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cf-value a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.cf-whatsapp-tag {
    font-size: 0.78rem;
    color: #25d366;
    font-weight: 600;
    margin-left: 4px;
}

.contact-actions-modern {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.03), rgba(var(--primary-rgb), 0.06));
    border-left: 1px solid var(--border-color);
    min-width: 180px;
}

.btn-action-primary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-align: center;
}

.btn-action-primary:hover {
    background: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-action-secondary {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn-action-secondary:hover {
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-2px);
}

.contact-office-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.office-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.office-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.office-card .c-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-card .c-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
}

.office-card .c-text h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.office-card .c-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .credentials-table th,
    .credentials-table td {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
    }
    .credentials-extra { grid-template-columns: 1fr; }
    .contact-card-modern { flex-direction: column; }
    .contact-info-modern { padding: 2rem 1.5rem; }
    .contact-actions-modern {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 1.5rem;
        min-width: unset;
    }
    .btn-action-primary, .btn-action-secondary {
        width: auto;
        flex: 1;
        min-width: 130px;
    }
    .cf-label { min-width: 120px; font-size: 0.82rem; }
    .cf-value { font-size: 0.84rem; }
    .contact-office-info { grid-template-columns: 1fr; }
}
