@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

.arrow {
  margin-left: 5px;
  font-size: 1rem;
  transform:rotate(90deg);
  transition: none;
  display: inline-block;
}

.dropdown-menu {
  text-align:center;
  display: none;
  position: absolute;
  top: 123%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  list-style: none;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.dropdown-menu li {
  margin-bottom: 0.5rem;
  white-space:nowrap;
  position:relative;
}

/* Alt Dropdown Menüsü */
.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: rgba(0, 0, 0, 0.9);
  list-style: none;
  padding: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sub-dropdown li {
  margin-bottom: 0.5rem;
}

.sub-dropdown a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.active-arrow::after {
  content: ' ➤';
  color: #ffdd40;
}

.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.dropdown-menu a:hover {
  color: #ffdd40;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown.active .arrow {
  transform: rotate(90deg);
}

.navbar {
  font-family:'Poppins',sans-serif;
  height:80px;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* === İŞTE BURASI: LOGO İÇİN HAREKETLİ RENK === */
.logo a {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(90deg, #ff8a00, #e52e71, #ff8a00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite; /* Kayan renk animasyonu */
}

@keyframes shine {
  to { background-position: 200% center; }
}

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

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  left: 0;
  bottom: -5px;
  transition: width 0.4s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ffdd40;
}

/* === IZGARA (GRID) BUTONU TASARIMI === */
.grid-icon {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  cursor: pointer;
  transition: transform 0.4s ease;
  margin-top: 5px;
}

.grid-icon span {
  display: block;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.grid-icon:hover {
  transform: rotate(180deg) scale(1.1);
}

.grid-icon:hover span {
  background-color: #ffdd40;
  box-shadow: 0 0 5px #ffdd40;
}

/* === DEHŞETÜL VAHŞET SIDEBAR TASARIMI === */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.awesome-sidebar {
  position: fixed;
  top: 0;
  right: -550px; 
  width: 450px;
  max-width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 60px rgba(0,0,0,0.9), inset 2px 0 20px rgba(229, 46, 113, 0.05);
  z-index: 2000;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  transition: right 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.sidebar-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(229,46,113,0.15) 80%, rgba(255,138,0,0.15) 100%);
  animation: rotateGlow 10s linear infinite;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

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

.awesome-sidebar.active {
  right: 0;
  box-shadow: -30px 0 80px rgba(0,0,0,1), inset 2px 0 30px rgba(229, 46, 113, 0.2);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.sidebar-header h2 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, #ff8a00, #e52e71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(229, 46, 113, 0.3);
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 3.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s ease;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.close-btn:hover {
  transform: rotate(180deg) scale(1.2);
  color: #e52e71;
  text-shadow: 0 0 20px #e52e71;
}

.sidebar-content {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.sidebar-content li {
  transform: translateX(100px) scale(0.8);
  opacity: 0;
}

.awesome-sidebar.active .sidebar-content li {
  animation: slideInEpic 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(0.15s * var(--i));
}

@keyframes slideInEpic {
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.sidebar-content a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-content a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: transparent;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-content a:hover {
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: 6px;
  transform: translateX(15px);
  text-shadow: 0 0 20px rgba(229, 46, 113, 0.4);
}

.sidebar-content a:hover::before {
  width: 100%;
}

/* Responsive Design */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.toggle span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .awesome-sidebar {
    width: 100%;
    right: -100%;
    border-left: none;
    padding: 3rem 2rem;
  }
}
