@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap');

/* ------------------ Global ------------------ */
* {
  padding: 0;
  margin: 0;
  outline: none;
  border: none;
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 10%;
  background: #f4f4f4;
   margin: 0;
}

main {
  flex: 1; /* main content grows to push footer down */
}


/* ------------------ Hero Section ------------------ */
#hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
 padding-bottom: 50px;
}

/* ------------------ Header ------------------ */
header {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 2rem 0;
  animation: topIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
  flex-wrap: wrap;
}

.header-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(43, 58, 85, 0.9);
  text-decoration: none;
}

.header-logo span {
  font-size: 72px;
  color: #02386e;
  line-height: 0.2;
}

nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 20px 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: grey;
  transition: 0.3s;
  cursor: pointer;
  text-transform: capitalize;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  color: #02386e;
  font-weight: 700;
}

/* ------------------ Content Layout ------------------ */
.content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.left, .content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.content h3 {
  font-size: 3rem;
  color: rgba(43, 58, 85, 0.9);
  animation: bottomIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.content h1 {
  font-size: 5.5rem;
  color: rgba(43, 58, 85, 0.9);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 5px;
  margin: -40px 0;
  animation: bottomIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

h1 span {
  color: #02386e;
}

.content p {
  font-size: 18px;
  line-height: 1.8;
  color: grey;
  animation: bottomIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

/* ------------------ CTA Buttons ------------------ */
.cta-section {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.cta-section button {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  height: 50px;
  width: 300px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(43, 58, 85, 0.2);
  animation: bottomIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

/* Make anchor CTAs behave like buttons */
.cta-section a.cta-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 300px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 10px rgba(43, 58, 85, 0.2);
  text-decoration: none;
  animation: bottomIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
}


.cta-1 {
  background-color: rgba(43, 58, 85, 0.9);
  color: white;
}

.cta-2 {
  background-color: transparent;
  color: #02386e;
  border: 2px solid #02386e;
}

.cta-section button:hover {
  background-color: #02386e;
  color: white;
}


.cta-section a.cta-2:hover {
  background-color: #02386e;
  color: white;
}

/* ------------------ Social Icons ------------------ */
.social-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.cta-2 i {
  margin-left: 10px;
}

.social-section i {
  font-size: 18px;
  font-weight: 600;
  border: 2px solid rgba(43, 58, 85, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  color: rgba(43, 58, 85, 0.9);
  cursor: pointer;
  transition: 0.3s;
  animation: bottomIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.social-section a{
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.social-section i:hover {
  color: #02386e;
  border-color: #02386e;
  transform: scale(1.1);
}

/* ------------------ Right Image ------------------ */
.right {
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 450px;
  position: static;
  margin: 0 auto;
  display: block;
  animation: imgIn 1.4s ease-in-out forwards;
  opacity: 0;
}

/* ------------------ Section Styling ------------------ */
section {
  padding: 10px;
}

/* Slightly smaller fonts for Education section only */
#education-section .title {
  font-size: 1.3rem; /* was 1.5rem */
}

#education-section .card {
  font-size: 14px; /* base text */
}

#education-section .card ul li {
  font-size: 14px;
  line-height: 1.5;
}

#education-section .section-title {
  font-size: 2.2rem; /* was 2.5rem */
}



#education-section,
#projects-section,
#experience-section,
#certificates-section,
#skills-section {
  background-color: #fff;
  border-radius: 6px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  color: #02386e;
  margin-bottom: 40px;
}

/* Timeline Cards */
.timeline {
  max-width: 850px;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.outer {
  border-left: 2px solid #02386e;
  padding-left: 30px;
  position: relative;
}

.card {
  position: relative;
  background: #f4f4f4;
  color: #333;
  margin-bottom: 30px;
  border-radius: 8px;
  padding: 20px;
  max-width: 100%;
  transition: background 0.3s ease;
}

.card:hover {
  background: #eaeaea;
}

.title {
  color: #02386e;
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  margin-bottom: 5px;
}

.title::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border: 3px solid #02386e;
  border-radius: 50%;
  left: -43px;
  top: 5px;
}

/* Timeline Lists */
.timeline .card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.timeline .card ul li {
  list-style-type: disc;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* Skills Section */
.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 0;
}

.skills-column {
  flex: 1;
  min-width: 200px;
  list-style-position: inside;
}

.skills-column li {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  padding-left: 20px;
}

/* ------------------ Contact Page ------------------ */
.content-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  deco
}

.email-link {
  font-size: 20px;
  font-weight: bold;
  color: #02386e;
  text-decoration: none;
  animation: bottomIn 1.4s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
}


/* ------------------ Project page ------------------ */

#projects-section{
  margin-top: 80px;
}

.diagram-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  width: 100%;
}

.infras-img {
  width: 100%;
  max-width: 900px;   /* adjust as needed */
  height: auto;       /* keeps aspect ratio */
  border-radius: 6px; /* optional */
}

.project-links {
  margin: 16px 0;
}

.github-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.github-link:hover {
  background: #1e293b;
}



/* ------------------ Footer ------------------ */

footer {
  background-color: #f4f4f4;
  text-align: center;
  font-size: 0.9rem;
  color: #02386e;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 15px 0;
  flex-shrink: 0; /* important */
}

footer .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer .footer-badges {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

footer .footer-badges img {
  width: 28px;
  height: auto;
  display: inline-block;
  transition: transform 0.3s ease;
}

footer .footer-badges img:hover {
  transform: scale(1.1);
}



/* ------------------ Animations ------------------ */
@keyframes bottomIn {
  from {
    transform: translateY(250px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes topIn {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes imgIn {
  from {
    transform: translateY(250px) scale(0.8);
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ------------------ Responsive: Tablets ------------------ */
@media screen and (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .left, .content-left, .right {
    height: auto;
  }

  .hero-img {
    position: static;
    width: 80%;
    max-width: 350px;
    margin: 0 auto;
  }

  .content-right {
    margin: 0;
    align-items: flex-start;
  }
}

/* ------------------ Responsive: Mobile ------------------ */
@media screen and (max-width: 428px) {
  body {
    padding: 0 3%;
  }

  header {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  nav {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .content h3 {
    font-size: 3rem;
    padding-top: 20px;
  }

  .content h1 {
    font-size: 3rem;
    letter-spacing: 3px;
    margin: -10px 0;
  }

  .cta-section {
    flex-direction: column;
    gap: 20px;
  }

  .social-section {
    justify-content: center;
  }

  .hero-img {
    display: none;
  }

  .infras-img {
    max-width: 100%;
  }

  .project-links {
    justify-content: center;
  }

  .github-link {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}
