/* ===================== */
/* RESET */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #f7fbff; 
}

/* ===================== */
/* FIX: HIDE CHECKBOX */
/* ===================== */
#mobile-menu-toggle {
  display: none !important;
}

/* ===================== */
/* TOP NAVBAR */
/* ===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 50px;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 16.5px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Light mode glass */
.light-mode .navbar {
  background: rgba(248, 246, 242, 0.90);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #f7fbff;
  font-weight: 700;
}
.social-icons {
  display: flex;
  gap: 22px;
}
.social-icons a {
  color: #f7fbff;
  font-size: 26px;
  transition: 0.3s;
}
.social-icons a:hover {
  color: #00e5d4;
  transform: translateY(-3px);
}

/* ===================== */
/* HERO */
/* ===================== */
.hero {
  text-align: center;
  padding: 100px 20px 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 92px;
  font-weight: 700;
  color: #f7fbff;
  margin-bottom: 16px;
}
.hero p {
  margin-bottom: 40px;
  font-size: 20px;
  color: #94a3b8;
}
.buttons {
  margin-top: 50px;
}
.btn {
  background: #1d4ed8;
  color: white;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  margin-right: 10px;
  font-weight: 500;
}
.btn-outline {
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
}

/* Golden CV Button with glow */
.cv-button-wrapper {
  margin-top: 35px;
  display: flex;
  justify-content: center;
}
.btn-cv {
  background: #d2b34c;
  color: #0f172a;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(210, 179, 76, 0.4);
}
.btn-cv:hover {
  background: #f5d16e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(210, 179, 76, 0.5);
}
/* ===================== */
/* WELCOME LINE - Matches subtitle + custom glow */
/* ===================== */
.hero p:nth-of-type(2) {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 1px;
  color: #f7fbff;                    /* matches subtitle in dark mode */
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.45);   /* cyan glow (#00ffff) */
}

/* Light mode - exact subtitle color + #203864 subtle glow */
.light-mode .hero p:nth-of-type(2) {
  color: #151715 !important;         /* matches subtitle in light mode */
  text-shadow: 0 0 18px rgba(32, 56, 100, 0.28) !important;   /* #203864 subtle glow */
}
/* ===================== */
/* SECTION HEADINGS (h2) */
/* ===================== */
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 30px;
  text-align: left;
  color: #00ffff;
  -webkit-background-clip: text;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section h2 i {
  color: #00e5d4;
  font-size: 32px;
}

/* ===================== */
/* UNIFORM HEADING HIERARCHY */
/* ===================== */
h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 4px;
}
h4 {
  font-size: 20px;
  color: #d2b34c !important;
  margin-bottom: 14px;
}
h5 {
  font-size: 15.5px;
  color: #f2f5ff;
  font-weight: 700;
  margin: 18px 0 8px 0;
}

/* ===================== */
/* CONTAINER & CARDS */
/* ===================== */
.container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
}
.section {
  padding: 100px 0;
}
.card {
  background: #1e293b;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
  margin-bottom: 20px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 229, 212, 0.15);
}
.card p, .card ul li, .card ol li {
  color: #f2f5ff;
  font-size: 15.5px;
  line-height: 1.7;
  text-align: justify;
}

/* Remove blue underline from ALL links */
.card a, .extra-text h4 a, .project-grid a, .research-card a {
  color: inherit !important;
  text-decoration: none !important;
}
.card a:hover, .extra-text h4 a:hover, .project-grid a:hover, .research-card a:hover {
  color: #00e5d4;
}

/* ===================== */
/* ABOUT ME - Two column layout (restored) */
/* ===================== */
.about-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.about-text {
  flex: 1;
  max-width: 720px;
}
.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #f2f5ff;
  margin-bottom: 18px;
  text-align: justify;
}
.about-img img {
  width: 100%;
  max-width: 260px;
  border-radius: 16px;
}

/* ===================== */
/* WORK EXPERIENCE */
/* ===================== */
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tenure {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}
.company {
  color: #e0f2fe;
  font-size: 18px;
  margin-bottom: 10px;
}
.card h4 {
  margin: 18px 0 10px 0;
  font-size: 16px;
  color: #e0f2fe;
}
.card ul, .card ol {
  padding-left: 22px;
  margin: 8px 0 18px 0;
  line-height: 1.75;
  text-align: justify;
}
.card ul li, .card ol li {
  margin-bottom: 5px;
  color: #cbd5f5;
}
.card ol {
  list-style-type: decimal;
}
.footnote {
  font-size: 12px !important;
  color: #94a3b8;
  margin-top: 8px;
}

/* ===================== */
/* TECHNICAL SKILLS, CERTIFICATIONS, AWARDS, EXTRACURRICULAR, CONTACT */
/* ===================== */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 10px 0;
}
.skill-item {
  background: #1e293b;
  color: #e0f2fe;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 16px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.skill-item:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cert-card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 229, 212, 0.2);
}
.cert-card img {
  width: 100%;
  height: auto;
  display: block;
}
.cert-info {
  padding: 14px 16px;
}
.cert-info h4 {
  color: #ffffff !important;
  font-size: 16px;
  margin-bottom: 4px;
}
.cert-info p {
  color: #d2b34c;
  font-size: 14px;
  margin: 0;
}

.award-text {
  text-align: justify;
  max-width: 100%;
  margin-bottom: 40px;
  font-size: 18px;
  line-height: 1.5;
  color: #f2f5ff;
}
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.award-item {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}
.award-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 229, 212, 0.2);
}
.award-item img {
  width: 100%;
  height: auto;
  display: block;
}

.extra-item {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: #1e293b;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  align-items: flex-start;
}
.extra-text {
  flex: 1;
  min-width: 300px;
}
.extra-text h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.extra-text h4.company {
  margin-bottom: 16px;
}
.extra-text ul {
  padding-left: 22px;
  line-height: 1.75;
  text-align: justify;
}
.extra-text ul li {
  margin-bottom: 12px;
  color: #cbd5f5;
}
.extra-images {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.extra-images img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}
.extra-images img:hover {
  transform: scale(1.03);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  width: 100%;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 145px;
  background: #1e293b;
  border-radius: 20px;
  text-decoration: none;
  color: #e0f2fe;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  flex: 1;
  min-width: 130px;
}
.contact-btn:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-8px);
}
.contact-btn i {
  font-size: 58px;
  margin-bottom: 14px;
}
.contact-btn span {
  font-size: 17px;
  font-weight: 600;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

/* ===================== */
/* RESEARCH & PUBLICATIONS - 2x2 grid */
/* ===================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 24px;
}
.research-card {
  background: #1e293b;
  padding: 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 229, 212, 0.15);
}
.research-card h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.research-meta {
  font-size: 15px;
  font-weight: bold;
  color: #d2b34c;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.research-meta i {
  color: #00e5d4;
}
.research-card p {
  color: #f2f5ff;
  font-size: 15.5px;
  line-height: 1.7;
  text-align: justify;
  flex-grow: 1;
  margin-bottom: 20px;
}
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.keyword-tags .tag {
  background: #0f172a;
  color: #d2b34c;
  font-size: 13.5px;
  padding: 4px 14px;
  border-radius: 30px;
  white-space: nowrap;
}

/* Final fix for blue underlines in Research cards */
.research-grid .card-link,
.research-card a {
  color: inherit !important;
  text-decoration: none !important;
}
.research-grid .card-link:hover,
.research-card a:hover {
  color: #00e5d4;
}

/* ===================== */
/* LIGHT MODE THEME - FULLY UPDATED as requested */
/* ===================== */
.light-mode {
  --bg: #e8e3d8;
  --text: #292929;
  --card: #faf8f4;
  --h4-color: #203864;
  --accent: #1d4ed8;
}

/* Main background & text - forced everywhere */
.light-mode body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* Hero section (between the two navbars) */
.light-mode .hero {
  background: var(--bg) !important;
}

/* Force all section padding areas */
.light-mode .section {
  background: var(--bg) !important;
}

/* FIX: remove dark block effect around divider */
.light-mode .section-divider {
  background: transparent !important;
}

.light-mode .logo,
.light-mode .secondary-container a {
  color: #292929;
}

/* Top navbar icons (GitHub + Email) */
.light-mode .social-icons a {
  color: #292929;
}
.light-mode .social-icons a:hover {
  color: #203864;
}

/* Section heading icons (graduation cap, flask, etc.) */
.light-mode .section h2 i {
  color: #203864 !important;
}

/* Section headings */
.light-mode .section h2 {
  color: #203864 !important;
}

/* View Research button (outline + text) */
.light-mode .btn-outline {
  border: 1px solid #292929;
  color: #292929;
}

/* All cards & containers with soft grey outer glow */
.light-mode .card,
.light-mode .research-card,
.light-mode .cert-card,
.light-mode .award-item,
.light-mode .extra-item,
.light-mode .contact-btn,
.light-mode .skill-item {
  background: var(--card) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* All text (h1, h2, h3, h5, paragraphs, bullets, lists) */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h5,
.light-mode p,
.light-mode li,
.light-mode .research-card p,
.light-mode .award-text p,
.light-mode .extra-text ul li,
.light-mode .card ul li,
.light-mode .card ol li {
  color: var(--text) !important;
}

/* h4 (institutions, companies, course lines, etc.) */
.light-mode h4,
.light-mode .research-meta,
.light-mode .tenure,
.light-mode .footnote,
.light-mode .company,
.light-mode .cert-info h4 {
  color: var(--h4-color) !important;
}

.light-mode body {
  background: var(--bg) !important;
}

.light-mode .section {
  background: var(--bg) !important;
}

.light-mode .hero {
  background: var(--bg) !important;
}

.light-mode .footer {
  background: #faf8f4 !important;
}

/* Technical Skills pills */
.light-mode .skill-item {
  color: #292929 !important;
}
.light-mode .skill-item:hover {
  background: #3b82f6 !important;
  color: white !important;
}

/* Contact buttons text & icons */
.light-mode .contact-btn {
  color: #292929 !important;
}
.light-mode .contact-btn i,
.light-mode .contact-btn span {
  color: #292929 !important;
}
.light-mode .contact-btn:hover {
  background: #3b82f6 !important;
  color: white !important;
}

/* Keyword tags */
.light-mode .keyword-tags .tag {
  background: #f1f1f1;
  color: #203864;
}

/* CV Button */
.light-mode .btn-cv {
  background: #d2b34c;
  color: #0f172a;
}

/* Theme toggle button */
.theme-btn {
  background: none;
  border: none;
  color: #f7fbff;
  font-size: 26px;
  cursor: pointer;
  padding: 0;
  transition: 0.3s;
}
.light-mode .theme-btn {
  color: #292929;
}
.theme-btn:hover {
  transform: rotate(30deg);
}

/* ===================== */
/* RESPONSIVE DESIGN + BEAUTIFUL SIDE PANEL */
/* Hamburger visible everywhere now */
.hamburger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.hamburger-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 28px;
}
.hamburger-label span {
  height: 3px;
  background: #f7fbff;
  border-radius: 3px;
  transition: 0.3s;
}
.light-mode .hamburger-label span {
  background: #292929;
}
.hamburger-text {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: #f7fbff;
}
.light-mode .hamburger-text {
  color: #292929;
}

/* Beautiful Side Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(24px);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
  padding: 90px 25px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: left 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 99999;
  overflow-y: auto;
}
.light-mode .mobile-menu {
  background: rgba(248, 246, 242, 0.97);
  backdrop-filter: blur(24px);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
}
.mobile-menu a {
  color: #ffffff;
  font-size: 16.5px;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}
.light-mode .mobile-menu a {
  color: #292929;
}
.mobile-menu a:hover {
  background: rgba(255,255,255,0.12);
  color: #00e5d4;
}
.light-mode .mobile-menu a:hover {
  background: rgba(0,0,0,0.08);
  color: #203864;
}

/* Glowing top and bottom lines */
.mobile-menu::before,
.mobile-menu::after {
  content: '';
  position: absolute;
  left: 25px;
  right: 25px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5d4, transparent);
  box-shadow: 0 0 12px #00e5d4;
}
.mobile-menu::before {
  top: 75px;
}
.mobile-menu::after {
  bottom: 30px;
}
.light-mode .mobile-menu::before,
.light-mode .mobile-menu::after {
  background: linear-gradient(90deg, transparent, #203864, transparent);
  box-shadow: 0 0 12px #203864;
}

/* Close button */
.menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 32px;
  color: #ffffff;
  cursor: pointer;
  z-index: 100000;
}
.light-mode .menu-close {
  color: #292929;
}

/* Open the panel */
#mobile-menu-toggle:checked ~ .mobile-menu {
  left: 0;
}

/* Top navbar sticky */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ===================== */
/* SECTION DIVIDER LINES - FIXED & SUBTLE (works with divider INSIDE section) */
/* ===================== */
.section {
  padding: 1px 0 !important;
}
/* Slim divider - works whether inside or outside section */
.section-divider {
  width: 100%;
  height: 1px;
  margin: 100px auto;
  background: transparent;
  position: relative;
}

/* The actual slim line */
.section-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  opacity: 0.55;
}

/* Light mode - subtle dark line + clean background */
.light-mode .section-divider::after {
  background: linear-gradient(90deg, transparent, #292929, transparent) !important;
  opacity: 0.55 !important;
}

/* Make sure Hero divider appears (Hero is not .section) */
.hero + .section-divider {
  margin-bottom: 10px !important;
}

/* Hover effect */
.section-divider:hover::after {
  opacity: 0.80;
}

/* ===================== */
/* FOOTER BAR - FIXED */
/* ===================== */
.footer {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(20px);
  padding: 12px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.light-mode .footer {
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0,0,0,0.1);
  color: #292929;
}
.footer-left {
  color: #94a3b8;
}
.light-mode .footer-left {
  color: #292929;
}
.back-to-top {
  background: #1e293b;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.light-mode .back-to-top {
  background: #e5e7eb;
  color: #292929;
}
.back-to-top:hover {
  background: #00e5d4;
  color: #020617;
  transform: translateY(-2px);
}

#contact.section {
  padding-bottom: 100px !important;
}

#about.section {
  padding-top: 0 !important;
}

#about h2 {
  margin-top: 0 !important;
}
/* ===================== */
/* SMOOTH SCROLL + OFFSET FOR STICKY NAVBAR */
/* ===================== */
html {
  scroll-behavior: smooth;
}

/* Reserve space for the sticky navbar so section headings are not hidden */
.section {
  scroll-margin-top: 90px !important;
}

/* Extra safety for hero (if needed) */
.hero {
  scroll-margin-top: 80px !important;
}

/* Mobile only */
@media (max-width: 768px) {
  /* Wider overall content */
  .container {
    width: 98% !important;
    max-width: 1250px;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-left: auto;
    margin-right: auto;
  }
   .section-divider {
    margin: 65px auto;
  }
  /* Hero title */
  .hero h1 {
    font-size: 40px;
    line-height: 1.05;
  }
    .buttons { margin-top: 40px;}
  
  .section h2 { font-size: 22px;}
  
h3 {font-size: 16.5px;}
h4 {font-size: 16px;}
h5 {
  font-size: 15.5px;
  color: #f2f5ff;
  font-weight: 700;
  margin: 18px 0 8px 0;
}
  /* About Me on mobile - hide photo completely */
  .about-img {
    display: none;
  }
  /* Research & Academic cards */
  .research-grid,
  .academic-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  /* MOBILE NAVBAR */
  .navbar {
    padding: 14px 15px;
    font-size: 12px;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .light-mode .navbar {
    font-size: 12px;
    background: rgba(248, 246, 242, 0.97) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  /* SIDE MENU PANEL */
  .mobile-menu {
    width: 58vw !important;
    left: -58vw !important;
    max-width: 340px;
  }
  #mobile-menu-toggle:checked ~ .mobile-menu {
    left: 0 !important;
  }

  .footer {
    padding: 14px 15px;
    font-size: 9px;
  }
  .back-to-top {
    padding: 14px 15px;
    font-size: 10px;
  }

  /* Hero */
  .hero {
    padding: 100px 8px 30px !important;
  }

  /* Buttons */
  .btn {
    padding: 10px 18px !important;
    font-size: 14px;
  }
  /* All sections - 8px side padding */
  .section {
    padding: 1px 8px !important;
  }

  /* Optional: tighter hero on mobile (you can remove if you don't want any change) */
  .hero {
    padding: 100px 8px 30px !important;
  }

}
