@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&display=swap');

:root {
  --bg-dark: #0b0b0b;
  --bg-card: #141414;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --accent: #FFD700;
  /* Gold/Amber */
  --accent-dim: rgba(255, 215, 0, 0.1);
  --border-light: rgba(255, 255, 255, 0.08);

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1400px;
}

/* --- WHATSAPP STICKY BUTTON --- */
.whatsapp-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-sticky svg {
  width: 35px;
  height: 35px;
  fill: #fff;
}

/* Pulse Animation */
.whatsapp-sticky::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  z-index: -1;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .whatsapp-sticky {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-sticky svg {
    width: 28px;
    height: 28px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ensure no horizontal scroll globally */
html {
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 90%;
  padding: 0;
}

.text-accent {
  color: var(--accent);
}

.btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: 0.4s ease;
}

header.scrolled {
  background: rgba(11, 11, 11, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  z-index: 101;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 102;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- MOBILE MENU (SIDE DRAWER) --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 400px;
  height: 100%;
  background: #1a1a1a;
  padding: 30px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 9999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.mobile-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  width: 100%;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  opacity: 0;
  transform: translateX(20px);
  transition: 0.3s;
  width: 100%;
  display: block;
}

/* Stagger Animation */
.mobile-menu-overlay.active .mobile-nav a {
  animation: revealItem 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes revealItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.close-menu {
  position: static;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.mobile-menu-footer {
  margin-top: auto;
  width: 100%;
}

/* --- FOOTER --- */
.footer {
  padding: 100px 0 40px;
  background: #050505;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer p {
  line-height: 1.6;
}

.footer a {
  display: block;
  margin-bottom: 12px;
}

.footer a:hover {
  color: #fff;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-links a {
  color: #777;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-links svg {
  fill: currentColor;
}

.copyright {
  border-top: 1px solid #1a1a1a;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {

  /* Centralized Mobile Container */
  .container {
    width: 100%;
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  header {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
  }

  /* Simplified Mobile Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  /* Hide Quick Links (Col 2) and Connect Links (Col 3) on mobile */
  .footer-grid>div:nth-child(2),
  .footer-grid>div:nth-child(3) {
    display: none;
  }

  /* Uncomment above if you really want to hide them, keeping visible for now based on typical needs */

  .copyright {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  /* Prevent horizontal overflow on very small devices */
  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }
}

/* Fix for "zoomed in" look on tablets (720px) */
@media (max-width: 800px) {
  html {
    font-size: 14px;
    /* Scales down all rem-based sizes */
  }

  .logo img,
  .mobile-logo img,
  .footer-logo img {
    height: 35px;
    /* Smaller logo on tablets */
  }

  .logo-text {
    font-size: 1.2rem;
    /* Compact text */
  }

  .footer-logo .logo-text {
    font-size: 1.4rem;
  }

  .section-heading {
    font-size: 2.2rem;
    /* Reduce huge headings */
  }

  .container {
    padding: 0 20px;
    /* Ensure padding */
  }
}

/* --- LOGO & BRANDING UPDATES --- */
/* Logo & Branding Updates */
.logo,
.mobile-logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img,
.mobile-logo img,
.footer-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-logo .logo-text {
  font-size: 1.8rem;
  /* Slightly larger in footer */
}

/* Specific Adjustments */
header.scrolled .logo img {
  height: 40px;
}

header.scrolled .logo-text {
  font-size: 1.3rem;
}

.mobile-logo img {
  height: 35px;
}

.mobile-logo .logo-text {
  font-size: 1.2rem;
}

/* Spirezen Tooltip */
.spirezen-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Align to right if needed */
}

/* Copyright Text Wrapper */
.copyright-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.spirezen-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  /* Removed extra margin */
}

.spirezen-icon {
  height: 24px;
  /* Slightly smaller for better text flow */
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: brightness(0.8);
  margin-top: 4px;
  transform: translateY(1px);
  /* Visual alignment correction */
}

.spirezen-icon:hover {
  transform: scale(1.1);
  filter: brightness(1);
}

.spirezen-tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: #fff;
  color: #000;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 100;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  white-space: nowrap;
}

.spirezen-container:hover .spirezen-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.spirezen-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* --- MODAL STYLES (Global) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #1a1a1a;
  margin: auto;
  padding: 40px;
  border: 1px solid var(--accent);
  width: 90%;
  max-width: 500px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.modal h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.modal p {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.close-modal {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* --- MOBILE LOGO FIX --- */
/* Ensure this comes last to override previous settings */
@media (max-width: 900px) {

  .logo img,
  .mobile-logo img,
  .footer-logo img {
    height: 35px !important;
    width: auto;
  }

  .logo-text,
  .mobile-logo .logo-text {
    font-size: 1.2rem !important;
  }
}