* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0f0f0f;
  color: #e0e0e0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #00f5d4;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  font-size: 18px;
  position: relative;
}

nav a::after {
  content: '';
  width: 0;
  height: 2px;
  background: #00f5d4;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.4s;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #00f5d4;
  margin: 4px;
}

.hero {
  height: 60vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: center;
}

.hero img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00f5d4;
  margin: auto;
}

.hero h1 {
  font-size: 36px;
  color: #00f5d4;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #ccc;
}

.hero button {
  background: #00f5d4;
  color: #0f0f0f;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
}

.about {
  padding: 60px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.about-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    gap: 40px;
  }

  .about-img {
    margin-bottom: 0;
  }

  .about-text {
    text-align: left;
  }
}

.experience-section {
  padding: 80px 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 50px;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding-left: 20px;
  border-left: 4px solid #00f5d4;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

.timeline-icon {
  position: absolute;
  left: -35px;
  top: 0;
  background-color: #00f5d4;
  color: #0f0f0f;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.timeline-content h3 {
  color: #f0db4f;
  font-size: 1.4rem;
  margin: 0;
}

.timeline-date {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
}

section {
  margin: 80px 0;
}

h2 {
  font-size: 28px;
  color: #00f5d4;
  text-align: center;
  margin-bottom: 40px;
}

.skills-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  position: relative;
}

.skill-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 40px;
  cursor: pointer;
}

.skill-item i {
  transition: transform 0.3s;
  z-index: 1;
}

.skill-item:hover i {
  transform: translateY(-10px);
}

/* Skill label below the icon */
.skill-item span {
  position: absolute;
  top: 60px;
  font-size: 14px;
  color: #00f5d4;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.8) translateY(-30px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.skill-item:hover span {
  opacity: 1;
  transform: scale(1.1) translateY(0px);
}

/* Icon colors */
.fa-html5 {
  color: #e44d26;
}

.fa-css3-alt {
  color: #264de4;
}

.fa-js {
  color: #f0db4f;
}

.fa-php {
  color: #8892be;
}

.fa-database {
  color: #4db33d;
}

.fa-bootstrap {
  color: #7952b3;
}

.fa-code {
  color: #5e5e5e;
}

.fa-laptop-code {
  color: #3e8e41;
}

.fa-java {
  color: #007396;
}

.fa-hashtag {
  color: #68217a;
}



.skills ul,
.certifications ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  list-style: none;
}

.skills li,
.certifications li {
  background: #1a1a1a;
  border: 2px solid #00f5d4;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: #1a1a1a;
  border: 2px solid #00f5d4;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.1);
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 16px;
  margin-bottom: 15px;
}

.project-card a {
  display: inline-block;
  background: #00f5d4;
  color: #0f0f0f;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: auto;
}

.contact input,
.contact textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #2b2b2b;
  color: #e0e0e0;
}

.contact button {
  background: #00f5d4;
  color: #0f0f0f;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00f5d4;
  color: #0f0f0f;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

footer {
  text-align: center;
  font-size: 14px;
  margin-top: 60px;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #1a1a1a;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 70px;
    border-radius: 8px;
    z-index: 999;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
