/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
  background: #121212;
  color: #ADB7BE;
  scroll-behavior: smooth;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.6rem 1rem;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Invert theme class */
.inverted {
  filter: invert(1) hue-rotate(180deg);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #121212;
  padding: 1rem 3.5rem;
  border-bottom: 1px solid #333;
  z-index: 1000;
}

.brand {
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
}

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

.nav-links a {
  position: relative;
  /* allow underline animation */
  color: #adb7be;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.3rem 0;
  /* breathing space for underline */
}

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

/* Underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  /* just below the text */
  width: 0;
  height: 2px;
  background: #00d8ff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Skills Section */
.skills-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e;
}

.skills-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.skill {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid #00d8ff;
  transition: all 0.3s ease;
}

.skill:hover {
  transform: scale(1.03);
  border-left-color: #00ff8c;
  box-shadow: 0 0 12px rgba(0, 216, 255, 0.4);
}

.skill h3 {
  color: #00d8ff;
  margin-bottom: 0.5rem;
}

.skill p {
  color: #adb7be;
}

/* Certifications */
.cert-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #121212;
  border-top: 1px solid #1e1e1e;
}

.cert-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.cert-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.cert-item {
  background: #1a1a1a;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid #00d8ff;
  transition: all 0.3s ease;
}

.cert-item:hover {
  transform: scale(1.03);
  border-left-color: #00ff8c;
  box-shadow: 0 0 12px rgba(0, 216, 255, 0.4);
}

.cert-btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid #00d8ff;
  color: #00d8ff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s;
}

.cert-btn:hover {
  background: #00d8ff;
  color: #121212;
  box-shadow: 0 0 5px #00d8ff, 0 0 10px rgba(0, 216, 255, 0.4);
}

/* Achievements */
.achievements-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e;
}

.achievements-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.achievements-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.ach-item {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #00d8ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.ach-item a {
  color: #00d8ff;
  text-decoration: none;
  margin-left: 1rem;
}

.ach-item a:hover {
  text-decoration: underline;
}
.ach-item:hover {
  transform: translateX(5px);
  border-left-color: #00ff8c;
  box-shadow: 0 0 8px rgba(0, 216, 255, 0.3);
}

/* Education Section */
.education-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e;
}

.education-section h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.edu-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-item {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
  border-left: 3px solid #00d8ff;
  transition: all 0.3s ease;
}

.edu-item:hover {
  transform: scale(1.02);
  border-left-color: #00ff8c;
  box-shadow: 0 0 12px rgba(0, 216, 255, 0.4);
}

.edu-item h3 {
  color: #00d8ff;
  margin-bottom: 0.5rem;
}

.edu-item p {
  color: #adb7be;
  margin-bottom: 0.3rem;
}

.edu-year {
  font-size: 0.9rem;
  color: #999;
}

/* Experience Section */
.experience-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #121212;
  border-top: 1px solid #1e1e1e;
}

.experience-section h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.exp-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-item {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
  border-left: 3px solid #00d8ff;
  transition: all 0.3s ease;
}

.exp-item:hover {
  transform: scale(1.02);
  border-left-color: #00ff8c;
  box-shadow: 0 0 12px rgba(0, 216, 255, 0.4);
}

.exp-item h3 {
  color: #00d8ff;
  margin-bottom: 0.3rem;
}

.exp-item p {
  color: #adb7be;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.exp-item ul {
  padding-left: 1.2rem;
}

.exp-item ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* Certificate Button */
.exp-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: transparent;
  border: 2px solid #00d8ff;
  color: #00d8ff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.exp-btn:hover {
  background: #00d8ff;
  color: #121212;
  box-shadow: 0 0 5px #00d8ff, 0 0 10px rgba(0, 216, 255, 0.4);
  transform: scale(1.05);
}

/* Project Cards */
.project-card {
  background: #181818;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-card:hover {
  border-color: #00d8ff;
  box-shadow: 0 0 0.5px #00d8ff, 0 0 10px rgba(0, 216, 255, 0.4);
  transform: scale(1.06);
}

.skills span {
  margin: 4px;
}

.skills span:hover {
  border-color: #00d8ff;
  box-shadow: 0 0 1px #00d8ff, 0 0 8px rgba(1, 217, 255, 0.793);
  transform: scale(1.05);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: #fff;
}

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

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

  .hamburger {
    display: block;
  }
}

/* Hero */
.hero {
  height: 100vh;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  /* subtle gradient */
  position: relative;
  overflow: hidden;
}

/* Optional animated background circles */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 216, 255, 0.25), transparent);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 255, 140, 0.25), transparent);
  border-radius: 50%;
  animation: float 12s infinite ease-in-out alternate-reverse;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(30px);
  }
}

a {
  text-decoration: none;
}

/* Headline */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  z-index: 1;
}

.hero h1 span {
  background: linear-gradient(90deg, #00D8FF, #00FF8C);
  -webkit-background-clip: text;
  color: transparent;
}

/* Subtitle */
.hero p {
  margin: 1rem 3rem;
  font-size: 1.2rem;
  color: #adb7be;
  max-width: 700px;
  z-index: 1;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  z-index: 1;
}

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 216, 255, 0.2);
}

.primary {
  background: #01a3bf;
  color: #121212;
}

.secondary {
  background: transparent;
  border: 2px solid #00D8FF;
  color: #00D8FF;
}

.primary:hover {
  background: #00ddff;
  box-shadow: 0 0 6px #00d8ff, 0 0 10px rgba(0, 216, 255, 0.4);
  border-color: #00d8ff;
  transform: scale(1.05);
}

.secondary:hover {
  background: #00ddff;
  color: #121212;
  box-shadow: 0 0 6px #00d8ff, 0 0 10px rgba(0, 216, 255, 0.4);
  transform: scale(1.05);
}


/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  padding: 3rem 5rem;
  gap: 2rem;
  align-items: center;
  background-color: black;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

/* Image inside */
.about-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%; 
  transition: all 0.3s ease;  /* ✅ syncs with container */
  border: 3px solid #00d8ff; 
  box-shadow: 0 0 15px rgba(0, 216, 255, 0.4); /* subtle glow */
  transition: all 0.3s ease;  /* ✅ one smooth transition */
}

.about-image:hover img {
  border: 3px solid #00ff8c; 
  box-shadow: 0 0 25px rgba(0, 216, 255, 0.8);
  transform: scale(1.05);     /* zoom image with container */
}

.about-text {
  flex: 2;
}

.about-text h2 {
  font-size: 2rem;
  color: #fff;
}

.skills {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills span {
  background: #333;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  color: #fff;
}

/* this so that data don't cover by navbar */
section {
  scroll-margin-top: 40px;
}

/* Projects */
.projects {
  padding: 3rem 5rem;
  text-align: center;
  background: #1e1e1e;
}

.projects h2 {
  font-size: 2rem;
  color: #fff;
}

.tech-used {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-used span {
  background: #333;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Hover Effect */
.tech-used span:hover {
  background: #00bcd4;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.7);
}

.filters {
  margin: 1rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filters button {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #ADB7BE;
  color: #ADB7BE;
  border-radius: 20px;
  cursor: pointer;
}

.filters button.active,
.filters button:hover {
  border-color: #00D8FF;
  color: #00D8FF;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #181818;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.project-img {
  height: 150px;
  overflow: hidden;
  background: #2A2A2A;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures the image covers the div */
  display: block;
}

.project-info {
  padding: 1rem;
}

.project-info h3 {
  color: #fff;
}

.project-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 1rem;
}

.project-links a {
  flex: 1; /* makes them evenly sized */
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: #1e1e1e;
  color: #ADB7BE;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Hover effect */
.project-links a:hover {
  background: #00bcd4;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,188,212,0.5);
}

/* Contact Section */
.contact-section {
  background: #0d0d0d;
  padding: 5rem 2rem;
  border-top: 2px solid #1e1e1e;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00bcd4;
}

.contact-section p {
  margin-bottom: 2rem;
  color: #ccc;
}

/* Container */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Form */
.contact-section form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  background: #1e1e1e;
  padding: 2.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-section form:hover {
  color: #121212;
  box-shadow: 0 0 5px #00d8ff, 0 0 10px rgba(0, 216, 255, 0.4);
  transform: scale(1.03);
}

.contact-section form input,
.contact-section form textarea {
  margin: 0.7rem 0;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background: #2c2c2c;
  color: white;
  font-size: 1rem;
}

.contact-section form textarea {
  height: 150px;
}

.contact-section form button {
  margin-top: 1rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  width: 200px;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  border: 2px solid #00d8ff;
  color: #f6fcfd;
  background-color:  #1e1e1e;
  text-decoration: none;
}

.contact-section form button:hover {
  background: #00d8ff;
  color: #121212;
  box-shadow: 0 0 5px #00d8ff, 0 0 10px rgba(0, 216, 255, 0.4);
}

/* Contact Info (below form) */
.contact-info {
  text-align: center;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.contact-info a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Social Links */
.socials {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.socials a {
  background: #1e1e1e;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.socials a:hover {
  background: #00bcd4;
  color: white;
  box-shadow: 0 0 2px #00d8ff;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  padding: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    right: 1rem;
    top: 4rem;
    flex-direction: column;
    background: #121212;
    padding: 1rem;
    border-radius: 5px;
  }

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

  .hamburger {
    display: block;
  }
}

@media (max-width: 600px) {
  .about, .projects {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    margin: 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    width: 80%;
    text-align: left;
  }
  .nav-links a {
    padding: 0.8rem 0;
    font-size: 1.1rem;
  }
}

.about-image {
  flex: 1;
  min-width: 250px;
}
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }
  .about-image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-section form {
    padding: 1.5rem;
    width: 95%;
  }
}

@media (max-width: 600px) {
  .cert-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cert-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem;
  }

  .cert-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .cert-btn {
    align-self: flex-start;
    width: 100%;
    text-align: center;
  }
}
