@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  /* Color Palette - Matched to Logo */
  --color-primary: #5db02a; /* Logo Green */
  --color-primary-dark: #4a8d21;
  --color-primary-light: #e8f5e1;
  --color-secondary: #00334e; /* Logo Navy Blue */
  --color-background: #f8fbfa;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e2e8f0;
  
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(30, 108, 58, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
  --color-primary: #6cc933; 
  --color-primary-dark: #5db02a;
  --color-primary-light: #1e3a10;
  --color-secondary: #004d75;
  --color-background: #0a110e;
  --color-surface: #121a16;
  --color-text: #f0f4f2;
  --color-text-light: #a0b3a8;
  --color-border: #233329;
  
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(93, 176, 42, 0.15);
  --glass-bg: rgba(18, 26, 22, 0.85);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-text);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* Page Loader */
.loader-wrapper {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.nav-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

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

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(30, 108, 58, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 108, 58, 0.3);
}

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

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px; height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  width: 100%; height: 3px;
  background: var(--color-text);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 5% 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 100%);
  z-index: -1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(90deg, rgba(13,19,16,0.95) 0%, rgba(13,19,16,0.6) 100%);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}

[data-theme="dark"] .hero h1 {
  color: var(--color-primary);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

/* Floating Shapes */
.floating-shape {
  position: absolute;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
  color: var(--color-primary);
  font-size: 8rem;
}
.shape-1 { top: 20%; right: 10%; animation-delay: 0s; }
.shape-2 { bottom: 10%; right: 30%; animation-delay: 2s; font-size: 6rem; color: var(--color-secondary); }
.shape-3 { top: 40%; left: 50%; animation-delay: 4s; font-size: 4rem; }

/* Sections Base */
.section {
  padding: 6rem 5%;
}

.section-alt {
  background: var(--color-surface);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

[data-theme="dark"] .section-header h2 {
  color: var(--color-primary);
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.card-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform var(--transition-normal);
}

.card:hover .card-icon {
  transform: scale(1.1);
}

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

.card p {
  color: var(--color-text-light);
}

/* Services Grid Specialized */
.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.service-img-container {
  overflow: hidden;
}

.service-content {
  padding: 2rem;
  flex: 1;
}

/* About Preview */
.about-preview {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}
[data-theme="dark"] .about-text h2 { color: var(--color-primary); }
.about-text p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  text-align: center;
  padding: 5rem 5%;
  border-radius: var(--radius-lg);
  margin: 4rem 5%;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .cta-banner h2 { color: #fff; }

.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-secondary);
}

.cta-banner .btn-primary:hover {
  background: var(--color-background);
  color: var(--color-secondary);
}

/* Contact Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-info-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.contact-info-content p {
  color: var(--color-text-light);
}

.contact-form {
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-text);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

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

[data-theme="dark"] .footer-col h4 { color: var(--color-primary); }

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

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

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.social-links a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
}

/* Floating Elements */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-soft);
  z-index: 100;
  transition: all var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-soft);
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-5px);
}

/* Animations Base */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

.reveal.slide-left {
  transform: translateX(-50px);
}
.reveal.slide-right {
  transform: translateX(50px);
}
.reveal.slide-left.active, .reveal.slide-right.active {
  transform: translateX(0);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 108, 58, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(30, 108, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 108, 58, 0); }
}

/* Inner Page Header */
.page-header {
  padding: 10rem 5% 5rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #fff;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

[data-theme="dark"] .page-header h1 { color: #fff; }

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0; left: 100%;
    width: 100%; height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    transition: left var(--transition-normal);
  }
  .nav-links.active {
    left: 0;
  }
  .hamburger {
    display: block;
  }
  .about-preview, .contact-grid {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 8rem;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
