/* 1. CSS Variables & Theme */
:root {
  --primary: #0B3B24;      
  --primary-light: #166534;
  --accent: #03a742;       
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --bg-main: #FFFFFF;
  --bg-light: #F3F4F6;
  --border-color: #E5E7EB;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}


/* 2. Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}


/* 3. Body + typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.bg-light {
  background-color: var(--bg-light);
}

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

.rounded-image {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow-lg);
}


/* 4. Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* 5. Sections spacing & headings */
section {
  padding: 5rem 0;
  position: relative;
}

section h2 {
  text-align: left;
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 100%;
  margin: 1rem 0 3rem;
  font-size: 1.125rem;
  text-align: left;
}


/* 6. Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  transition: padding 0.3s ease;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

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


/* 7. Hero Section */
.hero-section {
  padding: 8rem 0 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

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

.hero-section h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-list {
  list-style: none;
  margin-bottom: 2.5rem;
  display: inline-block;
  text-align: left;
}

.hero-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  color: var(--text-main);
}

.hero-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  margin-right: 1rem;
  border-radius: 50%;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}


/* 8. Buttons */
.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background-color: #05961b;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}


/* 9. About & Services Section */
.about-grid,
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.services-header {
  margin-bottom: 3rem;
}

.about-image img,
.services-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}


/* 10. Grids & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.features-grid .feature-card {
  width: calc(33.333% - 1.34rem); /* 3 cards per row */
  min-width: 260px;
}

.service-card,
.feature-card {
  border: 1px solid var(--border-color);
  border-radius: 0; /* sharper corners for elegance */
  padding: 2.5rem;
  background-color: var(--bg-main);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card {
  min-height: 380px;
}

.feature-card {
  min-height: 380px;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card p,
.feature-card p {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-left: 1rem;
}


/* 11. Solutions header image */
.section-header-image {
  margin-bottom: 3rem;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.section-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 10s ease;
}

.section-header-image:hover img {
  transform: scale(1);
}


/* 12. Projects */
.project-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-image-wrapper {
  height: 100%;
  min-height: 400px;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 3rem 3rem 3rem 0;
}

.project-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.stat-list-item:first-child {
  border-top: none;
  padding-top: 0;
}

.stat-list-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 700;
}

.stat-list-text {
  display: flex;
  flex-direction: column;
}

.stat-list-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-list-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}


/* 13. Products */
.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.spec-list {
  list-style: none;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
  margin-left: 1rem;
}

.spec-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
}

.spec-list i {
  color: var(--accent);
  margin-top: 0.3rem;
}

.image-switcher {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.switcher-images {
  position: relative;
  height: auto;
  min-height: 260px;
}

.switch-btn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  color: var(--primary);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.switch-btn-arrow:hover {
  background: var(--bg-main);
  transform: translateY(-50%) scale(1.1);
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.switcher-images img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.switcher-images img.active {
  opacity: 1;
  visibility: visible;
}


/* 14. Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-block {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-block i {
  font-size: 1.5rem;
  color: var(--primary);
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius-md);
  height: fit-content;
}

/* Contact form */
.contact-form {
  background: var(--bg-main);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.contact-form button[type="submit"] {
  align-self: center;
  margin-top: 0.5rem;
}

.contact-form div {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font: inherit;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-main);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}


/* Contact form submission loader, disabled states, and dynamic alert styles */
.form-status-container {
  width: 100%;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: formAlertReveal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.form-alert i {
  font-size: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.alert-success {
  background-color: #EBFDF3;
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--accent);
}

.alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 4px solid #EF4444;
}

.contact-form input:disabled,
.contact-form textarea:disabled {
  background-color: #F3F4F6;
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn:disabled {
  background-color: var(--primary-light) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.85;
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner.hidden {
  display: none !important;
}

.btn-icon.hidden {
  display: none !important;
}


/* 15. Decoration & Footer */
.decoration-section {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.decoration-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: #ffffff;
}


/* 16. Animations */
.reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  visibility: visible;
}

.fade-in {
  transform: scale(0.95);
}

.fade-in.active {
  transform: scale(1);
}

.slide-up {
  transform: translateY(50px);
}

.slide-up.active {
  transform: translateY(0);
}

.slide-left {
  transform: translateX(50px);
}

.slide-left.active {
  transform: translateX(0);
}

.slide-right {
  transform: translateX(-50px);
}

.slide-right.active {
  transform: translateX(0);
}


/* 17. Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .services-header,
  .project-highlight,
  .product-layout,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .features-grid .feature-card {
    width: calc(50% - 1rem); /* 2 cards per row on medium screens */
  }
  
  .project-info {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-list {
    display: inline-block;
    text-align: left;
  }
  
  .features-grid .feature-card {
    width: 100%; /* 1 card per row on small screens */
  }
  
  .switcher-images {
    aspect-ratio: auto;
    min-height: 300px;
  }
}