/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
}

.logo-red { color: var(--primary-red); }
.logo-green { color: var(--primary-green); }

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

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: var(--primary-red);
}

.lang-dropdown {
  display: none; /* Hide old dropdown */
}

/* Custom Lang Selector */
.custom-lang-selector {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: white;
  transition: var(--transition);
  line-height: 1;
}

.lang-current:hover {
  border-color: var(--primary-red);
}

.lang-flag {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
  image-rendering: -webkit-optimize-contrast; /* Chrome/Safari */
  image-rendering: crisp-edges;               /* Firefox */
}

.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  width: 110px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.lang-options.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: var(--transition);
  font-size: 0.85rem;
}

.lang-option:hover {
  background-color: var(--bg-color);
  color: var(--primary-red);
}

/* Page active states */
.nav-link.active {
  color: var(--primary-green);
  border-bottom: 2px solid var(--primary-green);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-color);
}

/* --- Utilities --- */
.section-padding {
  padding: 6rem 0;
}

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

.highlight-red { color: var(--primary-red); }
.highlight-green { color: var(--primary-green); }

/* --- Hero --- */
.hero {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* --- Services Tabs --- */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.tab-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

.service-card {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary-red);
}

.service-card:nth-child(even):hover {
  border-bottom-color: var(--primary-green);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
}

/* --- About --- */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.text-left {
  text-align: left;
}

.metrics {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.metric-number {
  font-size: 3rem;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.project-img-wrapper {
  overflow: hidden;
  height: 300px;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-placeholder {
  transform: scale(1.05);
}

.project-info {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-link {
  color: var(--primary-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.project-link:hover {
  color: var(--primary-red-hover);
}

/* --- CTA --- */
.cta {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.cta-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background: white;
  color: var(--primary-red);
}

.btn-lg:hover {
  background: var(--bg-color);
  color: var(--primary-red-hover);
}

/* --- Footer --- */
.footer {
  background-color: #1a1a1a;
  color: #f8f9fa;
  padding-top: 2rem;
}

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

.footer-logo {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer-text {
  color: #a0a0a0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: white;
}

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

.footer-links a, .footer-contact {
  color: #a0a0a0;
  font-size: 0.85rem;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding: 0.8rem 0;
  text-align: center;
  color: #a0a0a0;
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding: 2rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .hero-container, .about-container, .projects-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-title { font-size: 2.5rem; }
  .hero-visual { height: 350px; }
  
  .services-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .section-title { font-size: 2rem; }
  .metrics { flex-direction: column; gap: 1.5rem; }
  .hero-title { font-size: 2rem; }
}
