:root {
  /* Main colors from logo */
  --sage: #646E4F;
  --sand: #E3DABB;
  
  /* Extended palette */
  --sage-light: rgba(100, 110, 79, 0.1);
  --sage-medium: rgba(100, 110, 79, 0.5);
  --sand-light: rgba(227, 218, 187, 0.3);
  --sand-dark: #D5CCA7;
  
  /* System colors */
  --text-primary: #2C3131;
  --text-secondary: #646464;
  --background: #FAFAF8;
  --white: #FFFFFF;
  --contrast-color: #000000; /* High contrast color */
  
  /* Update semantic color variables */
  --primary-color: var(--sage);
  --secondary-color: var(--sand);
  --accent-color: var(--sage-medium);
  --background-color: var(--background);
  --light-bg: var(--sage-light);
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  min-height: 100%;
  overflow-y: auto;
  position: relative;
  scroll-padding-top: 70px; /* Add this to account for fixed navbar */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  margin: 0;
  padding: 0;
}

img {
  alt: "Descriptive text for accessibility"; /* Add alt text for images */
}

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

.hero {
  min-height: 100vh;
  margin-top: -70px; /* compensate for navbar height */
  padding-top: 70px; /* add back padding equal to navbar height */
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-family: 'DIN Condensed', sans-serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
  color: white; /* Change text color to white */
}

.hero-subtitle {
  font-size: 2.5rem;
  margin: 1.5rem 0;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeIn 2s ease-out;
}

/* Typing carousel styles */
.typed-text {
    font-weight: bold;
    color: var(--white);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--white);
    margin-left: 2px;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    0% { background-color: var(--white); }
    49% { background-color: var(--white); }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100% { background-color: var(--white); }
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for prominence */
}

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

.scroll-down {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
  padding: 15px;
  background: transparent; /* Add this to ensure no background interference */
  border: none;
  outline: none;
  width: 50px; /* Add fixed width */
  height: 50px; /* Add fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-down i {
  pointer-events: none; /* Prevent icon from interfering with click */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-30px) translateX(-50%);
  }
  60% {
    transform: translateY(-15px) translateX(-50%);
  }
}

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

section {
  min-height: auto;
  padding: 60px 0;
  position: relative;
}

section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sand-light) 20%,
    var(--sand) 50%,
    var(--sand-light) 80%,
    transparent
  );
}

section h2 {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  font-size: 2rem; /* Larger font size for section headers */
  font-weight: bold;
  color: var(--primary-color);
}

section h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--sage);
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--sand);
}

#services {
  background: 
    linear-gradient(
      rgba(255, 255, 255, 0.97), 
      rgba(255, 255, 255, 0.97)
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23646E4F' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 40px 0;
}

/* Core Product Section */
#core-product {
  background: 
    linear-gradient(
      rgba(100, 110, 79, 0.05), 
      rgba(100, 110, 79, 0.05)
    ),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23646E4F' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='30' cy='10' r='1'/%3E%3Ccircle cx='10' cy='30' r='1'/%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 60px 0;
}

/* Full Width Video Styling */
.core-product-video-full {
  text-align: center;
  margin: 2rem 0;
}

.video-container-full {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(100, 110, 79, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  will-change: transform;
}

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
  .video-container-full {
    transition: transform 0.2s ease;
  }
  
  .video-container-full:hover {
    transform: none; /* Disable hover transform on mobile */
  }
}

/* Tablet-specific hiding of section indicators */
@media (min-width: 769px) and (max-width: 1024px) {
  .section-indicator,
  .breadcrumb,
  .nav-indicator,
  .section-nav {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .video-container-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(100, 110, 79, 0.3);
  }
}

.video-container-full video {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 70vh;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #000;
  /* Performance optimizations */
  transform: translateZ(0); /* Enable hardware acceleration */
  -webkit-transform: translateZ(0);
}

/* Progressive video sizing for better mobile experience */
@media (max-width: 1200px) {
  .video-container-full video {
    max-height: 60vh;
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .video-container-full video {
    max-height: 50vh;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .video-container-full video {
    max-height: 40vh;
    min-height: 180px;
  }
}

/* Mobile performance optimization */
@media (max-width: 768px) {
  .video-container-full video {
    /* Disable expensive filters on mobile */
    -webkit-filter: none;
    filter: none;
  }
}

/* Website Showcase Carousel */
.website-showcase-carousel {
    margin: 40px auto;
    max-width: 100%;
}

/* Carousel Navigation - Enhanced Browser Compatibility */
.carousel-nav {
    display: -webkit-flex !important;
    display: -moz-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    -webkit-flex-direction: row !important;
    -moz-flex-direction: row !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    width: 100%;
    max-width: 100%;
}

.nav-btn {
    background: var(--white);
    border: 2px solid var(--sand-light);
    border-radius: 12px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
    min-width: 250px;
    /* Performance optimization */
    will-change: transform;
}

/* Optimize hover states for desktop only */
@media (hover: hover) and (pointer: fine) {
  .nav-btn:hover {
    border-color: var(--sage);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 110, 79, 0.2);
  }
}

.nav-btn.active {
    background: var(--sage) !important;
    border-color: var(--sage) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 110, 79, 0.3);
}

/* Ensure no browser defaults override our colors */
.nav-btn:focus,
.nav-btn:active,
.nav-btn[data-slide="0"].active {
    background: var(--sage) !important;
    border-color: var(--sage) !important;
    color: var(--white) !important;
    outline: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .nav-btn {
    transition: all 0.2s ease !important; /* Faster transitions */
    max-width: none !important;
    min-width: auto !important;
    padding: 12px 20px !important;
    background: var(--white) !important;
    border: 2px solid var(--sand-light) !important;
    color: var(--text-color) !important;
  }
  
  .nav-btn:hover {
    transform: none !important; /* Disable hover transform on mobile */
  }
  
  .nav-btn.active,
  .nav-btn[data-slide="0"].active,
  button[data-slide="0"].nav-btn.active {
    transform: none !important; /* Simplify active state on mobile */
    background: var(--sage) !important;
    border-color: var(--sage) !important;
    border: 2px solid var(--sage) !important;
    color: var(--white) !important;
  }
  
  /* Force correct colors on mobile for all states - ultra specific selectors */
  .carousel-nav .nav-btn:focus,
  .carousel-nav .nav-btn:active,
  .carousel-nav .nav-btn.active:focus,
  .carousel-nav .nav-btn.active:active,
  .carousel-nav .nav-btn[data-slide="0"].active,
  .carousel-nav button[data-slide="0"].nav-btn.active,
  .carousel-nav button.nav-btn.active {
    background: var(--sage) !important;
    border-color: var(--sage) !important;
    border: 2px solid var(--sage) !important;
    color: var(--white) !important;
    outline: none !important;
  }
  
  /* Override any button defaults */
  button.nav-btn.active {
    background-color: var(--sage) !important;
    border-color: var(--sage) !important;
    color: var(--white) !important;
  }
}

.nav-content {
    text-align: center;
}

.nav-content i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.nav-content span {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.nav-content small {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
}

.nav-btn.active .nav-content small {
    opacity: 0.9;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sand-light);
    cursor: pointer;
    transition: all 0.8s ease;
}

.indicator.active {
    background: var(--sage);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--sage-medium);
}

/* Video Info Section */
.video-info {
    padding: 20px 0;
    text-align: center;
}

.video-info h3 {
    color: var(--sage);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.video-info .video-caption {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--sage-light);
    color: var(--sage);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--sage);
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  /* Performance optimization */
  will-change: opacity;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.video-container-full.video-paused .video-overlay {
  opacity: 1;
}

.video-container-full.video-playing .video-overlay {
  opacity: 0;
}

.video-overlay i {
  font-size: 4rem;
  color: white;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  /* Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
}

/* Mobile optimization for video overlay */
@media (max-width: 768px) {
  .video-overlay {
    transition: opacity 0.2s ease; /* Faster transition on mobile */
  }
  
  .video-overlay i {
    font-size: 3rem; /* Smaller icon on mobile */
  }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
  .video-overlay {
    /* Always show on touch devices */
    opacity: 0.8;
  }
  
  .video-container-full.video-playing .video-overlay {
    opacity: 0.3;
  }
}

.video-caption {
  margin-top: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Product Info Panel - Similar to Mission Panel */
.product-info-panel {
  background: linear-gradient(to right, var(--sage-light), var(--sand-light));
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 5px solid var(--sage);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  overflow: hidden;
}

.product-info-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Desktop hover behavior - hide on mobile */
@media (min-width: 769px) {
  .product-info-panel {
    cursor: pointer;
    padding: 30px;
    transition: transform 1.2s ease-out, box-shadow 1.2s ease-out, padding 1.2s ease-out;
  }
  
  .product-info-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    padding: 35px 30px;
  }
  
  .product-info-panel:hover .product-info-short {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .product-info-panel:hover .product-info-full {
    opacity: 1;
    height: auto;
    position: relative;
    transform: translateY(0);
    top: 0;
  }
}

.product-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.product-info-content {
  display: flex;
  align-items: flex-start;
  flex: 1;
}

.collapse-toggle {
  background: var(--white);
  border: 2px solid var(--sage);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.collapse-toggle:hover {
  background: var(--sage);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(100, 110, 79, 0.3);
}

.collapse-toggle.expanded {
  background: var(--sage);
  color: var(--white);
}

.collapse-toggle.expanded i {
  transform: rotate(180deg);
}

.collapse-toggle i {
  color: var(--sage);
  font-size: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.collapse-toggle.expanded i {
  color: var(--white);
}

/* Mobile styles for collapsible content */
@media (max-width: 768px) {
  .collapse-toggle {
    display: flex;
  }
  
  .product-info-panel {
    cursor: default;
  }
  
  .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0;
  }
  
  .collapsible-content.expanded {
    max-height: 2000px;
    padding: 20px 0 0 0;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
  }
  
  .product-info-full {
    opacity: 1;
    height: auto;
    position: relative;
    transform: none;
    top: auto;
  }
  
  .product-info-short {
    margin-bottom: 0;
  }
  
  /* Remove hover effects on mobile */
  .product-info-panel:hover .product-info-short {
    opacity: 1;
    transform: none;
  }
  
  .product-info-panel:hover .product-info-full {
    opacity: 1;
    height: auto;
    position: relative;
    transform: none;
    top: auto;
  }
}

.product-info-icon {
  background-color: var(--white);
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.8s ease;
}

.product-info-panel:hover .product-info-icon {
  transform: rotate(360deg);
}

.product-info-icon i {
  font-size: 2rem;
  color: var(--sage);
}

.product-info-text {
  flex: 1;
  position: relative;
}

.product-info-text h3 {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  color: var(--sage);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-info-short {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
  display: block;
  margin: 0;
}

.product-info-full {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 1.0s ease-out, height 1.0s ease-out, transform 1.0s ease-out;
  transform: translateY(10px);
  position: absolute;
  width: 100%;
  top: 60px;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.core-product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.feature-item i {
  color: var(--sage);
  font-size: 1.1rem;
}

.product-benefits {
  margin-top: 1.5rem;
}

.product-benefits h4 {
  color: var(--sage);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.product-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-benefits li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.product-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Pricing Section */
#pricing {
  background: var(--background);
  padding: 60px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  align-items: stretch;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: transform 0.8s ease, box-shadow 0.8s ease, border-color 0.8s ease;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.pricing-card.featured {
  border-color: var(--sage);
  position: relative;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  color: var(--sage);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  min-height: 1.8rem;
}

.pricing-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.pricing-price {
  text-align: center;
  margin: 1.5rem 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-features {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage);
  display: block;
}

/* Price discount styles */
.price-original {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.price-discount {
  font-size: 0.9rem;
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: rgba(231, 76, 60, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  display: inline-block;
}

.price-highlight {
  font-size: 0.9rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: rgba(100, 110, 79, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  display: inline-block;
}

.price-savings {
  font-size: 0.9rem;
  color: #27ae60;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: rgba(39, 174, 96, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  display: inline-block;
}

/* Recommended badge */
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sage), var(--sage-medium));
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(100, 110, 79, 0.3);
  z-index: 2;
}

.price-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--sand-light);
  line-height: 1.4;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
}

.pricing-note {
  background: linear-gradient(to right, var(--sage-light), var(--sand-light));
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  border-left: 4px solid var(--sage);
}

.pricing-note p {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}



/* Responsive Design for Core Product Section */
@media (max-width: 480px) {
  /* Pricing Cards Mobile */
  .pricing-card {
    min-height: auto;
    padding: 1.5rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-header h3 {
    font-size: 1.3rem;
  }
  
  .pricing-price {
    min-height: 100px;
  }
  
  .price {
    font-size: 2rem;
  }

  .product-info-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .product-info-content {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .product-info-icon {
    margin: 0 auto 15px;
  }

  .product-info-text h3 {
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .product-info-text {
    margin-bottom: 10px;
  }

  .core-product-features {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
    gap: 15px;
  }
  
  .feature-item {
    justify-content: center;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid var(--sage);
  }
  
  .product-benefits ul {
    text-align: left;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .product-description {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
    max-width: 350px;
    margin: 15px auto 20px;
  }
  
  .product-benefits {
    max-width: 350px;
    margin: 20px auto 0;
  }
  
  .product-benefits h4 {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .product-benefits li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .video-overlay i {
    font-size: 3rem;
  }
  
  /* Carousel Mobile Styles removed - causing layout issues */
  
  .nav-btn {
    max-width: none;
    min-width: auto;
    padding: 12px 20px;
  }
  
  .nav-content span {
    font-size: 1rem;
  }
  
  .nav-content i {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }
  
  .nav-content small {
    font-size: 0.8rem;
  }
  
  .feature-tags {
    gap: 8px;
  }
  
  .tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  
  .video-info h3 {
    font-size: 1.5rem;
  }
  
  .video-info .video-caption {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .video-info {
    padding: 15px 0;
  }
  
  .carousel-indicators {
    margin-top: 15px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  /* Better video scaling on mobile */
  .core-product-video-full {
    margin: 0;
  }
  
  .video-container-full {
    max-width: 100%;
  }
  
  .video-container-full video {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .carousel-slide video {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .product-info-full {
    position: static;
    top: auto;
  }
}

#about {
  background: 
    linear-gradient(
      rgba(255, 255, 255, 0.97), 
      rgba(255, 255, 255, 0.97)
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E3DABB' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  scroll-margin-top: 80px; /* This helps with scroll positioning */
  padding: 40px 0;
}

#contact {
  position: relative;
  z-index: 2;
  background: white;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sage-light) 20%,
    var(--sage) 50%,
    var(--sage-light) 80%,
    transparent
  );
}

#products {
    background: var(--light-bg);
    padding: 40px 0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--white);
    border-top: 1px solid var(--sand-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  position: relative;
  z-index: 1;
  /* Add these properties to ensure proper grid behavior */
  grid-auto-rows: 180px;
  grid-auto-flow: row;
  align-items: start;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  position: relative;
  z-index: 1;
}

.skill-card {
  position: relative;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
  /* Remove margin-bottom as grid gap handles spacing */
  width: 100%;
  transform-style: preserve-3d;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-front,
.skill-back {
  position: absolute;
  inset: 0; /* Use inset instead of width/height */
  backface-visibility: hidden;
  transition: transform 0.6s;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  /* Add these properties to ensure proper containment */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skill-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skill-card:hover .skill-front {
  transform: rotateY(180deg);
}

.skill-card:hover .skill-back {
  transform: rotateY(360deg);
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 0.85rem; /* Smaller font size */
}

.tech-list li {
  margin: 0.3rem 0; /* Reduced margin */
  color: var(--text-color);
  opacity: 0;
  transform: translateY(5px); /* Reduced transform distance */
  transition: all 0.8s;
}

.skill-card:hover .tech-list li {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover .tech-list li:nth-child(1) { transition-delay: 0.1s; }
.skill-card:hover .tech-list li:nth-child(2) { transition-delay: 0.2s; }
.skill-card:hover .tech-list li:nth-child(3) { transition-delay: 0.3s; }
.skill-card:hover .tech-list li:nth-child(4) { transition-delay: 0.4s; }
.skill-card:hover .tech-list li:nth-child(5) { transition-delay: 0.5s; }

.skill-level {
  background: var(--light-bg);
  height: 8px;
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-card {
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.skill-card:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-card:nth-child(3) {
  animation-delay: 0.4s;
}

.skill-card:nth-child(4) {
  animation-delay: 0.6s;
}

.skill-card:nth-child(5) {
  animation-delay: 0.8s;
}

.skill-card:nth-child(6) {
  animation-delay: 1s;
}

.contact-form {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.contact-form .form-content {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 0.75rem;
}

input {
  height: 2rem;
}

textarea {
  min-height: 60px;
  max-height: 120px;
  resize: vertical;
}

input, textarea {
  width: calc(100% - 1rem);
  padding: 0.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem;
  font-size: 0.95rem;
}

label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Improve checkbox alignment and contact form styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-top: 3px; /* Slight top margin to align with first line of text */
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
  flex: 1; /* Allow label to take up remaining space */
  display: inline; /* Ensure label displays inline with checkbox */
}

.privacy-link {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.2s;
}

.privacy-link:hover {
  color: var(--accent-color);
}

footer {
  background: var(--light-bg) !important;
  padding: 2rem 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 80px !important;
}

.footer-panel {
  background: white !important;
  padding: 20px 40px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  text-align: center !important;
  color: var(--text-secondary) !important;
  border: 2px solid var(--sage) !important;
  margin: 0 auto !important;
  font-size: 14px !important;
}

.footer-panel a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  font-weight: 600 !important;
}

.footer-panel a:hover {
  color: var(--sage-medium) !important;
}

.social-links {
  margin-top: 1rem;
}

button {
  transition: all 0.8s ease;
}

button:hover {
  transform: scale(1.02); /* Reduced from 1.1 */
}

.expand-btn:hover {
  background: var(--sage-light);
  transform: scale(1.01); /* Added smaller scale effect */
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border-radius: 6px;
  position: relative;
}

.nav-link:hover {
  color: var(--sage);
  background: var(--sage-light);
}

.nav-link.active {
  color: var(--sage);
  background: var(--sage-light);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--sage);
  border-radius: 2px;
}

.nav-link i {
  font-size: 1.1rem;
  color: var(--sage);
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.3);
}

.nav-link span {
  transition: transform 0.3s ease;
}

.nav-link:hover span {
  transform: translateX(5px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border: 1px solid var(--sand);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.dropdown-item:hover {
  background: var(--sage-light);
  color: var(--sage);
}

.dropdown-item i {
  color: var(--sage);
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.nav-cta {
  background: var(--sage) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(100, 110, 79, 0.3);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--sage-medium) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 110, 79, 0.4);
}

.nav-cta i {
  color: white !important;
}

.nav-cta span {
  color: white !important;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.3s;
}

.dropdown-menu li a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  background-color: transparent;
  border: 2px solid var(--sage);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background-color: var(--sage-light);
  transform: scale(1.05);
}

.nav-toggle:active {
  background-color: var(--sand-light);
  transform: scale(0.95);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 40px; /* Reduced from default size */
  width: auto;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 50px 10px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.2em;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .nav-toggle {
    display: block;
    cursor: pointer;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
  }
  
  .nav-container {
    justify-content: space-between;
  }
  
  .nav-menu .nav-link.active {
    background: var(--sage);
    color: white;
  }
  
  .nav-menu .nav-link.active::after {
    display: none;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--sage);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

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

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

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

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 1;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    margin: 0;
    border-bottom: 1px solid var(--sand-light);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  /* Consistent styling for ALL nav items on mobile */
  .nav-link,
  .dropdown-item,
  .nav-cta {
    display: flex !important;
    padding: 1rem 2rem !important;
    min-height: 44px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    align-items: center !important;
    gap: 0.8rem !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    touch-action: manipulation !important;
  }
  
  .nav-link::before,
  .dropdown-item::before,
  .nav-cta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--sage-light);
    transition: width 0.3s ease;
    z-index: -1;
  }
  
  .nav-link:active::before,
  .dropdown-item:active::before,
  .nav-cta:active::before {
    width: 100%;
  }
  
  .nav-link:active,
  .dropdown-item:active,
  .nav-cta:active {
    background-color: var(--sand-light) !important;
    transform: scale(0.98) !important;
  }
  
  .nav-link.active {
    background-color: var(--sage-light) !important;
    border-left: 4px solid var(--sage) !important;
    font-weight: 600 !important;
    color: var(--sage) !important;
  }
  
  .nav-link i,
  .dropdown-item i,
  .nav-cta i {
    font-size: 1.1rem !important;
    color: var(--sage) !important;
    min-width: 20px !important;
  }
  
  .nav-link span,
  .dropdown-item span,
  .nav-cta span {
    font-size: 1rem !important;
    font-weight: 500 !important;
    display: inline !important;
    color: var(--text-primary) !important;
  }
  
  .nav-link:hover,
  .dropdown-item:hover,
  .nav-cta:hover {
    background: var(--sage-light) !important;
    transform: none !important;
  }

  /* Mobile: Show all nav items directly, no dropdown */
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--sage-light) !important;
    border-radius: 0 !important;
  }
  
  .dropdown.active .dropdown-menu {
    display: block !important;
  }
  
  .dropdown-menu li {
    border-bottom: 1px solid rgba(100, 110, 79, 0.2) !important;
  }
  
  .dropdown-menu li:last-child {
    border-bottom: none !important;
  }
  
  .dropdown-menu li a {
    padding: 1rem 2rem 1rem 3rem !important;
  }
  
  .dropdown-toggle {
    position: relative !important;
    display: flex !important;
  }
  
  .dropdown-toggle::after {
    content: '▼' !important;
    font-size: 0.8rem !important;
    margin-left: auto !important;
    transition: transform 0.3s ease !important;
    color: var(--sage) !important;
  }
  
  .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg) !important;
  }
  
  .dropdown-menu li {
    list-style: none;
    margin: 0;
  }

  .logo-image {
    height: 30px; /* Even smaller on mobile */
  }

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

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .about-header {
    margin-top: 10px; /* Reduce the top margin */
    gap: 5px; /* Reduce the gap between elements */
  }

  .mission-panel {
    margin: 5px 0; /* Reduce the vertical margin */
    padding: 10px; /* Adjust padding for better spacing */
  }

  .about-logo-container {
    margin: 10px 0; /* Reduce the margin around the logo */
  }

  .about-header {
    flex-direction: column;
    gap: 2rem;
  }
  
  .profile-container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 350px;
  }

  .scroll-down {
    bottom: 10vh; /* Increase the bottom value for better visibility */
  }
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.8s ease-in-out; /* Increased from 0.4s to 0.8s */
}

.timeline-details {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; /* Increased from 0.4s to 0.8s */
  height: 0;
  overflow: hidden;
}

.timeline-content:hover .timeline-details {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin-top: 1rem;
  transform: scale(1.03);
  transition-delay: 0.2s; /* Added delay before showing details */
}

.timeline-preview p {
  transition: opacity 0.8s ease-in-out; /* Increased from 0.4s to 0.8s */
}

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

.timeline-item:nth-child(even) .timeline-content {
  left: calc(50% + 40px);
}

timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-content:hover .timeline-preview p {
  opacity: 0.7;
}

timeline-content:hover .timeline-preview p {
  opacity: 0.7;
}

#about {
  scroll-margin-top: 80px; /* This helps with scroll positioning */
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 3rem;
  margin: 2rem auto 3rem;
  max-width: 1200px;
}

.about-logo-container, .profile-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-height: 400px;
  width: 100%;
}

.about-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--sage);
  transition: transform 0.3s ease-in-out;
}

.profile-image:hover {
  transform: scale(1.1);
}

.about-description {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.expand-btn {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--sage);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

.expand-btn.expanded {
  border-radius: 8px 8px 0 0;
}

.expand-btn span {
  font-size: 1.1rem;
  color: var(--sage);
  font-weight: 600;
}

.expand-btn i {
  color: var(--sage);
  transition: transform 0.3s ease;
}

.expand-btn:hover {
  background: var(--sage-light);
  transform: scale(1.01); /* Added smaller scale effect */
}

.expand-btn.expanded i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.description-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
  background: var(--white);
  border-radius: 0 0 8px 8px;
  padding: 0 1rem;
  opacity: 0;
  border: 2px solid var(--sage);
  border-top: none;
}

.description-content.expanded {
  max-height: 2000px;
  opacity: 1;
  padding: 2rem 1rem;
}

.description-content h3 {
  color: var(--sage);
  margin-bottom: 1.5rem;
}

.description-content h4 {
  color: var(--text-primary);
  margin: 1.5rem 0 1rem;
}

.description-content ul {
  list-style: none;
  padding: 0;
}

.description-content li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Contact form success and loading styles */
.success-message {
    background-color: var(--sage-light);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}

.success-message i {
    color: var(--sage);
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.loading {
    text-align: center;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    left: 0;
  }
  
  .timeline-dot {
    left: 30px;
  }

  .about-logo-container {
    max-width: 400px;
    padding: 1.5rem;
    margin: 0 auto;
    min-height: 350px;
  }
}

.mission-panel {
    background: linear-gradient(to right, var(--sage-light), var(--sand-light));
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid var(--sage);
    transition: transform 1.2s ease-out, box-shadow 1.2s ease-out, padding 1.2s ease-out;
    cursor: pointer;
}

.mission-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    padding: 35px 30px;
}

.mission-content {
    display: flex;
    align-items: center;
}

.mission-icon {
    background-color: var(--white);
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.mission-panel:hover .mission-icon {
    transform: rotate(360deg);
}

.mission-icon i {
    font-size: 2rem;
    color: var(--sage);
}

.mission-text {
    flex: 1;
}

.mission-text h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: var(--sage);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hover-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: normal;
    font-style: italic;
    transition: opacity 1.0s ease-out;
}

.mission-panel:hover .hover-hint {
    opacity: 0;
}

.product-info-panel:hover .hover-hint {
    opacity: 0;
}

.mission-short {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block;
    margin: 0;
}

.mission-full {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.7s ease, height 0.7s ease, transform 0.7s ease;
    transform: translateY(10px);
    position: absolute;
    margin: 0;
}

.mission-text {
    position: relative;
}

.mission-panel:hover .mission-short {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mission-panel:hover .mission-full {
    opacity: 1;
    height: auto;
    position: relative;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mission-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mission-icon {
        margin: 0 auto 20px;
    }
    
    .mission-text h3 {
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .mission-text p {
        font-size: 1rem;
    }
}

/* Add testimonials section */
.testimonials {
    background: var(--light-bg);
    padding: 3rem 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem;
    display: inline-block;
    max-width: 300px;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

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

a:hover {
    text-decoration: underline;
}

/* Performance optimizations */
.mobile-optimized .skill-card:hover,
.mobile-optimized .timeline-content:hover,
.mobile-optimized .mission-panel:hover,
.mobile-optimized .product-info-panel:hover {
  transform: none !important;
  transition: none !important;
}

/* Simplified mobile animations for better performance */
.mobile-optimized * {
  animation-duration: 0.1s !important;
  transition-duration: 0.2s !important;
}

/* Preserve bounce animation for scroll arrow */
.mobile-optimized .scroll-down {
  animation-duration: 2s !important;
}

.mobile-optimized .collapse-toggle {
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.mobile-optimized .collapsible-content {
  transition: max-height 0.3s ease !important;
}

/* Force GPU acceleration only where needed */
.collapse-toggle {
  will-change: transform, background-color;
}

.collapsible-content {
  will-change: max-height;
}

/* Additional mobile video optimizations */
@media (max-width: 600px) {
  .video-container-full video {
    max-height: 140px;
    background: #f0f0f0; /* Loading background */
  }
  
  .carousel-slide video {
    max-height: 120px;
    background: #f0f0f0;
  }
  
  .video-container-full video[data-src]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 240, 240, 0.8);
    pointer-events: none;
  }
}

@media (max-width: 400px) {
  .video-container-full video {
    max-height: 100px;
  }
  
  .carousel-slide video {
    max-height: 80px;
  }
  
  .video-overlay i {
    font-size: 1.5rem;
  }
}

/* Slow connection optimizations */
.slow-connection .video-container-full,
.slow-connection .carousel-slide {
  display: none;
}

.slow-connection .video-container-full::after {
  content: 'Videos deaktiviert für bessere Performance';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: #f5f5f5;
  color: #666;
  font-size: 0.8rem;
  text-align: center;
}

/* Disable complex video animations on mobile */
.mobile-optimized video {
  transform: none !important;
  transition: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  .video-overlay i {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  }
}

.profile-container h3 {
    color: #646E4F; /* Change text color to sage */
}

.profile-title {
    color: #646E4F; /* Change text color to sage */
}