/* Modern CSS for Construction Services Website */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --secondary: #f59e0b;
  --accent: #dc2626;
  --dark: #1e293b;
  --light: #f8fafc;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive container adjustments */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--dark);
  color: white;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1003;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover {
  color: #bfdbfe;
}

.main-nav a.btn-primary {
  background: white;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.main-nav a.btn-primary:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-quick a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: 0.875rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.contact-quick a:hover {
  opacity: 1;
}

/* Hero Sections */
.hero-section {
  height: 60vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

/* Hero Image Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}


.hero-container {
  position: relative;
  z-index: 2;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-cta.whatsapp-btn {
  background: #25d366;
  color: white;
}

.hero-cta.whatsapp-btn:hover {
  background: #20b955;
}

.hero-card {
  background: white;
  color: var(--dark);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-card h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.hero-card .contact-item {
  margin: 0.75rem 0;
  color: var(--muted);
}

.hero-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Main Content */
.main-content {
  padding-top: 2rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

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

/* Grid Layouts - Modified to use single column layout */
.grid {
  display: grid;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Force all grid layouts to single column */
.grid-2,
.grid-3,
.grid-4 { 
  grid-template-columns: 1fr !important;
}

/* Override all inline grid styles to force single column layout */
*[style*="grid-template-columns"] {
  grid-template-columns: 1fr !important;
}

/* Override specific inline grid patterns */
*[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"],
*[style*="display: grid"][style*="grid-template-columns: 2fr 1fr"] {
  grid-template-columns: 1fr !important;
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.02), rgba(245, 158, 11, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.card:hover::before {
  opacity: 1;
}

/* Premium Form Container */
#contact .card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(5, 150, 105, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(5, 150, 105, 0.05);
  position: relative;
}

#contact .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  border-radius: 16px 16px 0 0;
}

#contact .card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  position: relative;
}

#contact .card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.card h4 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Service Cards */
.service-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover::before {
  left: 100%;
}

/* Project Cards */
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: white;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 100%);
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.5rem;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.9) 100%);
  backdrop-filter: blur(2px);
}

.project-card h3,
.project-card h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  line-height: 1.2;
}

/* Values Section */
.values-section {
  background: var(--light);
}

.value-item {
  text-align: center;
  padding: 2rem;
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

/* Values List - Horizontal Layout */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.value-item-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.value-item-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-item-horizontal .value-icon {
  margin: 0;
  flex-shrink: 0;
}

.value-content {
  flex: 1;
}

.value-content h4 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.value-content p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  background: var(--dark);
  color: white;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Premium Form Styling */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.contact-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
}

.contact-form .input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-form .input-group.double {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 1rem;
}

.contact-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(245, 158, 11, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(5, 150, 105, 0.1);
}

.contact-form .checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
  accent-color: var(--primary);
}

.contact-form .checkbox-group label {
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  justify-content: center;
  min-height: 48px;
}

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

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #10b981);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #20b955);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20b955, #1ea34a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

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

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:focus {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

/* Desktop Layout Improvements */
@media (min-width: 1025px) {
  .responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 3rem;
    align-items: center;
  }
  
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .hero-section {
    min-height: 100vh;
    padding-top: 100px;
  }
  
  .hero-text {
    max-width: 700px;
    margin: 0 auto;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .grid {
    gap: 1.5rem;
  }
  
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: 1fr !important; }
  
  /* Responsive grids on tablets */
  .responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 0;
    gap: 1rem;
  }
  
  .brand {
    flex: 1;
    min-width: 0;
  }
  
  .brand h1 {
    font-size: 1.5rem;
  }
  
  .brand .tag {
    font-size: 0.75rem;
  }
  
  /* Mobile Form Improvements */
  .contact-form .input-group.double {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  
  .contact-form .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  #contact .card {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  #contact .card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  /* Fix complex grid layouts for mobile */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  
  div[style*="grid-template-columns: 1fr 1fr"] > div {
    margin-bottom: 2rem;
  }
  
  div[style*="grid-template-columns: 2fr 1fr"] {
    display: block !important;
    gap: 2rem !important;
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    background: rgba(5, 150, 105, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex !important;
    z-index: 1000;
  }
  
  .main-nav.is-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1002 !important;
    display: flex !important;
  }
  
  .main-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    display: block;
    width: 100%;
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-section {
    min-height: auto;
    padding: 8rem 0 4rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p {
    font-size: 1.125rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .grid {
    gap: 1.5rem;
  }
  
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  
  /* Responsive grid layouts */
  .responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: center;
  }
  
  .responsive-grid-2 > div {
    margin-bottom: 1rem;
  }
  
  .project-card {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .logo {
    width: 35px;
    height: 35px;
  }
  
  .brand h1 {
    font-size: 1.125rem;
    line-height: 1.2;
  }
  
  .brand .tag {
    font-size: 0.7rem;
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .hero-cta {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    justify-content: center;
  }
  
  .card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .hero-card {
    padding: 1.25rem;
  }
  
  .project-card {
    height: 180px;
  }
  
  /* Mobile responsive for values list */
  .value-item-horizontal {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .value-item-horizontal .value-icon {
    margin: 0 auto;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .value-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .value-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Better responsive grid handling */
  .responsive-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .responsive-grid-2 > div {
    margin-bottom: 0;
  }
  
  /* Responsive images in grid layouts */
  .responsive-grid-2 img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
  
  /* Better text spacing */
  p {
    margin-bottom: 1rem;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  h4 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s infinite;
}

/* Image optimization and lazy loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Add width and height to prevent CLS */
img {
  width: auto;
  height: auto;
}

/* Responsive images with aspect ratio */
.hero-image {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-image {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Utility classes to reduce inline styles */
.text-primary {
  color: var(--primary) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.text-white {
  color: white !important;
}

.text-center {
  text-align: center !important;
}

.mb-1 { margin-bottom: 1rem !important; }
.mb-1-5 { margin-bottom: 1.5rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.mt-1 { margin-top: 1rem !important; }
.mt-1-5 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 2rem !important; }

/* Common list styling */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bullet-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Common content styling */
.large-text {
  font-size: 1.125rem;
  line-height: 1.8;
}

.centered-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Performance optimizations - targeted will-change */
.hero-slide {
  will-change: opacity;
}

.card:hover {
  will-change: transform;
}

.btn:hover,
.hero-cta:hover {
  will-change: transform;
}

/* Better responsive images */
.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

/* Improved mobile touch targets */
@media (max-width: 768px) {
  .btn, .hero-cta, button {
    min-height: 48px;
    min-width: 48px;
    padding: 1rem 1.5rem;
  }
  
  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}