/* Base Styles & Variables */
:root {
  /* Color System */
  --primary-color: #1a3a2a;
  /* Dark green */
  --primary-light: #2a5a3a;
  /* Lighter green */
  --primary-dark: #102218;
  /* Darker green */
  --secondary-color: #4a7c59;
  /* Medium green */
  --accent-color: #d4af37;
  /* Gold accent */
  --accent-light: #e6c65c;
  /* Light gold */

  --success-color: #4caf50;
  /* Green success */
  --warning-color: #ff9800;
  /* Orange warning */
  --error-color: #f44336;
  /* Red error */

  --text-light: #f8f9fa;
  /* Light text */
  --text-dark: #212529;
  /* Dark text */
  --text-muted: #6c757d;
  /* Muted text */

  --bg-light: #f8f9fa;
  /* Light background */
  --bg-dark: #0d1b14;
  /* Very dark green background */
  --bg-card: #ffffff;
  /* Card background */

  /* Spacing System (8px base) */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --line-height-body: 1.5;
  --line-height-heading: 1.2;

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-heading);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-xl) 0;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
}

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

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-sm:hover {
  background-color: var(--primary-light);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(26, 58, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-sm);
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: var(--space-md);
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width var(--transition-fast);
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-light);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(10, 20, 15, 0.7), rgba(11, 22, 17, 0.815)),
    url('https://i.imghippo.com/files/smr3431mM.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding-top: 70px;
}

.hero-content {
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  animation: fadeIn 1.5s ease-out;
}

/* About Section */
.about-section {
  background-color: var(--bg-light);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  flex: 1;
  min-width: 300px;
}

.stat-item {
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  min-width: 150px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--accent-color);
}

.stat-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Services Section */
.services-section {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.services-section .section-header h2,
.services-section .section-header .subtitle {
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--accent-color);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Products Section */
.products-section {
  background-color: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

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

.product-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-details {
  padding: var(--space-md);
}

.product-details h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

.product-details p {
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.product-price {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--primary-light);
  color: var(--text-light);
}

.testimonials-section .section-header h2,
.testimonials-section .section-header .subtitle {
  color: var(--text-light);
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: var(--space-md);
}

.testimonial-content p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
}

.author-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.author-title {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(26, 58, 42, 0.9), rgba(26, 58, 42, 0.9)),
    url('https://images.pexels.com/photos/3223423/pexels-photo-3223423.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cta-content p {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: var(--font-primary);
}

.cta-form .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: var(--space-xl);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo p {
  margin: var(--space-sm) 0 var(--space-md);
  opacity: 0.8;
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  flex: 2;
}

.footer-col {
  flex: 1;
  min-width: 150px;
}

.footer-col h4 {
  margin-bottom: var(--space-md);
  color: var(--accent-color);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col a {
  color: var(--text-light);
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: var(--space-md) 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: var(--space-sm) 0;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .about-content,
  .footer-content {
    flex-direction: column;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input,
  .cta-form .btn {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}