/* ==================== RESET AND VARIABLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --secondary-color: #111827;
  --accent-color: #f3f4f6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL CLICK FIX ==================== */
button,
a,
input,
select,
textarea,
[role="button"],
[onclick],
.btn,
[class*="btn-"] {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.overlay,
[class*="-overlay"]:not(.modal-overlay):not(.security-modal-overlay) {
  pointer-events: none;
}

.modal-overlay,
.security-modal-overlay,
.story-overlay {
  pointer-events: auto;
}

/* ==================== GLOBAL STYLES ==================== */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  z-index: 10000;
  transition: width 0.1s ease;
}

/* ==================== SECTION COMMON STYLES ==================== */
.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 4rem;
}

.btn-learn-more {
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-learn-more:hover {
  background: var(--primary-dark);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
}

/* ==================== HERO SECTION ==================== */
.hero {
  margin-top: 70px;
  position: relative;
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(17, 24, 39, 0.75));
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary {
  background: var(--white);
  color: var(--primary-color);
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

/* ==================== FLOATING BUTTONS ==================== */
.floating-contact,
.back-to-top {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-contact {
  bottom: 30px;
  right: 30px;
  animation: pulse 2s infinite;
}

.back-to-top {
  bottom: 100px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.floating-contact:hover,
.back-to-top:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

/* ==================== SWIPEABLE CONTAINERS (MOBILE) ==================== */
.swipeable-container {
  position: relative;
}

.swipeable-wrapper {
  display: flex;
  transition: transform 0.3s ease;
  touch-action: pan-y pinch-zoom;
}

.swipeable-wrapper.no-transition {
  transition: none;
}

.swipeable-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.swipeable-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: var(--transition);
}

.swipeable-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

/* Show dots on mobile */
@media (max-width: 968px) {
  .swipeable-dots {
    display: flex;
  }
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */
@media (max-width: 968px) {
  main,
  section,
  .container {
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
  }

  button,
  a,
  input,
  select,
  textarea,
  .btn,
  [class*="btn-"] {
    z-index: 10;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .hero {
    margin-top: 60px;
    height: calc(100vh - 60px);
    pointer-events: auto;
  }

  .hero-overlay {
    pointer-events: none;
  }

  .hero-video {
    pointer-events: none;
  }

  .hero-content {
    pointer-events: auto;
    position: relative;
    z-index: 2;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    pointer-events: auto;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .floating-contact,
  .back-to-top {
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    pointer-events: auto;
    z-index: 999;
  }

  .floating-contact {
    bottom: 20px;
  }

  .back-to-top {
    bottom: 80px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .floating-contact,
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    right: 10px;
  }

  .floating-contact {
    bottom: 15px;
  }

  .back-to-top {
    bottom: 70px;
  }
}

@media (max-width: 400px) {
  .floating-contact,
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .nav-auth,
  .mobile-toggle,
  .floating-contact,
  .back-to-top,
  #scroll-progress {
    display: none;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}