:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #1f6650;
  --text-gray: #666666;
  --light-gray: #f8f9fa;
  --border-color: #e5e5e5;
  --hero-text-color: #ffffff;
  --hero-subtitle-color: #cccccc;
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-bg-scroll: rgba(255, 255, 255, 0.98);
  --hero-overlay: rgba(0, 0, 0, 0.5);
  --product-overlay: rgba(31, 102, 80, 0.3);
  --product-overlay-hover: rgba(31, 102, 80, 0.5);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
  --primary-color: #ffffff;
  --secondary-color: #1a1a1a;
  --accent-color: #22c55e;
  --text-gray: #a1a1aa;
  --light-gray: #262626;
  --border-color: #404040;
  --hero-text-color: #ffffff;
  --hero-subtitle-color: #d1d5db;
  --header-bg: rgba(26, 26, 26, 0.95);
  --header-bg-scroll: rgba(26, 26, 26, 0.98);
  --hero-overlay: rgba(0, 0, 0, 0.6);
  --product-overlay: rgba(34, 197, 94, 0.3);
  --product-overlay-hover: rgba(34, 197, 94, 0.5);
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Theme Toggle */
.theme-toggle {
  background: var(--border-color);
  border: none;
  border-radius: 20px;
  width: 50px;
  height: 26px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  background: var(--accent-color);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  left: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(24px);
}

.theme-icon {
  position: absolute;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  z-index: 1;
}

.theme-icon:first-child {
  left: 6px;
  opacity: 1;
}

.theme-icon:last-child {
  right: 6px;
  opacity: 0;
}

[data-theme="dark"] .theme-icon:first-child {
  opacity: 0;
}

[data-theme="dark"] .theme-icon:last-child {
  opacity: 1;
}

.theme-text {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: 2;
  transition: background 0.3s ease;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  max-width: 300px;
  height: auto;
  opacity: 0;
  animation: fadeInUp 1s ease 0.1s forwards;
}

.hero-text {
  max-width: 600px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 12px;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px; /* Updated for much taller mobile header */
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-logo img {
    max-width: 200px;
  }

  .logo {
    display: none; /* Hide text logo on mobile */
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100vh - 120px);
    background: var(--secondary-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-top: 1px solid var(--border-color);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    font-size: 1.2rem;
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li:last-child {
    margin-top: 2rem;
    border-bottom: none;
  }

  .theme-toggle {
    width: 50px;
    height: 28px;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle::before {
    width: 20px;
    height: 20px;
    left: 4px;
  }

  [data-theme="dark"] .theme-toggle::before {
    transform: translateX(22px);
  }

  .theme-icon {
    font-size: 0.8rem;
  }

  .theme-icon:first-child {
    left: 7px;
  }

  .theme-icon:last-child {
    right: 7px;
  }

  nav {
    padding: 2.4rem 0;
    justify-content: space-between;
    min-height: 80px;
  }

  /* Mobile nav layout */
  nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

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

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
  color: var(--hero-text-color);
}

.hero p {
  font-size: 1.2rem;
  color: var(--hero-subtitle-color);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button:hover {
  background: #1a5544;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 102, 80, 0.3);
}

[data-theme="dark"] .cta-button:hover {
  background: #16a34a;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* Products Section */
.products {
  padding: 5rem 0;
  background: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-light);
  border-color: var(--accent-color);
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.product-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.product-tag {
  display: inline-block;
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.product-image-strip {
  width: calc(100% + 4rem);
  height: 120px;
  margin: 1rem -2rem;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-image-strip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--product-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.product-image-strip:hover .product-image-strip-overlay {
  background: var(--product-overlay-hover);
}

.product-image-strip:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(31, 102, 80, 0.3);
}

[data-theme="dark"] .product-image-strip:hover {
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--light-gray);
  transition: background-color 0.3s ease;
}

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

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--secondary-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  transition: color 0.3s ease;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

/* Team Section */
.team {
  padding: 5rem 0;
  background: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.team-member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.team-member-photo:hover {
  box-shadow: 0 8px 25px var(--shadow-medium);
  border-color: var(--accent-color);
  filter: brightness(1.1);
}

.team-member h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.team-member p {
  color: var(--text-gray);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Advisors Section */
.advisors {
  padding: 5rem 0;
  background: var(--light-gray);
  transition: background-color 0.3s ease;
}

.advisors .team-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .advisors .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Investors Section */
.investors {
  padding: 5rem 0;
  background: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.investors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  align-items: center;
}

.investor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100px;
}

.investor-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-light);
  border-color: var(--accent-color);
}

.investor-logo img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

[data-theme="dark"] .investor-logo img {
  filter: brightness(0.9) contrast(1.1);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 3rem 0 1rem;
  transition: all 0.3s ease;
}

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

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-section p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .footer-section p {
  color: #d1d5db;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-gray);
}

[data-theme="dark"] .footer-bottom p {
  color: #d1d5db;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Mobile Content Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    margin-top: 1rem; /* Add some top margin for better spacing */
  }

  .section-title {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 2rem;
  }

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

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .investors-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
  }

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

  .container {
    padding: 0 15px;
  }
}
