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

:root {
  --primary: #112d4e;
  --secondary: #3f72af;
  --accent: #2b7a0b;
  --accent-hover: #1e5c06;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { color: var(--text-light); margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(43, 122, 11, 0.3);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(43, 122, 11, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
.btn-dark {
  background-color: var(--primary);
  color: var(--white);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.nav-links a.btn-primary {
  color: var(--white);
}
.nav-links a.btn-primary:hover {
  color: var(--white);
}

/* General Layouts */
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Home Hero */
.hero-home {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-home::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(17, 45, 78, 0.95) 0%, rgba(17, 45, 78, 0.8) 40%, rgba(17, 45, 78, 0.2) 100%),
              radial-gradient(circle at 80% 20%, rgba(43, 122, 11, 0.4) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  color: var(--white);
  text-align: left;
}
.hero-content h1 { color: var(--white); font-size: 4rem; margin-bottom: 0.5rem; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { color: var(--white); font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }

.hero-stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a60 100%);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.hero-stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 150%;
  height: 200%;
  background: radial-gradient(circle, rgba(43, 122, 11, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-stats-bar h3 { color: var(--white); font-size: 1.1rem; }
.hero-stats-bar p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }

/* Features & Cards */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(43, 122, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9rem; margin: 0; }

/* Effect Cards */
.effect-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.effect-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.effect-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(17, 45, 78, 0.08);
  border-color: transparent;
}
.effect-card:hover::before {
  transform: scaleX(1);
}
.effect-card h3, .effect-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Dark Effect Card for Stats Bar */
.hero-stats-bar .effect-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}
.hero-stats-bar .effect-card h3 {
  color: var(--white);
  font-size: 1.25rem;
}
.hero-stats-bar .effect-card p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.hero-stats-bar .effect-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* About Hero */
.about-hero { background-color: var(--bg-light); }
.about-hero h1 { color: var(--primary); }
.about-hero img { width: 100%; border-radius: 12px; object-fit: cover; }
.stats-bar { background-color: var(--primary); color: var(--white); padding: 3rem 0; }
.stat-item { text-align: center; }
.stat-item h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.5rem; }
.stat-item p { color: rgba(255,255,255,0.8); margin: 0; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

/* Projects & Insights */
.filter-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-tab { 
  padding: 0.5rem 1rem; 
  border-radius: 999px; 
  background-color: var(--white); 
  border: 1px solid var(--border-color); 
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}
.filter-tab.active { background-color: var(--accent); color: var(--white); border-color: var(--accent); }

.card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 1.5rem; }
.card-meta { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.card-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--primary); }
.card-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-block; }
.card-link:hover { text-decoration: underline; }

/* Contact */
.contact-info {
  background-color: var(--bg-light);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(43, 122, 11, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-form {
  background-color: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.form-group { margin-bottom: 1.25rem; }
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--bg-light);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 122, 11, 0.15);
  background-color: var(--white);
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* Team */
.team-card {
  padding-top: 2rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(17, 45, 78, 0.1);
  border-color: rgba(43, 122, 11, 0.3);
}
.team-avatar {
  width: 160px;
  height: 220px;
  border-radius: 16px;
  background-color: rgba(43, 122, 11, 0.1);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.team-avatar::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.team-card:hover .team-avatar::after {
  opacity: 1;
  transform: scale(1.1);
  animation: pulseAvatar 2s infinite;
}
@keyframes pulseAvatar {
  0% { box-shadow: 0 0 0 0 rgba(43, 122, 11, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(43, 122, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 122, 11, 0); }
}
.team-role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.team-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.team-contact a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.team-contact a:hover {
  color: var(--accent);
}

/* Card hover effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.mobile-menu-btn span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Footer */
.footer { background-color: var(--white); border-top: 1px solid var(--border-color); padding-top: 4rem; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.footer h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-light); text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); }
.footer-bottom { background-color: var(--primary); padding: 1.5rem 0; margin-top: 4rem; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--white); }

/* Utility */
.bottom-cta { 
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white); 
  padding: 4rem 0; 
  text-align: center; 
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
}
.bottom-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.bottom-cta h2 { color: var(--white); margin-bottom: 1rem; position: relative; z-index: 1; }
.bottom-cta a { position: relative; z-index: 1; }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--bg-light); }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 3rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .section-padding { padding: 3.5rem 0; }
  .hero-home { min-height: 65vh; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1.5rem 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    gap: 0;
    border-top: 1px solid var(--border-color);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links li:last-child { border-bottom: none; }
  .mobile-menu-btn { display: flex; }
  .navbar { position: relative; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-home { min-height: 60vh; padding: 2rem 0; }
  .hero-home::before {
    background: linear-gradient(to right, rgba(17, 45, 78, 0.95) 0%, rgba(17, 45, 78, 0.8) 100%);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .section-padding { padding: 2.5rem 0; }

  .stats-bar .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item h2 { font-size: 2rem; }

  .hero-stats-bar .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-bottom .container { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .contact-info, .contact-form { padding: 1.5rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-home { min-height: 55vh; }

  .stats-bar .grid-4 { grid-template-columns: 1fr; }
  .footer .grid-4 { grid-template-columns: 1fr; }

  .filter-tabs { gap: 0.5rem; }
  .filter-tab { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}
