:root {
  /* Colors */
  --bg-primary: #0A0F1A;
  --bg-secondary: #111827;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --accent-cyan: #00E5FF;
  --accent-indigo: #5D3FD3;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  
  /* Typography */
  --font-main: 'Outfit', 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 6rem 2rem;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Base Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 1.5rem 2rem;
}

header.scrolled {
  padding: 1rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Essential for mobile menu absolute positioning */
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

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

.contact-btn {
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.contact-btn:hover {
  box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

/* Mobile Menu Button - Hidden on Desktop */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.2) 0%, rgba(10, 15, 26, 1) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin-top: 5rem;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn-outline {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* Section Shared */
section {
  padding: var(--section-padding);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 10;
}

.service-card {
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-color: rgba(0, 229, 255, 0.3);
}

.service-img {
  height: 240px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.service-link:hover {
  gap: 0.75rem;
  color: #fff;
}

/* Features List in Services */
.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.feature-list li::before {
  content: '→';
  color: var(--accent-cyan);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-secondary);
  border-radius: 32px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

/* Glow behind contact */
.contact-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--accent-indigo);
  filter: blur(150px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}

.contact-info {
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-item div h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item div p {
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--accent-cyan);
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  position: relative;
  z-index: 1;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) brightness(80%) contrast(120%); /* Dark map hack */
}

/* Footer */
footer {
  background: #05080f;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.footer-content .logo {
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--text-secondary);
  max-width: 400px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 968px) {
  .hero h1 { font-size: 3rem; }
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .contact-btn { display: none; }
  .menu-btn { display: block; }
  
  /* Mobile Menu Active State */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1.5rem); /* Start just below the header */
    left: -2rem; /* Negate the header padding */
    width: 100vw; /* Full viewport width to cover the screen */
    background: var(--bg-primary); /* Solid color instead of glass for better readability */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  /* Make links larger in mobile menu */
  .nav-links.active a {
    font-size: 1.25rem;
    padding: 0.5rem 0;
  }

  .lang-switch-container {
    display: none;
  }

  .lang-switch-container.active {
    display: flex;
    position: absolute;
    top: calc(100% + 1.5rem + 150px); /* Position it below nav links (approx) */
    left: -2rem;
    width: 100vw;
    padding: 0 2rem 2rem;
    background: var(--bg-primary);
    justify-content: flex-start;
    z-index: 999;
  }

  .lang-switch-container.active .contact-btn {
    display: inline-block;
  }
  
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  
  .btn-group { flex-direction: column; }
  
  .services-grid { grid-template-columns: 1fr; }
}

/* Language Switcher */
.lang-switch-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switch {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
}

/* Sub-page Specific Styles */
.inner-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 2rem;
  margin-top: 0;
}

.inner-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin-top: 4rem;
}

.inner-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.inner-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.content-block {
  padding: 5rem 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-grid.reverse .content-text {
  order: 2;
}
.content-grid.reverse .content-image {
  order: 1;
}

.content-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.content-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.content-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Logos Grid (For E-commerce) */
.logos-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 4rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.logo-item:hover {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

.feature-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-box {
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
}

.feature-box ion-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.feature-box h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .inner-hero h1 { font-size: 2.5rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid.reverse .content-text, .content-grid.reverse .content-image {
    order: unset;
  }
}
