/* ===== CSS Variables ===== */
:root {
  --primary-green: #2D5A27;
  --secondary-green: #4CAF50;
  --accent-green: #81C784;
  --light-green: #E8F5E9;
  --dark-green: #1B5E20;
  --earth-brown: #5D4037;
  --cream: #F5F5F0;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --gradient-green: linear-gradient(135deg, #2D5A27 0%, #4CAF50 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

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

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

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

/* ===== Header & Navigation ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-green);
}

.logo-text span {
  color: var(--secondary-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-green);
  transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-green);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-green);
}

.btn-primary:hover {
  background: var(--light-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-3px);
}

.btn-green {
  background: var(--secondary-green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-header .line {
  width: 80px;
  height: 4px;
  background: var(--gradient-green);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ===== About Preview ===== */
.about-preview {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

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

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--secondary-green);
  border-radius: 20px;
  z-index: -1;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-green);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Services/Process ===== */
.services {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.process-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-green);
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.process-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: var(--secondary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.process-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.process-card p {
  font-size: 0.95rem;
}

/* ===== Features ===== */
.features {
  background: var(--light-green);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-green);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--white);
}

.feature-card h4 {
  margin-bottom: 10px;
  color: var(--primary-green);
}

/* ===== Patents ===== */
.patents {
  background: var(--white);
}

.patents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.patent-card {
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.patent-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.patent-header {
  background: var(--gradient-green);
  color: var(--white);
  padding: 25px 30px;
}

.patent-header h3 {
  color: var(--white);
  margin-bottom: 5px;
}

.patent-number {
  font-size: 0.9rem;
  opacity: 0.9;
}

.patent-body {
  padding: 30px;
}

.patent-body p {
  margin-bottom: 15px;
}

.patent-features {
  list-style: none;
  margin-top: 20px;
}

.patent-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-light);
}

.patent-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--secondary-green);
  font-weight: bold;
}

/* ===== CTA Section ===== */
.cta {
  background: var(--gradient-green);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Contact ===== */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 5px;
  color: var(--primary-green);
}

.contact-text p {
  margin: 0;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-green);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== Footer ===== */
footer {
  background: var(--primary-green);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about .logo-text {
  color: var(--white);
}

.footer-about .logo-text span {
  color: var(--accent-green);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--gradient-green);
  padding: 150px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

/* ===== About Page ===== */
.about-detail {
  padding: 80px 0;
}

.about-section {
  margin-bottom: 60px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background: var(--light-green);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.mv-card h3 {
  margin-bottom: 15px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-info {
  padding: 25px;
}

.team-info h4 {
  margin-bottom: 5px;
}

.team-info .role {
  color: var(--secondary-green);
  font-weight: 500;
  margin-bottom: 10px;
}

/* ===== Services Page ===== */
.service-detail {
  padding: 80px 0;
}

.service-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.workflow-section {
  margin-bottom: 80px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.workflow-step:nth-child(even) {
  direction: rtl;
}

.workflow-step:nth-child(even) > * {
  direction: ltr;
}

.step-content {
  padding: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-green);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-content h3 {
  margin-bottom: 15px;
}

.step-image {
  background: var(--light-green);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.step-icon {
  font-size: 5rem;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--secondary-green);
}

.timeline-item {
  padding: 20px 0;
  position: relative;
}

.timeline-content {
  width: 45%;
  padding: 25px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-year {
  display: inline-block;
  padding: 5px 15px;
  background: var(--secondary-green);
  color: var(--white);
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-grid,
  .contact-grid,
  .mission-vision,
  .workflow-step {
    grid-template-columns: 1fr;
  }

  .workflow-step:nth-child(even) {
    direction: ltr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .patents-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about .logo {
    justify-content: center;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }
}
