:root {
  /* Dark mode colors (default) */
  --bg-primary: #0a0a0a;
  --bg-secondary: rgba(10, 10, 10, 0.8);
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.8);
  --shadow-color: rgba(102, 126, 234, 0.3);
  --gradient-opacity: 0.05;
  --hero-overlay: linear-gradient(rgba(10,10,10,0.6), rgba(10,10,10,0.8));
}

[data-theme="light"] {
  /* Light mode colors */
  --bg-primary: #f8f9fa;
  --bg-secondary: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(255, 255, 255, 0.8);
  --border-color: rgba(102, 126, 234, 0.2);
  --text-primary: #1a1a1a;
  --text-secondary: rgba(26, 26, 26, 0.7);
  --text-tertiary: rgba(26, 26, 26, 0.8);
  --shadow-color: rgba(102, 126, 234, 0.2);
  --gradient-opacity: 0.15;
  --hero-overlay: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.7));
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: var(--gradient-opacity);
  z-index: 0;
  transition: opacity 0.5s ease;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Theme toggle button */
.theme-toggle {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.5s ease;
  color: var(--text-primary);
}

.theme-toggle:hover .theme-toggle-icon {
  transform: rotate(180deg);
}

.theme-toggle-text {
  display: none;
}

/* Header with glassmorphism */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  animation: slideDown 0.8s ease;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

header h1 {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  gap: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: rotate360 20s linear infinite;
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Hero section with 3D parallax effect */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay),
    url('../images/hero-background.jpg') center/cover no-repeat;
  animation: zoomInOut 20s ease infinite;
  z-index: 1;
  transition: background 0.5s ease;
}

.hero {
  color: var(--text-primary);
}

.hero p {
  color: var(--text-secondary);
}

@keyframes zoomInOut {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease 0.3s backwards;
  padding: 0 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h2 {
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #667eea, #f093fb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.5s backwards, textShine 3s ease-in-out infinite;
  position: relative;
}

@keyframes textShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  font-size: 1.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.7s backwards;
}

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 18px 45px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  animation: fadeInUp 1s ease 0.9s backwards;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite;
}

[data-theme="light"] .particle {
  background: rgba(102, 126, 234, 0.15);
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Section styling */
section {
  position: relative;
  padding: 100px 40px;
  max-width: 1400px;
  margin: auto;
  z-index: 1;
}

h2.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

/* Services grid with hover effects */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

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

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px var(--shadow-color);
  border-color: rgba(102, 126, 234, 0.5);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.15);
}

.service-card-content {
  padding: 25px;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.service-card:hover h3 {
  background: linear-gradient(135deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Carriers section */
.carriers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.carrier {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.carrier::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.2), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.carrier:hover::before {
  width: 300px;
  height: 300px;
}

.carrier:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: rgba(102, 126, 234, 0.5);
}

.carrier img {
  width: 120px;
  height: 70px;
  object-fit: contain;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.carrier:hover img {
  transform: scale(1.1);
}

/* Contact section */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info strong {
  color: #667eea;
  min-width: 80px;
}

.contact-info a {
  color: #f093fb;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #667eea;
  text-decoration: underline;
}

iframe {
  width: 100%;
  border: none;
  border-radius: 20px;
  height: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-align: center;
  padding: 30px;
  font-size: 0.95rem;
  margin-top: 60px;
  transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .carriers {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  header img {
    width: 32px;
    height: 32px;
  }

  .header-right {
    gap: 15px;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  nav a {
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

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

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .theme-toggle-icon {
    width: 18px;
    height: 18px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

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

  .cta-button {
    padding: 15px 35px;
    font-size: 1rem;
  }

  h2.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .carriers {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .carrier {
    height: 140px;
  }

  .carrier img {
    width: 100px;
    height: 60px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    padding: 30px 20px;
  }

  .contact-info p {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 1rem;
  }

  iframe {
    height: 300px;
  }

  section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
    gap: 8px;
  }

  header img {
    width: 28px;
    height: 28px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

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

  .cta-button {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  h2.section-title {
    font-size: 1.6rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .carriers {
    grid-template-columns: 1fr;
  }

  section {
    padding: 40px 15px;
  }

  footer {
    padding: 20px 15px;
    font-size: 0.85rem;
  }
}