/* Modern Academic Website Stylesheet - Dr. Varun Gupta */

:root {
  --primary: #002855;        /* UNG Deep Navy */
  --primary-hover: #001f42;
  --secondary: #0056b3;      /* Deep Accent Blue */
  --accent-gold: #c59b27;    /* Accent Gold */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Header & Navigation */
header {
  background-color: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand:hover {
  text-decoration: none;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 0.5rem;
  margin-left: 0.25rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.4rem;
}

nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

nav a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

nav a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Container */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Hero / Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-img-container {
  flex-shrink: 0;
  text-align: center;
}

.profile-img {
  width: 190px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.profile-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.profile-dept {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.pill {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

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

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

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

/* Sections & Cards */
.section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.badge-a-star {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-hbr {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.badge-a {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-award {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-grant {
  background-color: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.badge-info {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Publication List */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-color);
}

.pub-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

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

.pub-journal {
  font-size: 0.93rem;
  font-style: italic;
  color: var(--secondary);
}

/* Course Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.course-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.course-code {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Timeline / News List */
.timeline {
  list-style: none;
  border-left: 2px solid var(--primary);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  border: 2px solid var(--primary);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.timeline-content {
  font-size: 0.95rem;
}

/* CV Card Grid */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cv-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cv-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.cv-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.cv-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  padding: 2rem 0;
  font-size: 0.88rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.8rem;
  opacity: 0.75;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    height: auto;
    padding: 1rem;
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
    margin-top: 0.75rem;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .contact-pills, .action-buttons {
    justify-content: center;
  }
}
