/* ===============================
   ROOT VARIABLES
================================ */
:root {
  --primary: #e6c78a;
  --bg-dark: #0f0f0f;
  --bg-light: #111827;
  --text: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

/* ===============================
   BODY
================================ */
body {
  color: var(--text);
  background: linear-gradient(to right, var(--bg-dark), var(--bg-light));
}

/* ===============================
   NAVBAR
================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(15px, 4vw, 20px) clamp(20px, 6vw, 80px);
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* LOGO */
nav h1 {
  font-size: 24px;
  letter-spacing: 2px;
  color: #fff;
}

/* NAV LINKS */
nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
  transition: 0.3s ease;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #ddd;
  font-size: 15px;
  transition: 0.3s ease;
  position: relative;
}

/* UNDERLINE EFFECT */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

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

/* ===============================
   DROPDOWN
================================ */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  border-radius: 8px;
  display: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
}

.dropdown-menu li a:hover {
  background: #222;
  color: var(--primary);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===============================
   HAMBURGER (NEW)
================================ */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

/* ===============================
   SECTIONS
================================ */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 6vw, 80px);
  background-size: cover;
  background-position: center;
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

section * {
  position: relative;
  z-index: 1;
}

/* Disable fixed background on mobile */
@media (max-width: 768px) {
  section {
    background-attachment: scroll;
  }
}

/* Backgrounds */
#home { background-image: url("../img/gg/gg1.jpg"); }
#about { background-image: url("../img/gg/gg3.jpg"); }
#mission { background-image: url("../img/gg/gg2.jpg"); }
#clients { background-image: url("../img/gg/clients.jpg"); }
#contact { background-image: url("../img/gg/contact.png"); }

/* ===============================
   TEXT
================================ */
h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  margin-bottom: 20px;
}

p {
  max-width: 800px;
  opacity: 0.85;
  line-height: 1.6;
}

/* ===============================
   CARDS
================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: linear-gradient(145deg,#1a1a1a,#222);
  padding: 25px;
  border-radius: 20px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

/* ===============================
   APPLICATION GRID
================================ */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: clamp(80px, 10vw, 120px) 20px;
  background: #0f0f0f;
}

.application-card {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.application-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.application-card h3 {
  text-align: center;
  padding: 15px;
}

.application-card:hover {
  transform: translateY(-8px);
}

/* ===============================
   MODAL
================================ */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
}

.modal-content {
  width: min(90%, 900px);
  background: #111;
  border-radius: 15px;
  display: flex;
  overflow: hidden;
}

.modal-left {
  flex: 1;
  padding: 30px;
}

.modal-right {
  flex: 1;
}

.modal-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  cursor: pointer;
}

/* ===============================
   CONTACT + SOCIAL
================================ */
.contact-box {
  background: rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--primary);
}

.social-icons a:hover {
  background: var(--primary);
  color: #000;
}

/* ===============================
   FOOTER
================================ */
footer {
  text-align: center;
  padding: 30px;
  background: #000;
}

/* ===============================
   MOBILE RESPONSIVE (UPDATED)
================================ */
@media (max-width: 768px) {

  nav {
    flex-direction: row;
  }

  /* SHOW HAMBURGER */
  .menu-toggle {
    display: block;
  }

  /* MOBILE MENU */
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #eaeaea;
    flex-direction: column;
    padding: 20px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul li a {
    color: #222;
    font-size: 16px;
    font-weight: 600;
  }

  nav ul li a::after {
    display: none;
  }

  /* MOBILE DROPDOWN */
  .dropdown-menu {
    position: relative;
    background: none;
    padding-left: 15px;
    display: none;
  }

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

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  section {
    padding: 80px 20px;
  }

  .modal-content {
    flex-direction: column;
  }

  .modal-right img {
    height: 200px;
  }
}