/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary-color: #ef4444; /* Red Brand Color */
  --secondary-color: #ffffff;
  --bg-color: #0a0a0a; /* Deep Black */
  --text-color: #e5e7eb;
  --text-muted: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 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-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. BACKGROUND GLOW EFFECTS
   ========================================= */
.glow-bg {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}
.top-left { top: -200px; left: -200px; background: var(--primary-color); }
.bottom-right { bottom: -200px; right: -200px; background: #3b82f6; }

/* =========================================
   3. GLASS HEADER & NAV
   ========================================= */
.glass-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.highlight { color: var(--primary-color); }

.nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:hover, .nav a.active { color: #fff; }

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary-color);
  transition: width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* CTA Button in Nav */
.cta-btn-nav {
  padding: 10px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  transition: var(--transition);
}
.cta-btn-nav:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.cta-btn-nav::after { display: none; } /* No underline for button */

/* Language Switcher */
.lang-btn {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}
.lang-btn:hover { color: #fff; border-color: #fff; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(90deg, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.cta-btn {
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.cta-btn.primary {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.5);
}
.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(239, 68, 68, 0.6);
}

.cta-btn.secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #fff;
}
.cta-btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Hero Visual */
.image-card {
  position: relative;
  border-radius: 24px;
  overflow: visible;
}
.image-card img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.floating-card span { font-size: 0.8rem; color: var(--text-muted); }
.floating-card strong { font-size: 1.5rem; color: #fff; }

/* =========================================
   5. VALUES SECTION
   ========================================= */
.values { padding: 100px 0; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.value-box {
  padding: 30px;
  border-left: 1px solid var(--glass-border);
  transition: var(--transition);
}
.value-box:hover {
  border-left-color: var(--primary-color);
  background: linear-gradient(90deg, rgba(239,68,68,0.05), transparent);
}
.value-box h3 { font-size: 1.25rem; margin-bottom: 10px; }
.value-box p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   6. SERVICES
   ========================================= */
.services { padding: 100px 0; background: rgba(255,255,255,0.02); }
.section-header { margin-bottom: 60px; max-width: 600px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); }

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

.service-card .icon { font-size: 2rem; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   7. CLIENT LOGOS (UPDATED FOR PERFECTION)
   ========================================= */
.clients { padding: 80px 0; text-align: center; overflow: hidden; }
.clients h2 { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; font-weight: 500; }

.client-logos-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Gradient fade on edges for seamless look */
.fade-left, .fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.fade-left { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
.fade-right { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }

.client-logos {
  display: flex;
  align-items: center;
  /* Simple CSS scrolling animation */
  animation: scroll 40s linear infinite;
  width: max-content;
}

.client-logos:hover { animation-play-state: paused; }

/* LOGO IMAGE STYLING - THE FIX */
.client-logos img {
    height: 50px; /* Forces uniform height */
    width: auto;  /* Maintains aspect ratio */
    margin: 0 40px; /* Space between logos */
    object-fit: contain;
    
    /* Force logos to look white/grey on black background */
    opacity: 0.6; 
    filter: grayscale(100%) brightness(200%); 
    
    transition: all 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
    filter: none; /* Show original colors on hover */
    transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.loading-text { color: #666; font-size: 0.8rem; }

/* =========================================
   8. TESTIMONIALS & CARDS
   ========================================= */
.testimonials { padding: 100px 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 20px;
}
.quote-icon { font-size: 3rem; color: var(--primary-color); line-height: 1; opacity: 0.5; }
.author { margin-top: 20px; border-top: 1px solid var(--glass-border); padding-top: 15px; }
.author h4 { font-size: 1rem; }
.author span { font-size: 0.8rem; color: var(--text-muted); }

/* =========================================
   9. FORMS & CONTACT
   ========================================= */
.contact-section { padding: 100px 0; }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

form .form-group {
  position: relative;
  margin-bottom: 20px;
}

form input, form textarea {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  outline: none;
  transition: 0.3s;
}

form textarea { height: 120px; resize: none; }

form input:focus, form textarea:focus {
  border-color: var(--primary-color);
  background: rgba(0,0,0,0.5);
}

form label {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #666;
  pointer-events: none;
  transition: 0.3s;
  font-size: 0.9rem;
}

form input:focus ~ label,
form input:not(:placeholder-shown) ~ label,
form textarea:focus ~ label,
form textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 10px;
  font-size: 0.75rem;
  color: var(--primary-color);
  background: var(--bg-color);
  padding: 0 5px;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover { background: #dc2626; }

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.popup-overlay.active { opacity: 1; pointer-events: all; }
.popup-content { text-align: center; max-width: 400px; }
.check-icon { font-size: 3rem; color: #10b981; margin-bottom: 15px; }

/* =========================================
   10. FOOTER (UPDATED: Black & Layout)
   ========================================= */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  color: #888;
  font-size: 0.85rem;
  background: #000000; /* Pure black */
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links { display: flex; gap: 30px; }
.social-links a { color: #888; transition: var(--transition); }
.social-links a:hover { color: #fff; }

/* =========================================
   11. NEW LAYOUTS (FOR LONG PAGES)
   ========================================= */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.detail-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 16px;
  transition: var(--transition);
}

.detail-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary-color); /* Uses brand color on hover */
}

.detail-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.step-card {
  position: relative;
  padding-top: 20px;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: -20px;
  left: 0;
  z-index: 0;
}

.step-card h3, .step-card p { position: relative; z-index: 1; }
.step-card h3 { margin-bottom: 10px; font-size: 1.4rem; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--glass-bg);
  padding: 30px;
  border-radius: 16px;
}
.feature-icon { font-size: 2rem; }

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-text h1 { font-size: 2.5rem; }
  .hero-grid, .contact-container, .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 120px; text-align: center; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-buttons { justify-content: center; }
  .values-grid { grid-template-columns: 1fr; }
  
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 80px; left: 0;
    width: 100%;
    background: #0a0a0a;
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    clip-path: circle(0% at 100% 0);
    transition: 0.5s ease-in-out;
  }
  .nav.open { clip-path: circle(140% at 100% 0); }
  .nav ul { flex-direction: column; gap: 20px; }
  
  .footer-content { flex-direction: column-reverse; gap: 20px; text-align: center; }
}