/* ================= THEME VARIABLES ================= */
:root {
  --bg-main: #120A1D;
  --text-main: #B9AFC8;
  --text-heading: #FFFFFF;
  --primary: #F2A93B;
  --header-bg: transparent;
  --header-scrolled: rgba(18, 10, 29, 0.85);
  --header-border: rgba(255, 255, 255, 0.08);
  --footer-bg: #1C1228;
  --footer-bottom: #0f0b16;
  --nav-hover: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
}

/* ================= GLOBAL ================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 0;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: var(--header-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  padding: 14px 0;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img {
  width: 60px;
}

.logo span strong {
  display: block;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text-heading);
}

.logo span small {
  display: block;
  font-size: 13px;
  opacity: .7;
  color: var(--text-main);
}

/* NAV */
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading);
  padding: 10px 18px;
  border-radius: 8px;
  position: relative;
}

.nav-link:hover {
  background: var(--nav-hover);
  color: var(--primary);
}

.nav-auth {
  margin-left: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn-primary {
  background: var(--primary);
  color: #000000;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn-primary:hover {
  background: #e0952b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 169, 59, 0.2);
}

/* DROPDOWN */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: 0.3s;
}

.nav-dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--header-scrolled);
  backdrop-filter: blur(20px);
  border: 1px solid var(--header-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .3s;
  z-index: 9999;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 8px;
  color: var(--text-heading);
}

.dropdown-menu a:hover {
  background: var(--nav-hover);
  color: var(--primary);
}

/* ================= FOOTER ================= */

/* ================= FOOTER ================= */
.footer {
  background: #0f0b16; /* Unified dark background */
  color: var(--text-main);
  margin-top: 0; 
  padding: 40px 0 0; /* Reduced top padding */
  border-top: 1px solid rgba(242, 169, 59, 0.1); 
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 60px;
  align-items: start;
}

.footer-brand .footer-logo { 
  width: 65px; 
  margin-bottom: 15px;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.footer-brand .footer-logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.footer-brand h3 { 
  color: var(--text-heading); 
  font-size: 15px; 
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 15px; 
  font-weight: 700; 
}

.footer-brand p { 
  font-size: 14px; 
  line-height: 1.6; 
  opacity: 0.8; 
  max-width: 280px; 
  margin-bottom: 20px;
}

.footer-col {
  margin-top: 15px; 
}

.footer h4 {
  color: var(--text-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { 
  color: var(--text-main); 
  font-size: 14px; 
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}
.footer-links a:hover { 
  color: var(--primary); 
  transform: translateX(5px); 
}

.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { 
  display: flex; 
  align-items: flex-start;
  gap: 12px; 
  margin-bottom: 12px; 
  font-size: 14px;
  line-height: 1.5;
}
.contact-info i { 
  color: var(--primary); 
  font-size: 16px; 
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.social-icon {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-main);
  font-size: 14px;
}
.social-icon:hover {
  background: var(--primary);
  color: #000 !important;
  border-color: var(--primary);
  transform: translateY(-5px);
}

.footer-bottom {
  padding: 30px 0;
  background: #0d0912; /* Slightly darker bottom bar */
  border-top: 1px solid rgba(255,255,255,0.03);
}
.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { 
  font-size: 13px; 
  opacity: 0.6; 
  margin: 0; 
}

@media(max-width: 900px){
  .footer-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .contact-info li { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-bottom-wrap { flex-direction: column; gap: 15px; text-align: center; }
}

/* ================= ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-heading);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media(max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .header.menu-open {
    background: #120A1D !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--header-border) !important;
  }

  body.menu-open-body {
    overflow: hidden !important;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #120A1D !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 100px 24px;
    border-bottom: none;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 16px;
    border-bottom: 1px solid var(--header-border);
    border-radius: 0;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    display: none;
    background: transparent;
    padding-left: 20px;
    border: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-auth {
    margin: 20px 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin-left: 0 !important;
  }

  .nav-auth a {
    text-align: center;
  }

  .nav-auth .nav-link {
    border-bottom: none !important;
    padding: 12px 16px !important;
  }

  .nav-auth .nav-btn-primary {
    display: block;
    width: 100%;
    padding: 14px 20px !important;
    box-sizing: border-box;
    font-size: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 0;
  }
}