/* ===============================
   ROOT VARIABLES
================================ */
:root {
  --gold: #c5a462;
  --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 (PREMIUM)
================================ */
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 */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--gold);
  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(--gold);
}

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

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

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

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

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

/* ===============================
   BACKGROUNDS
================================ */
#automation { background-image: url("https://images.unsplash.com/photo-1558002038-1055907df827"); }
#security { background-image: url("https://images.unsplash.com/photo-1581092334651-ddf26d9a09d0"); }
#theatre { background-image: url("https://images.unsplash.com/photo-1593359677879-a4bb92f829d1"); }
#cleaning { background-image: url("../img/gg/gg4.jpg"); }
#power { background-image: url("https://images.unsplash.com/photo-1509395176047-4a66953fd231"); }
#applications { background-image: url("../img/gg/gg8.jpg"); }

/* ===============================
   TEXT
================================ */
h1, h2 {
  font-weight: 400;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--gold);
}

p {
  color: #ccc;
  line-height: 1.6;
  max-width: 800px;
}

/* ===============================
   GRID
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* ===============================
   CARD
================================ */
.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 20px;
  transition: 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border: 1px solid var(--gold);
}

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

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

.application-card {
  background: #1b1e24;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s;
}

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

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

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

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

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

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

.modal-right {
  flex: 1;
}

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

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

/* ===============================
   CONTACT + FOOTER
================================ */
.contact-box {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
}

footer {
  text-align: center;
  padding: 25px;
  background: #000;
}

/* ===============================
   SOCIAL
================================ */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--gold);
}

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

  nav {
    flex-direction: row;
    padding: 15px;
  }

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

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

  /* SHOW MENU */
  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
    width: 100%;
  }

  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;
  }

  .application-card img {
    height: 160px;
  }
}

/* SMALL DEVICES */
@media (max-width: 600px) {

  h2 {
    font-size: 22px;
  }

  nav h1 {
    font-size: 18px;
  }
}