:root {
  /* Color Palette */
  --bg-color: #020617; /* Deep Navy Space */
  --surface-color: rgba(15, 23, 42, 0.7); /* Slate 800 glassmorphism */
  --surface-border: rgba(255, 255, 255, 0.15); /* More visible borders */
  --primary-color: #2563eb; /* Vibrant Royal Blue for contrast */
  --primary-hover: #1d4ed8; /* Slightly darker hover */
  --accent-color: #cbd5e1; /* Platinum Silver */
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1; /* Platinum Silver */
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --container-max: 1200px;
  --nav-height: 80px;
  
  /* Border Radius */
  --br-lg: 16px;
  --br-md: 8px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  background-image: url('../images/main_bg.png?v=3');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(2, 6, 23, 0.88); /* Midnight navy space overlay */
  backdrop-filter: blur(4px); /* Blur the background to reduce interference */
  z-index: -2;
  pointer-events: none;
}

/* Background elements for depth */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(2, 6, 23, 0) 70%);
  top: -100px;
  left: -200px;
  z-index: -1;
  pointer-events: none;
}

.bg-glow.right {
  top: 40%;
  right: -200px;
  left: auto;
  background: radial-gradient(circle, rgba(226, 232, 240, 0.06) 0%, rgba(2, 6, 23, 0) 70%);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--br-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-brand:hover {
  transform: scale(1.02);
}

.nav-brand span {
  color: inherit;
}

.nav-brand .brand-highlight {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Centered Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 60px); /* Pushed down to prevent touching navbar */
  position: relative;
}

.hero-content-centered {
  display: flex;
  flex-direction: row-reverse; /* Image on right, text on left */
  align-items: center;
  justify-content: space-between;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-text-centered {
  flex: 1;
}

/* Profile Image with Glow */
.profile-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  z-index: 1;
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.8) 0%, rgba(59, 130, 246, 0.6) 40%, rgba(15, 23, 42, 0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 3s infinite alternate;
  filter: blur(15px);
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.profile-card-image {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.6);
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), inset 0 0 20px rgba(0, 212, 255, 0.4);
  backdrop-filter: blur(5px);
}

.profile-card-image img {
  width: 220px; /* Larger size for PC */
  height: auto;
  border-radius: 18px;
  display: block;
}

/* Typography */
.greeting {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.name-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Left align on desktop */
  gap: 15px;
  margin-bottom: 1.5rem;
}

.separator .line {
  width: 40px;
  height: 1px;
  background: rgba(59, 130, 246, 0.5);
}

.separator .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color);
}

.role-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.3;
}

.typing-highlight {
  color: #FFD700; /* Bright Gold for high contrast */
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 0 3rem 0; /* Left align on desktop */
  line-height: 1.6;
}

/* Buttons for Hero */
.hero-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0; /* Left align on desktop */
}

.btn-whatsapp, .btn-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-whatsapp {
  background: linear-gradient(90deg, #0f766e, #22c55e); /* Emerald to green */
  color: white;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.55);
}

.btn-call {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0.7) 100%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.btn-call:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-icon, .btn-arrow {
  width: 20px;
  height: 20px;
}

.btn-arrow {
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.btn-whatsapp:hover .btn-arrow, .btn-call:hover .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  animation: bounce 2s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.about-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--br-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.faculty-profile-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-height: 350px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  display: block;
}

.info-list li {
  display: flex;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 0.8rem;
}

.info-list span:first-child {
  font-weight: 600;
  width: 130px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.info-list span:last-child {
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.skills {
  margin-top: 2rem;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Resume Section */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.resume-column h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 2px solid var(--surface-border);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
}

.timeline-date {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.timeline-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline-item p, .timeline-item ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-item ul {
  padding-left: 1rem;
  list-style: disc;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem; /* Increased spacing for layout breathing room */
}

.project-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--br-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: var(--primary-color);
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--surface-border);
}

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

.project-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* Stats Section */
.stats-section {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--br-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast);
  max-width: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-card p, .contact-card a {
  color: var(--text-secondary);
  word-break: break-word;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--surface-border);
  color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-content-centered {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
  }
  
  .description {
    margin: 0 auto 2rem;
    padding: 0 10px;
  }
  
  .separator {
    justify-content: center;
  }
  
  .hero-actions-vertical {
    margin: 0 auto;
    max-width: 100%;
  }

  .about-grid, .resume-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-wrapper {
    align-self: center;
    margin-bottom: 2rem;
  }
  
  .profile-card-image img {
    width: 220px; /* Large size restored */
  }
  
  .hero-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text p {
    margin: 0 auto 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  
  section {
    padding: 50px 0; /* Reduced padding on mobile to fix uneven/large gaps */
  }
  
  .projects-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }

  h2.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.75rem;
  }
  
  .nav-brand {
    font-size: 1rem;
  }
  
  .nav-logo-img {
    height: 32px;
  }
  
  .name-title {
    font-size: 2.2rem; /* Larger and bolder title as requested */
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
  
  .role-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .greeting {
    font-size: 1rem;
  }
  
  .description {
    font-size: 0.95rem;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 0.85rem;
  }
  .nav-logo-img {
    height: 26px;
  }
  .nav-logo-container {
    gap: 6px;
  }
}

/* Khyati Scholars Academy Custom Styles */
.nav-logo-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-logo-img {
  height: 100px;
  width: auto;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.trust-indicators {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.trust-icon {
  color: #22c55e;
  font-weight: bold;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.batch-card {
  border-top: 4px solid var(--primary-color) !important;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--br-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  margin-bottom: 24px; /* Give card content breathing space */
}

.batch-card:hover {
  border-top-color: #22c55e !important;
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.batch-time {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.admission-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem;
  border-radius: var(--br-lg);
  backdrop-filter: blur(12px);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.admission-card p {
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Sticky Call/WhatsApp Button Container for Mobile */
.sticky-call-container {
  display: none;
}

@media (max-width: 768px) {
  .sticky-call-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--surface-border);
    padding: 10px 15px;
    z-index: 998;
    display: flex;
    gap: 10px;
  }
  
  .sticky-call-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: var(--br-md);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .sticky-whatsapp-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 12px;
    border-radius: var(--br-md);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    font-size: 0.95rem;
  }
  
  body {
    padding-bottom: 70px; /* Prevent content cutoff by sticky bar */
  }
}

