/*
Theme Name: GoNexel
Description: Modern business platform with Elementor-style customization
Version: 2.0
Author: GoNexel Team
*/

/* CSS Variables - Exact replica of Next.js design */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;
  --nav-height: 56px;
  --admin-bar-height: 0px;
  
  /* Brand Colors */
  --primary-brand: #9C0059;
  --secondary-brand: #D6006C;
  --accent-brand: #FF4F7B;
  --icon-on-brand: #000000;
}

.dark {
  --background: 220 54% 10%;
  --foreground: 210 40% 98%;
  --card: 220 45% 12%;
  --card-foreground: 210 40% 98%;
  --popover: 220 54% 10%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 220 54% 10%;
  --secondary: 220 45% 14%;
  --secondary-foreground: 210 40% 98%;
  --muted: 220 54% 10%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 220 45% 14%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 220 35% 18%;
  --input: 220 35% 18%;
  --ring: 212.7 26.8% 83.9%;
  --dark-surface-rgb: 12, 22, 40;
  --icon-on-brand: #ffffff;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  scroll-behavior: smooth;
  padding-top: 0;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Utility Classes - Tailwind-like */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.navbar { min-height: var(--nav-height); }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-16 { margin-top: 4rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.backdrop-blur { backdrop-filter: blur(10px); }
.overflow-hidden { overflow: hidden; }
.transition-all { transition: all 0.3s ease; }

/* Typography */
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }

/* Colors */
.text-primary { color: var(--primary-brand); }
.text-muted { color: hsl(var(--muted-foreground)); }
.bg-card { background: hsl(var(--card)); }
.bg-muted { background: hsl(var(--muted)); }
.border { border: 1px solid hsl(var(--border)); }

/* Gradient Classes */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--secondary-brand) 50%, var(--accent-brand) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--secondary-brand) 50%, var(--accent-brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix dark mode visibility */
.dark .text-foreground { color: hsl(var(--foreground)) !important; }
.dark .bg-card { background: hsl(var(--card)) !important; }
.dark .border { border-color: hsl(var(--border)) !important; }

/* Fix theme toggle visibility in dark mode */
.dark .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--secondary-brand) 50%, var(--accent-brand) 100%);
  color: white;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(156, 0, 89, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.admin-bar .navbar {
    top: var(--admin-bar-height);
}

.admin-bar { --admin-bar-height: 32px; }

@media (max-width: 782px) {
    .admin-bar { --admin-bar-height: 46px; }
}

main {
  padding-top: 0;
}

main > section:first-child {
  padding-top: calc(var(--nav-height) + 0.75rem) !important;
}

.admin-bar main > section:first-child {
  padding-top: calc(var(--nav-height) + var(--admin-bar-height) + 0.75rem) !important;
}

@media (max-width: 768px) {
  main > section:first-child {
    padding-top: calc(var(--nav-height) + 0.5rem) !important;
  }

  .admin-bar main > section:first-child {
    padding-top: calc(var(--nav-height) + var(--admin-bar-height) + 0.5rem) !important;
  }
}

.navbar.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-brand);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-brand) 0%, var(--secondary-brand) 50%, var(--accent-brand) 100%);
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-stats {
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
  border-radius: 1rem;
  filter: blur(3rem);
  opacity: 0.2;
  animation: pulse 2s infinite;
}

.stats-card {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.dark .stats-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-brand);
  margin-bottom: 0.5rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--muted)) 5%, hsl(var(--muted)) 20%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  height: 100%;
}

.dark .service-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  border-color: rgba(156, 0, 89, 0.2);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.contact-icon i,
.service-icon i,
.service-icon svg,
.feature-icon i,
.stat-icon i,
.service-icon-large i {
  color: var(--icon-on-brand);
}

.contact-icon svg,
.service-icon svg,
.feature-icon svg,
.stat-icon svg,
.service-icon-large svg {
  stroke: var(--icon-on-brand);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary-brand);
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.service-features li::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
  border-radius: 50%;
  margin-right: 0.75rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.3; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.js .fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root { --nav-height: 48px; }
  .nav-menu { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.125rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .text-6xl { font-size: 2.5rem; }
  .text-5xl { font-size: 2rem; }
  .text-4xl { font-size: 1.875rem; }
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.theme-toggle:hover {
  background: hsl(var(--muted));
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid var(--primary-brand);
  border-radius: 1.25rem;
  display: flex;
  justify-content: center;
}

.scroll-indicator::before {
  content: '';
  width: 0.25rem;
  height: 0.75rem;
  background: var(--primary-brand);
  border-radius: 0.125rem;
  margin-top: 0.5rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.5rem); }
}

/* Remove customizer borders - clean design */

/* WooCommerce Integration Styles */
.woocommerce ul.products li.product {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 0, 89, 0.3);
}

.woocommerce ul.products li.product .price {
    color: var(--primary-brand);
    font-weight: 700;
}

/* Contact Form 7 Styles */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 0, 89, 0.3);
}

/* Modern default page layout */
.page-shell {
  background: radial-gradient(circle at top, rgba(156, 0, 89, 0.08), transparent 45%),
              radial-gradient(circle at 15% 20%, rgba(214, 0, 108, 0.08), transparent 40%),
              radial-gradient(circle at 85% 10%, rgba(255, 79, 123, 0.08), transparent 45%);
}

.page-hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  border-bottom: 1px solid hsl(var(--border));
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(156, 0, 89, 0.2), rgba(255, 79, 123, 0.15));
  opacity: 0.6;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: orb-float 10s ease-in-out infinite;
}

.page-hero-orb.orb-1 {
  width: 220px;
  height: 220px;
  background: rgba(156, 0, 89, 0.4);
  top: 20%;
  right: 15%;
}

.page-hero-orb.orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(255, 79, 123, 0.35);
  bottom: -10%;
  left: 10%;
  animation-delay: 1.5s;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-brand);
  margin-bottom: 1rem;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-content {
  padding: 4rem 0 6rem;
}

.page-content--elementor {
  padding: 2rem 0 4rem;
}

.page-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.dark .page-card {
  background: rgba(0, 0, 0, 0.35);
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 6rem 0 4rem;
  }

  .page-hero-grid {
    background-size: 32px 32px;
  }

  .page-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-card {
    padding: 1.75rem;
  }
}
/* Mobile Performance Optimizations */
@media (max-width: 480px) {
  :root { --nav-height: 44px; }
  .container { padding: 0 0.75rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .text-5xl { font-size: 1.75rem; }
  .text-4xl { font-size: 1.5rem; }
  .text-3xl { font-size: 1.25rem; }
  
  /* Hardware acceleration for mobile */
  * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .nx2-hero {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
  
  .nx2-globe-canvas {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .btn:hover {
    transform: none;
  }
  
  .nx2-btn:active {
    transform: scale(0.98);
  }
}