/*
 =========================
 DESIGN VARIABLES
 =========================
*/
:root {
  --navy: #071321;
  --dark: #050b14;
  --card: #101f32;
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --white: #ffffff;
  --gray: #cfd5dd;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --transition: 0.3s ease;
}

/*
 =========================
 RESET & BASE
 =========================
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, var(--navy), var(--dark));
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/*
 =========================
 GLOBAL CONTAINER
 =========================
*/
.container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 0 30px;
}

/*
 =========================
 HEADER
 =========================
*/
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 19, 33, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.header .container {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}

.brand-text p {
  color: var(--gray);
  font-size: 14px;
}

/*
 =========================
 NAVIGATION MENU
 =========================
*/
.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu a {
  font-size: 17px;
  transition: var(--transition);
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

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

.menu a:hover::after {
  width: 100%;
}

.menu-button {
  display: none;
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 30px;
  cursor: pointer;
}

/*
 =========================
 HERO SECTION
 =========================
*/
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(7, 19, 33, 0.75), rgba(5, 11, 20, 0.95));
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 50px 20px;
}

.hero h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--gold);
  margin-bottom: 25px;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gray);
}

.hero-buttons {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  transition: var(--transition);
}

.button:hover {
  transform: translateY(-3px);
}

.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
}

.secondary {
  border: 2px solid var(--gold);
  color: var(--gold);
}

/*
 =========================
 SECTIONS
 =========================
*/
.section {
  max-width: 1400px;
  margin: auto;
  padding: 80px 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray);
}

/*
 =========================
 CARDS
 =========================
*/
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

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

.card-content {
  padding: 25px;
  text-align: center;
}

.card-content h3 {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 10px;
}

.card-content p {
  color: var(--gray);
  font-size: 17px;
  white-space: pre-line;
}

/*
 =========================
 LOADING STATES
 =========================
*/
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 22px;
  color: var(--gold);
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 20, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 5px solid rgba(212, 175, 55, 0.3);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*
 =========================
 STATS SECTION
 =========================
*/
.stats {
  max-width: 1200px;
  margin: -50px auto 70px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.stat-card {
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  padding: 35px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 15px;
}

.stat-card strong {
  display: block;
  font-size: 55px;
  color: var(--gold);
}

/*
 =========================
 ABOUT SECTION
 =========================
*/
.about-card {
  background: rgba(16, 31, 50, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  font-size: 20px;
}

/*
 =========================
 CONTACT & SOCIAL ICONS
 =========================
*/
.contact {
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.social-icons a {
  width: 65px;
  height: 65px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
}

.social-icons i {
  font-size: 34px;
}

.social-icons img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.fa-whatsapp { color: #25D366; }
.fa-instagram { color: #E4405F; }
.fa-telegram { color: #229ED9; }

.social-link {
  flex-direction: column;
}

.social-link span {
  font-size: 13px;
  color: #25D366;
  margin-top: 2px;
}

/*
 =========================
 FOOTER
 =========================
*/
.footer {
  background: #03070d;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 50px 20px;
  text-align: center;
}

.footer img {
  width: 110px;
  margin: auto auto 20px;
}

.footer p {
  color: var(--gold);
  margin-top: 10px;
}

/*
 =========================
 TOAST NOTIFICATION
 =========================
*/
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--card);
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  border: 1px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 5000;
}

.toast.show {
  opacity: 1;
}

/*
 =========================
 UTILITY & STATE CLASSES
 =========================
*/
.error {
  background: rgba(198, 40, 40, 0.2);
  border: 1px solid #c62828;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.success {
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid #2e7d32;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray);
  font-size: 20px;
}

.hidden {
  display: none !important;
}

/*
 =========================
 ACCESSIBILITY
 =========================
*/
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 =========================
 MEDIA QUERIES
 =========================
*/
/* Large Desktop */
@media (min-width: 1600px) {
  .container { max-width: 1600px; }
  .section { max-width: 1600px; }
  .hero-content { max-width: 1100px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet / Laptop range */
@media (min-width: 601px) and (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h2 { font-size: 3.5rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile & Tablet Header collapse */
@media (max-width: 900px) {
  .header .container {
    height: auto;
    min-height: 80px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .brand-text h1 {
    font-size: 24px;
  }

  .menu-button {
    display: block;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }

  .menu.active {
    max-height: 500px;
  }

  .menu a {
    width: 100%;
    padding: 18px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu a::after {
    display: none;
  }

  .hero {
    min-height: 65vh;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .section {
    padding: 60px 20px;
  }

  .stats {
    grid-template-columns: 1fr;
    margin: 20px auto 50px;
  }
}

/* Small Phones */
@media (max-width: 600px) {
  .container { padding: 0 15px; }
  .brand { gap: 10px; }
  .brand img { width: 50px; height: 50px; }
  .brand-text h1 { font-size: 20px; }
  .brand-text p { display: none; }
  .hero h2 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
    padding: 14px 20px;
  }

  .cards { grid-template-columns: 1fr; }
  .card img { height: 220px; }
  .section-header h2 { font-size: 2rem; }
  .stat-card { padding: 25px; }
  .stat-card strong { font-size: 42px; }
  .about-card { padding: 25px 20px; font-size: 17px; }
  .social-icons { gap: 15px; }
  .social-icons a { width: 55px; height: 55px; }
  .social-icons i { font-size: 28px; }
  .footer { padding: 35px 15px; }
}
