@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0a192f;
  --secondary: #172a45;
  --accent: #2e5b8d;
  --light-gray: #f4f6f8;
  --medium-gray: #a8b2d1;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1, .text-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2, .text-h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3, .text-h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.4;
}

h4, .text-h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

p, .text-body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}

small, .text-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
.text-center { text-align: center; }
.section-subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 2rem;
  position: relative;
  text-wrap: balance;
}

h1.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  text-wrap: balance;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  min-width: 220px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: none;
  transition: var(--transition);
}

header.scrolled {
  padding: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

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

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-main);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
}

.dropdown-content a::after {
  content: none !important;
}

.dropdown-content a:hover {
  background-color: var(--light-gray);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Global Sections */
section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--light-gray);
}

/* CTA Section */
.cta-section {
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8rem 2rem;
  border-bottom: 2px solid rgba(255,255,255,0.05);
  /* Overlay + Grid Lines + Glowing Depth */
  background-image:
    linear-gradient(135deg, rgba(10, 25, 47, 0.96) 0%, rgba(23, 42, 69, 0.88) 100%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 15% 50%, rgba(46, 91, 141, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(46, 91, 141, 0.15) 0%, transparent 50%);
  background-size: 100% 100%, 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  background-position: center;
  overflow: hidden;
}

.cta-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-text {
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.btn-cta {
  background-color: var(--accent);
  color: var(--white);
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
  border-radius: 4px;
}
.btn-cta:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--medium-gray);
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  color: var(--medium-gray);
  font-size: 0.875rem;
}

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

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 1rem;
    min-width: 100%;
    background: transparent;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .service-card {
    margin-bottom: 1.5rem;
  }
  section {
    padding: 4rem 0;
  }
}

/* Responsive Grids */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; }
.grid-2.gap-4 { gap: 4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-widget:hover {
  transform: scale(1.1);
  color: white;
}
.whatsapp-widget svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

/* Language Toggle */
.lang-toggle {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 1rem;
  transition: var(--transition);
}
.lang-toggle:hover {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 768px) {
  .lang-toggle {
    margin-left: 0;
    margin-top: 1rem;
    align-self: flex-start;
  }
}
