@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #007bff;

  /* Rich Premium Palette */
  --primary: hsl(215, 100%, 55%);
  --primary-dark: hsl(215, 100%, 45%);
  --primary-light: hsl(215, 100%, 85%);
  --accent: hsl(348, 100%, 65%);
  --accent-dark: hsl(348, 89%, 45%);
  --success: hsl(158, 100%, 45%);
  --warning: hsl(36, 100%, 55%);
  --danger: hsl(0, 100%, 60%);
  --info: hsl(212, 100%, 65%);
  --cyan: hsl(188, 100%, 55%);

  /* Deep Space Backgrounds */
  --bg-dark: #020207;
  --bg-darker: #000000;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-solid: #0A0A16;
  --bg-card-hover: rgba(124, 58, 237, 0.12);
  --bg-input: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-overlay: rgba(2, 2, 7, 0.95);

  /* High Contrast Text */
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #000000;

  /* Cosmic Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(124, 58, 237, 0.6);
  --border-focus: rgba(124, 58, 237, 0.9);

  /* Curvature */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 9999px;

  /* Luxury Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  --shadow-primary: 0 0 40px rgba(124, 58, 237, 0.4);
  --shadow-accent: 0 0 40px rgba(244, 63, 94, 0.4);
  --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.6);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.1);

  /* Fluid Motion */
  --transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
  --transition-fast: all 0.25s cubic-bezier(0.2, 1, 0.2, 1);
  --transition-slow: all 1.2s cubic-bezier(0.2, 1, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', 'Poppins', sans-serif;

  --nav-height: 80px;
  --container-max: 1320px;
  --sidebar-width: 280px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  user-select: none; /* Native app feel */
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  font-family: inherit;
  user-select: auto;
  -webkit-user-select: auto;
}

ul {
  list-style: none;
}

/* ===== SCROLLBAR (HIDDEN FOR APP FEEL) ===== */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html, body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION ===== */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--cyan), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--success), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-light);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  /* backdrop-filter disabled for performance */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

img.nav-logo-icon {
  background: transparent !important;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
}

.nav-logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124, 58, 237, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(244, 63, 94, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.5) 80%, transparent);
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.flag {
  font-size: 20px;
}

/* ===== LUXURY BACKGROUNDS ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.2) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.15) 0, transparent 50%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== LUXURY UTILITIES ===== */
.glass-luxury {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  /* backdrop-filter disabled for performance */
  
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 55%
  );
  animation: shimmer-anim 15s infinite linear;
  pointer-events: none;
}

@keyframes shimmer-anim {
  0% { transform: translate(-30%, -30%) rotate(0deg); }
  100% { transform: translate(30%, 30%) rotate(360deg); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: translate3d(0,0,0) rotate(0deg); }
  34% { border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%; transform: translate3d(10px,-20px,0) rotate(5deg); }
  67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: translate3d(-20px,10px,0) rotate(-5deg); }
}

/* ===== BACKGROUND BLOBS ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.18);
  top: -150px;
  right: -150px;
  animation: blob-morph 15s infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(244, 63, 94, 0.12);
  bottom: -100px;
  left: -100px;
  animation: blob-morph 20s infinite alternate-reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blob-morph 18s infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn-outline {
    display: none; /* Hide login buttons on mobile nav to save space */
  }

  .nav-logo-text {
    font-size: 16px; /* Smaller logo text on mobile */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== BRAND NAME ANIMATION ===== */
.dynamic-brand-name {
    background: linear-gradient(90deg, #ffffff 0%, var(--primary-light) 40%, #ffffff 60%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineBrand 3s linear infinite;
    display: inline-block;
}

@keyframes shineBrand {
    to {
        background-position: 200% center;
    }
}


/* ==========================================================================
   UNIVERSAL MOBILE RESPONSIVE FIXES
   ========================================================================== */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
    }
    body {
        overflow-x: hidden !important;
    }
    
    .nav-brand {
        font-size: 16px !important;
        white-space: normal;
        word-break: break-all;
        max-width: 140px;
        line-height: 1.2;
    }
    
    .nav-actions .btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .nav-actions a[href*="register-customer.html"] {
        display: none !important;
    }
}


/* ===== DYNAMIC THEMES ===== */
[data-theme="light"] {
  --primary: #0052cc;
  --primary-dark: #0043a6;
  --primary-light: #e6f0ff;
  --accent: #f06a18;
  --accent-dark: #d55910;

  --bg-dark: #f0f4f8; 
  --bg-darker: #ffffff;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-overlay: rgba(255, 255, 255, 0.95);

  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-dark: #ffffff;

  --border: #e2e8f0;
  --border-light: #edf2f7;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}
