/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* html scroll-behavior */
html {
  scroll-behavior: smooth;
}

/* Body and Background */
body {
  color: #333;
}

/* Header Styling */
.header {
  background-color: #eff8fde7;
  position: fixed;
  width: 100%;
  padding: 50px 0;
  z-index: 100;
  transition: background-color 0.4s ease;
}

/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-radius: 35px;
  max-width: 90%;
  width: 100%;
  z-index: 2000;
  transition: all 0.4s ease;
}

/* Logo Styling */
.logo {
  font-size: 22px;
  font-weight: bold;
  color: #111;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo span {
  color: hsl(202, 92%, 67%);
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation Links Styling */
.nav-links {
  list-style: none;
  display: flex;
  transition: all 0.3s ease;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 16px;
  transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
  color: hsl(202, 92%, 67%);
  font-weight: bold;
  transform: translateY(-2px);
}

/* Hamburger Menu Styling */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.2);
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .hamburger {
    display: block;
  }
}

/* Section Styles */
section {
  padding: 60px 0;
}

/* ------------ Home Section Styling ------------ */
.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 70px;
  font-family: "Arial", sans-serif;
  gap: 30px;
}

/* Text Container Style */
.text-container {
  text-align: left;
  flex: 1;
}

/* Heading in Text Container */
.text-container h1 {
  font-size: 3em;
}

/* Paragraph in Text Container */
.text-container p {
  font-size: 1.5em;
}

/* Highlighted Text */
.highlight {
  color: #000000;
}

/* Intro Image */
.intro-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
}

/* Responsive Intro Image */
@media screen and (max-width: 768px) {
  /* Adjust Intro Section */
  .intro {
    flex-direction: column;
    padding: 30px;
    text-align: center;
    align-items: center;
  }

  .text-container h1 {
    font-size: 2em;
  }

  .text-container p {
    font-size: 1.2em;
  }

  .intro-image {
    width: 60%;
    margin-top: 20px;
  }

  /* Adjust Buttons */
  .buttons {
    gap: 10px;
    justify-content: center;
  }

  .btn {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Responsive Home Text (Mobile) */
@media screen and (max-width: 480px) {
  /* Adjust Text Container */
  .text-container h1 {
    margin-top: 100px;
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .text-container p {
    font-size: 1em;
    line-height: 1.6;
  }

  /* Adjust Intro Image */
  .intro-image {
    width: 80%;
    margin-top: 20px;
  }
}

/* General Button Styling */
.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

/* Primary Button */
.btn.primary {
  background: #60b1f9;
  border: 2px solid #60b1f9;
  color: #ffffff;
}

.btn.primary:hover {
  background: #ffffff;
  border: 2px solid #60b1f9;
  color: #60b1f9;
}

/* Secondary Button */
.btn.secondary {
  border: 2px solid #60b1f9;
  color: #60b1f9;
}

.btn.secondary:hover {
  background: #60b1f9;
  color: white;
}

/* ---------- About Section Styling ---------- */

.about-section {
  padding: 20px 0px;
  background-color: #f9f9f9;
}

.about-section h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  color: #2d3b4f;
  font-weight: bold;
  margin-bottom: 40px;
}

.about-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}
/* About container stylling */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1280px;
  margin: auto;
}

.about-photo {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
}

/* About photo img styling */
.about-photo img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 10%;
  border: 6px solid #f0f0f0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}

.about-photo img:hover {
  transform: scale(1.03);
}

/* Resume Float Styling */
.resume-float {
  position: absolute;
  bottom: -80px;
  background-color: #ffffff;
  backdrop-filter: blur(10px);
  padding: clamp(10px, 1.5vw, 14px) clamp(20px, 4vw, 28px);
  border-radius: 30px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  border: 2px solid #5fc0f8;
  color: #5fc0f8;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.resume-float:hover {
  background: #60b1f9;
  color: white;
  transform: scale(1.05);
}

/* about content styling */
.about-content {
  flex: 1 1 480px;
  max-width: 600px;
}

.about-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 24px;
  text-align: center;
}

.about-content p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
  text-align: justify;
}

/* about box styling */
.about-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 30px;
  margin-top: 30px;
}

.about-item {
  display: flex;
  align-items: center;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 500;
  color: #333;
  padding-left: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.about-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1rem;
  color: #5fc0f8;
}

.about-item:hover {
  color: #5fc0f8;
  transform: translateX(4px);
}

/* Responsive stylling */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-photo {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-photo img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 12%;
    margin: 0 auto;
    display: block;
  }

  .resume-float {
    padding: 10px;
    position: static;
    margin-top: 20px;
  }

  .about-content {
    padding: 20px;
  }

  .about-content h1 {
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    text-align: center;
  }
  .about-content h2 {
    font-size: clamp(1rem, 2vw, 1rem);
  }

  .about-box {
    grid-template-columns: 1fr;
  }
}

/* Education, Skills, and Experience */
.timeline-section {
  max-width: 1370px;
  margin: 60px auto;
  padding: 40px 20px;
}

/* tab buttons stylling */
.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.tab {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  background: #e7edf7;
  color: #4a4a4a;
  transition: all 0.3s ease;
}

.tab i {
  margin-right: 8px;
  font-size: 16px;
}

.tab.active {
  background: linear-gradient(135deg, #5fc0f8, #5fc0f8);
  color: #fff;
}

.tab:hover {
  transform: scale(1.03);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* KeyFrames */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* timeline items stylling */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
  border-left: 3px solid #5fc0f8;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 14px;
  height: 14px;
  background-color: #5fc0f8;
  border-radius: 50%;
}

.year {
  font-weight: 600;
  color: #777;
  margin-bottom: 6px;
}

.details h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.details p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding-top: 30px;
}

/* Skills card */
.skill-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  box-shadow: 4px 6px 14px rgba(0, 97, 255, 0.06);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  /* background: #e6f0ff; */
}

.skill-card i {
  font-size: 26px;
  color: #5fc0f8;
  margin-bottom: 10px;
  display: block;
}

/* Responsive stylling */
@media (max-width: 768px) {
  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .timeline-section {
    padding: 30px 16px;
  }

  .details h3 {
    font-size: 17px;
  }

  .details p {
    font-size: 14px;
  }

  .skill-card {
    font-size: 14px;
  }

  .skills-grid {
    gap: 16px;
  }

  .tab-buttons {
    gap: 12px;
  }

  .year {
    font-size: 14px;
  }
}

/* personal info stylling */
.personal-info {
  padding: 10px 10px 30px;
  animation: fadeIn 0.5s ease;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 30px;
  margin-bottom: 30px;
}

.info-item {
  background: #ffffff;
  padding: 16px 10px;
  border-radius: 10px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 97, 255, 0.05);
}

/* Services Section */
.services {
  padding: 20px;
  background-color: #f9f9f9;
}

.services h1 {
  font-size: 2.8rem;
  text-align: center;
  color: #2d3b4f;
  /* Dark Blue */
  margin-bottom: 40px;
  font-weight: bold;
}

/* Service boxes stylling */
.service-boxes {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.service-box {
  background-color: white;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  width: 20%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  margin-bottom: 30px;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-box i {
  font-size: 3rem;
  color: #5fc0f8;
  margin-bottom: 20px;
  transition: color 0.3s ease-in-out;
}

.service-box h2 {
  font-size: 1.2rem;
  color: #2d3b4f;
  margin-bottom: 15px;
  font-weight: bold;
}

.service-box p {
  font-size: 1.1rem;
  color: #777;
  line-height: 1.6;
}

/* Hover effect for icons */
.service-box:hover i {
  color: #2d3b4f;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .service-box {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .service-box {
    width: 100%;
    margin-bottom: 30px;
  }

  .services h1 {
    font-size: 2.3rem;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .service-box i {
    font-size: 2.5rem;
  }

  .service-box h2 {
    font-size: 1.6rem;
  }

  .service-box p {
    font-size: 1rem;
  }
}

/* Projects Section */
.projects {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.projects h1 {
  font-size: 2.8rem;
  text-align: center;
  color: #2d3b4f;
  margin-bottom: 40px;
  font-weight: bold;
}

/* project boxes stylling */
.project-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 10px;
}

.project-box {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333;
  text-decoration: none;
  border: 1px solid transparent;
}

.project-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-box i {
  font-size: 3.5rem;
  color: #5fc0f8;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.project-box h2 {
  font-size: 1.6rem;
  color: #2d3b4f;
  margin-bottom: 15px;
  font-weight: bold;
}

.project-box p {
  font-size: 1.1rem;
  color: #777;
  line-height: 1.6;
}

/* Hover effect for icons */
.project-box:hover i {
  color: #2d3b4f;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .project-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile design */
@media (max-width: 768px) {
  .project-boxes {
    grid-template-columns: 1fr;
  }

  .projects h1 {
    font-size: 2.3rem;
  }
}

/* Contact Section Styling */
.contact {
  width: 100%;
  text-align: center;
  background-color: #f9f9f9;
}

/* Contact Form Styling */
.contact h2 {
  font-size: 2.8rem;
  color: #2d3b4f;
  margin-bottom: 20px;
}

/* Contact Form Fields Styling */
.contact-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: justify;
  padding: 40px;
  margin: 20px;
  background-color: #f9f9f9;
}

/* Contact Info Layout */
.contact-row {
  display: flex;
  flex-direction: column;
  width: 40%;
}

/*  Contact Form Fields */
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/*  Contact Form Fields Label */
.contact-item i {
  font-size: 2rem;
  margin-right: 20px;
  color: #5fc0f8;
}

/*  Contact Form Fields Input */
.contact-item h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

/*  Contact Form Fields Input */
.contact-item p a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}

/*  Contact Form Fields Input */
.contact-item p a:hover {
  color: #5fc0f8;
}

/* Social Icons Section */
.social-icons {
  display: flex;
  gap: 15px;
}

/*  Social Icons */
.social-icon {
  font-size: 1.5rem;

  text-decoration: none;
  transition: color 0.3s ease;
}

/*  Social Icons Hover */
.social-icon:hover {
  color: #434343;
}

/* Map Container */
.map-container {
  width: 50%;
  background-color: #fff;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  text-align: center;
}

/* Title for the Map */
.section-title {
  font-size: 1.5rem;
  text-align: start;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* Google Map Embed */
.google-map {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

/* Google Map iframe */
.google-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.google-map iframe:hover {
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .map-container {
    width: 100%;
    padding: 20px;
  }

  .google-map {
    height: 300px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Contact Section */
  .contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  /* contact-info style */
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    padding: 20px;
  }

  /* Contact Info Layout */
  .contact-row {
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
  }

  /* Contact Item Layout */
  .contact-item {
    width: 100%;
    margin-bottom: 20px;
    text-align: justify;
  }

  .contact-item i {
    font-size: 1.8rem;
  }

  .social-icons {
    flex-direction: row;
    gap: 2px;
    align-items: center;
    justify-content: center;
    /* Center the social icons */
  }

  .social-icon {
    font-size: 2rem;
  }

  /* Heading font size */
  .contact h2 {
    font-size: 2.2rem;
  }
}

/* Footer Section Styling */
.footer {
  padding: 30px 10px;
  text-align: center;
  position: relative;
  z-index: 500;
  background: white;
  box-shadow: 2px 6px 8px 10px rgba(0, 0, 0, 0.148);
  width: 100%;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  font-size: 14px;
  color: #000000;
  margin: 0;
}

.footer a {
  color: hsl(202, 92%, 67%);
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer {
    padding: 15px 0;
  }

  .footer p {
    font-size: 12px;
  }
}
