:root {
  --primary: #004d00;
  --primary-light: #006600;
  --secondary: #ccff66;
  --text: #333333;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --transition: all 0.4s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
}

.tarimech-services-wrapper {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Services Overview Section */
.services-section {
  padding: 60px 0;
  background-color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Flip Cards */
.flip-card {
  perspective: 1000px;
  height: 280px;
}

.flip-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 10px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
}

.flip-card-front {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.flip-card-back {
  background: var(--secondary);
  color: var(--primary);
  transform: rotateY(180deg);
}

.flip-card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
}

.flip-card h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
  font-weight: 600;
}

.flip-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.view-details {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.3);
  transition: var(--transition);
}

.flip-card:hover .view-details {
  background: rgba(255,255,255,0.4);
}

/* Service Detail Sections */
.service-detail-section {
  padding: 100px 0;
  background: var(--light-gray);
  scroll-margin-top: 100px;
}

.service-detail-section:target {
  animation: highlight 1.5s ease;
}

@keyframes highlight {
  0% { background-color: rgba(204, 255, 102, 0.2); }
  100% { background-color: var(--light-gray); }
}

.detail-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.detail-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.detail-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.detail-header h2 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
}

.detail-content {
  padding: 50px;
  color: #555;
}

.detail-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.detail-content h3 {
  color: var(--primary);
  margin: 35px 0 15px;
  font-size: 1.3rem;
  font-weight: 600;
}

.detail-content ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.detail-content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  line-height: 1.6;
}

.detail-content li:before {
  content: "•";
  color: var(--secondary);
  font-size: 1.8rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* CEO Section */
.ceo-section {
  padding: 80px 0;
  background: var(--white);
}

.ceo-profile {
  display: flex;
  gap: 60px;
  align-items: center;
}

.ceo-image-wrapper {
  flex: 0 0 350px;
}

.ceo-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.ceo-info {
  flex: 1;
}

.ceo-info h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 10px;
}

.ceo-info h3 {
  color: var(--text);
  font-size: 1.4rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.ceo-description p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.ceo-description ul {
  padding-left: 20px;
  margin: 20px 0 30px;
}

.ceo-description li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.ceo-description li:before {
  content: "•";
  color: var(--secondary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -3px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .services-grid {
    gap: 20px;
  }
  
  .detail-content {
    padding: 40px;
  }
}

@media (max-width: 992px) {
  .services-section {
    padding: 40px 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ceo-profile {
    flex-direction: column;
    gap: 40px;
  }
  
  .ceo-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }
  
  .detail-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px;
  }
  
  .service-detail-section {
    padding: 80px 0;
  }
  
  .ceo-section {
    padding: 100px 0;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .flip-card {
    height: 260px;
  }
  
  .detail-content {
    padding: 30px;
  }
  
  .detail-header h2 {
    font-size: 1.6rem;
  }
  
  .ceo-info h2 {
    font-size: 1.8rem;
  }
  
  .ceo-info h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    margin-bottom: 40px;
  }
  
  .flip-card {
    height: 240px;
  }
  
  .flip-card-front, .flip-card-back {
    padding: 25px;
  }
  
  .service-detail-section {
    padding: 70px 0;
  }
  
  .ceo-section {
    padding: 80px 0;
  }
  
  .detail-header {
    padding: 25px;
  }
  
  .detail-icon {
    width: 50px;
    height: 50px;
  }
}

/* ===== SPACING TWEAKS ===== */
/* Section padding reduction */
.services-section, 
.service-detail-section, 
.ceo-section {
  padding: 60px 0;
}

/* Header spacing */
.section-header {
  margin-bottom: 40px;
}

/* Grid spacing */
.services-grid {
  gap: 20px;
}

/* Card content padding */
.flip-card-front, 
.flip-card-back {
  padding: 25px;
}

/* Detail section spacing */
.detail-header {
  padding: 30px 40px;
}
.detail-content {
  padding: 30px 40px;
}
.detail-content h3 {
  margin: 25px 0 15px;
}

/* List item spacing */
.detail-content li {
  margin-bottom: 8px;
  padding-left: 20px;
}

/* CEO section spacing */
.ceo-profile {
  gap: 40px;
}
.ceo-description p {
  margin-bottom: 15px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .services-section,
  .service-detail-section,
  .ceo-section {
    padding: 40px 0;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .flip-card-front,
  .flip-card-back {
    padding: 20px;
  }
}

/*increase logo little */
.logo {
    height: 60px; /* Increase height */
    width: auto; /* Maintain aspect ratio */
}

/*Hide search Bar */
#frmhomesearch {
    display: none !important;
    visibility: hidden;
}

/* Base Styles */
#tarimech-about {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
}

#tarimech-about .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#tarimech-about h1, 
#tarimech-about h2, 
#tarimech-about h3, 
#tarimech-about h4 {
  color: #004d00;
  font-weight: 700;
  margin-bottom: 1rem;
}

#tarimech-about p {
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: #ccff66;
  bottom: -10px;
  left: 0;
}

/* About style */
/* Base Styles */
#tarimech-about {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
}

#tarimech-about .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#tarimech-about h1, 
#tarimech-about h2, 
#tarimech-about h3, 
#tarimech-about h4 {
  color: #004d00;
  font-weight: 700;
  margin-bottom: 1rem;
}

#tarimech-about p {
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: #ccff66;
  bottom: -10px;
  left: 0;
}

/* Hero Section - Clean white text */
.about-hero {
  background: linear-gradient(rgba(0, 77, 0, 0.85), rgba(0, 77, 0, 0.85)), 
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* About Section */
.about-section {
  padding: 60px 0;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-lead {
  font-size: 1.1rem;
  color: #555;
}

.mission-vision-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.mv-card {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mv-icon {
  width: 70px;
  height: 60px;
  background-color: #ccff66;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mv-icon i {
  color: #004d00;
  font-size: 1.5rem;
}

/* Values Section - Tight layout */
.values-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.values-container {
  display: flex;
  justify-content: center;
  gap: 0px; /* Reduced from 20px */
  margin-top: 30px;
  flex-wrap: wrap;
}

.value-card {
  flex: 1;
  min-width: 220px; /* Slightly reduced */
  max-width: 260px; /* Slightly reduced */
  text-align: center;
  padding: 25px 15px; /* Reduced padding */
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-icon {
  width: 60px; /* Reduced size */
  height: 60px;
  background-color: #004d00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px; /* Reduced margin */
}

.value-icon i {
  color: #ccff66;
  font-size: 1.5rem; /* Slightly reduced */
}

/* Benefits Section */
.benefits-section {
  padding: 60px 0;
}

.benefits-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.benefits-text {
  flex: 1;
  min-width: 300px;
}

.benefits-image {
  flex: 1;
  min-width: 300px;
}

.benefits-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.benefits-list i {
  color: #ccff66;
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 3px;
}

.benefits-list strong {
  color: #004d00;
}

/* Closing CTA */
.closing-cta {
  background-color: #004d00;
  color: white;
  padding: 50px 0;
  text-align: center;
}

.cta-text {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: white;
}

.cta-button {
  display: inline-block;
  background-color: #ccff66;
  color: #004d00;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #b3e64d;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .benefits-container {
    flex-direction: column;
  }
  
  .benefits-image {
    order: -1;
    margin-bottom: 40px;
    max-width: 500px;
  }
  
  .mission-vision-container {
    gap: 20px;
  }

  .value-card {
    min-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cta-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .about-hero {
    padding: 60px 0;
  }
  
  .value-card {
    min-width: 100%;
  }
  
  .mv-card {
    min-width: 100%;
  }
}