/* =====================================================
   TAVIUM Vest - New Professional Sections Styles
   ===================================================== */

/* ==================== Preloader ==================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.preloader-logo span {
  color: var(--accent-gold);
  font-weight: 400;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: 10px;
  animation: preloaderProgress 1.5s ease-in-out forwards;
}

@keyframes preloaderProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ==================== Client Logo Marquee ==================== */
.logo-marquee {
  padding: 2rem 0;
  background: rgba(13, 27, 42, 0.6);
  border-top: 1px solid var(--glass-border-gold);
  border-bottom: 1px solid var(--glass-border-gold);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: var(--transition-normal);
}

.marquee-item:hover {
  border-color: rgba(212, 165, 116, 0.3);
  background: rgba(212, 165, 116, 0.08);
}

.partner-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 1px;
  white-space: nowrap;
  transition: var(--transition-normal);
}

.marquee-item:hover .partner-logo-text {
  color: var(--accent-gold);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== Sectors Grid ==================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sector-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.sector-card:hover::before {
  transform: scaleX(1);
}

.sector-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.sector-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 165, 116, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-gold);
}

.sector-icon svg {
  width: 24px;
  height: 24px;
}

.sector-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.sector-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.sector-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(212, 165, 116, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* ==================== Certifications & Awards ==================== */
.certifications {
  background: var(--primary-dark) !important;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
}

.cert-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateY(-4px);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.12);
  border: 2px solid rgba(212, 165, 116, 0.3);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.cert-badge.award-badge {
  font-size: 1.5rem;
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.1);
}

.cert-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.cert-card.award {
  border-color: rgba(255, 215, 0, 0.2);
  background: rgba(255, 215, 0, 0.03);
}

/* ==================== Project Lifecycle ==================== */
.lifecycle {
  background: var(--primary-navy) !important;
}

.lifecycle-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.lifecycle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(212, 165, 116, 0.4), transparent);
  transform: translateX(-50%);
}

.lifecycle-stages {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lifecycle-stage {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.5rem 0;
  position: relative;
  cursor: pointer;
  transition: var(--transition-normal);
}

.lifecycle-stage:hover .stage-content,
.lifecycle-stage.active .stage-content {
  border-color: rgba(212, 165, 116, 0.4);
  background: rgba(212, 165, 116, 0.06);
}

.lifecycle-stage:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 2rem);
}

.lifecycle-stage:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2rem);
}

.stage-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-dark);
  border: 2px solid rgba(212, 165, 116, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  z-index: 2;
  transition: var(--transition-normal);
}

.lifecycle-stage:hover .stage-number,
.lifecycle-stage.active .stage-number {
  background: var(--accent-gold);
  color: var(--primary-dark);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.stage-content {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  transition: var(--transition-normal);
}

.stage-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.stage-content p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ==================== Sustainability / ESG ==================== */
.sustainability {
  background: var(--primary-dark) !important;
}

.esg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.esg-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
}

.esg-card:hover {
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateY(-3px);
}

.esg-card.esg-main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.02));
  border-color: rgba(76, 175, 80, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.esg-icon {
  width: 50px;
  height: 50px;
  background: rgba(76, 175, 80, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.esg-icon svg {
  width: 24px;
  height: 24px;
  color: #4CAF50;
}

.esg-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.esg-card > p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.esg-progress {
  width: 100%;
  margin-top: 1.5rem;
}

.esg-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.esg-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 72%);
  background: linear-gradient(90deg, #4CAF50, #81C784);
  border-radius: 10px;
  transition: width 1.5s ease-out;
}

.esg-progress span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #81C784;
  font-weight: 600;
}

.esg-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.esg-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #4CAF50;
  line-height: 1;
}

.esg-unit {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ==================== Newsletter & Gated Content ==================== */
.newsletter-section {
  background: var(--primary-navy) !important;
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.newsletter-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 165, 116, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.newsletter-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
}

.newsletter-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.newsletter-content > p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-normal);
}

.newsletter-input-group input:focus {
  border-color: var(--accent-gold);
  background: rgba(212, 165, 116, 0.06);
}

.newsletter-input-group input::placeholder {
  color: var(--gray-600);
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.8rem;
}

.gated-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gated-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.gated-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  background: rgba(212, 165, 116, 0.04);
}

.gated-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  background: rgba(212, 165, 116, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.gated-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.gated-card p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.8rem;
}

/* ==================== Company Timeline ==================== */
.company-timeline {
  background: var(--primary-navy) !important;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(212, 165, 116, 0.3), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
  margin-bottom: 0.5rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-dark);
  border: 3px solid var(--accent-gold);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.timeline-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.timeline-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ==================== Team Modal ==================== */
.team-card {
  cursor: pointer;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(212, 165, 116, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
  border-radius: inherit;
}

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

.team-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.team-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.team-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 2rem;
}

.team-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.team-modal-card {
  background: var(--secondary-navy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 750px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.team-modal.active .team-modal-card {
  transform: translateY(0);
}

.team-modal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.team-modal-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  object-fit: cover;
}

.team-modal-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.team-modal-title {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-modal-bio {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.team-modal-expertise h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.expertise-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-gold-light);
}

/* ==================== WhatsApp Widget ==================== */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-widget svg {
  width: 32px;
  height: 32px;
  color: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  pointer-events: none;
  border: 1px solid var(--glass-border);
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ==================== Back to Top ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 6rem;
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: var(--accent-gold);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ==================== Cookie Banner ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  z-index: 10001;
  padding: 1.2rem 0;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.cookie-text svg {
  flex-shrink: 0;
  color: var(--accent-gold);
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.8rem !important;
}

/* ==================== Responsive - New Sections ==================== */
@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-card {
    grid-template-columns: 1fr;
  }
  
  .lifecycle-stage:nth-child(odd) {
    padding-right: 0;
    flex-direction: column;
    padding-left: 4rem;
  }
  
  .lifecycle-stage:nth-child(even) {
    padding-left: 4rem;
    flex-direction: column;
  }
  
  .lifecycle-line {
    left: 1.5rem;
  }
  
  .stage-number {
    left: 1.5rem;
  }
  
  .esg-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sectors-grid,
  .certs-grid,
  .esg-grid {
    grid-template-columns: 1fr;
  }
  
  .esg-card.esg-main {
    grid-column: 1;
  }
  
  .newsletter-card {
    padding: 2rem;
  }
  
  .newsletter-input-group {
    flex-direction: column;
  }
  
  .team-modal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .team-modal-photo img {
    max-width: 150px;
    margin: 0 auto;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    width: 100%;
    text-align: left;
    padding-left: 3rem;
    padding-right: 1rem;
  }
  
  .timeline-line {
    left: 1rem;
  }
  
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 0.25rem;
    right: auto;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    flex-direction: column;
  }
  
  .whatsapp-widget {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .back-to-top {
    right: 4.5rem;
    bottom: 1.5rem;
  }
}

/* ==================== Project Location Map ==================== */
.project-map-section {
  background: var(--primary-navy) !important;
}

.map-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.istanbul-map {
  width: 100%;
  height: auto;
  max-height: 400px;
}

.map-pin {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.map-pin:hover {
  transform: scale(1.3);
}

.map-pin circle:first-child {
  animation: pinPulse 2s ease-in-out infinite;
}

@keyframes pinPulse {
  0%, 100% { opacity: 0.9; r: 8; }
  50% { opacity: 0.6; r: 12; }
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-500);
}

.legend-dot.active-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 165, 116, 0.5);
}

/* Global Heading Single Color Rule (100% Pure White) */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, .page-header h1, .cta-title {
  color: #ffffff !important;
}

h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.section-title *, .hero-title *, .page-header h1 *, .cta-title * {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ==================== Before / After Slider ==================== */
.before-after-section {
  background: var(--primary-navy) !important;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 520px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  user-select: none;
}

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

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  width: 50%;
  border-right: 2px solid var(--accent-gold);
  z-index: 2;
  transition: width 0.05s ease-out;
}

.ba-label {
  position: absolute;
  top: 1.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 4;
}

.ba-label-before {
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-label-after {
  left: 1.5rem;
  background: rgba(30, 41, 59, 0.85);
  color: var(--accent-gold-light);
  border: 1px solid var(--glass-border-gold);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 5;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.ba-handle-line {
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-dark);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ==================== Risk Simulator ==================== */
.risk-section {
  background: var(--primary-dark) !important;
}

.risk-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.risk-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.risk-step-group {
  margin-bottom: 1.5rem;
}

.risk-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.risk-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.risk-opt-btn {
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--gray-300);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.risk-opt-btn:hover,
.risk-opt-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-gold);
  color: var(--white);
}

.risk-output {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.risk-gauge-container {
  margin-bottom: 1.5rem;
}

.risk-gauge-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.risk-score-display {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: #ff6b6b;
  line-height: 1.1;
  margin: 0.3rem 0;
}

.risk-meter-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.8rem 0;
}

.risk-meter-fill {
  height: 100%;
  transition: width 0.6s ease, background-color 0.6s ease;
}

.risk-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.risk-solution-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  text-align: left;
}

.risk-solution-box h5 {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.risk-improvement-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.text-emerald {
  color: #10b981 !important;
}

.risk-solution-box p {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* ==================== ISO Certificate Modal ==================== */
.cert-card {
  cursor: pointer;
}

.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 2rem;
}

.cert-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cert-modal-card {
  background: var(--secondary-navy);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.cert-modal.active .cert-modal-card {
  transform: translateY(0);
}

.cert-modal-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;

.cert-modal-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.cert-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.cert-status-valid {
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
}

.cert-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}

.cert-detail-item {
  display: flex;
  flex-direction: column;
}

.cert-detail-item span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.cert-detail-item strong {
  font-size: 0.85rem;
  color: var(--white);
}

.cert-modal-desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cert-qr-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-mockup {
  padding: 0.4rem 0.8rem;
  background: #ffffff;
  color: #000000;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.cert-qr-box span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .ba-slider-container {
    height: 320px;
  }
  
  .risk-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== Nav Controls & Currency Switcher ==================== */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 2px;
}

.curr-btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.curr-btn:hover,
.curr-btn.active {
  background: var(--accent-gold-dark);
  color: var(--white);
}

.btn-portal-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-portal-demo:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 1.5s infinite;
}



/* ==================== Carbon Savings Estimator ==================== */
.carbon-calc-widget {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.carbon-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #10b981 !important;
  margin-bottom: 1.5rem;
  text-align: center;
}

.carbon-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;
}

.carbon-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.carbon-res-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
}

.carbon-res-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 0.4rem;
}

.carbon-res-card strong {
  font-size: 1.1rem;
  color: #10b981;
  font-weight: 700;
}


