:root {
  /* Colors */
  --bg-color: #f8fafc;
  --bg-dark: #0f172a; /* Dark Blue */
  --bg-dark-slate: #1e293b;
  --text-main: #334155; /* Slate Grey */
  --text-light: #f8fafc;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-grey: #64748b;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-bg-dark: rgba(15, 23, 42, 0.7);
  
  /* Fonts */
  --font-main: 'Inter', sans-serif;
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography elements */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--bg-dark);
}

.text-light {
  color: var(--text-light) !important;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--brand-grey);
}

.btn-primary {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

/* Navigation - Glassmorphism */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-dark);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  font-weight: 600;
  color: var(--bg-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--brand-blue);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  height: 65vh;
  min-height: 400px;
  padding-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

/* Dynamic background effect */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  animation: pulse 8s infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-section p {
  margin-bottom: 3rem;
  font-size: 1.3rem;
}

/* Layout Utilities */
.section {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
}

.flex-row > * {
  flex: 1;
}

.bg-light {
  background-color: #fff;
}

/* Services */
.dynamic-bg-alt {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3rem;
  border-radius: 20px;
  text-align: left;
}

.glass-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.glass-card p {
  color: #cbd5e1;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.icon {
  width: 30px;
  height: 30px;
  color: var(--brand-blue);
}

.hover-lift {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  max-width: 600px;
  margin: 4rem auto 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-item {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-item strong {
  color: var(--bg-dark);
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  padding: 3rem 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a:hover {
  color: #fff;
}

/* Animations & Interactivity */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 0.4; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Abstract Illustration & Images */
.about-img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: block;
}

.glass-illustration {
  position: relative;
  width: 100%;
  height: 400px;
  background: var(--bg-color);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.circle-1 {
  width: 200px; height: 200px;
  background: rgba(37, 99, 235, 0.4);
  top: -20px; right: -20px;
  animation: float 6s infinite ease-in-out;
}

.circle-2 {
  width: 150px; height: 150px;
  background: rgba(100, 116, 139, 0.4);
  bottom: 20px; left: 20px;
  animation: float 8s infinite ease-in-out reverse;
}

.glass-card-mockup {
  width: 250px;
  height: 150px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 2;
  animation: float 5s infinite ease-in-out;
}

.mockup-row {
  width: 100%;
  height: 15px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
}
.mockup-row.short { width: 60%; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Contact Form Styles */
.contact-form {
  margin-top: 1.5rem;
  text-align: left;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}
.contact-box {
  padding: 2.5rem;
}
.logo-img {
  height: 96px;
  width: auto;
  max-width: 100%;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo-text-img {
  height: 48px;
  width: auto;
  max-width: 100%;
}

/* Legal Pages */
.legal-content {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  white-space: pre-line; /* respects line-breaks from JSON */
}

/* Responsive */
@media (max-width: 900px) {
  .flex-row { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 2.8rem; }
}

@media (max-width: 600px) {
  .nav-links { display: none; } /* Simplified for mobile */
}

/* Modal Overlay (Layover Effect) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.modal-overlay.dark-mode {
  background: rgba(15, 23, 42, 0.6);
}

.modal-content-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 90%;
  margin-bottom: 100px;
  position: relative;
}

.modal-overlay.dark-mode .modal-content-box {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.modal-close-btn:hover {
  opacity: 1;
}

.subpage-title {
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  .subpage-title {
    font-size: 1.8rem;
  }
}
