/* ===== Root & Globals ===== */
:root {
  --blue: #0066ff;
  --light-blue: rgb(235, 245, 255);
  --mid-blue: rgb(218, 231, 251);
  --text: #1a1a1a;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  --max-width: 1200px;
   
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  /* background: linear-gradient(var(--light-blue), var(--mid-blue)); */
      background: linear-gradient(rgb(235 245 255 / 72%), rgb(218 231 251 / 42%));

}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: transparent;
  transition: all 0.4s ease;
  z-index: 1000;
}

header.scrolled {
    backdrop-filter: blur(10px);
    box-shadow: rgba(11, 100, 244, 0.1) 0px 4px 20px;
    background: linear-gradient(135deg, rgba(245, 250, 255, 0.95), rgba(237, 243, 253, 0.9));
    border-width: 1px;
    border-style: solid;
    border-color: rgba(109, 162, 248, 0.25);
    border-image: initial;
  padding: 14px 60px;
}

.logo {
  font-weight: 800;
  color: var(--blue);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 4px;
}

nav a:hover,
nav a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

/* ===== Sections ===== */
section.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px 40px;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* height: 100vh; */
  /* overflow: auto; */
}

section.container.active {
  display: block;
}

section.container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero Section ===== */
.home-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    min-height: calc(100vh - 120px);
    /* background: yellow; */
    width: 865px;
    margin: auto;
    margin-left: 195px;
}

.home-section img {
  width: 300px;
  border-radius: 50%;
  border: 4px solid var(--blue);

  /* Normal box shadow equivalent of Tailwind’s */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  flex-shrink: 0;

  /* Floating animation */
  animation: float 3.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

/* Floating motion */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


/* ===== Mobile Adjustments ===== */
@media (max-width: 900px) {
  .home-section {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 0 25px;
    min-height: auto;
    max-width: 100%;
    /* background: pink; */
    margin: 0px;
    }

  .home-section img {
    width: 220px;
    margin-bottom: 15px;
  }

  .text-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .text-content h2 {
    font-size: 1.05rem;
    margin-top: 8px;
  }

  .text-content p {
    font-size: 0.95rem;
    margin-top: 12px;
  }

  /* Adjust scroll arrow */
  .scroll-down {
    position: relative;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .home-section {
    gap: 18px;
    padding: 0 18px;
  }

  .text-content h1 {
    font-size: 1.9rem;
  }

  .text-content h2 {
    font-size: 0.95rem;
  }

  .home-section img {
    width: 180px;
  }

  .text-content p {
    font-size: 0.9rem;
  }
  
  h1.section-title {
text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #0f172a;
    font-weight: 600;
    position: relative;
    font-family: sans-serif;
    margin-top: 10px;
    /* background: green;; */
}



}

/* Optional hover zoom */
.home-section img:hover {
  transform: scale(1.03);
}


.text-content {
  flex: 1;
  min-width: 280px;
}

h1 {
    font-size: 3.9rem;
    margin: 0;
    color: #172136;
    line-height: 1.1;
    font-family: sans-serif;
    font-weight: 600;
}

h2 {
    color: #06a9c6;
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 10px;
    font-family: 'Inter';
    font-weight: 500;
    line-height: 28px;
}

p {
    line-height: 1.6;
    margin-top: 18px;
    font-size: 1rem;
    color: #475c85;
    font-family: inter;
}

/* ===== Shared Section Titles ===== */
.section-title {
text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0f172a;
    font-weight: 600;
    position: relative;
    font-family: sans-serif;
    margin-top: 40px;
}





.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: #3b82f6;
  margin: 10px auto 0;
  border-radius: 3px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.5rem;
  color: #1e293b;
  font-weight: 700;
  margin: 60px 0 25px;
}

/* ===== Education ===== */
.edu-card.main-card {
  display: flex;
  /* align-items: center; */
  gap: 20px;
  padding: 20px 20px;
  border-radius: 15px;
  /* background: linear-gradient(135deg, #f8fbff, #f1f6ff); */
  /* box-shadow: var(--shadow); */
  margin-bottom: 40px;
  /* border: 1px solid transparent; */
  transition: all 0.3s ease;

      background: linear-gradient(135deg, #f5fafff2, #edf3fde6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(217, 91%, 70%, .25);
    box-shadow: 0 4px 20px #0b64f41a;
}

.edu-card.main-card:hover {
  transform: scale(1.02);
  border-color: #3b82f6;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.15);
}

.edu-icon {
  font-size: 2rem;
  color: #3b82f6;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.course-card {
      background: linear-gradient(135deg, #f5fafff2, #edf3fde6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(217, 91%, 70%, .25);
    box-shadow: 0 4px 20px #0b64f41a;
  padding: 20px 25px;
  border-radius: 14px;
  /* box-shadow: var(--shadow);
  border: 1px solid hsl(217 60% 85%); */
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: scale(1.03);
  border-color: #60a5fa;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

/* ===== Internships ===== */
.internship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 25px;
}



.intern-card {
      background: linear-gradient(135deg, #f5fafff2, #edf3fde6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(217, 91%, 70%, .25);
    box-shadow: 0 4px 20px #0b64f41a;
  padding: 20px 20px;
  border-radius: 15px;
  /* box-shadow: var(--shadow);
  border: 1px solid transparent; */
  transition: all 0.3s ease;

}

.intern-card p{
       margin-top: 20px;
    margin-bottom: 0px;
    font-family: 'Inter';
    font-size: 15px;
}

.intern-card:hover {
  transform: scale(1.03);
  border-color: #60a5fa;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.15);
}


.intern-header{
        display: flex;
    justify-content: flex-start;
    align-items: center;
}

.intern-header h3{
    margin-left: 5px;
}


/* ===== Achievements ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.achievement-card {
  backdrop-filter: blur(10px);
    box-shadow: rgba(11, 100, 244, 0.1) 0px 4px 20px;
    background: linear-gradient(135deg, rgba(245, 250, 255, 0.95), rgba(237, 243, 253, 0.9));
    border-width: 1px;
    border-style: solid;
    border-color: rgba(109, 162, 248, 0.25);
    border-image: initial;
  padding: 14px;
  border-radius: 15px;
  /* box-shadow: var(--shadow); */
  border: 1px solid transparent;
  text-align: center;
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.15);
}

.achievement-card p{
  margin-top: 10px;
    margin-bottom: 0px;
    font-family: 'Inter';
    font-size: 15px;
}

.ach-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.achievement-card:hover .ach-icon {
  transform: scale(1.15);
}

/* ===== Research & Projects ===== */
/* .research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 25px;
} */

.research-card {
     background: linear-gradient(135deg, #f5fafff2, #edf3fde6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(217, 91%, 70%, .25);
    box-shadow: 0 4px 20px #0b64f41a;
  border-radius: 15px;
  padding: 20px 20px;
  /* box-shadow: var(--shadow); */
  /* border: 1px solid transparent; */
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.research-header{
  display: flex;
}

.research-card h4{
margin-top: 20px;
font-size: 16px;
}

.research-card p{
  margin-top: 5px;
  margin-bottom: 0px;
  font-size: 14px;
}

.research-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.15);
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f9fbff, #f1f5fb);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02);
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.project-card.reverse {
  flex-direction: row-reverse;
}

.project-card img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 30px;
  width: 50%;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.contact-card {
  background: linear-gradient(135deg, #f9fbff, #f1f5fb);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.1);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-header .icon {
  font-size: 1.6rem;
  color: #2563eb;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3b82f6;
}

.send-btn {
  width: 100%;
  background: linear-gradient(to right, #3b82f6, #0ea5e9);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.send-btn:hover {
  opacity: 0.9;
}

.view-certificates {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 15px;
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-certificates:hover {
  border-color: #3b82f6;
  color: #2563eb;
  transform: scale(1.02);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 25px 10px;
  color: #555;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  header {
    padding: 15px 30px;
  }

  .home-section {
    flex-direction: column;
    text-align: center;
  }

  .home-section img {
    width: 220px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  section.container {
    padding: 70px 25px 60px;
  }

  .project-card,
  .project-card.reverse {
    flex-direction: column;
  }

  .project-card img,
  .project-content {
    width: 100%;
  }
}






/* ===== Scroll Down Arrow ===== */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  color: hsl(217deg 91% 50% / 99%);
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}




h3{
    margin: 0px;
    font-family: 'Inter';
    font-size: 20px;
    font-weight: 600;
}

.sect{
        font-size: 18px;
    font-family: 'Inter';
    font-weight: 500;
    color: hsl(220 40% 14% / 1);
    margin-top: 20px !important;
}


.grad-year{
        margin-top: -10px;
        margin-bottom: 0px;
}


h4{
        font-size: 16px;
    font-weight: 600;
    font-family: 'Inter';
    margin: 0px;
}

.provider{
     font-size: 15px;
    font-weight: 500;
    font-family: 'Inter';
    margin-top: 20px;
   color: hsl(220 40% 14% / 1);
   margin-bottom: 0px;
}

.credits{
        font-size: .875rem;
    line-height: 1.25rem;
    color: hsl(220 30% 40%);
     font-family: 'Inter';
    margin-top: 5px;
    margin-bottom: 0px;
}



/* ===== Responsive Header / Mobile Menu ===== */

/* Hide the hamburger on desktop */
#menu-toggle {
  display: none;
}

/* Mobile layout */
@media (max-width: 900px) {
  header {
    padding: 12px 20px;
  }

  /* Hamburger button styling */
  #menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
  }

  #menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0066ff;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  /* Animated “X” when active */
  #menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hide nav by default on mobile */
  nav#nav-menu {
    position: absolute;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, rgba(245,250,255,0.98), rgba(237,243,253,0.96));
    border: 1px solid rgba(109,162,248,0.25);
    box-shadow: 0 8px 20px rgba(11,100,244,0.1);
    border-radius: 10px;
    flex-direction: column;
    width: 200px;
    padding: 12px 0;
    display: none;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav#nav-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  nav#nav-menu a:hover {
    color: #0066ff;
    background-color: rgba(0,102,255,0.05);
  }

  /* Show nav when active */
  nav#nav-menu.active {
    display: flex;
  }



}