@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

:root {
  /* Colors - Sophisticated Emerald & Slate Palette */
  --primary: #059669;
  --primary-light: #10b981;
  --primary-glow: rgba(5, 150, 105, 0.15);
  --primary-soft: rgba(5, 150, 105, 0.05); /* Added soft variant */
  --bg-base: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-hover: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-light: rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.88);
  
  /* Modern Shadow System */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 120px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

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

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.btn-primary {
  background: var(--text-main); /* Modern minimal dark button */
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('herovan_new.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  transform: scale(1.05);
  animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Sleek modern white to transparent gradient to show the photo cleanly */
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 45%, transparent 100%);
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  max-width: 900px; /* Increased to prevent 'Our Commitment' from wrapping */
  line-height: 1.1;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; 
  position: relative;
  text-align: left;
}

#dynamic-text::after {
  content: '';
  position: absolute;
  right: -8px; /* Closer to the text */
  top: 15%;
  height: 70%;
  width: 2px;
  background: var(--primary); /* Use a solid background for the cursor */
  -webkit-text-fill-color: initial;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 3rem;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Sections */
section {
  padding: 8rem 0;
}

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

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Section Revealed Animation - Default State */
section, .reveal {
  opacity: 0;
  transform: translateY(5px); /* Reduced from 10px for even softer feel */
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

section.active, .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Who We Are Split Layout */
.about-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* Slightly more space for text */
  gap: 5rem;
  align-items: stretch; /* Stretch to match heights */
}

.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  box-shadow: var(--shadow-xl);
  min-height: 480px; /* Base height for image matching */
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.about-visual:hover img {
  transform: scale(1.05);
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center-align text narrative */
  gap: 2.25rem;
}

.about-p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
}

.about-p strong {
  color: var(--text-main);
  font-weight: 700;
}

.about-p::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
  opacity: 0.8;
}

/* Removed icon and badge styles for minimalist design */

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

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

/* Cards */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.feature-card:hover {
  background: var(--bg-white);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 32px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px var(--primary-glow);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: var(--text-main);
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Services */
#services {
  /* Subtle light gradient background for Services section */
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img {
  transform: scale(1.08);
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  /* Light overlay fading out */
  background: linear-gradient(to top, #ffffff 0%, transparent 100%);
  opacity: 0.8;
}

.service-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--primary);
}

.service-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex: 1;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: gap 0.3s ease;
}

.service-card:hover .service-link {
  gap: 1rem;
}

/* Contact Section */
.contact-section {
  background: #ffffff;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch; /* Match height of children */
}

.contact-form-wrapper {
  background: #ffffff;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px; /* Consistency with the map wrapper */
}

.form-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-map-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 600px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-map {
  width: 100%;
  height: 100%;
  background-image: url('Mapnew.png');
  background-size: cover;
  background-position: center;
  /* Light map styling */
  filter: contrast(1.1) brightness(1.1) saturate(0.8);
  opacity: 0.9;
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px var(--primary-glow);
  animation: bounce 2s infinite;
}

.marker-label {
  background: #ffffff;
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  white-space: nowrap;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Footer (Keep darker for contrast or shift to light?) 
   Let's create a sleek, slightly dark footer that matches the new gradient aesthetic */
footer {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

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

.footer-brand-bottom .brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-title {
  color: var(--text-main);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0; /* Let context or gap handled spacing */
  display: block;
  transform: translateY(-4px); /* Fine-tune for perfect baseline alignment */
  font-weight: 800;
}

.footer-links {
  list-style: none;
  margin-top: 1rem; /* Consistent top spacing */
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem; /* Consistent top spacing */
  margin-bottom: 1.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
  border-color: transparent;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Tighter gap for better uniformity */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.875rem;
}

.contact-item .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-title { font-size: 4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .header-container { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 60%, transparent 100%);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: 3rem; }
  .hero-buttons { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .legal-links { flex-direction: column; gap: 0.5rem; }
}
