/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary-color: #00d4ff;
  --secondary-color: #ffd700;
  --background-color: #0d0d2b;
  --text-color: #ffffff;
  --box-color: #1a1a3d;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  width: 100%;
}
.flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Navigation Bar */
header {
  position: fixed;
  width: 100%;
  background: rgba(13, 13, 43, 0.95);
  padding: 15px 20px;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 60px; /* Adjust this to match your header height */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

/* LOGO IMAGE */
.logo-img {
  width: 40px; /* Adjust as needed */
  height: 40px; /* Adjust as needed */
  margin-right: 10px; /* Space between logo and text */
}
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}
/* Responsive Navigation */
#toggle-btn {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
}

/* Three Yellow Lines */
#toggle-btn span {
  display: block;
  width: 30px;
  height: 4px;
  background: yellow; /* Yellow lines */
  transition: 0.3s;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 20%;
    background-color: #333;
    padding: 20px 5%;
    width: 180px;
    text-align: center;
    border-radius: 8px;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin-bottom: 1rem;
  }

  #toggle-btn {
    display: block;
  }
}

/* Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80vh;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
  padding: 40px 10%; /* Reduced padding */
  gap: 20px;
  min-height: 80vh; /* Reduced height */
  padding-top: 100px; /* Ensures it's below the header */
}

.hero-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
}
.section-box h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero-content span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 18px;
  margin: 10px 0 20px;
}
.hero-image {
  flex: 1;
  max-width: 40%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-image img {
  width: 100%;
  max-width: 350px; /* Slightly smaller image */
  border-radius: 50%;
  height: auto; /* Maintains aspect ratio */
  object-fit: cover; /* Ensures the image is properly scaled */
}
@media only screen and (max-width: 1024px) {
  #hero {
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  #hero {
    flex-direction: column;
    align-items: center;
    height: 20px;
    min-height: 25vh; /* Further reduced height for mobile */
    padding: 20px 5%;
    padding-top: 100px; /* Increased padding to avoid overlap */
    min-height: 40vh; /* Adjust height for smaller screens */
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }
  .hero-image {
    max-width: 60%;
    margin-top: 20px;
  }
  .hero-image img {
    width: 80%;
    max-width: 200px;
  }
  .section-box {
    padding: 40px 5%;
  }

  .section-box h2 {
    font-size: 24px;
  }
}

@media only screen and (max-width: 600px) {
  .skill,
  .project,
  .experience {
    width: 100%;
    max-width: 250px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 14px;
  }
  .hero-image {
    max-width: 80%;
  }
  .hero-image img {
    max-width: 180px;
  }
  .section-box h2 {
    font-size: 20px;
    padding: 40px 5%;
  }
  #testimonials {
    padding: 30px 5%;
  }
}

.whatsapp-button {
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.whatsapp-button:hover {
  background-color: #1ebe5d;
}

/* Section Boxes */
.section-box {
  padding: 60px 10%;
  text-align: center;
}

.section-box h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  .skills-container,
  .project-list,
}
.experience-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

  .skill,
  .project,
  .experience {
    background: var(--box-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
  }
}

/* Skills Section */
.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.skill {
  background: var(--box-color);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  width: 250px;
  flex: 1 1 100px; /* Smaller size */
  max-width: 120px;
  padding: 10px;
}

.skill img {
  width: 45px;
  margin-bottom: 10px;
}

/* Projects Section */
.project-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.project {
  background: var(--box-color);
  padding: 15px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
}

.project img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--secondary-color);
}

/* Experience Section */
.experience-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.experience {
  background: var(--box-color);
  border-radius: 10px;
  width: 250px;
  flex: 1 1 150px; /* Smaller size */
  max-width: 200px;
  background: var(--box-color);
  padding: 15px;
  text-align: center;
  font-size: 14px;
}

/* Connect with Me Section */
.connect {
  padding: 1rem 5%;
  background: #0d0d2b; /* Outermost container in Dark Blue */
  text-align: center;
  border-radius: 10px;
}

.connect .heading {
  font-size: 2rem;
  color: yellow; /* Heading text in Yellow */
  margin-bottom: 1.5rem;
}

.connect-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.connect-box {
  background: #1a1a3d; /* Social media card background */
  text-align: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  flex: 1 1 120px; /* Smaller size */
  max-width: 120px;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.connect-box img {
  width: 30px; /* Adjusted logo size */
  height: auto;
  width: 30px; /* Smaller icon */
  margin-bottom: 5px;
}

.connect-box h3 {
  font-size: 14px;
  color: white;
  margin-bottom: 5px;
}

.connect-btn {
  display: inline-block;
  padding: 5px 10px;
  background: deepskyblue; /* Button color in Deep Sky Blue */
  color: black;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease-in-out;
  padding: 5px 10px;
  font-size: 12px;
}

.connect-btn:hover {
  background: yellow; /* Button turns Yellow on hover */
  color: black;
}

.connect-box:hover {
  transform: translateY(-5px);
}
.connect-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.connect-box {
  flex: 1 1 120px; /* Smaller size */
  max-width: 150px; /* Limits width */
  padding: 10px;
  text-align: center;
  background: #1a1a3d;
  border-radius: 8px;
  transition: transform 0.3s;
}

.connect-box img {
  width: 30px; /* Smaller icon size */
  margin-bottom: 5px;
}

.connect-box h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.connect-btn {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
}
#about {
  margin-top: -40px; /* Pull the About Me section upwards */
}
/* Testimonials Section */
#testimonials {
  padding: 50px 20px;
}

/* Centering and Styling the Heading */
#testimonials h2 {
  font-size: 2rem;
  color: yellow;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Testimonials Container (Horizontal Layout) */
.testimonial-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Individual Testimonial */
.testimonial {
  background-color: #1a1a3d;
  padding: 15px;
  width: 220px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease-in-out;
  text-align: center;
  flex: 1 1 180px; /* Smaller size */
  max-width: 200px;
  padding: 15px;
  font-size: 14px;
}

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

/* Testimonial Text */
.testimonial p {
  font-style: italic;
  color: #ddd;
  font-size: 13px;
}

/* Testimonial Name */
.testimonial h4 {
  margin-top: 10px;
  font-weight: bold;
  color: #fff;
}

/* Responsive Section Layout */
.skills-container,
.project-list,
.experience-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #0a0a24;
  font-size: 14px;
}
#nav-bar {
  display: none;
}

#nav-bar.active {
  display: block;
}

@media (min-width: 768px) {
  #nav-bar {
    display: flex;
  }
}
#toggle-btn {
  display: none;
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  #toggle-btn {
    display: block;
  }

  #nav-bar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #333;
    padding: 1rem;
    width: 200px;
    text-align: center;
    border-radius: 10px;
  }

  #nav-bar.active {
    display: flex;
  }

  #nav-bar li {
    margin-bottom: 1rem;
  }
}
@media only screen and (max-width: 600px) {
  .hero-image {
    margin-bottom: 50%;
  }
  #hero {
    display: block;
  }
  #about h2 {
    margin-top: 130%;
  }
}
footer {
  text-align: center;
  padding: 20px;
  background: #0a0a24;
  font-size: 14px;
}
