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

body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* ===== Navbar ===== */
header {
  background: #1e1e2f;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .left {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Desktop Menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff9800;
}

/* ===== Mobile Menu (hidden by default) ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #1e1e2f;
    padding: 1rem;
    border-radius: 8px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  background: linear-gradient(rgba(30, 30, 47, 0.8), rgba(30, 30, 47, 0.8)),
              url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1350&q=80") center/cover;
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: #ff9800;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #ff9800;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #e68900;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* ===== Sections ===== */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e1e2f;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff9800;
  margin-top: 5px;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  section p {
    text-align: center;
    font-size: 1rem;
  }
}

/* ===== Projects ===== */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #1e1e2f;
}

.project-card p {
  margin-bottom: 0.8rem;
  color: #555;
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
  color: #ff9800;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-card a:hover {
  color: #e68900;
}

/* ===== Contact ===== */
#contact {
  text-align: center;
}

#contact p {
  margin-top: 0.5rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  background: #1e1e2f;
  color: #fff;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

footer a {
  color: #ff9800;
  text-decoration: none;
}

footer a:hover {
  color: #ffa733;
}

/* ===== Social Links ===== */
.social-links {
  margin-top: 1rem;
}

.social-links a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #ff9800;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e68900;
}
.social-links a i {
  font-size: 28px;   /* Increase icon size */
  margin: 0 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a i:hover {
  color: #e68900;
  transform: scale(1.2); /* Slight zoom effect on hover */
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 160px;
  text-align: center;
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* Responsive Nav */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .right {
    width: 100%;
    display: none; /* hidden by default */
    text-align: center;
  }

  .right ul {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
  }

  .right.active {
    display: block; /* show when toggled */
  }
}