/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0f172a;
  color: #e2e8f0;
  overflow-x: hidden;
}

section {
  background-color: #0f172a;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================= NAVBAR ================= */
.custom-navbar {
  background: #020617;
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: fixed; /* ✅ FIXED */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.logo {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 20px;
}

.logo:hover {
  color: #38bdf8 !important;
}

.nav-link {
  color: #cbd5f5 !important;
  margin-left: 20px;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #38bdf8 !important;
}

/* TOGGLER */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* MOBILE MENU */
@media (max-width: 992px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f172a;
    padding: 20px 0;
    text-align: center;
    display: none;
    z-index: 999;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-link {
    display: block;
    margin: 12px 0;
    font-size: 18px;
  }
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 10%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 45px;
  font-weight: 700;
  color: #ffffff;
}

.hero-text span {
  color: #38bdf8;
}

.hero-text h2 {
  color: #38bdf8;
  margin-top: 10px;
}

.hero-text p {
  margin: 20px 0;
  color: #94a3b8;
  line-height: 1.6;
}

/* BUTTONS */
.hero-buttons {
  margin-top: 20px;
}

/* Common Button Style */
.hero-buttons .btn {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 30px;
  margin: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

/* Primary Button */
.btn-primary {
  background: #38bdf8;
  color: #0f172a;
  border: none;
}

/* 🔥 Hover for Primary */
.btn-primary:hover {
  background: #0ea5e9;
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}

/* Outline Button */
.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid #38bdf8;
}

/* 🔥 Hover for Outline */
.btn-outline-light:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}

/* IMAGE */
.hero-img img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  object-fit: cover;
  transition: 0.3s;
}

.hero-img img:hover {
  transform: scale(1.05);
}

/* ================= SERVICES ================= */
.services {
  width: 100%;
  padding: 80px 5%; /* 🔥 reduce side gap */
  margin: 0; /* remove extra margin */
}

/* remove bootstrap container padding effect */
.services.container {
  max-width: 100% !important;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #ffffff;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #38bdf8;
  display: block;
  margin: 10px auto;
}

.service-card {
  background: #1e293b !important;
  padding: 25px;
  border-radius: 12px;
  border: none !important;
  transition: 0.3s;
}

.service-card i {
  font-size: 30px;
  color: #38bdf8;
  margin-bottom: 10px;
}

.service-card h5 {
  color: #ffffff;
}
.section-title {
  text-align: center; /* ✅ center kariba */
  width: 100%;
  display: block;
  margin: 0 auto 40px;
}

.service-card p {
  color: #94a3b8;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  background: linear-gradient(145deg, #334155, #1e293b);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Icon Hover */
.service-card:hover i {
  color: #0ea5e9;
  transform: scale(1.2);
}

/* ================= SKILLS ================= */
/* Skills Section */
.skills {
  padding: 80px 10%;
  background-color: #0f172a;
  color: white;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: #38bdf8;
}

/* Skills Box */
.skills-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Skill Items */
.skills-box span {
  padding: 12px 25px;
  background: #1e293b;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* 🔥 Hover Effect */
.skills-box span:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
  border: 1px solid #38bdf8;
}

/* ================= PROJECT ================= */
.projects {
  width: 100%;
  padding: 60px 5%; /* 🔥 equal spacing like services */
  margin: 0;
}

.projects.container {
  max-width: 100% !important;
}
/* ===== PROJECT CARD FIX ===== */

.project-card {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}
.section-title {
  text-align: center; /* ✅ center kariba */
  width: 100%;
  display: block;
  margin: 0 auto 40px;
}

.project-card h4 {
  color: #ffffff;
  margin-bottom: 15px;
}

.project-card a {
  margin-top: 10px;
}
/* ===== PROJECT HOVER EFFECT ===== */

.project-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.03);

  background: linear-gradient(145deg, #334155, #1e293b);

  box-shadow:
    0 15px 35px rgba(56, 189, 248, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.5);

  border-color: rgba(56, 189, 248, 0.4);
}

/* ================= FOOTER ================= */
.footer {
  background: #020617;
  padding: 60px 8% 20px;
  color: #cbd5f5;
}

/* ===== LAYOUT ===== */
.footer-container {
  display: flex;
  justify-content: space-between; /* 🔥 important */
  align-items: flex-start; /* align top */
  flex-wrap: wrap;
}

/* ===== LEFT SIDE ===== */
.footer-left {
  max-width: 40%;
}

.footer-heading {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-left p {
  font-size: 14px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left i {
  color: #38bdf8;
}

.footer-left a {
  color: #cbd5f5;
  text-decoration: none;
}

/* HOVER */
.footer-left p:hover a {
  color: #38bdf8;
}

/* ===== RIGHT SIDE ===== */
.footer-right {
  max-width: 40%;
  text-align: right; /* 🔥 important */
}

.footer-name {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 5px;
}

.footer-role {
  color: #38bdf8;
  font-size: 14px;
  margin-bottom: 15px;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
  display: flex;
  justify-content: flex-end; /* 🔥 right align */
  gap: 12px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: #1e293b;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: 0.3s;
  text-decoration: none;
}

/* HOVER */
.social-icons a:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateY(-5px);
}

/* ===== BOTTOM ===== */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}
/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-img img {
    width: 220px;
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-img img {
    width: 180px;
    height: 180px;
  }

  .services,
  .skills,
  .projects {
    padding: 50px 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 24px;
  }

  .hero-img img {
    width: 150px;
    height: 150px;
  }
}
