/* ===================================
   HEADER CUSTOM STYLES
   ===================================
   Yeni menü yapısı ve açılır menü stilleri
   ================================= */

/* Desktop Navigation Menu Items */
.gap-240px {
  gap: 240px;
}

.header-nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
  margin-left: 50px;
}

/* Hide navigation menu on tablet */
@media (max-width: 1024px) {
  .header-nav-menu {
    display: none !important;
  }
}

.header-nav-menu li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-nav-link {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.45s ease;
  padding: 8px 4px;
  position: relative;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.header-nav-link:hover {
  color: #ffffff;
}

/* Responsive font sizes for header links */
@media (max-width: 1280px) {
  .header-nav-link {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-nav-link {
    font-size: 14px;
  }
}

/* Hover Underline Effect */
.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.35s ease;
}

.header-nav-link:hover::after {
  width: 100%;
}

/* Dropdown Menu Container */
.header-dropdown {
  position: relative;
}

.header-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.header-dropdown-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.header-dropdown:hover .header-dropdown-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Menu */
.header-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 100%;
  transform: translateX(-50%) translateY(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 15px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.header-dropdown:hover .header-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-41px);
}

.header-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 12%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgb(73 73 73 / 98%);
}

.header-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dropdown-item-text {
  position: relative;
  z-index: 2;
}

.header-dropdown-menu a::after {
  content: '→';
  position: absolute;
  right: 30px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-size: 14px;
  z-index: 2;
}

.header-dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffffff6b;
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.header-dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 40px;
  padding-right: 50px;
}

.header-dropdown-menu a:hover::before {
  transform: scaleY(1);
}

.header-dropdown-menu a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Subtle hover glow effect */
.header-dropdown-menu a:hover {
  box-shadow: inset 0 0 20px rgba(255, 107, 107, 0.05);
}

/* Staggered Animation for Dropdown Items */
.header-dropdown-menu a:nth-child(1) { transition-delay: 0.05s; }
.header-dropdown-menu a:nth-child(2) { transition-delay: 0.1s; }
.header-dropdown-menu a:nth-child(3) { transition-delay: 0.15s; }
.header-dropdown-menu a:nth-child(4) { transition-delay: 0.2s; }
.header-dropdown-menu a:nth-child(5) { transition-delay: 0.25s; }

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .header-nav-menu {
    gap: 30px;
  }
  
  .header-nav-link {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .header-nav-menu {
    gap: 20px;
  }
  
  .header-nav-link {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  /* Desktop menu hidden on mobile */
  .header-nav-menu {
    display: none !important;
  }
  
  .header-menu-button-wrapper {
    display: flex;
  }
}

/* Menu Button Wrapper - Always Visible */
.menu-button-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Desktop Only - Prod-box section */
.desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-only {
    display: flex !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) { 
  .tablet-mt-50 {
    margin-top: 50px !important;
  }
}

/* Desktop Only - Prod Box Bigger (5 boxes fit) */
@media (min-width: 1024px) {
  .wrapper-menu-content .prod-box {
    min-width: 300px !important;
    width: 300px !important;
    height: 280px !important;
    gap: 45px !important;
    padding: 45px 15px !important;
  }
  
  .wrapper-menu-content .prod-box-img {
    height: 80px !important;
  }
  
  .wrapper-menu-content .prod-box-text {
    font-size: 32px !important;
  }
}

/* Logo Size - Responsive */
.logo-link {
  max-width: 170px;
}

@media (max-width: 1280px) {
  .logo-link {
    max-width: 150px;
  }
}

@media (max-width: 640px) {
  .logo-link {
    max-width: 120px;
  }
}

/* Logo Image Height - Responsive */
.logo-image {
  height: 130px;
}

/* When body is active (loading screen) */
body.active .logo-image {
  height: 130px !important;
}

/* When header is fixed (scrolled) */
.header-field.is-fixed .logo-image {
  height: 100px;
}

/* 2XL screens */
@media (max-width: 1536px) {
  .logo-image {
    height: 100px;
  }
  
  body.active .logo-image {
    height: 100px !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .logo-image {
    height: 80px;
  }
  
  body.active .logo-image {
    height: 80px !important;
  }
  
  .header-field.is-fixed .logo-image {
    height: 80px !important;
  }
}

/* ========================================
   LOGO ANIMATIONS
   ======================================== */

/* Logo Icon Animation - Triangles */
.logo-cub {
  opacity: 0;
  animation: logoIconFade 0.6s ease-out forwards;
}

.logo-cub:nth-child(1) {
  animation-delay: 0.1s;
}

.logo-cub:nth-child(2) {
  animation-delay: 0.2s;
}

.logo-cub:nth-child(3) {
  animation-delay: 0.3s;
}

/* Logo Text Animation - Letters */
.logo-path {
  opacity: 0;
  animation: logoTextFade 0.4s ease-out forwards;
}

/* ASREMAN text animation */
.logo-text-asreman .logo-path:nth-child(1) { animation-delay: 0.45s; }  /* A */
.logo-text-asreman .logo-path:nth-child(2) { animation-delay: 0.52s; }  /* S */
.logo-text-asreman .logo-path:nth-child(3) { animation-delay: 0.59s; }  /* R */
.logo-text-asreman .logo-path:nth-child(4) { animation-delay: 0.66s; }  /* E */
.logo-text-asreman .logo-path:nth-child(5) { animation-delay: 0.73s; }  /* M */
.logo-text-asreman .logo-path:nth-child(6) { animation-delay: 0.80s; }  /* A */
.logo-text-asreman .logo-path:nth-child(7) { animation-delay: 0.87s; }  /* N */

/* İNŞAAT text animation */
.logo-text-insaat .logo-path:nth-child(1) { animation-delay: 0.94s; }  /* İ */
.logo-text-insaat .logo-path:nth-child(2) { animation-delay: 1.01s; }  /* N */
.logo-text-insaat .logo-path:nth-child(3) { animation-delay: 1.08s; }  /* Ş */
.logo-text-insaat .logo-path:nth-child(4) { animation-delay: 1.15s; }  /* A */
.logo-text-insaat .logo-path:nth-child(5) { animation-delay: 1.22s; }  /* A */
.logo-text-insaat .logo-path:nth-child(6) { animation-delay: 1.29s; }  /* T */

/* Keyframes */
@keyframes logoIconFade {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  60% {
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logoTextFade {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



@media (min-width: 1024px) {
  .mobile-tablet-only {
    display: none !important;
  }
}

/* Dropdown Icon - Always visible */
.drop-fax .icon-mini-down {
  display: block !important;
}

/* Dropdown Icon Sizes */
.dropdown-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

/* Desktop Header Dropdown Icon - Smaller */
.header-dropdown-icon.dropdown-icon {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

@media (max-width: 1023px) {
  .dropdown-icon {
    width: 10px;
    height: 10px;
    font-size: 10px;
  }
}

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

.header-dropdown-menu a {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

.header-dropdown:hover .header-dropdown-menu a {
  opacity: 1;
}

/* Active state for current page */
.header-nav-link.active {
  color: #ffffff;
}

.header-nav-link.active::after {
  width: 100%;
  background-color: rgba(255, 107, 107, 0.8);
  height: 2px;
}

/* Prevent layout shift on hover */
.header-nav-item {
  will-change: transform;
}

/* Smooth transitions for all elements */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Grid Optimization for Smaller Screens */
@media (max-width: 1400px) {
  .header-nav-menu {
    gap: 25px;
  }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-dropdown-menu {
    min-width: 220px;
    padding: 12px 0;
  }
  
  .header-dropdown-menu a {
    padding: 12px 25px;
    font-size: 14px;
  }
}

.group\/mobile-menu.active .group-\[\.active\]\/mobile-menu\:w-\[33px\] {
  width: 38px !important;
}