/* Designed by Tamer Akdeniz - https://tamerakdeniz.com */

/* Enerji Color Overrides - Override Tailwind colors for this section */
:root {
  --color-primary: #f48c25;
  --color-primary-hover: #e07a15;
  --color-secondary: #181411;
  --color-accent: #0ea5e9;
  --color-light: #f8f7f5;
}

/* Override Tailwind text/bg classes for Enerji section */
.text-primary { color: #f48c25 !important; }
.bg-primary { background-color: #f48c25 !important; }
.border-primary { border-color: #f48c25 !important; }
.hover\:text-primary:hover { color: #f48c25 !important; }
.hover\:bg-primary:hover { background-color: #f48c25 !important; }
.hover\:border-primary:hover { border-color: #f48c25 !important; }
.from-primary { --tw-gradient-from: #f48c25 !important; }
.to-primary { --tw-gradient-to: #f48c25 !important; }
.via-primary { --tw-gradient-via: #f48c25 !important; }
.ring-primary { --tw-ring-color: #f48c25 !important; }
.bg-primary\/5 { background-color: rgba(244, 140, 37, 0.05) !important; }
.bg-primary\/10 { background-color: rgba(244, 140, 37, 0.1) !important; }
.border-primary\/10 { border-color: rgba(244, 140, 37, 0.1) !important; }
.border-primary\/30 { border-color: rgba(244, 140, 37, 0.3) !important; }
.group:hover .group-hover\:bg-primary { background-color: #f48c25 !important; }
.shadow-\[0_0_20px_rgba\(244\,140\,37\,0\.4\)\] { box-shadow: 0 0 20px rgba(244,140,37,0.4) !important; }
.shadow-\[0_0_30px_rgba\(244\,140\,37\,0\.6\)\] { box-shadow: 0 0 30px rgba(244,140,37,0.6) !important; }

.text-secondary { color: #181411 !important; }
.bg-secondary { background-color: #181411 !important; }
.from-secondary { --tw-gradient-from: #181411 !important; }
.from-secondary\/80 { --tw-gradient-from: rgba(24, 20, 17, 0.8) !important; }
.hover\:bg-secondary:hover { background-color: #181411 !important; }

.text-accent { color: #0ea5e9 !important; }
.bg-accent { background-color: #0ea5e9 !important; }
.to-accent { --tw-gradient-to: #0ea5e9 !important; }
.from-accent { --tw-gradient-from: #0ea5e9 !important; }

.bg-light { background-color: #f8f7f5 !important; }

/* Hide Scrollbar */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Navbar initial styles (transparent state) */
.navbar-logo-icon {
  color: white;
}

/* Logo image styles - no filter for logos with no-filter-change class */
img.navbar-logo-icon.no-filter-change {
  filter: none !important;
}

/* Logo background circle for better visibility */
.logo-with-bg {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-with-bg img {
  display: block;
}

/* Footer logo background (white for dark footer) */
footer .logo-with-bg {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-logo-text {
  color: white;
}

.navbar-link {
  color: white;
}

.navbar-button {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.navbar-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar-mobile-btn {
  color: white;
}

/* Fade In Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.5s ease-out;
  transition-delay: 0s;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes for staggered animations */
.reveal.delay-100 {
  transition-delay: 0.3s;
}
.reveal.delay-200 {
  transition-delay: 0.6s;
}
.reveal.delay-300 {
  transition-delay: 0.9s;
}

/* Page overlay for logo-first transition */
.page-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  animation: overlayBgSequence 1.8s ease-out forwards;
}

.page-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes overlayBgSequence {
  from {
    opacity: 1;
    background: #ffffff;
  }
  40% {
    opacity: 1;
    background: #ffffff;
  }
  70% {
    opacity: 0.6;
    background: #e5e7eb;
  }
  to {
    opacity: 0;
    background: #e5e7eb;
  }
}

.overlay-logo {
  width: 160px;
  max-width: 60vw;
  height: auto;
  animation: overlayLogoSequence 1.8s ease-out forwards;
}

/* For Material Icon overlay (bolt) */
.overlay-logo.material-icon {
  font-size: 120px !important;
  width: auto;
  color: #f48c25;
}

@keyframes overlayLogoSequence {
  from {
    opacity: 0;
    transform: scale(0.9);
    filter: none;
  }
  40% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
  70% {
    opacity: 0.8;
    transform: scale(1.02);
    filter: grayscale(1) brightness(0.1);
  }
  to {
    opacity: 0;
    transform: scale(1.04);
    filter: grayscale(1) brightness(0.05);
  }
}

/* Prevent scroll while overlay is visible */
.page-lock {
  overflow: hidden;
}

/* Timeline year numbers - ensure they stay behind content */
.timeline-item {
  position: relative;
  isolation: isolate;
}

.timeline-year {
  z-index: 1;
  pointer-events: none;
}

.timeline-content {
  position: relative;
  z-index: 2;
}