/* ==========================================
   AKINF2P MAIN STYLE SHEET
========================================== */

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #0d0804;
  --bg-card: #140d06;
  --bg-input: #1f150b;
  --gold: #866e43;
  --gold-hover: #6e5a35;
  --gold-light: rgba(134, 110, 67, 0.15);
  --gold-border: rgba(134, 110, 67, 0.3);
  --text-primary: #ffffff;
  --text-muted: #a39580;
  --admin-accent: #d97706;
  --admin-accent-light: rgba(217, 119, 6, 0.18);
  --vip-accent: #f0c975;
  --vip-accent-dark: #b8873a;
  --vip-accent-light: rgba(240, 201, 117, 0.18);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Outfit", "Montserrat", -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.hero-title,
.sidebar-title,
.page-heading h1 {
  font-family: var(--font-heading);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ==========================================
   HEADER & NAVBAR
========================================== */

header {
  position: relative;
  width: 100%;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease;

  /* Glass Look Properties */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center; /* Ensures the logo interior layout is centered */
}

.logo img {
  height: 54px; /* Increased logo size */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  border: none;
  cursor: pointer;
  padding: 8px;
  background: transparent;
}

.mobile-menu-toggle:hover {
  background: rgba(134, 110, 67, 0.15);
}

.mobile-menu-icon {
  width: 24px !important; /* Forces it to break past any layout blocks */
  height: 24px !important; /* Forces clean, square proportions */
  object-fit: contain !important;
  display: block !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  width: 100%;
  margin: 0 60px;
  list-style: none;
}

.nav-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.nav-links li a:hover {
  transform: translateY(-2px);
  background: var(--gold-light);
}

.nav-icon {
  height: 42px; /* Increased desktop icon size */
  width: auto;
  object-fit: contain;
}

.nav-buttons {
  display: flex;
  align-items: center;
}

.account-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.account-btn:hover {
  transform: scale(1.08);
}

/* Navbar & Header Tablet Adjustments (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    padding: 14px 24px;
  }

  .logo img {
    height: 48px;
  }

  .nav-icon {
    height: 36px;
  }

  .nav-links {
    gap: clamp(16px, 3vw, 36px);
  }
}

/* Mobile Navbar Dropdown (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 4px 16px;
    background: transparent;
  }

  .logo img {
    height: 42px; /* Compact on smaller screens */
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 58px;
    right: 16px;
    width: 52px;
    min-width: 52px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 6px 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    flex: initial;
    z-index: 200;
  }

  .nav-menu.open {
    display: flex;
    animation: fadeInDown 0.22s ease-out forwards;
  }

  .nav-links {
    flex-direction: column; /* Vertical column layout */
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-links li a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    border-radius: 8px;
  }

  .nav-icon {
    height: 28px;
  }

  .nav-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid rgba(134, 110, 67, 0.2);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   HERO SECTION
========================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #0b0b0d;
}

/* Hero Image Carousel (coverflow style: center item large & sharp,
   side items smaller & blurred, back item furthest back & most blurred) */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0b0b0d;
  overflow: hidden;
}

.hero-carousel-grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/></svg>");
  background-size: 200px 200px;
  background-repeat: repeat;
}

.hero-carousel-stage {
  position: absolute;
  inset: 0;
  top: 5vh;
  bottom: 5vh;
  z-index: 3;
}

.carousel-slide {
  position: absolute;
  aspect-ratio: 0.7 / 1;
  left: 50%;
  top: 50%;
  height: 70%;
  transform: translate(-50%, -50%) scale(0.7);
  filter: blur(5px);
  opacity: 0.25;
  z-index: 5;
  transition:
    transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
    left 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.carousel-slide.role-center {
  transform: translate(-50%, -50%) scale(1.8);
  filter: blur(0px);
  opacity: 1;
  z-index: 20;
  left: 50%;
  top: 50%;
  height: 100%;
}

.carousel-slide.role-left {
  transform: translate(-50%, -50%) scale(0.95);
  filter: blur(2px);
  opacity: 0.5;
  z-index: 10;
  left: 32%;
  top: 50%;
  height: 85%;
}

.carousel-slide.role-right {
  transform: translate(-50%, -50%) scale(0.95);
  filter: blur(2px);
  opacity: 0.5;
  z-index: 10;
  left: 68%;
  top: 50%;
  height: 85%;
}

.carousel-slide.role-back {
  transform: translate(-50%, -50%) scale(0.7);
  filter: blur(5px);
  opacity: 0.25;
  z-index: 5;
  left: 50%;
  top: 50%;
  height: 70%;
}

@media (max-width: 640px) {
  .carousel-slide.role-center {
    transform: translate(-50%, -50%) scale(1.4);
  }

  .carousel-slide.role-left {
    left: 22%;
  }

  .carousel-slide.role-right {
    left: 78%;
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
}

.hero-content {
  position: relative;
  z-index: 30;
  text-align: left;
  max-width: 310px;
  padding: 100px 20px 35px 28px;
  margin: 0;
}

.hero-text-short {
  display: block; /* Changes from none to visible */
  max-width: 180px; /* Forces text to wrap early and stay narrow */
  text-align: left; /* Keeps alignment matching the title */
  font-size: 0.75rem; /* Keeps the text scaled well for mobile */
  line-height: 1.4; /* Improves readability when wrapped */
  color: #ffffff; /* Adjust color as needed */
}

.hero-title {
  color: var(--gold); /* Gold color #866e43 */
  font-family: "Cinzel", "Playfair Display", var(--font-heading);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
  text-align: left;
}

.hero-text {
  color: #cccccc;
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  line-height: 1.5;
  max-width: 180px;
  margin: 0;
  text-align: left;
}

/* Desktop Hero explicit overrides (>= 1025px) */
@media (min-width: 1025px) {
  .hero {
    justify-content: flex-start;
    align-items: center;
  }

  .hero-content {
    text-align: left;
    max-width: 260px;
    padding: 120px 20px 35px 24px;
    margin: 0;
  }

  .hero-title {
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    text-align: left;
    margin-bottom: 8px;
  }

  .hero-text {
    font-size: clamp(0.68rem, 0.78vw, 0.78rem);
    max-width: 340px; /* Increased from 230px to fit text on 3 lines */
    text-align: left;
    margin: 0;
  }

.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 24px; /* Creates clean spacing between links */
  }

  /* Formats the actual link items to make sure they are bright and readable over dark glass */
  .nav-links a {
    color: #ffffff !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  /* Optional: Adds a beautiful subtle hover color matching your theme */
  .nav-links a:hover {
    color: #d1c8bd !important;
  }

  /* Keeps the height of your navbar tightly pulled upward */
  .navbar {
    padding: 8px 32px !important; 
  }

  /* Hides the mobile hamburger menu icon completely on desktop */
  .mobile-menu-toggle {
    display: none !important;
  }

  /* Keeps your desktop navigation links block visible */
  .nav-menu {
    display: flex !important;
  }

}

/* Tablet Hero (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    padding: 80px 24px 35px;
    max-width: 480px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    text-align: center;
  }

  .hero-text {
    font-size: 0.9rem;
    max-width: 440px;
    text-align: center;
    margin: 0 auto;
  }
}

/* Mobile Hero (<= 768px) */
@media (max-width: 768px) {
  .hero {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 24px;
    padding-left: 14px;
    padding-right: 10px;
    max-width: 190px;
    align-self: flex-start;
    text-align: left;
    margin-left: 0;
  }

  .hero-title {
    font-size: 0.42rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px; /* Tiny bottom margin to keep paragraph close */
    letter-spacing: 0.1px;
    text-align: left;
    max-width: 100%; /* Removes width restriction to force title onto one line */
    white-space: nowrap; /* Explicitly guarantees the title won't break into two lines */
  }

  /* 1. Mobile Styles (Default) */
  .hero-text {
    font-size: 0.32rem;
    line-height: 1.3;
    color: #d1c8bd;
    width: 75px;
    max-width: 75px;
    margin: 0; /* Sits perfectly right below the title margin */
    text-align: left;
    word-break: break-word;
  }
  .hero-text-full {
    display: none !important; /* Forces the long paragraph version to stay hidden */
  }

  .hero-text-short {
    display: block;
    font-size: 0.36rem;
    line-height: 1.3;
    color: #d1c8bd;
    max-width: 80px; /* Narrowed further to force the middle words to wrap */
    margin: 0;
    text-align: left;
    word-break: break-word; /* Forces long words to break cleanly if they run out of space */
    overflow-wrap: break-word; /* Standard modern property for preventing text spillover */
  }
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  background-color: #0e0e10;
  border-top: none;
  padding: 48px 32px 28px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.footer-column.footer-logo-col {
  flex: 0 0 auto;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.footer-column h3 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Footer Newsletter Column & Form */
.footer-column.footer-newsletter-col {
  min-width: 260px;
  max-width: 340px;
  flex: 1.2 1 auto;
}

.footer-newsletter-desc {
  color: #a39580;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.newsletter-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.newsletter-input-wrapper:focus-within {
  border-color: #e0b351;
  box-shadow: 0 0 12px rgba(224, 179, 81, 0.25);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  padding: 6px 0;
  width: 100%;
}

.newsletter-input::placeholder {
  color: #706352;
}

.newsletter-btn {
  background: linear-gradient(135deg, #e0b351, #b8860b);
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.newsletter-msg {
  font-size: 0.82rem;
  margin-top: 6px;
  line-height: 1.35;
  display: none;
}

.newsletter-msg.success {
  display: block;
  color: #4ade80;
}

.newsletter-msg.error {
  display: block;
  color: #ef4444;
}

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #706352;
  font-size: 0.85rem;
}

.footer-bottom a {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.footer-bottom a:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  text-underline-offset: 6px;
  filter: brightness(1.25);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Hide Instagram & TikTok links without removing code */
a[href*="instagram.com"],
a[href*="tiktok.com"] {
  display: none !important;
}

/* Tablet Footer (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer {
    padding: 40px 24px 24px;
  }

  .footer-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    max-width: 960px;
  }

  .footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-column a {
    font-size: 0.88rem;
  }
}

/* Mobile Footer (<= 768px) */
@media (max-width: 768px) {
  .footer {
    padding: 32px 20px 20px;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
  }

  .footer-column.footer-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
  }

  .footer-logo {
    height: 64px;
    width: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
    text-align: center;
  }

  .footer-column h3 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 4px;
  }

  .footer-column a {
    justify-content: center;
    font-size: 0.88rem;
  }

  .footer-column.footer-newsletter-col {
    min-width: 100%;
    align-items: center;
    text-align: center;
  }

  .newsletter-form {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   Adds a premium, gentle fade + rise-in effect
   for sections/cards as the user scrolls down.
========================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-fade-only {
  transform: none;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS never runs (e.g. blocked), don't leave content invisible */
.no-js .reveal-on-scroll,
.reveal-on-scroll.reveal-fallback-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
