:root {
  /* LIGHT MODE - Body */
  --bg-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-blue: #2563eb;
  --accent-purple: #4f46e5;
  --stone-grey: #f1f5f9;
  --accent-glow: rgba(37, 99, 235, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.1);
  --glass-blur: 20px;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  /* FOOTER DARK */
  --footer-bg: #0f172a;
  --footer-text: #ffffff;
  --footer-text-secondary: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Crystal IA Image inline with text */
.ia-image {
  height: 1.1em;
  vertical-align: baseline;
  margin-left: 0.05em;
  margin-bottom: -0.15em;
  display: inline-block;
}

/* Logo image in header (keeping for other pages) */
.logo-img {
  height: 50px;
  width: auto;
}

/* Hero Layout with Logo */
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

.hero-logo {
  flex-shrink: 0;
}

.hero-logo-img {
  height: 350px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 102, 255, 0.3));
}

@media (max-width: 968px) {
  .hero-layout {
    flex-direction: column;
    gap: 30px;
  }

  .hero-logo-img {
    height: 200px;
  }
}

/* Utility: Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--stone-grey);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.glass-btn:hover {
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  color: var(--accent-blue);
}

.glass-btn.primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.glass-btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo span {
  color: var(--accent-blue);
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-selector select {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-main);
  cursor: pointer;
  padding: 5px;
}

.lang-selector select:focus {
  outline: none;
  background: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.05) 0%, transparent 40%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  /* Ensure explicit color */
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Preview Section */
.services-preview {
  padding: 100px 5%;
  background: var(--stone-grey);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Card Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Service Cards - Premium with Images */
.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card.premium {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 80px rgba(37, 99, 235, 0.2);
  border-color: var(--accent-blue);
}

.service-card:hover::before {
  opacity: 1;
}

/* Card Image Container */
.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
  transform: scale(1.1);
}

/* Card Content */
.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.service-card .glass-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Service Icons (fallback) */
.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
  border-radius: 16px;
  color: var(--accent-blue);
}

/* Why Choose Us Section - Dark Contrast */
.why-choose-us {
  padding: 100px 5%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.why-choose-us::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.why-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.why-item {
  text-align: left;
}

.why-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent-blue);
  transition: all 0.3s ease;
}

.why-item:hover .why-icon {
  background: var(--accent-blue);
  color: #fff;
  transform: scale(1.1);
}

.why-item h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.why-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer - DARK BLUE */
footer {
  border-top: none;
  padding: 80px 5% 40px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

footer h3,
footer h4 {
  color: var(--footer-text);
}

.footer-brand h3 {
  margin-bottom: 15px;
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  color: var(--footer-text-secondary);
  font-size: 0.9rem;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive - Legacy rules (overridden by comprehensive mobile styles below) */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Language Toast Notification */
.lang-toast {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

.lang-toast-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid var(--accent-blue);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
  max-width: 350px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  gap: 50px;
  align-items: center;
  padding: 40px;
  margin-bottom: 40px;
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

.testimonial-card.reverse {
  flex-direction: row-reverse;
}

.testimonial-image {
  flex: 0 0 350px;
}

.testimonial-image img {
  width: 100%;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-image img {
  transform: scale(1.03);
}

.testimonial-content {
  flex: 1;
}

.testimonial-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-location,
.testimonial-industry {
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
}

.testimonial-content h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.testimonial-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

.testimonial-results {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.result-item {
  text-align: center;
}

.result-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-display);
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.testimonial-tags span {
  padding: 6px 14px;
  background: var(--stone-grey);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {

  .testimonial-card,
  .testimonial-card.reverse {
    flex-direction: column;
  }

  .testimonial-image {
    flex: 0 0 auto;
    width: 100%;
  }

  .testimonial-results {
    flex-wrap: wrap;
  }
}

/* Video Section */
.video-section {
  padding: 60px 5%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
}

.video-wrapper {
  flex: 0 0 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 50px rgba(37, 99, 235, 0.3);
  border: 2px solid rgba(37, 99, 235, 0.3);
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: opacity 0.4s ease;
}

.video-overlay i {
  font-size: 3rem;
  color: var(--accent-blue);
  animation: pulse 2s infinite;
}

.video-overlay p {
  color: #fff;
  font-size: 0.95rem;
  opacity: 0.8;
}

.video-wrapper:hover .video-overlay,
.video-wrapper.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.video-text {
  flex: 1;
  color: #fff;
}

.video-text h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-text p {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .video-container {
    flex-direction: column;
  }

  .video-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }

  .video-text {
    text-align: center;
  }
}

/* ===========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   =========================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 968px) {

  /* Show hamburger menu */
  .mobile-menu-btn {
    display: flex;
  }

  /* Header adjustments */
  header {
    padding: 15px 5%;
  }

  .header-actions .glass-btn {
    display: none;
  }

  .lang-selector {
    display: none;
  }

  /* Mobile Navigation */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul li a {
    display: block;
    padding: 15px 0;
    color: #fff;
    font-size: 1.1rem;
  }

  nav ul li a:hover,
  nav ul li a.active {
    color: var(--accent-blue);
  }

  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero adjustments */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-layout {
    flex-direction: column;
    gap: 30px;
    padding: 0 5%;
  }

  .hero-logo-img {
    height: 150px;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 1.8rem;
  }

  /* Services cards on mobile */
  .services-preview {
    padding: 60px 5%;
  }

  .service-detail {
    flex-direction: column !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
  }

  .service-detail-image {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin-bottom: 20px;
  }

  .service-detail-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }

  .service-detail-content h2 {
    font-size: 1.4rem;
  }

  /* Grid adjustments */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact page grid */
  .services-preview>div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }

  /* Glass panels on contact page */
  .glass-panel {
    padding: 25px !important;
  }

  /* Footer */
  footer {
    padding: 50px 5% 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  /* Why section */
  .why-choose-us {
    padding: 60px 5%;
  }

  .why-grid {
    gap: 30px;
  }

  .why-item {
    text-align: center;
  }

  .why-icon {
    margin: 0 auto 15px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 25px;
    gap: 25px;
  }

  .testimonial-image {
    flex: 0 0 auto;
    width: 100%;
  }

  .testimonial-results {
    justify-content: center;
  }

  .testimonial-tags {
    justify-content: center;
  }

  /* Buttons */
  .glass-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Service cards */
  .service-card {
    margin-bottom: 20px;
  }

  .card-content {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-logo-img {
    height: 120px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .result-number {
    font-size: 1.5rem;
  }

  .testimonial-content h2 {
    font-size: 1.3rem;
  }

  .service-detail-content h2 {
    font-size: 1.2rem;
  }

  .service-detail-content p {
    font-size: 0.9rem;
  }

  .service-detail-content ul {
    font-size: 0.9rem;
  }

  /* Maps on contact page */
  iframe {
    height: 100px !important;
  }
}