html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0d1b2a;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #00b4d8;
}

/* Navbar */
.navbar {
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #00b4d8;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:hover {
  color: #00b4d8;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Sections */
section {
  padding: 6rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #0073e6;
}

/* Home */
.home {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.home img {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  object-fit: cover;
}

.home-quotes {
  max-width: 30rem;
}

.home-quotes p {
  font-style: italic;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* About */
.abt p {
  margin-bottom: 1.2rem;
  text-align: justify;
  line-height: 1.8;
}

/* Skills */
.skill-category {
  margin-bottom: 3rem;
}

.skill-category h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0073e6;
  text-align: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.skill-card {
  flex: 1 1 280px;
  max-width: 320px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.skill-card i {
  margin-bottom: 1rem;
}

.skill-card h5 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.skill-card p {
  color: #666;
}

/* Projects */
.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.project-card {
  width: 100%;
  max-width: 60rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: auto;
}

.project-card-body {
  padding: 1.5rem;
}

.project-card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0073e6;
}

/* Contact */
.cont {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}

.cont h2 {
  color: #fff;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links i {
  font-size: 2.5rem;
}

.social-links a:hover {
  color: #00b4d8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .home-quotes {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 0.8rem 1rem;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: #0d1b2a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .navbar.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1000;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  section {
    padding: 5rem 1rem 2rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .home img {
    width: 14rem;
    height: 14rem;
  }

  .home-quotes p {
    font-size: 1.1rem;
  }

  .skill-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1.2rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .home img {
    width: 12rem;
    height: 12rem;
  }

  .home-quotes p {
    font-size: 1rem;
  }

  .skill-card {
    padding: 1rem;
  }

  .social-links i {
    font-size: 2rem;
  }

  .project-card-body {
    padding: 1rem;
  }

  .project-card-title {
    font-size: 1.2rem;
  }
}