:root {
  --primary-color: #0A174C;
  --secondary-color: #02061A;
  --accent-color: #3b82f6; /* Electric blue accent */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html, body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--secondary-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(10, 23, 76, 0.8), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15), transparent 25%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

header {
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--text-main);
}

/* Global Nav Fixes for Desktop and Mobile */
nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}
nav > * {
    margin: 0 !important;
}
nav > div, nav > span {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

main {
  padding: 1rem 5%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 70vh;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  animation: slideUp 1s ease-out;
}

.cta-group {
  display: flex;
  gap: 1rem;
  animation: slideUp 1.2s ease-out;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: var(--glass-bg);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

/* Use a glowing placeholder card for the app visual */
.app-mockup {
  width: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 35px;
  border: 8px solid #1a202c;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.app-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-25deg);
  animation: shine 8s infinite;
}

.mockup-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.mockup-logo img {
  width: 80px;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

/* Features Section */
.features {
  padding: 3rem 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
}

/* How It Works Section */
.how-it-works {
  padding: 3rem 0;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
}

.step-number {
  background-color: var(--accent-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-muted);
}

/* Bottom CTA */
.bottom-cta {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(10, 23, 76, 0.5), rgba(59, 130, 246, 0.2));
  border-radius: 30px;
  margin: 4rem 0;
  border: 1px solid var(--glass-border);
}

.bottom-cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.bottom-cta p {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Document Pages (Privacy, Terms, Refunds) */
.doc-container {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  margin-top: 2rem;
}

.doc-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.doc-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.doc-header p {
  color: var(--text-muted);
}

.doc-section {
  margin-bottom: 2.5rem;
}

.doc-section h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.doc-section p, .doc-section ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.doc-section ul {
  padding-left: 1.5rem;
}

.doc-section li {
  margin-bottom: 0.5rem;
}

footer {
  padding: 1rem 5%;
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-content > div:nth-child(1) {
  flex: 1 1 40%;
  text-align: left;
}

.footer-content > div:nth-child(2) {
  flex: 1 1 40%;
  text-align: right;
}

.footer-content > div:nth-child(3) {
  flex: 1 1 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-info h3, .footer-legal h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-info p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-legal {
  color: var(--text-muted);
}

/* Footer Accordion Styles */
.footer-accordion details {
    width: 100%;
}
.footer-accordion summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}
.footer-accordion summary::-webkit-details-marker {
    display: none;
}
.footer-accordion summary h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
/* Right-align the second column accordion on desktop */
.footer-content > div:nth-child(2) summary h3 {
    justify-content: flex-end;
}
.footer-accordion summary h3 i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.footer-accordion details[open] summary h3 i {
    transform: rotate(180deg);
}
.accordion-content {
    padding-top: 1rem;
}

/* Pricing Section */
.pricing { padding: 3rem 0; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.pricing-card { background-color: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.5rem 2rem; backdrop-filter: blur(10px); }
.pricing-icon { font-size: 3rem; margin-bottom: 1rem; }
.pricing-card h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 0.5rem; }
.pricing-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--accent-color); padding: 0.5rem 1rem; background: rgba(59, 130, 246, 0.1); border-radius: 10px; display: inline-block; }

/* Gallery Section */
.gallery { padding: 3rem 0; text-align: center; overflow: hidden; }
.gallery-scroll { display: flex; gap: 1.2rem; overflow-x: auto; padding: 2rem 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-img { height: 500px; border-radius: 20px; border: 4px solid #1a202c; box-shadow: 0 15px 30px rgba(0,0,0,0.4); scroll-snap-align: center; flex-shrink: 0; transition: transform 0.3s ease; }
.gallery-img:hover { transform: scale(1.02); }

/* About & Contact */
.about { padding: 3rem 0; text-align: center; }
.section-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; }
.contact-section { padding: 3rem 0; text-align: center; }
.contact-card { background-color: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 3rem; max-width: 600px; margin: 0 auto; text-align: left; }
.contact-card h3 { color: var(--text-main); font-size: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.contact-info p { margin-bottom: 1rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.contact-info a { color: var(--accent-color); text-decoration: none; }

/* Dropdown Navbar */
.dropdown { position: relative; display: inline-block; margin-left: 2rem; }
.dropbtn { color: var(--text-muted); font-weight: 500; cursor: pointer; padding-bottom: 10px;}
.dropdown:hover .dropbtn { color: var(--text-main); }
.dropdown-content { display: none; position: absolute; top: 100%; right: 0; background-color: var(--secondary-color); min-width: 200px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); z-index: 1000; border-radius: 10px; border: 1px solid var(--glass-border); overflow: visible; margin-top: 15px; }
.dropdown-content::before { content: ''; position: absolute; top: -25px; left: -20px; width: calc(100% + 40px); height: 25px; background: transparent; }
.dropdown-content a { color: var(--text-muted); padding: 12px 16px; text-decoration: none; display: block; margin: 0; font-weight: 400; border-bottom: 1px solid var(--glass-border); }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--glass-bg); color: var(--text-main); }
.dropdown:hover .dropdown-content { display: block; }

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .logo-text { display: none !important; }
  .contact-section { display: none !important; }
  nav { gap: 0.5rem; justify-content: flex-end; }
  nav > div, nav > span { margin-left: 0.5rem !important; }
  #location-container { margin-left: 0.5rem !important; }
  #location-container span:last-child { max-width: 80px !important; }
  
  .hero h1 { font-size: 2.5rem; }
  .logo { 
    display: flex !important; 
    align-items: center !important; 
    gap: 8px !important;
    width: auto !important;
    text-decoration: none;
  }
  .logo-img { 
    position: static !important; 
    margin: 0 !important; 
    transform: none !important; 
  }
  .hero { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 3rem; }
  .hero p { margin: 0 auto 2.5rem; }
  .cta-group { flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
  .btn { width: 100%; max-width: 300px; }
  
  /* Header Fixes */
  header { 
      flex-direction: row !important; 
      justify-content: space-between !important; 
      align-items: center !important;
      gap: 10px !important; 
      padding: 0.5rem 5% !important; 
  }
  nav { 
      display: flex !important; 
      flex-wrap: nowrap !important; 
      justify-content: flex-end !important; 
      align-items: center !important;
      gap: 10px !important; 
      width: auto !important;
  }
  nav > * { margin: 0 !important; }
  nav a { margin: 0 !important; font-size: 0.9rem; }
  nav > div, nav > span { margin: 0 !important; }
  #auth-container { width: auto !important; display: flex; align-items: center; margin: 0 !important; }
  #auth-container .btn { width: auto !important; min-width: 80px !important; padding: 6px 12px !important; font-size: 0.9rem !important; }
  #location-container { display: none !important; }
  
  main { padding: 1rem 5%; }
  
  /* Force 2 Columns on Mobile */
  .products-grid {
      grid-template-columns: 1fr 1fr !important;
      gap: 0.5rem !important;
  }
  
  .product-image { height: auto !important; aspect-ratio: 1/1 !important; }
  .product-name { font-size: 0.95rem !important; }
  .price { font-size: 0.95rem !important; }
  .add-to-cart { padding: 5px 10px !important; font-size: 0.85rem !important; }
  
  /* Mobile Cart Fix */
  .cart-sidebar {
    display: none !important;
  }
  nav a { font-size: 0.9rem; }
  .doc-container { padding: 1.5rem; }
  .step { flex-direction: column; text-align: center; }
  .bottom-cta h2 { font-size: 2rem; }
  .footer-content { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 1rem;
    align-items: start;
  }
  .footer-content > div { text-align: left !important; }
  .footer-content > div summary h3 { justify-content: flex-start !important; font-size: 1rem; }
  .footer-content > div:nth-child(2) { text-align: right !important; }
  .footer-content > div:nth-child(2) summary h3 { justify-content: flex-end !important; }
  .footer-content > div:nth-child(3) { grid-column: 1 / -1; text-align: center !important; margin-top: 2rem; }
  .footer-legal { margin-top: 0; }
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.checkout-btn:disabled {
    background: #4b5563;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cart Sidebar */
.cart-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.cart-header {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cart-item-details span {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 4px;
}

.cart-item-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-item-actions button:hover {
    background: rgba(255,255,255,0.1);
}

.cart-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.checkout-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.checkout-btn:disabled {
    background: #444;
    cursor: not-allowed;
    color: #888;
}

/* Trending Marquee */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trending-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    transform: translateZ(0);
    z-index: 1;
    contain: paint;
}

.trending-marquee {
    display: inline-flex;
    gap: 15px;
    animation: scrollLeft 25s linear infinite;
    padding: 10px 0;
}

.trending-marquee:hover {
    animation-play-state: paused;
}

.trending-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.trending-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
