/* Global Styles */
:root {
  --primary-color: #115e59;
  --secondary-color: #0d9488;
  --accent-color: #14b8a6;
  --text-color: #334155;
  --text-light: #f0fdfa;
  --background-color: #f0fdfa;
  --card-bg: #ffffff;
  --gradient-primary: linear-gradient(135deg, #115e59 0%, #134e4a 100%);
  --gradient-accent: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --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);
  --font-family: 'Inter', 'Roboto', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Header */
header {
  background: rgba(17, 94, 89, 0.95);
  color: var(--text-light);
  position: fixed;
  width: 100%;
  max-width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu Icon */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 4px;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* Hamburger Animation */
.hamburger.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: #ffffff;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: url("background_2.png") no-repeat center center/cover;
  padding-top: 100px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.5);
}

.btn-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(13, 148, 136, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 5rem 2rem;
  background-color: white;
  text-align: center;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-color);
  font-size: 1.125rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-card li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
  display: flex;
  align-items: flex-start; /* Align to top for multi-line text */
}

.feature-card li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  flex-shrink: 0; /* Prevent bullet from shrinking */
}

.feature-link {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-link:hover {
  color: #0f766e;
}

/* Detailed Feature Sections */
.section {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*opacity: 0;*/
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section:nth-child(even) {
  background-color: #f8fafc;
}

.feature-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.text-container {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.text-container h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.text-container p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.feature-image-container {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.feature-image-container img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.feature-image-container img:hover {
  transform: scale(1.02);
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-container p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  max-width: 1280px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.dropdown-toggle {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-toggle img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-arrow {
  font-size: 0.8rem;
  margin-left: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  width: 100%;
  height: 0.5rem;
}

.dropdown-menu a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown-menu a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.language-selector:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  transition: background 0.2s;
}

.dropdown-menu a img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu a:hover {
  background: #f1f5f9;
  color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .header-container {
    padding: 1rem;
  }

  nav {
    display: none; /* Mobile menu implementation needed if we want it perfect, but for now hiding or stacking */
  }

  .feature-content {
    flex-direction: column;
    text-align: center;
  }

  .text-container {
    order: 2;
  }

  .feature-image-container {
    order: 1;
  }
}

/* Product Page Styles */
.product-container {
  display: flex;
  flex: 1 0 auto;
  width: 100%;
  margin-top: 70px; /* Matches header height */
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 280px;
  background: var(--primary-color);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar li:hover,
.sidebar li.active {
  background: var(--secondary-color);
  color: white;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content {
  flex: 1;
  padding: 0;
  background: var(--background-color);
}

.content section {
  display: block;
  animation: fadeIn 0.4s ease-out;
  max-width: 1200px; /* Increased from 1000px to allow wider content */
  margin: 0 auto 6rem;
  scroll-margin-top: 100px;
}

.content .feature-image-container {
  max-width: 900px; /* Larger images for product page */
  flex: 1.5; /* Give more space to image relative to text */
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.content p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.content img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.content img:hover {
  transform: scale(1.01);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoom 0.3s;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* Responsive Product Page */
@media (max-width: 900px) {
  .product-container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    white-space: nowrap;
  }

  .sidebar ul {
    display: flex;
    gap: 1rem;
  }

  .sidebar li {
    margin-bottom: 0;
    padding: 0.5rem 1rem;
  }

  .sidebar-footer {
    display: none;
  }

  .content {
    padding: 2rem;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 900px) {
  .header-container {
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(17, 94, 89, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    z-index: 999;
    overflow-y: auto;
    gap: 0;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav.is-active {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
  }

  nav .language-selector {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .feature-content {
    flex-direction: column;
    text-align: center;
  }

  .text-container {
    order: 2;
  }

  .feature-image-container {
    order: 1;
  }
}

@media (max-width: 768px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header-container {
    padding: 1rem 1.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}
