:root {
  --primary: #00796b;       /* teal/green for energy */
  --secondary: #0288d1;     /* blue for trust/tech */
  --accent: #f9a825;        /* amber for highlights */
  --dark: #2a2a2a;
  --light: #f8f9fa;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

/* Header Styles */
.navbar {
  background: var(--gradient);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Page Header */
.page-header {
  background: var(--gradient);
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
  animation: float 30s ease-in-out infinite;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.page-header .lead {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

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

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-primary::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-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: #f57f17;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-outline-light {
  border: 2px solid white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--light);
}

.service-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
}

.service-icon-large {
  width: 100px;
  height: 100px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: white;
  transition: all 0.3s ease;
}

.service-card h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-detail-card {
  padding: 2rem;
}

.service-detail-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.service-detail-card h5 {
  color: var(--secondary);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.service-detail-card ul {
  list-style: none;
  padding: 0;
}

.service-detail-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.service-detail-card li:hover {
  padding-left: 10px;
  background-color: rgba(0, 121, 107, 0.05);
}

.service-detail-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

.service-image {
  padding: 2rem;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: white;
}

.projects-gallery {
  padding: 3rem 0;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  background: white;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
  height: 250px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 2rem;
}

.project-content h5 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Detailed Project Cards */
.project-card-detailed {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background: white;
  position: relative;
  margin-bottom: 2rem;
}

.project-card-detailed:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-category {
  color: var(--primary);
  font-weight: 600;
  background-color: rgba(0, 121, 107, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
}

.project-location {
  color: var(--accent);
  font-weight: 500;
}

.project-stats {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.project-stats .stat {
  text-align: center;
}

.project-stats .stat strong {
  display: block;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.project-stats .stat span {
  color: #666;
  font-size: 0.9rem;
}

.project-tech {
  margin-top: 1rem;
}

.tech-tag {
  display: inline-block;
  background-color: var(--light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin: 0.25rem;
  border: 1px solid var(--primary);
}

/* Project Filter */
.project-filter {
  padding: 2rem 0;
  background: white;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--light);
}

.about-section {
  padding: 5rem 0;
  background: white;
}

/* Mission, Vision, Values */
.mission-section {
  padding: 5rem 0;
  background: var(--light);
}

.value-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.value-card h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.values-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.values-list li {
  padding: 0.5rem 0;
  color: var(--dark);
}

.values-list li::before {
  content: "★";
  color: var(--accent);
  margin-right: 0.5rem;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: white;
}

.team-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-info {
  padding: 2rem;
  text-align: center;
}

.team-info h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.team-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 5rem 0;
  background: var(--light);
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  background-color: rgba(0, 121, 107, 0.05);
  transform: translateX(10px);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.advantage-content h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Stats Section */
.stats {
  padding: 3rem 0;
  background: var(--gradient);
  color: white;
}

.stat-item {
  text-align: center;
  margin-bottom: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  color: var(--accent);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: white;
}

.contact-card {
  background: var(--light);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 121, 107, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 121, 107, 0.25);
}

.contact-info {
  background: var(--gradient);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  height: 100%;
}

.contact-info h4 {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--accent);
  width: 30px;
  text-align: center;
}

/* Office Locations */
.office-locations {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
}

.office-item {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.office-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.office-item h6 {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Map Section */
.map-section {
  padding: 3rem 0;
  background: var(--light);
}

.map-placeholder {
  margin-top: 2rem;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: var(--light);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.accordion-button {
  background: white;
  color: var(--primary);
  font-weight: 600;
  border: none;
  padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  padding: 1.5rem;
  background: white;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.footer h5 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

.footer li {
  margin-bottom: 0.5rem;
}

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

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-heading p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-top: 1rem;
}

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

.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out;
}

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

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 80vh;
  }
  
  .service-detail-card {
    padding: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .project-stats {
    flex-direction: column;
    text-align: center;
  }
  
  .project-stats .stat {
    margin-bottom: 1rem;
  }
  
  .advantage-item {
    flex-direction: column;
    text-align: center;
  }
  
  .advantage-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  .btn-outline-light {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .contact-card {
    padding: 2rem;
  }
  
  .contact-info {
    margin-top: 2rem;
    padding: 2rem;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
  
  .service-card,
  .value-card,
  .team-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
  }
  
  .contact-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .project-card-detailed {
    margin-bottom: 2rem;
  }
  
  .project-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .project-stats .stat {
    flex: 0 0 45%;
    margin-bottom: 1rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section .lead {
    font-size: 1.1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .office-locations {
    padding: 1.5rem;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .cta-section {
    display: none;
  }
  
  .hero,
  .page-header {
    background: none !important;
    color: black !important;
    padding: 2rem 0 !important;
  }
  
  .service-card,
  .project-card,
  .value-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary: #004d40;
    --secondary: #01579b;
    --accent: #ff8f00;
  }
  
  .service-card,
  .project-card,
  .value-card,
  .team-card {
    border: 2px solid var(--primary);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero::before {
    animation: none;
  }
  
  .page-header::before {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .service-card,
  .project-card,
  .value-card,
  .team-card,
  .contact-card {
    background: #2d3748;
    color: white;
  }
  
  .accordion-item {
    background: #2d3748;
  }
  
  .accordion-button {
    background: #2d3748;
    color: white;
  }
  
  .form-control,
  .form-select {
    background: #2d3748;
    color: white;
    border-color: #4a5568;
  }
  /* Partners Section Styles */
.partners {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.partner-logo {
  height: 80px;
  padding: 15px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.grayscale-logo {
  max-height: 50px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logo:hover .grayscale-logo {
  filter: grayscale(0%);
}

/* Enhanced Testimonials Styles */
.testimonials {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonials::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 1000 100"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,100 1000,0"/></svg>') no-repeat;
  background-size: cover;
}

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

.testimonials .section-heading h2 {
  color: white;
}

.testimonials .section-heading p {
  color: rgba(255,255,255,0.8);
}

.testimonial-card {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.testimonial-card.featured {
  transform: scale(1.05);
  background: rgba(255,255,255,1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.testimonial-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.quote-icon {
  color: #667eea;
  font-size: 2rem;
  margin-bottom: 15px;
  opacity: 0.3;
}

.testimonial-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.rating {
  color: #ffd700;
  font-size: 0.9rem;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.client-avatar {
  margin-right: 15px;
  position: relative;
}

.client-avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 3px solid #667eea;
}

.client-details {
  flex: 1;
}

.client-name {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.client-title {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.company-name {
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Testimonial Navigation */
.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
  background: white;
  border-color: white;
}

/* Mobile Responsiveness for Partners & Testimonials */
@media (max-width: 768px) {
  .testimonial-card.featured {
    transform: none;
  }
  
  .testimonial-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .partner-logo {
    height: 60px;
    margin-bottom: 20px;
  }
  
  .grayscale-logo {
    max-height: 35px;
  }
  
  .testimonial-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .client-info {
    flex-direction: column;
    text-align: center;
  }
  
  .client-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .testimonials {
    padding: 3rem 0;
  }
  
  .partners {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .quote-icon {
    font-size: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
  
  .client-avatar img {
    width: 50px;
    height: 50px;
  }
  
  .partner-logo {
    height: 50px;
    padding: 10px;
  }
  
  .grayscale-logo {
    max-height: 30px;
  }
}

/* Dark Mode Support for New Sections */
@media (prefers-color-scheme: dark) {
  .testimonial-card {
    background: rgba(45, 55, 72, 0.95);
    color: white;
  }
  
  .testimonial-text {
    color: #e2e8f0;
  }
  
  .client-name {
    color: #e2e8f0;
  }
  
  .client-title {
    color: #a0aec0;
  }
  
  .partner-logo {
    background: #2d3748;
  }
}

/* High Contrast Mode for New Sections */
@media (prefers-contrast: high) {
  .testimonial-card {
    border: 2px solid var(--primary);
  }
  
  .partner-logo {
    border: 2px solid var(--primary);
  }
}

/* Print Styles for New Sections */
@media print {
  .testimonials {
    background: none !important;
    color: black !important;
  }
  
  .testimonial-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    background: white !important;
  }
  
  .testimonial-text,
  .client-name {
    color: black !important;
  }
  
  .partners {
    background: none !important;
  }
}

/* Service Image Styles - Add this to your existing styles.css */
.service-image {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.service-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.service-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Ensure equal height for service detail cards */
.service-detail-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile responsiveness for service images */
@media (max-width: 992px) {
  .service-image {
    padding: 1.5rem 2rem 3rem 2rem;
    margin-bottom: 2rem;
  }
  
  .service-image img {
    max-height: 300px;
  }
  
  .service-detail-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .service-image {
    padding: 1rem 1rem 2rem 1rem;
  }
  
  .service-image img {
    max-height: 250px;
  }
}

@media (max-width: 576px) {
  .service-image {
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
  }
  
  .service-image img {
    max-height: 200px;
  }
}

}