/* ======= Basic Reset & Font Setup ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #F2E9E4;
  color: #22223B;
  line-height: 1.6;
}

/* ======= Navbar ======= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #4A4E69;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #22223B;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4A4E69;
}

/* Default (hidden on small screens) */
.nav-links {
  display: flex;
  gap: 20px;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 785px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 30px;
    width: 200px;
    padding: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}



/* ======= Hero Section ======= */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to bottom, #ffffff, #F2E9E4);
}

.hero-content .small-name {
  font-size: 1.2rem;
  color: #9A8C98;
}

.hero-content .big-name {
  font-size: 3.5rem;
  font-weight: 800;
  color: #4A4E69;
  margin: 0.5rem 0;
}

.tagline {
  font-size: 1.1rem;
  color: #C9ADA7;
  margin-top: 0.5rem;
}

/* ======= Sections ======= */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

@media (max-width: 785px){
  section{
    max-width: 100%;
  }
}

h2 {
  font-size: 2rem;
  color: #4A4E69;
  margin-bottom: 1rem;
}

/*Stats*/
.stats-section {
  padding: 60px 20px;
  background-color: #f5f7fa;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.stat-box {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  width: 100%;
  height: 100%;
}

.stat-box:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-box h3 {
  font-size: 2rem;
  color: #4E54C8;
  margin-bottom: 10px;
}

.stat-box p {
  font-size: 1rem;
  color: #333;
}

.stat-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}



/*About*/
#about {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333;
  text-align: center;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#about p {
  max-width: 800px;
  margin: 10px auto;
  font-size: 1rem;
  line-height: 1.7;
}

.education-section {
  padding: 60px 20px;
  background-color: #f5f7fa;
  text-align: center;
}

.education-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #4E54C8;
}

.education-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.edu-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 25px 30px;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.edu-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.edu-institute {
  font-size: 16px;
  color: #666;
  margin-bottom: 6px;
}

.edu-year {
  font-size: 15px;
  color: #888;
}



/*Projects*/
#projects {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: left;
}

.project-card.featured {
  border: 2px solid #4E54C8;
  box-shadow: 0 0 15px rgba(78, 84, 200, 0.2);
  transform: scale(1.03);
  transition: 0.3s ease;
}

.project-card.featured:hover {
  box-shadow: 0 0 25px rgba(78, 84, 200, 0.4);
  transform: scale(1.05);
}

.project-card h3 {
  color: #4E54C8;
  margin-bottom: 10px;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: #4E54C8;
  text-decoration: underline;
}

.project-card .tech-stack {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

.project-links a{
  margin-right: 10px;
}

/* Skills */
#skills {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

#skills h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
}

.skill-heading {
  font-size: 1.5rem;
  color: #4E54C8;
  margin: 40px 0 20px;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Individual skill card */
.skill-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.skill-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.skill-card:hover img {
  filter: drop-shadow(0 0 8px #bdc0ff) drop-shadow(0 0 15px #696ec6);
  transform: scale(1.1);
}

.skill-card p {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}


/*Resume*/
#resume {
  padding: 60px 20px;
  text-align: center;
}

#resume .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #4E54C8;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

#resume .btn:hover {
  background: #6C70F3;
}

/* Internships */
#internships {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

#internships h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

.internship-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 90vw;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-left: 10px solid #22223B;
}

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

.internship-course img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-right: 2px solid #eee;
  margin-left: 1rem;
}

.internship-details {
  padding: 20px;
  flex: 1;
}

.internship-details h3 {
  margin-bottom: 10px;
  color: #4E54C8;
}

.internship-details p {
  margin: 6px 0;
  color: #444;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .internship-card {
    flex-direction: column;
    text-align: center;
    border: none;
  }

  .internship-course img {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid #eee;
    margin-left: 0%;
  }

  .internship-details {
    padding: 15px;
  }
}



/*courses*/
#courses {
  padding: 50px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

#courses h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.course {
  display: inline-block;
  width: 250px;
  margin: 15px;
  text-align: center;
  vertical-align: top;
}

.course img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.course img:hover {
  transform: scale(1.05);
}

.course p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #444;
}

#achievements {
  padding: 50px 20px;
  background-color: #ffffff; /* or slightly different like #f0f2f5 */
  text-align: center;
}

#achievements h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}


/*Contact*/
#contact {
  text-align: center;
  padding: 60px 20px;
}

.coming-soon {
  background: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  margin-bottom: 20px;
  margin-top: 15px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  /* opacity: 0.6;
  pointer-events: none; */
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.contact-form button{
  transition: 0.3s;
}

.contact-form button:hover{
  transform: scaleX(1.02);
  cursor: pointer;
}

#form-status {
  margin-top: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#form-status.show {
  opacity: 1;
}

#form-status.success {
  color: #28a745; /* green */
}

#form-status.error {
  color: #dc3545; /* red */
}

.direct-contact {
  margin-top: 30px;
}

.direct-contact a {
  color: #4e54c8;
  text-decoration: none;
}
.direct-contact a:hover {
  text-decoration: underline;
}

/*Toast*/
#toast {
  visibility: hidden;
  min-width: 260px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px 20px 10px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
}

#toast-timer {
  height: 3px;
  background-color: #4CAF50; /* green progress bar */
  width: 0%;
  border-radius: 3px;
  margin-top: 8px;
  transition: width 5s linear;
}

/*  Footer  */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: #9A8C98;
  margin-top: 2rem;
}

.footer-icons {
  margin-bottom: 1rem;
}

.footer-icons a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-icons img {
  width: 28px;
  height: 28px;
}

.footer-icons a:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}


/*Floating Button*/
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #4E54C8;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 30%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  /* display: none; */  /* remove or comment this */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s, opacity 0.4s ease, visibility 0.4s ease;
  opacity: 0;
  visibility: hidden;
}

#backToTop:hover {
  background-color: #8F94FB;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}




/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
