/* JW Global Premium Styles */

:root {
  --midnight: #0A1428;
  --gold: #D4AF37;
  --gold-light: #F4D03F;
  --gold-dark: #B8932F;
  --emerald: #10B981;
  --blue: #3B82F6;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* Color Classes */
.bg-midnight {
  background-color: var(--midnight);
}

.text-gold {
  color: var(--gold);
}

.gold-text {
  color: var(--gold);
}

/* Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.gold-button {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--midnight);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gold-button:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.glass-button {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* Business Card */
.business-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.business-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

/* Timeline */
.timeline-item {
  position: relative;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Partner Logos */
.partner-logo {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.05);
}

.partner-logo-large {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  color: white;
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.partner-logo-large:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* Shadows */
.shadow-gold {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

/* Navigation */
#mainNav {
  background: rgba(10, 20, 40, 0);
  transition: all 0.3s ease;
}

#mainNav.scrolled {
  background: rgba(10, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Particle Animation */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  animation: float 10s infinite;
  opacity: 0.3;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out;
}

/* Mobile Menu Animations */
#mobileMenu {
  animation: slide-down 0.3s ease-out;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobileMenu.hidden {
  display: none;
}

/* Mobile menu scrollbar */
#mobileMenu::-webkit-scrollbar {
  width: 4px;
}

#mobileMenu::-webkit-scrollbar-track {
  background: transparent;
}

#mobileMenu::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .gold-gradient-text {
    font-size: 2.5rem;
  }
  
  .partner-logo-large {
    font-size: 1.5rem;
    padding: 1.5rem;
  }
}

/* Mobile Optimization - Android & iPhone */
@media (max-width: 640px) {
  /* Base font size adjustments */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Touch-friendly minimum sizes */
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Hero text scaling */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  /* Padding adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Card spacing */
  .space-y-8 > * + * {
    margin-top: 1.5rem;
  }
  
  /* Mobile menu improvements */
  #mobileMenu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Button sizing */
  .gold-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Image optimization */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* iPhone specific optimizations */
@supports (-webkit-touch-callout: none) {
  /* iOS safe areas */
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  /* Fix iOS input zoom */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* Smooth scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }
}

/* Tablet optimization (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  h1 {
    font-size: 3rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--midnight);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Input Styles */
input, textarea, select {
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Text Selection */
::selection {
  background: var(--gold);
  color: var(--midnight);
}

::-moz-selection {
  background: var(--gold);
  color: var(--midnight);
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .glass-card {
    border: 1px solid #ccc;
    background: white;
  }
}
