:root {
  /* --- LIGHT THEME VARIABLES (Default) --- */
  --bg-body: #ffffff;
  --bg-section: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.95);
  --border-color: #e2e8f0;
  
  --text-main: #0f172a;        /* Dark Navy */
  --text-muted: #64748b;       /* Slate Gray */
  --text-inverse: #ffffff;     /* White text for buttons/dark backgrounds */
  
  --accent-main: #6a5acd;      /* SlateBlue */
  --accent-hover: #5a4db8;     
  --accent-light: #f4f3ff;     /* Light purple background */
  
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --hero-gradient: radial-gradient(circle at 10% 20%, #f8fafc 0%, #ffffff 60%);
  
  --header-height: 90px;
}

/* --- DARK THEME VARIABLES --- */
[data-theme="dark"] {
  --bg-body: #0f172a;          /* Deep Navy */
  --bg-section: #1e293b;       /* Lighter Navy */
  --bg-card: #1e293b;          /* Card Background */
  --bg-header: rgba(15, 23, 42, 0.95);
  --border-color: #334155;
  
  --text-main: #f1f5f9;        /* Off-white */
  --text-muted: #94a3b8;       /* Light Gray */
  
  --accent-main: #818cf8;      /* Lighter SlateBlue for contrast on dark */
  --accent-hover: #6366f1;
  --accent-light: rgba(106, 90, 205, 0.15); /* Transparent Purple */
  
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  
  --hero-gradient: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 60%);
}

/* --- RESET & TYPOGRAPHY --- */
* { margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s; /* Smooth Theme Transition */
}

.container { max-width: 1200px; margin: auto; padding: 0 25px; }

/* --- HEADER --- */
.site-header {
  background: var(--bg-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.brand-logo { height: 55px; width: auto; transition: 0.3s; }
/* Invert logo brightness in Dark Mode if it's a black logo, 
   assuming the image is dark. If it's a colored logo, remove filter. */
[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }

/* NAV */
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { 
  text-decoration: none; 
  color: var(--text-main); 
  font-weight: 600; 
  font-size: 0.95rem; 
  transition: 0.3s; 
}
.nav a:hover { color: var(--accent-main); }

/* Start Project Button */
.nav-cta {
  background: var(--accent-main);
  color: var(--text-inverse) !important;
  padding: 12px 28px;
  border-radius: 50px; /* RESTORED ROUNDED PILL SHAPE */
  font-weight: 700;
  text-transform: capitalize; /* Capitalized not Uppercase */
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: 15px;
  transition: 0.3s;
}
.theme-toggle-btn:hover { background: var(--bg-section); color: var(--accent-main); }

/* --- LANGUAGE TOGGLE BUTTON --- */
.lang-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 15px;
  height: 40px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 10px;
  transition: 0.3s;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}
.lang-toggle-btn:hover { 
  background: var(--bg-section); 
  color: var(--accent-main); 
}

.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-main); }

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 10px;
  background: var(--hero-gradient);
  transition: 0.3s;
  margin-bottom: 100px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* Badge squeezed down */
.badge {
  background: var(--accent-light);
  color: var(--accent-main);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 25px;
  margin-top: 100px; /* Squeezed down from header */
  display: inline-block;
  text-transform: capitalize; /* Capitalized not Uppercase */
  border: 1px solid var(--border-color);
}

h1 { font-size: 3.5rem; line-height: 1.15; margin-bottom: 25px; font-weight: 800; color: var(--text-main); }
.text-highlight { color: var(--accent-main); }

/* Hero Paragraph: Line height 2 */
.hero p { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    margin-bottom: 35px; 
    max-width: 90%; 
    line-height: 2; /* REQUESTED CHANGE */
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-bottom: 35px;
  border-left: 5px solid var(--accent-main);
  padding-left: 25px;
}
.stat strong { display: block; font-size: 2rem; color: var(--text-main); line-height: 1; margin-bottom: 5px; }

/* Stats Text: Capitalized not Uppercase */
.stat span { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    text-transform: capitalize; 
    font-weight: 700; 
}

/* LINK ANIMATION */
.view-solutions-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  padding-bottom: 5px;
  text-transform: capitalize;
}
.view-solutions-btn::after {
  content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px;
  bottom: 0; left: 0; background-color: var(--accent-main);
  transform-origin: bottom right; transition: transform 0.3s ease-out;
}
.view-solutions-btn:hover { color: var(--accent-main); }
.view-solutions-btn:hover::after { transform: scaleX(1); transform-origin: bottom left; }

/* --- HERO FORM --- */
.hero-form-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}
.hero-form-card h3 { font-size: 1.6rem; color: var(--text-main); margin-bottom: 8px; }

.form-guarantee {
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem;
  color: var(--accent-main); font-weight: 700; margin-bottom: 25px;
}

input, select, textarea {
  width: 100%; padding: 16px; margin-bottom: 16px;
  border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--bg-section); color: var(--text-main);
  font-family: 'Montserrat', sans-serif; font-size: 0.95rem; transition: 0.3s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-main); background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(106, 90, 205, 0.1);
}

.btn-primary {
  background: var(--accent-main); color: white; border: none; width: 100%;
  padding: 18px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: .3s;
  text-transform: capitalize; /* Capitalized not Uppercase */
  letter-spacing: 0.5px; font-size: 0.95rem;
  box-shadow: 0 4px 6px rgba(106, 90, 205, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(106, 90, 205, 0.4);
}

/* --- TRUSTED TECH BAR --- */
.trusted-tech-bar {
  padding: 50px 0; background: var(--bg-card);
  border-bottom: 1px solid var(--border-color); text-align: center;
}
.trust-title { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 25px; font-weight: 700; }
.trust-logos { display: flex; justify-content: center; gap: 60px; font-size: 2.5rem; color: #cbd5e1; transition: 0.3s; flex-wrap: wrap; }
.trust-logos i:hover { color: var(--accent-main); transform: scale(1.1); }

/* --- SECTIONS --- */
.section { padding: 100px 0; scroll-margin-top: var(--header-height); }
.bg-alt { background: var(--bg-section); }
.section-title { font-size: 2.5rem; margin-bottom: 60px; text-align: center; font-weight: 800; color: var(--text-main); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.service-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  transition: .3s;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-main);
}
.card-icon { font-size: 3rem; color: var(--accent-main); margin-bottom: 25px; opacity: 0.9; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-main); }

/* Card Text: Justify + Line Height 2 */
.service-card p {
    color: var(--text-muted);
    line-height: 2;
    text-align: justify;
}

.process-number {
  display: inline-block; font-size: 3rem; font-weight: 800;
  color: var(--accent-light); margin-bottom: 15px; line-height: 1;
  /* Make number slightly visible in dark mode if needed, or use specific color */
}
[data-theme="dark"] .process-number { color: rgba(129, 140, 248, 0.1); }

.service-card:hover .process-number { color: var(--accent-main); transition: 0.3s; }

/* --- TRUST VALUES SECTION --- */
.trust-values { padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border-color); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust-item { display: flex; align-items: flex-start; gap: 15px; }
.trust-item i { font-size: 1.5rem; color: var(--accent-main); margin-top: 4px; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; color: var(--text-main); }
.trust-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; color: var(--text-main); }

/* Contact Paragraph: Line height 2 */
.contact-desc {
    font-size: 1.15rem; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
    line-height: 2; /* REQUESTED CHANGE */
}

.contact-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; margin-bottom: 20px; color: var(--text-main); font-weight: 500; }
.contact-item i { color: var(--accent-main); font-size: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* --- FOOTER --- */
/* Footer stays dark by default, but we adapt texts */
.site-footer { background: #0f172a; color: white; padding: 80px 0 20px; }
/* In dark mode, footer blends with body, in light mode it stands out */
[data-theme="dark"] .site-footer { border-top: 1px solid var(--border-color); }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-grid a { color: #94a3b8; display: block; margin-bottom: 12px; text-decoration: none; transition: 0.2s; }
.footer-grid a:hover { color: var(--accent-main); }
.footer-bottom { padding-top: 25px; display: flex; justify-content: center; align-items: center; gap: 20px; font-size: 0.9rem; color: #64748b; }
.footer-slogan { color: var(--accent-main); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-left: 1px solid #334155; padding-left: 20px; }

.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px;
  background: #25D366; color: white;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 2000; text-decoration: none; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- MOBILE RESPONSIVE --- */
@media(max-width:992px){
  .hero-split, .contact-grid, .trust-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; border-left: none; padding-left: 0; }
  .contact-item { justify-content: center; }
  .trust-item { flex-direction: column; align-items: center; }
  h1 { font-size: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .footer-slogan { border-left: none; padding-left: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  
  .mobile-toggle { display: block; margin-left: 20px;}
  
  .nav {
    position: absolute; top: var(--header-height); left: 0; width: 100%;
    background: var(--bg-card); flex-direction: column; gap: 0;
    border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    display: none; padding: 0;
  }
  .nav.active { display: flex; animation: slideDown 0.3s ease; }
  .nav a { width: 100%; padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
  .nav-cta { border-radius: 0; width: 100%; }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}