* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #00bcd4;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #1de9b6;
}

/* === Navbar === */
.navbar {
  background: #1f1f1f;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.navbar .nav-links li a {
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 8px;
}

.navbar .nav-links li a:hover {
  background-color: #292929;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* === Hero Section === */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  background-color: #121212;
  flex-wrap: wrap;
}

.hero .content {
  flex: 1 1 400px;
}

.hero h1 {
  font-size: 3rem;
  color: #00bcd4;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #ffffff;
}

.profession {
  font-size: 1.5rem;
  font-style: italic;
  color: #1de9b6;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.image-section {
  flex: 1;
  text-align: center;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.profile-img {
  position: relative;
  top: 50px;
  width: 280px;
  left: -300px;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 0 15px #00ffc8);
}


.profile-img:hover {
  transform: scale(1.05); /* Slight scale effect when hovering */
}

.speech-bubble {
  background-color: #1de9b6;
  color: #121212;
  padding: 1rem;
  border-radius: 10px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* === About Section === */
.about {
  padding: 4rem 2rem;
  background: #1a1a1a;
}

.about-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.resume-link {
  display: inline-block;
  background: #00bcd4;
  color: #121212;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.about-image img {
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 20px #00bcd4;
}

/* === Skills Section === */
.skills {
  padding: 4rem 2rem;
  text-align: center;
}

.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.skills-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-box {
  background: #292929;
  padding: 1rem;
  border-radius: 12px;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  transition: transform 0.3s;
  position: relative;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #1de9b6;
}

.skill-box img {
  width: 60%;
}

.skill-box::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  background: #00bcd4;
  color: #121212;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
  pointer-events: none;
}

.skill-box:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* === Experience Section === */
.experience {
  padding: 4rem 2rem;
  background-color: #1a1a1a;
}

.experience h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-box {
  background: #292929;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.company-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.timeline-content h3 {
  color: #00bcd4;
}

/* === Projects Section === */
.projects {
  padding: 4rem 2rem;
  text-align: center;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.project-box {
  background: #292929;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 250px;
  border-radius: 12px;
}

.project-content {
  flex: 1;
  max-width: 400px;
}

.project-content h3 {
  color: #1de9b6;
  margin-bottom: 0.5rem;
}

.project-content a {
  display: inline-block;
  margin-top: 1rem;
  background-color: #1de9b6;
  color: #121212;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* === Contact Section === */
.contact {
  padding: 4rem 2rem;
  background: #121212;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: #292929;
  color: #fff;
}

.contact-form button {
  background: #00bcd4;
  color: #121212;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.contact-social-icons {
  margin-top: 2rem;
}

.contact-social-icons a {
  font-size: 1.5rem;
  margin: 0 0.75rem;
  color: #00bcd4;
}

/* === Responsive === */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    background: #1f1f1f;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
  }

  .navbar .nav-links.active {
    display: flex; /* Show nav links when the active class is added */
  }

  .hamburger {
    display: block;
  }

  .hero,
  .about-container,
  .project-box,
  .timeline-box {
    flex-direction: column;
    text-align: center;
  }

  .project-content,
  .about-text {
    max-width: 100%;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;  /* Stack the text and image vertically */
    align-items: center;  /* Center the content */
  }

  .hero .content {
    text-align: center;  /* Center-align the text */
    padding-bottom: 1rem;
  }

  .profile-img {
    display: none;  /* Hide the image on mobile */
  }
}
.profile-img {
  transition: opacity 0.4s ease-in-out;
}

.contact {
  text-align: center;
  padding: 60px 20px;
  background-color: #111;
  color: #fff;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  background-color: #1a1a1a;
  border-radius: 16px;
  padding: 25px;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 transparent;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 255, 255, 0.2);
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #00ffff;
}

.contact-card a {
  color: #eee;
  text-decoration: none;
  font-size: 16px;
}

.contact-social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.contact-social-icons a {
  font-size: 24px;
  color: #aaa;
  transition: color 0.3s, transform 0.3s;
}

.contact-social-icons a:hover {
  color: #00ffff;
  transform: scale(1.2);
}
@media (max-width: 600px) {
  .contact-card {
    width: 90%;
  }

  .contact-card h3 {
    font-size: 18px;
  }

  .contact-card a {
    font-size: 15px;
    word-break: break-word;
  }

  .contact-social-icons a {
    font-size: 22px;
  }
}
