@import url("https://fonts.googleapis.com/css?family=Lato:200,300,400,400i,700");
@import url("https://fonts.googleapis.com/css?family=Merriweather:200,400,400i,700");
@import url("https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@300&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Libre+Baskerville:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Source+Serif+4:wght@400;600&display=swap");


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  color: white;
}

:root {
  --gradient: linear-gradient(45deg, #ff3366, #ff6b6b, #4834d4, #686de0);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --border: 1px solid rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --color-background: #000;
	--color-text: #fff;
}

body {
  background: #0a0a0a;
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 5%;
  backdrop-filter: blur(12px);
  background: var(--glass-bg);
  border-bottom: var(--border);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(10, 10, 10, 0.95);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s linear infinite;
  background-size: 300%;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: #ff6b6b;
  /* text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); */
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s linear infinite;
  background-size: 300%;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
  width: 100%;
  animation: gradient 8s linear infinite;
}

.nav-links li {
  position: relative; /* Dropdown için gerekli */
}

/* Dropdown Menü */
.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  padding: 0;
  background-color: #333;
  display: none; /* Başlangıçta gizli */
  z-index: 1000;
}

.dropdown-menu li a {
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  display: block;
}

/* .dropdown-menu li a:hover {
    background-color: #575757;
} */

/* Hover ile Dropdown'u Göster */
.dropdown:hover .dropdown-menu {
  display: block;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.mobile-nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle .bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: white;
  transition: all 0.4s ease;
}

.mobile-nav-toggle .bar:nth-child(1) {
  top: 14px;
}
.mobile-nav-toggle .bar:nth-child(2) {
  top: 19px;
}
.mobile-nav-toggle .bar:nth-child(3) {
  top: 24px;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.99),
      rgba(20, 20, 20, 0.99)
    );
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    backdrop-filter: blur(10px);
  }

  .nav-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03));
    pointer-events: none;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links a:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links a:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links a:nth-child(5) {
    transition-delay: 0.5s;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translate(-50%, 5px) rotate(45deg);
    width: 24px;
  }

  .mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translate(-50%, -5px) rotate(-45deg);
    width: 24px;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}