/* Academic Portfolio Theme & Stylesheet - Bompelly Pranitha */
/* MOBILE-FIRST, PROPORTIONALLY SCALED & PREMIUM EMERALD & GOLD DESIGN */

/* ---------------------------------------------------- */
/* 1. Design System & Reinvented Coloring Philosophy    */
/* ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Reinvented LIGHT Theme (Prestigious Sage & Bronze Gold) */
  --bg-base: #f4f6f5;
  --bg-surface: #ffffff;
  --bg-surface-hover: #eaf0ed;
  --bg-accent-low: #e6f4ee;
  --border-color: #cbdad4;
  
  --text-main: #0b1f19;       /* Deep Forest Charcoal */
  --text-muted: #435b54;      /* Muted Sage */
  --text-inverse: #ffffff;
  
  /* Accents */
  --accent-primary: #059669;   /* Emerald Green */
  --accent-secondary: #c27803; /* Antique Bronze Gold */
  --accent-tertiary: #0891b2;  /* Scholar Teal */
  --accent-warning: #d97706;   /* Amber */
  --accent-success: #10b981;   /* Mint Emerald */
  
  /* Shadow & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(11, 31, 25, 0.04);
  --shadow-md: 0 8px 16px rgba(11, 31, 25, 0.06), 0 2px 4px rgba(11, 31, 25, 0.04);
  --shadow-lg: 0 16px 32px rgba(11, 31, 25, 0.08), 0 4px 8px rgba(11, 31, 25, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(203, 218, 212, 0.4);
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Lora', serif;
  
  --sidebar-width: 290px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Reinvented DARK Theme (Midnight Obsidian Emerald & Glowing Gold) */
  --bg-base: #040807;          /* Obsidian Deep Green-Black */
  --bg-surface: #0a110e;       /* Deep Forest Velvet */
  --bg-surface-hover: #121c17; /* Lighter Spruce */
  --bg-accent-low: #0a291e;    /* Subdued Emerald Chamber */
  --border-color: #152820;     /* Spruce Borders */
  
  --text-main: #f0f7f4;        /* Pearl Mint */
  --text-muted: #91a89f;       /* Dusty Sage */
  --text-inverse: #040807;
  
  /* Accents */
  --accent-primary: #10b981;   /* Vibrant Emerald */
  --accent-secondary: #fbbf24; /* Radiant Antique Gold */
  --accent-tertiary: #2dd4bf;  /* Cyber Teal */
  --accent-warning: #fbbf24;
  --accent-success: #34d399;
  
  /* Shadow & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.05);
  --glass-bg: rgba(10, 17, 14, 0.75);
  --glass-border: rgba(21, 40, 32, 0.5);
}

/* ---------------------------------------------------- */
/* 2. Global Resets & Typography                        */
/* ---------------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 1.2vw + 10px, 17px);
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
}

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

a:hover {
  color: var(--accent-secondary);
}

/* ---------------------------------------------------- */
/* 3. Base Layout & Structure                           */
/* ---------------------------------------------------- */

#app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* Sidebar Drawer - Mobile First */
aside.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem;
  z-index: 1000;
  overflow-y: auto;
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

aside.sidebar.mobile-open {
  transform: translateX(0);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: flex;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.mobile-nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* Content Panel - Mobile First */
main.content-area {
  flex: 1;
  margin-left: 0;
  padding: 2rem 1.25rem;
  width: 100%;
  max-width: 100%;
}

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 45px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* ---------------------------------------------------- */
/* 4. Navigation & Sidebar Details                      */
/* ---------------------------------------------------- */

.sidebar-profile {
  text-align: center;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}

.profile-title {
  font-size: 0.75rem;
  color: var(--accent-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.profile-dept {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

.sidebar-nav {
  margin-bottom: 2rem;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.4rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover, 
.sidebar-nav a.active {
  background-color: var(--bg-accent-low);
  color: var(--accent-primary);
  font-weight: 600;
}

.sidebar-nav a svg {
  width: 18px;
  height: 18px;
}

.theme-toggle-container {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.toggle-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  border-radius: 34px;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 2;
}

input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

input:checked + .switch-slider::before {
  transform: translateX(24px);
}

.switch-slider svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

/* ---------------------------------------------------- */
/* 5. Custom Button & Card Designs                      */
/* ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #0d9488);
  color: var(--text-inverse);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-accent-low);
  transform: translateY(-1.5px);
}

/* Glassmorphic Premium Card */
.card {
  background-color: var(--bg-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--glass-border);
}

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

/* ---------------------------------------------------- */
/* 6. Section Specific Styling                          */
/* ---------------------------------------------------- */

/* A. Hero Section (Split Layout) */
.hero-container {
  padding: 2rem 0;
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-scholar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-accent-low);
  color: var(--accent-primary);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  width: max-content;
  border: 1px solid rgba(16, 185, 129, 0.15);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-name-heading {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-secondary);
  line-height: 1.45;
}

.hero-bio-short {
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.social-icon-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2.5px);
  background-color: var(--bg-accent-low);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.1);
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Portrait Card Frame Design */
.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border-color);
  position: relative;
  z-index: 6;
}

.hero-frame-decorator-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-secondary);
  top: 15px;
  left: 15px;
  z-index: 1;
  opacity: 0.6;
}

.hero-frame-decorator-2 {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  bottom: -15px;
  left: -15px;
  border-radius: 50%;
  z-index: 2;
  filter: blur(15px);
  opacity: 0.4;
}

/* B. About Section */
.bio-paragraph {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.interests-container {
  margin-top: 1.75rem;
}

.interests-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-secondary);
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.interest-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.interest-pill:hover {
  background-color: var(--bg-accent-low);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1.5px);
}

/* C. NPTEL Highlight Section */
.nptel-card-container {
  margin-top: 1.5rem;
}

.nptel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.nptel-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nptel-course-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.nptel-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nptel-meta-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nptel-meta-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.nptel-scores-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.gauge-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
}

.radial-progress-svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.radial-progress-svg circle {
  fill: none;
  stroke-width: 8;
}

.radial-progress-svg circle.bg-ring {
  stroke: var(--border-color);
}

.radial-progress-svg circle.progress-ring {
  stroke-linecap: round;
  stroke-dasharray: 251.2; 
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-percentage {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gauge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 105px;
  line-height: 1.3;
}

/* D. Interactive Timeline Section */
.timeline-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background-color: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.timeline-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

.timeline-search-box input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.timeline-search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.timeline-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.tab-btn {
  padding: 0.45rem 1rem;
  background-color: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--accent-primary);
  background-color: var(--bg-surface-hover);
}

.tab-btn.active {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
}

.vertical-timeline {
  position: relative;
  padding: 0.5rem 0;
}

.vertical-timeline::before {
  content: '';
  position: absolute;
  left: 15px; 
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-phase-divider {
  position: relative;
  margin: 2.25rem 0 1rem 0;
  padding-left: 35px;
}

.timeline-phase-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-secondary);
  background-color: var(--bg-base);
  display: inline-block;
  padding-right: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 35px;
  margin-bottom: 1.25rem;
  display: none;
}

.timeline-item.visible {
  display: block;
}

.timeline-node {
  position: absolute;
  left: 15px; 
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 3px solid var(--border-color);
  z-index: 10;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.timeline-item.expanded .timeline-node {
  background-color: var(--accent-primary);
  border-color: var(--bg-accent-low);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-card {
  cursor: pointer;
}

.timeline-card-header {
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  gap: 0.4rem;
}

.timeline-date-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  background-color: var(--bg-accent-low);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  align-self: flex-start;
}

.timeline-program-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.timeline-type-pill {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.timeline-type-pill.fdp { background-color: rgba(16, 185, 129, 0.15); color: var(--accent-primary); }
.timeline-type-pill.webinar { background-color: rgba(8, 145, 178, 0.15); color: var(--accent-tertiary); }
.timeline-type-pill.workshop { background-color: rgba(194, 120, 3, 0.15); color: var(--accent-secondary); }
.timeline-type-pill.certification { background-color: rgba(217, 119, 6, 0.15); color: #d97706; }

.timeline-organizer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.focus-tag {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.timeline-expander-arrow {
  display: none; /* Controlled on min-width 768px */
}

.timeline-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal);
  padding: 0;
}

.timeline-item.expanded .timeline-card-details {
  max-height: 400px;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.75rem;
}

.timeline-details-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* E. Technical Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.skill-category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-badge {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  background-color: var(--bg-accent-low);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}

/* F. Stats Section */
.stats-number-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-accent-low);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
}

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

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

/* G. Growth Narrative Section */
.narrative-block {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-secondary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.narrative-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* H. Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.contact-method-icon {
  width: 36px;
  height: 36px;
  background-color: var(--bg-accent-low);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 16px;
  height: 16px;
}

.contact-method-details h4 {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.contact-method-details p,
.contact-method-details a {
  font-size: 0.8rem;
}

.footer-nav {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

/* ---------------------------------------------------- */
/* 8. Proportional Media Queries (Min-Width scaling)    */
/* ---------------------------------------------------- */

/* Tablet Breakpoint (min-width: 768px) */
@media (min-width: 768px) {
  main.content-area {
    padding: 3rem 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  /* Hero grid */
  .hero-layout-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 3.5rem;
  }

  .nptel-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }
  
  .nptel-scores-col {
    flex-direction: row;
    justify-content: space-around;
  }

  .timeline-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
  }

  .timeline-search-box {
    width: 250px;
  }
  
  .timeline-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .timeline-expander-arrow {
    display: block;
    margin-left: auto;
    align-self: center;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
  }

  .timeline-item.expanded .timeline-expander-arrow {
    transform: rotate(180deg);
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .stats-number-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-charts-row {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
  
  .vertical-timeline::before {
    left: 20px;
  }
  
  .timeline-phase-divider {
    padding-left: 45px;
  }
  
  .timeline-item {
    padding-left: 45px;
  }
  
  .timeline-node {
    left: 20px;
    width: 20px;
    height: 20px;
  }
}

/* Desktop Breakpoint (min-width: 1024px) */
@media (min-width: 1024px) {
  #app-container {
    flex-direction: row;
  }

  aside.sidebar {
    transform: translateX(0); /* Anchored permanently */
    box-shadow: none;
    z-index: 100;
  }

  .mobile-nav-toggle {
    display: none; 
  }

  main.content-area {
    margin-left: var(--sidebar-width);
    padding: 4rem 5rem;
    width: calc(100% - var(--sidebar-width));
    max-width: 1200px;
  }

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

/* ==================================================== */
/* 9. Connection Forms, Modals, & Overlays             */
/* ==================================================== */

/* Academic directory ribbon (Hero Section) */
.academic-links-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stacked on Mobile */
  gap: 0.75rem;
  margin-top: 1rem;
}

.academic-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.academic-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  background-color: var(--bg-accent-low);
  box-shadow: var(--shadow-md);
}

.academic-link-card svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.link-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0; /* Prevents overflow */
}

.link-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}

.link-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact academic grid */
.contact-academic-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stacked on Mobile */
  gap: 0.75rem;
}

.academic-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.academic-contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  background-color: var(--bg-accent-low);
}

.academic-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-item-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.contact-item-info strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-main);
}

.contact-item-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Floating Action Overlays */
.floating-contact-overlays {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.whatsapp-float {
  background-color: #25D366;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
}

.email-float {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.floating-tooltip {
  visibility: hidden;
  position: absolute;
  right: 125%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.floating-btn:hover .floating-tooltip {
  visibility: visible;
  opacity: 0.95;
}

/* Contact Modal Easing */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 8, 7, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1rem;
}

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

.modal-content {
  width: 100%;
  max-width: 580px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  max-height: 90vh;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent-primary);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--bg-accent-low);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
}

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

/* Forms layout */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background-color: var(--bg-surface);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  margin-top: 0.5rem;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* ---------------------------------------------------- */
/* Media scaling query extensions                      */
/* ---------------------------------------------------- */
@media (min-width: 768px) {
  .academic-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .contact-academic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form-group-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .modal-content {
    padding: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .academic-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Articles page styling */
.article-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.article-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

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

.article-excerpt {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.read-more {
  margin-top: 0.5rem;
}

/* No Sidebar Layout Override */
.no-sidebar {
  margin-left: 0 !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
}
