/* Saluwadana Agro - Modern Redesign */
:root {
  --bg-color: #f4f7f4;
  --surface-color: #ffffff;
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --accent-color: #81c784;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --border-color: rgba(46, 125, 50, 0.1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  --container-width: 1280px;
  --header-height: 80px;
  --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(46, 125, 50, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

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

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--primary-color);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Header */
header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 40px;
}

.logo h1 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--primary-dark);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.mobile-toggle, .close-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  max-width: 900px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--primary-color);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* Section General */
.section {
  padding: 100px 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-item span {
  font-weight: 600;
  color: var(--primary-dark);
}

/* Products Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

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

.product-img {
  height: 250px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-info {
  padding: 30px;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.product-info ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
}

.product-info ul li {
  margin-bottom: 8px;
}

/* Quality Section */
.quality {
  background-color: #fff;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.quality-item {
  background-color: var(--bg-color);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition-fast);
}

.quality-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.quality-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.quality-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Partners Section */
.partners {
  background-color: var(--bg-color);
  padding: 100px 0;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-logo {
  width: 200px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  background-color: var(--primary-dark);
  padding: 60px;
  color: #fff;
}

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

.contact-info p {
  color: rgba(255,255,255,0.8);
}

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

.contact-info-item i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-top: 5px;
}

.contact-form {
  padding: 60px;
}

.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 15px;
  background-color: var(--bg-color);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
  margin-bottom: 20px;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-logo p {
  color: rgba(255,255,255,0.6);
}

.footer-links h3, .footer-newsletter h3 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

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

.footer-links ul li a {
  color: rgba(255,255,255,0.6);
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

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

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 25px;
  }

  .mobile-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100%;
    background-color: var(--bg-color);
    padding: 80px 30px;
    transition: var(--transition-fast);
    z-index: 999;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul li a {
    font-size: 1.1rem;
  }
  
  .close-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .section-title {
    margin-bottom: 40px;
  }

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

  .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quality-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partners-grid {
    gap: 20px;
  }

  .partner-logo {
    width: 140px;
    height: 90px;
    padding: 15px;
  }

  .contact-info {
    padding: 40px 25px;
  }

  .contact-form {
    padding: 40px 25px;
  }

  footer {
    padding: 50px 0 30px;
  }
}
