/* ===========================================
   MEAN INITIATIVE - COMPLETE CSS
   =========================================== */

/* ----------------------
   Theme variables
   ---------------------- */
:root {
  --brown: #5C3A21;
  --olive: #2F5E3A;
  --muted: #F7F6F3;
  --card: #ffffff;
  --text: #2b2b2b;
  --radius: 14px;
  --gap: 18px;
  --max-width: 1200px;
  --transition: 220ms cubic-bezier(.2,.9,.2,1);
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Segoe UI", Georgia, serif;
  background: var(--muted);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 20px;
}

/* Header */
.site-header {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 6px 22px rgba(39,39,39,0.06);
  display: flex;
  gap: 20px;
  align-items: center;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo-shield img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand .title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brown);
}

.brand .tag {
  font-size: 12px;
  color: #445;
  margin-top: 4px;
}

/* ===========================================
   HAMBURGER MENU - FIXED VERSION
   =========================================== */

/* Hamburger Button - HIDDEN by default on desktop */
.hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  margin-left: auto;
}

/* Three lines for hamburger */
.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #2F5E3A;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* Hamburger Animation - Three Lines to X */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Desktop Navigation - ALWAYS VISIBLE on desktop */
.main-nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(47,94,58,0.06);
}

/* ===========================================
   MOBILE STYLES (0-767px)
   =========================================== */
@media (max-width: 767px) {
  /* Show hamburger button on mobile */
  .hamburger {
    display: flex !important; /* Force show on mobile */
  }
  
  /* Hide the regular navigation on mobile */
  .main-nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: white !important;
    flex-direction: column !important;
    padding: 80px 30px 30px !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1) !important;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0) !important;
    z-index: 1000 !important;
    margin-left: 0 !important;
    overflow-y: auto !important;
    gap: 0 !important;
    display: flex !important;
  }
  
  .main-nav.active {
    right: 0 !important;
  }
  
  .main-nav a {
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 5px 0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    text-decoration: none !important;
    color: #2F5E3A !important;
    font-weight: 600 !important;
  }
  
  .main-nav a:hover {
    background: rgba(47,94,58,0.06) !important;
  }
  
  .main-nav a:last-child {
    border-bottom: none !important;
  }
  
  .menu-overlay.active {
    display: block !important;
    opacity: 1 !important;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden !important;
  }
  
  header.site-header {
    padding: 15px !important;
  }
  
  /* Hero adjustments for mobile */
  .hero {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 20px !important;
  }
  
  .hero .card {
    padding: 20px !important;
  }
  
  .hero h1 {
    font-size: 24px !important;
  }
  
  .hero p.lead {
    font-size: 16px !important;
  }
  
  .cta {
    flex-direction: column !important;
  }
  
  /* Container adjustments */
  .container {
    padding: 15px !important;
    margin: 20px auto !important;
  }
  
  /* Sections */
  section {
    margin-top: 30px !important;
  }
  
  .card {
    padding: 15px !important;
  }
  
  /* Project cards mobile */
  .proj-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 15px !important;
  }
  
  .proj-icon {
    margin: 0 auto 10px !important;
  }
  
  /* Grids mobile */
  .projects-grid,
  .future-grid {
    grid-template-columns: 1fr !important;
  }
  
  .grid-3 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  
  .form-buttons {
    flex-direction: column !important;
  }
  
  /* Footer mobile */
  .site-footer {
    padding: 25px 15px 20px !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    text-align: center !important;
  }
  
  .footer-brand,
  .footer-links,
  .footer-contact,
  .footer-social {
    align-items: center !important;
  }
  
  .footer-title {
    font-size: 18px !important;
  }
  
  .footer-description {
    font-size: 13px !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  
  .footer-section-title {
    font-size: 15px !important;
    margin-bottom: 12px !important;
  }
  
  .footer-links-list {
    gap: 8px !important;
  }
  
  .footer-links-list a {
    font-size: 13px !important;
    padding: 3px 0 !important;
  }
  
  .contact-info {
    gap: 8px !important;
    align-items: center !important;
  }
  
  .contact-item {
    font-size: 13px !important;
  }
  
  .footer-social .social-links {
    gap: 12px !important;
    justify-content: center !important;
  }
  
  .footer-social .social-links a {
    width: 36px !important;
    height: 36px !important;
  }
  
  .footer-social .social-links svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .copyright {
    font-size: 12px !important;
  }
  
  /* WhatsApp mobile */
  .whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
  
  .whatsapp-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  /* Back to top mobile */
  .back-to-top {
    bottom: 80px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  /* Statistics mobile */
  .stats-section {
    padding: 40px 15px !important;
    border-radius: 15px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  .stat-number {
    font-size: 36px !important;
  }
  
  .stat-label {
    font-size: 14px !important;
  }
  
  /* Founders Section mobile */
  .founders-grid {
    gap: 30px !important;
  }
  
  .founder-photo-frame {
    padding: 25px 25px 0 !important;
  }
  
  .founder-photo-frame img {
    width: 160px !important;
    height: 160px !important;
  }
  
  .founder-info {
    padding: 20px !important;
  }
  
  .founder-name {
    font-size: 18px !important;
  }
  
  .founder-bio {
    font-size: 14px !important;
  }
}

/* ===========================================
   TABLET STYLES (768px - 991px)
   =========================================== */
@media (min-width: 768px) and (max-width: 991px) {
  /* HIDE hamburger on tablet */
  .hamburger {
    display: none !important;
  }
  
  /* SHOW regular navigation on tablet */
  .main-nav {
    display: flex !important;
    gap: 10px !important;
    margin-left: auto !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex-direction: row !important;
  }
  
  .menu-overlay {
    display: none !important;
  }
  
  /* Tablet grid layouts */
  .projects-grid,
  .future-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 360px !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 25px !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .hero {
    grid-template-columns: 1fr !important;
  }
  
  .back-to-top {
    bottom: 90px !important;
    right: 30px !important;
  }
}

/* ===========================================
   DESKTOP STYLES (992px and above)
   =========================================== */
@media (min-width: 992px) {
  /* HIDE hamburger on desktop */
  .hamburger {
    display: none !important;
  }
  
  /* SHOW regular navigation on desktop */
  .main-nav {
    display: flex !important;
    gap: 10px !important;
    margin-left: auto !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex-direction: row !important;
  }
  
  .menu-overlay {
    display: none !important;
  }
  
  /* Desktop grid layouts */
  .projects-grid,
  .future-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 360px !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ===========================================
   REST OF THE STYLES (Desktop first)
   =========================================== */

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}

.hero .card {
  padding: 30px;
  border-radius: 18px;
  background: var(--card);
}

.hero h1 {
  font-size: 30px;
  margin: 0 0 8px;
  color: var(--brown);
}

.hero p.lead {
  margin: 0 0 14px;
  color: #103826;
  font-weight: 600;
}

.cta { margin-top: 12px; }

/* Buttons */
.btn, .btn-outline {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
  border: none;
  transition: var(--transition);
}

.btn {
  background: var(--olive);
  color: white;
  box-shadow: 0 8px 18px rgba(47,94,58,0.12);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--olive);
  border: 2px solid var(--olive);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(47,94,58,0.06);
}

/* Sections */
section { margin-top: 36px; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
}

.section-title h2 {
  margin: 0;
  color: var(--brown);
  font-size: 20px;
}

.section-desc {
  color: #334;
  margin: 8px 0 18px;
}

/* Cards */
.card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(39,39,39,0.06);
}

/* Project Cards */
.proj-card {
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(30,30,30,0.04);
  border-left: 6px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(30,30,30,0.08);
  border-left-color: var(--olive);
}

.proj-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(47,94,58,0.08), rgba(92,58,33,0.04));
  display: grid;
  place-items: center;
}

.proj-body h3 {
  margin: 0;
  font-size: 16px;
  color: var(--brown);
}

.proj-body p {
  margin: 8px 0 0;
  color: #344;
}

/* Grids */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.projects-grid { grid-template-columns: repeat(1, 1fr); }
.future-grid { grid-template-columns: repeat(1, 1fr); }

/* Statistics */
.stats-section {
  background: linear-gradient(135deg, var(--olive) 0%, #1e4d2c 100%);
  color: white;
  padding: 60px 20px;
  border-radius: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item { text-align: center; }
.stat-number { font-size: 48px; font-weight: 800; margin-bottom: 10px; color: white; }
.stat-label { font-size: 16px; opacity: 0.9; }

.plus-sign {
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 2px;
  opacity: 0.9;
}

/* Founders Section */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.founder-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.founder-photo-frame {
  position: relative;
  padding: 30px 30px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(47,94,58,0.02), rgba(92,58,33,0.02));
}

.founder-photo-frame img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.founder-info {
  padding: 25px;
  text-align: center;
}

.founder-info h3 {
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 5px;
}

.founder-name {
  color: var(--brown);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 1.3;
}

.founder-bio {
  color: #444;
  line-height: 1.5;
  margin: 0;
  font-size: 15px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  color: var(--text);
}

.contact-card h3 { color: var(--brown); margin-top: 0; margin-bottom: 16px; }
.contact-card a { color: var(--olive); }

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 16px;
  resize: vertical;
  font-family: inherit;
  color: var(--text);
}

label {
  font-weight: 600;
  color: var(--brown);
  display: block;
}

.form-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

#formStatus {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(47,94,58,0.08);
  color: var(--brown);
}

/* Footer */
.site-footer {
  margin-top: 40px;
  background: var(--olive);
  color: white;
  padding: 40px 20px 25px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-brand,
.footer-links,
.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.footer-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: white;
  font-weight: 700;
}

.footer-description {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin: 0;
}

.footer-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
  width: 100%;
  min-height: 24px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.footer-links-list a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 4px 0;
  display: inline-block;
}

.footer-links-list a:hover {
  color: white;
  transform: translateX(5px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.contact-item {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.contact-item a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: white;
  text-decoration: underline;
}

.footer-social .social-links {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-social .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social .social-links a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.footer-social .social-links svg {
  width: 20px;
  height: 20px;
  color: white;
  fill: white;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-top: 20px;
}

.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* Floating Elements */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--olive);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #1e4d2c;
  transform: translateY(-3px);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
img {
  max-width: 100%;
  height: auto;
}

input, textarea, select {
  font-size: 16px !important;
}

* {
  max-width: 100%;
}

.grid > * {
  min-width: 0;
}

h1, h2, h3, h4, h5, h6, p, li, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}