/* ===== LogisThinks Custom Styles ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #0077FF;
  --primary-dark: #005ACC;
  --primary-light: #339FFF;
  --accent: #00D4FF;
  --dark-bg: #0A0A0F;
  --dark-surface: #12121A;
  --dark-card: #1A1A2E;
  --dark-border: #2A2A3E;
  --light-bg: #F8FAFC;
  --light-surface: #FFFFFF;
  --light-card: #FFFFFF;
  --light-border: #E2E8F0;
  --gradient-primary: linear-gradient(135deg, #0077FF, #00D4FF);
  --gradient-hero: linear-gradient(135deg, #0A0A0F 0%, #0D1B2A 50%, #1B2838 100%);
  --gradient-hero-light: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 50%, #BFDBFE 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(0,119,255,0.3);
}

/* ===== Base & Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A2E;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== Navbar ===== */
.navbar {
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.light .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* ===== Theme Toggle ===== */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 14px;
  background: #2A2A3E;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  outline: none;
}

.light .theme-toggle {
  background: #CBD5E1;
}

.theme-toggle-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light .theme-toggle-dot {
  transform: translateX(28px);
  background: #F59E0B;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float-shape 20s infinite;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: #7C3AED;
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,119,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.light .hero-grid {
  background-image:
    linear-gradient(rgba(0,119,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,255,0.06) 1px, transparent 1px);
}

/* ===== CTA Button ===== */
.btn-cta {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), #0055AA);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ===== Service Cards ===== */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 119, 255, 0.15);
}

.service-icon {
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ===== Stats Section ===== */
.stat-item {
  position: relative;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== About Image Container ===== */
.about-image-container {
  position: relative;
}

.about-image-container::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  z-index: -1;
  opacity: 0.5;
}

/* ===== Why Us / Advantages ===== */
.advantage-card {
  transition: all 0.3s ease;
  position: relative;
}

.advantage-card:hover {
  transform: translateX(8px);
}

.advantage-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.advantage-card:hover::before {
  opacity: 1;
}

/* ===== Contact Form ===== */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

/* ===== Footer Wave ===== */
.footer-wave {
  position: relative;
}

.footer-wave::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(70% 100% at 50% 100%);
}

/* ===== Animations ===== */
@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(5deg); }
  50% { transform: translate(-20px, 20px) rotate(-5deg); }
  75% { transform: translate(20px, 10px) rotate(3deg); }
}

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

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,119,255,0.2); }
  50% { box-shadow: 0 0 40px rgba(0,119,255,0.4); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Staggered Children ===== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
  opacity: 0;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

/* ===== Hamburger ===== */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Map placeholder ===== */
.map-placeholder {
  background: linear-gradient(135deg, #1A1A2E, #0D1B2A);
  border: 1px dashed rgba(0, 119, 255, 0.3);
}

.light .map-placeholder {
  background: linear-gradient(135deg, #EBF4FF, #DBEAFE);
  border: 1px dashed rgba(0, 119, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-shape-1 {
    width: 300px;
    height: 300px;
  }
  .hero-shape-2 {
    width: 200px;
    height: 200px;
  }
  .hero-shape-3 {
    width: 150px;
    height: 150px;
  }
}
