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

:root {
  --primary: #15803d; /* Green from logo */
  --primary-hover: #166534;
  --accent: #dc2626; /* Red from logo */
  --accent-hover: #b91c1c;
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

img {
  max-width: 100%;
}

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

/* Background Gradients for Modern Feel */
.bg-gradient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(at 0% 0%, rgba(21, 128, 61, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(220, 38, 38, 0.05) 0px, transparent 50%);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 50px;
  width: auto;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-text span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
  position: relative;
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  color: white;
}

.contact-info-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  margin-top: 2rem;
  transform: translateY(0);
  transition: var(--transition);
}
.contact-info-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.contact-info-card p {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
.hero-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
}

/* Features/Sections */
.text-center {
  text-align: center;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.responsive-large-img {
  height: 600px;
  border-radius: var(--radius);
}
.card-body {
  padding: 1.5rem;
}

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

/* Footer */
footer {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 3rem 0;
  margin-top: 4rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}
.footer-credits {
  font-weight: 500;
}
.footer-credits a {
  color: var(--primary);
  font-weight: 700;
}
.footer-credits a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE — Tablet (max-width: 992px)
   ============================================================ */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .contact-info-card {
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image {
    margin: 0 auto;
  }
  .responsive-large-img {
    height: 450px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Push hamburger to far right */
  .logo-container {
    flex: 1;
  }

  /* Container padding */
  .container {
    padding: 0 1.25rem;
  }

  /* Mobile Menu */
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 99;
  }
  .nav-links.active {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }

  /* Grids to single column */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Gallery grid – allow smaller items */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  /* Sections */
  .section {
    padding: 3rem 0;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 2rem;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1.05rem;
  }
  .hero-image img {
    max-width: 350px;
  }

  /* Large image */
  .responsive-large-img {
    height: 300px;
  }

  /* Contact card */
  .contact-info-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
  }

  /* Section title */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-logo {
    font-size: 1.2rem;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-image img {
    max-width: 280px;
  }
  .responsive-large-img {
    height: 220px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    height: 200px;
  }
  .contact-info-card {
    padding: 1.25rem;
  }
  .contact-info-card p {
    font-size: 0.85rem;
  }
}

/* 404 Page Specific */
.not-found-wrapper {
  min-height: calc(100vh - 80px - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found-wrapper h1 {
  font-size: 8rem;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1;
}
.not-found-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .not-found-wrapper h1 {
    font-size: 5rem;
  }
  .not-found-wrapper h2 {
    font-size: 1.5rem;
  }
  .not-found-wrapper {
    padding: 6rem 1rem 3rem;
  }
}
