/* ============================================================= */
/* GLOBAL RESET */
/* ============================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
  overflow-x: hidden;
}

/* ============================================================= */
/* NAVBAR */
/* ============================================================= */

nav {
  background-color: #111827;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1100;
}

nav .logo {
  font-size: 22px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ffcc00;
}

/* DROPDOWN */
nav ul li.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #0b2338;
  top: 100%;
  min-width: 200px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 1200;
}

.dropdown-menu a {
  padding: 10px;
  display: block;
  text-decoration: none;
  color: white;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ============================================================= */
/* HAMBURGER MENU */
/* ============================================================= */

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: white;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #0b2338;
  padding: 20px;
  position: absolute;
  top: 80px;
  left: 0;
  z-index: 1500;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: #ffcc00;
}

.mobile-menu.active {
  display: flex;
}

/* MOBILE DROPDOWN FIX (NEEDED) */
.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
}

.mobile-dropdown-menu a {
  border: none;
  padding: 10px 0;
}

.mobile-dropdown-menu.active {
  display: flex;
}

/* ============================================================= */
/* HEADING SECTION */
/* ============================================================= */

.heading-section {
  padding-top: 140px;
  padding-left: 60px;
  padding-right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.heading-section h1 {
  font-size: 60px;
  font-weight: 600;
}

.heading-section .right {
  max-width: 420px;
}

.heading-section .right h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.heading-section .right p {
  font-size: 16px;
  line-height: 1.6;
}

.divider {
  margin: 40px 60px;
  border: none;
  border-top: 1px solid #ccc;
}

/* ============================================================= */
/* PROJECT GRID */
/* ============================================================= */

.projects-container {
  padding: 20px 60px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  text-align: center;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #0b233887;
}

.project-card h3 {
  font-size: 22px;
  margin: 15px 0 10px;
}

.project-card p {
  font-size: 15px;
  margin: 5px 0;
}

.project-card .location {
  margin: 12px 0 24px;
  font-weight: bold;
}

/* ============================================================= */
/* FOOTER */
/* ============================================================= */

footer {
  background: #111827;
  color: #e5e7eb;
  padding: 60px 60px 30px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: #e5e7eb;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #60a5fa;
}

.footer-col p {
  margin-bottom: 8px;
}

.privacy-bar-wrapper {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #374151;
}

.privacy-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.privacy-bar a {
  color: #9ca3af;
}

/* ============================================================= */
/* RESPONSIVE */
/* ============================================================= */

/* 1440px */
@media (max-width: 1440px) {
  nav { padding: 20px 40px; }
  .heading-section h1 { font-size: 50px; }
}

/* 1024px */
@media (max-width: 1024px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading-section { gap: 25px; }
}

/* 900px – Tablet */
@media (max-width: 900px) {

  nav { padding: 15px 25px; }

  /* hide desktop nav */
  nav ul { display: none; }

  /* show menu toggle */
  .menu-toggle { display: block; }

  .heading-section {
    flex-direction: column;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .projects-container {
    padding: 20px;
    grid-template-columns: 1fr;
  }
}

/* 768px */
@media (max-width: 768px) {
  .heading-section h1 { font-size: 42px; }
}

/* 425px */
@media (max-width: 425px) {
  .heading-section h1 { font-size: 34px; }
  .project-card img { height: 220px; }
}

/* 375px */
@media (max-width: 375px) {
  nav .logo { font-size: 18px; }
  .heading-section h1 { font-size: 30px; }
}

/* 320px */
@media (max-width: 320px) {
  nav { padding: 12px 18px; }
  .heading-section h1 { font-size: 26px; }
  .project-card img { height: 200px; }
}
