/*******************************
 * Enhanced CSS for Metrogreenconcepts
 * Strategy Template Inspired Design
 * Modern animations and smooth transitions
 *******************************/

/* ===== ROOT VARIABLES ===== */
:root {
  /* Color Palette */
  --primary-green: #28a745;
  --primary-green-dark: #1e7e34;
  --primary-green-light: #48bb78;
  --secondary-green: #20c997;
  --accent-blue: #007bff;
  --dark-text: #2d3748;
  --light-text: #718096;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e2e8f0;
  --dark-gray: #4a5568;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50%;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--dark-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition-normal);
}

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

/* ===== MODERN NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  border: none;
  margin-bottom: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green) !important;
  transition: var(--transition-normal);
}

.navbar-brand:hover {
  color: var(--primary-green-dark) !important;
  transform: scale(1.05);
}

.navbar-nav > li > a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-text) !important;
  padding: 1rem 1.2rem !important;
  position: relative;
  transition: var(--transition-normal);
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a.active {
  color: var(--primary-green) !important;
}

.navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li > a.active::after {
  width: 80%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar-nav {
    background: var(--white);
    margin: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav > li > a {
    padding: 0.8rem 1rem !important;
  }
}

/* ===== ENHANCED HERO SECTION ===== */
.hero-section {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.carousel-background:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(40, 167, 69, 0.2));
  z-index: 1;
}

.carousel-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.3s both;
}

.btn-modern {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border: none;
  border-radius: 50px;
  padding: 15px 35px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.btn-modern:active {
  transform: translateY(-1px);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-normal);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-green);
}

.carousel-control-prev i,
.carousel-control-next i {
  color: #ffffff;
  font-size: 20px;
  line-height: 60px;
}

.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  transition: var(--transition-normal);
}

.carousel-indicators li.active {
  background: var(--primary-green);
  transform: scale(1.2);
}

/* ===== SECTION STYLES ===== */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 1rem;
  position: relative;
}

.heading-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ENHANCED ABOUT SECTION ===== */
.about-section {
  padding: 6rem 0;
  background: var(--white);
}

.about-content {
  padding: 2rem 0;
}

.content-title {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

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

.feature-list {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.feature-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-right: 1rem;
  margin-top: 0.2rem;
  min-width: 30px;
}

.feature-content h4 {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--light-text);
  margin: 0;
}

.modern-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}

.modern-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* ===== PARALLAX SECTION ===== */
.parallax-section {
  padding: 6rem 0;
  background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
  position: relative;
  overflow: hidden;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/parallax/1.jpg') center/cover;
  opacity: 0.3;
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.parallax-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: bounceInDown 0.8s ease;
  color: #ffffff;
}

.parallax-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: bounceInUp 0.8s ease 0.3s both;
}

/* ===== ENHANCED SERVICES SECTION ===== */
.services-section {
  padding: 6rem 0;
  background: var(--white);
}

.services-carousel {
  margin-top: 3rem;
}

.service-content {
  padding: 2rem;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-content:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.service-title {
  font-size: 1.8rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--dark-text);
}

.service-features li i {
  color: var(--primary-green);
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

.service-image {
  padding: 1rem;
}

.service-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}

.service-image img:hover {
  transform: scale(1.03);
}

/* Carousel Controls for Services */
.services-carousel .carousel-control-prev,
.services-carousel .carousel-control-next {
  background: var(--primary-green);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  opacity: 0.8;
}

.services-carousel .carousel-control-prev i,
.services-carousel .carousel-control-next i {
  color: #ffffff;
  font-size: 18px;
  line-height: 50px;
}

.services-carousel .carousel-control-prev:hover,
.services-carousel .carousel-control-next:hover {
  opacity: 1;
  background: var(--primary-green-dark);
}

/* ===== ENHANCED PORTFOLIO SECTION ===== */
.portfolio-section {
  padding: 6rem 0;
  background: var(--light-gray);
}

.portfolio-filters {
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--white);
  border: 2px solid var(--medium-gray);
  color: var(--dark-text);
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 25px;
  font-family: var(--font-primary);
  font-weight: 500;
  transition: var(--transition-normal);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(32, 201, 151, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-normal);
  padding: 2rem;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-description {
  color: var(--white);
  font-size: 1rem;
  opacity: 0.9;
}

/* ===== ENHANCED TEAM SECTION ===== */
.team-section {
  padding: 6rem 0;
  background: var(--white);
}

.team-member {
  text-align: center;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.member-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-full);
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(32, 201, 151, 0.8));
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.member-image:hover .member-overlay {
  opacity: 1;
}

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

.member-social {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}

.member-info {
  padding: 1rem;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.member-position {
  color: var(--primary-green);
  font-weight: 500;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.member-bio {
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== ENHANCED CONTACT SECTION ===== */
.contact-section {
  padding: 6rem 0;
  background: var(--light-gray);
}

.contact-form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.modern-input,
.modern-textarea {
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 1rem;
  transition: var(--transition-normal);
  background: var(--white);
}

.modern-input:focus,
.modern-textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
  outline: none;
}

.modern-input.error,
.modern-textarea.error {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

.contact-info-row {
  margin-top: 3rem;
}

.contact-info-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--white);
}

.contact-info-card h4 {
  font-size: 1.3rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.contact-info-card p {
  color: var(--light-text);
  margin: 0;
  line-height: 1.6;
}

.contact-info-card a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition-normal);
}

.contact-info-card a:hover {
  color: var(--primary-green-dark);
}

/* ===== ENHANCED FOOTER ===== */
.modern-footer {
  background: linear-gradient(135deg, var(--dark-text), #1a202c);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-description {
  color: #cbd5e0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-green);
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→';
  margin-right: 0.5rem;
  opacity: 0;
  transition: var(--transition-normal);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-link:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--primary-green);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #cbd5e0;
}

.contact-item i {
  margin-right: 1rem;
  color: var(--primary-green);
  margin-top: 0.2rem;
  min-width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #cbd5e0;
  margin: 0;
}

.footer-bottom a {
  color: var(--primary-green);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary-green-light);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

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

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

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateY(-2000px);
  }
  60% {
    opacity: 1;
    transform: translateY(30px);
  }
  80% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(2000px);
  }
  60% {
    opacity: 1;
    transform: translateY(-30px);
  }
  80% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-content {
    margin-bottom: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-section,
  .services-section,
  .portfolio-section,
  .team-section,
  .contact-section {
    padding: 4rem 0;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .team-member {
    margin-bottom: 3rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .btn-modern {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin: 0 0.3rem 0.5rem 0;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #1a5c2e;
    --dark-text: #000000;
    --light-text: #333333;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}

.rounded-custom {
  border-radius: var(--radius-xl);
}

.transition-all {
  transition: all 0.3s ease;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Hardware acceleration for smooth animations */
.animated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize image loading */
img {
  loading: lazy;
}

/* Reduce layout shifts */
.portfolio-item,
.team-member,
.contact-info-card {
  contain: layout style;
}
