/* Reset & Base */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-body);
  /* Subtle noise texture */
  background-image: 
    linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; } /* Simplified for mobile - or add simple hamburger if needed, keeping it simple as requested */
  /* Actually, for accessibility and simplicity without JS, horizontal scroll or wrap is safer */
  .nav-links {
    display: flex;
    font-size: 0.875rem;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 5px; /* Scrollbar space */
  }
  h1 { font-size: 2rem; }
  
  .hero-content {
    grid-template-columns: 1fr !important;
  }
}

/* Hero */
.hero {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

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

.hero-text h1 {
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1000;
  min-width: 120px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-menu.show {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-menu button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-menu button:hover {
  background: var(--bg-body);
  color: var(--primary);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-dark);
}

.badge {
  display: inline-block;
  background: #e0f2fe;
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Why Choose Us */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.feature-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

/* FAQ */
details {
  background: white;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none; /* Hide default triangle */
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  font-weight: bold;
}

details[open] summary::after {
  content: "-";
}

details p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  color: var(--text-muted);
}

/* Contact Form */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
  ring: 2px solid rgba(37, 99, 235, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.privacy-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Form Success Handling */
#success-message {
  display: none;
  background: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid #86efac;
}

#contact:target #success-message {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

#contact:target form {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Partners */
.partners-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.partner-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: white;
}

.partner-link:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: white;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.seo-text {
  font-size: 0.75rem;
  color: #94a3b8;
  max-width: 800px;
  margin: 1rem auto 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  color: var(--text-main);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 40;
}

.back-to-top:hover {
  opacity: 1;
}
