/* RESET & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #0f2b2d;
  --primary-green: #2c7a4d;
  --primary-light: #e0ece6;
  --nav-bg: #0d1d2c;
  --text-primary: #1a2a2f;
  --text-secondary: #3a4a4f;
  --text-muted: #6c7a71;
  --border-light: #eef2f0;
  --bg-light: #f8fafc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 12px 32px rgba(0,0,0,0.1);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

h1 { 
  font-size: 3.5rem; 
  line-height: 1.15; 
  margin-bottom: 1.5rem;
}

h2 { 
  font-size: 2.5rem; 
  line-height: 1.25;
  margin-bottom: 1.25rem; 
}

h3 { 
  font-size: 1.5rem; 
  line-height: 1.4;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p { 
  color: var(--text-secondary); 
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.section { 
  padding: 6rem 0; 
}

.bg-light { 
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header { 
  text-align: center; 
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease;
}

.section-header p { 
  font-size: 1.25rem; 
  color: var(--primary-green);
  font-weight: 500;
  margin-top: 0.5rem;
}

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

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 14px rgba(15,43,45,0.25);
}

.btn-primary:hover {
  background: #1f4e4a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,43,45,0.35);
}

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

.btn-outline:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,43,45,0.25);
}

.btn-secondary {
  background: var(--border-light);
  color: var(--primary-dark);
}

.btn-secondary:hover { 
  background: #d8e3de;
  transform: translateY(-2px);
}

.btn-large { 
  padding: 1.25rem 3rem; 
  font-size: 1.15rem;
}

.btn-block { 
  width: 100%; 
  text-align: center; 
}

/* HERO */
.hero {
  padding: 6rem 0 7rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(44,122,77,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

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

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-content { 
  flex: 1.2;
  animation: fadeInUp 0.8s ease;
}

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

.hero-visual { 
  flex: 0.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.abstract-shape {
  background: radial-gradient(circle at 30% 50%, #2c7a4d20, #0f2b2d10);
  width: 100%;
  height: 320px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background-color: var(--primary-light);
  animation: morphShape 8s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(44,122,77,0.15);
}

@keyframes morphShape {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-buttons { 
  display: flex; 
  gap: 1.25rem; 
  margin-top: 2.5rem; 
  flex-wrap: wrap;
}

.hero-sub { 
  font-size: 1.35rem; 
  max-width: 560px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-dark));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--shadow-xl);
  border-color: #cde0d8;
}

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

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

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.project-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-card:hover::after {
  opacity: 1;
}

.tech-tags {
  margin-top: 1.25rem;
}

.tech-tags span {
  background: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-dark);
  transition: all var(--transition-fast);
}

.tech-tags span:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

.impact { 
  margin-top: 1.5rem; 
  font-size: 0.95rem; 
  color: var(--primary-green); 
  font-weight: 600;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.center-btn { 
  text-align: center; 
  margin-top: 3rem; 
}

/* THREE COL FEATURES */
.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}

.feature { 
  text-align: center; 
  padding: 2rem 1.5rem;
  transition: transform var(--transition-base);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-number { 
  font-size: 3rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, #bcd9d0, var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem; 
  display: block;
  transition: transform var(--transition-base);
}

.feature:hover .feature-number {
  transform: scale(1.15);
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1f4e4a 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.cta-container {
  position: relative;
  z-index: 1;
}

.cta-container h2 { 
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-container p { 
  color: #cfecdd;
  font-size: 1.25rem;
}

.cta-container .btn-primary { 
  background: white; 
  color: var(--primary-dark); 
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-container .btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.about-text h2 { 
  margin-top: 2.5rem;
  color: var(--primary-dark);
}

.about-text h2:first-of-type { margin-top: 0; }

.about-text p {
  line-height: 1.8;
}

/* SERVICES PAGE */
.services-full-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.service-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-xl);
  border-color: #cde0d8;
}

.service-icon { 
  font-size: 3.5rem;
  transition: transform var(--transition-base);
}

.service-item:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
}

.service-content { flex: 1; }

.service-cta { 
  color: var(--primary-green); 
  text-decoration: none; 
  font-weight: 600; 
  margin-top: 1rem; 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.service-cta:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

/* PROJECTS FULL */
.project-full-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.project-full-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.project-details, .project-impact { 
  margin-top: 1rem;
  line-height: 1.8;
}

/* FORMS */
.form-container, .contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

input, select, textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-base);
  background: white;
}

input:hover, select:hover, textarea:hover {
  border-color: #d8e3de;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(44,122,77,0.12);
  transform: translateY(-2px);
}

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

.feedback {
  margin-top: 1.5rem;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.feedback.success { 
  color: var(--primary-green);
  background: rgba(44,122,77,0.1);
}

.feedback.error { 
  color: #b91c1c;
  background: rgba(185,28,28,0.1);
}

/* CONTACT PAGE */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-details div { 
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.office-hours { 
  margin-top: 2rem; 
  color: var(--primary-green);
  font-weight: 600;
}

.contact-form-box { 
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.note { 
  font-size: 0.85rem; 
  margin-top: 1.5rem; 
  text-align: center;
  color: var(--text-muted);
}

/* HEADER / FOOTER */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.logo:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo span { line-height: 1; }

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

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-dark);
  transition: transform var(--transition-fast);
}

/* Dark header overrides */
.site-header .logo { color: #ffffff; }
.site-header .nav-links a { color: #ffffff; }
.site-header .hamburger { color: #ffffff; }
.site-header .nav-links a:hover { color: var(--primary-light); }

.hamburger:hover {
  transform: scale(1.1);
}

footer {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-grid > div {
  flex: 1;
  min-width: 200px;
}

.footer-grid strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.75rem;
}

.copyright { 
  text-align: center; 
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem; 
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
  
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 3rem; }
  
  .hero {
    padding: 4rem 0 5rem;
  }
  
  .hero-grid { 
    flex-direction: column; 
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-sub {
    font-size: 1.15rem;
    max-width: 100%;
  }
  
  .hero-buttons { 
    justify-content: center;
    gap: 1rem;
  }
  
  .btn {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
  }
  
  .btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.25rem;
    background: white;
    border-top: 1px solid var(--border-light);
  }
  .site-header .nav-links a { color: var(--text-primary); }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-links.active { display: flex; }
  .hamburger { display: block; }
  
  .cards-grid,
  .projects-grid,
  .three-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .card,
  .project-card {
    padding: 2rem;
  }
  
  .cta-container h2 {
    font-size: 2.25rem;
  }
  
  .cta-container p {
    font-size: 1.1rem;
  }
  
  .about-grid, 
  .contact-wrapper { 
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-form-box {
    padding: 2rem;
  }
  
  .service-item { 
    flex-direction: column; 
    text-align: center; 
    align-items: center;
    padding: 2rem;
  }
  
  .service-item:hover {
    transform: translateY(-4px);
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

/* Intelligence Flow Styles */
.intelligence-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
}

.flow-step {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.flow-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.flow-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a2a2f;
}

.flow-step p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

.flow-arrow {
  font-size: 2rem;
  color: #3b82f6;
  font-weight: bold;
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .intelligence-flow {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .flow-step {
    max-width: 100%;
    width: 100%;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

/* Map Styles */
.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.map-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-placeholder iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.map-info {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.map-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a2a2f;
}

.map-info p {
  margin-bottom: 0.75rem;
  color: #64748b;
}

.map-info strong {
  color: #1a2a2f;
}

.map-directions {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .map-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .map-placeholder iframe {
    height: 300px;
  }
  
  .map-info {
    padding: 1.5rem;
  }
}