/* ===== GENERAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  color: #111827;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 70px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .logo img {
  height: 40px;
}

.navbar nav a {
  margin-left: 26px;
  font-weight: 500;
  color: #1f2937;
  position: relative;
  transition: color 0.3s;
}

.navbar nav a.active,
.navbar nav a:hover {
  color: #2563eb;
}

.navbar nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #2563eb;
}

/* ================= SIDEBAR (ADDED) ================= */

.menu-btn {
  display: none;
}

.sidebar {
  position: fixed;
  left: -260px;              /* 🔥 hidden on LEFT */
  top: 0;
  width: 260px;
  height: 100vh;
  background: #020617;
  padding-top: 60px;
  transition: left 0.35s ease;
  z-index: 2000;
}

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 16px;
  border-radius: 6px;
}

.sidebar a:hover {
  background: #1e293b;
}

.sidebar a:hover {
  background: #f1f5f9;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: #ffffff;
}

/* ===== PAGE HERO ===== */
.page-hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(
      rgba(47, 48, 71, 0.6),
      rgba(52, 57, 78, 0.6)
    ),
    url("../assets/project-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #fff;
}

.page-hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
}

/* ===== PROJECTS GRID ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 260px;
}

.project-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 15px;
}

.project-card .tag {
  display: inline-block;
  padding: 8px 15px;
  background-color: #6366f1;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* ================= SCROLL ANIMATION ================= */
.project-card {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

.project-card:nth-child(1).show { transition-delay: 0.1s; }
.project-card:nth-child(2).show { transition-delay: 0.3s; }
.project-card:nth-child(3).show { transition-delay: 0.5s; }
.project-card:nth-child(4).show { transition-delay: 0.7s; }

/* ===== PROJECT MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 16px;
  color: #4b5563;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #1f2937;
}

.modal-content .close:hover {
  color: #6366f1;
}

/* ================= CONTACT / FOOTER ================= */
.contact-dark {
  background: linear-gradient(135deg, #020617, #020b2d);
  color: #e5e7eb;
  padding: 80px 70px 40px;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.contact-dark h2,
.contact-dark h3 {
  color: #ffffff;
  margin-bottom: 14px;
}

/* TEXT */
.contact-dark p {
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.7;
}

/* 🔥 FIXED COMPANY LINKS */
.contact-dark a,
.contact-dark a:link,
.contact-dark a:visited {
  display: block;
  margin-bottom: 8px;
  color: #c7d2fe !important;
  text-decoration: none !important;
  font-size: 15px;
}

.contact-dark a:hover {
  color: #6366f1 !important;
  text-decoration: underline !important;
}

/* Container for social icons */
.social-icons {
  display: flex;       /* Makes children horizontal */
  gap: 12px;           /* Space between icons */
  align-items: center; /* Vertically center if needed */
}

/* Individual icons */
.social-icons a {
  font-size: 18px;
  color: #c7d2fe;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #6366f1;
}


/* BOTTOM BAR */
.contact-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .navbar nav {
    display: none;
  }

  .menu-btn {
    display: block;
    position: fixed;
    top: 18px;
    left: 18px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2100;
    color: #111827;
  }

  .navbar {
    padding: 14px 20px;
  }

  .navbar .logo {
    margin-left: 40px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p {
    font-size: 18px;
  }

  .project-card h2 {
    font-size: 20px;
  }
}
