/*Font roboto levba*/
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"); /*varasayılan reset işlemi*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}
img,
svg,canvas  {
  display: block;
  max-width: 100%;
}
/*body stil ayarları*/
body {
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  background: linear-gradient(to bottom, #0b0b2b, #1b2735 70%, #090a0f);
  overflow-x: hidden;
}
/* Light Mode */
body.light {
  background: linear-gradient(to bottom, #b6dfff, #eaf6ff);
  color: #0f172a;
}

body.light .nav-bar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/*Nav bar*/
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: linear-gradient(135deg, #0b0b2b 0%, #090a0d 100%);
}
/* SOL */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ORTA */
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

/* SAĞ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-bar.scrolled {
  background: rgba(11, 15, 26, 0.85);
}
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}
.logo {
  font-size: 28px;
  color: #2d3748;
  margin-bottom: 8px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: #fff;
  padding: 14px 32px;
  border-radius: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}
.nav-links a:hover {
  border: 1px solid #6c5ce7;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(111, 124, 255, 0.4);
}
/*buton teklif al*/
.btnpri {
  position: relative;
  text-decoration: none;
  background: linear-gradient(90deg, #6f7cff, #8f6bff);
  color: #fff;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.4px;
  z-index: 1;
  margin-left: 20px;
  transition: transform 0.25s ease;
}

.btnpri:hover {
  transform: translateY(-3px) scale(1.03);
}

/* GLOW KATMANI */
.btnpri::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f7cff, #8f6bff);
  filter: blur(28px);
  opacity: 0.6;
  z-index: -1;

  animation: glowPulseDark 2.8s ease-in-out infinite;
}

@keyframes glowPulseDark {
  0% {
    opacity: 0.35;
    filter: blur(22px);
  }
  50% {
    opacity: 0.85;
    filter: blur(40px);
  }
  100% {
    opacity: 0.35;
    filter: blur(22px);
  }
}
/*Nav bar Light mode*/

body.light .nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(230, 245, 255, 0.85); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Logo */
body.light .nav-bar .logo {
  color: #1e3a5f;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Menü linkleri */
body.light .nav-links a {
  color: #1e3a5f;
  font-weight: 500;
  transition: color 0.3s ease;
}

body.light .nav-links a:hover {
  color: #2f80ed;
}

/* Hamburger */
body.light .menu-toggle {
  color: #1e3a5f;
}

/* Teklif Al butonu */
body.light .btnpri {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #ffffff;

  box-shadow:
    0 10px 25px rgba(79, 172, 254, 0.45),
    0 0 18px rgba(0, 242, 254, 0.35);

  animation: glowPulseLight 4s ease-in-out infinite;
}

body.light .btnpri:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 18px 40px rgba(79, 172, 254, 0.6),
    0 0 45px rgba(0, 242, 254, 0.55);
}

@keyframes glowPulseLight {
  0%, 100% {
    box-shadow:
      0 10px 25px rgba(79, 172, 254, 0.45),
      0 0 18px rgba(0, 242, 254, 0.35);
  }
  50% {
    box-shadow:
      0 16px 40px rgba(0, 242, 254, 0.6),
      0 0 50px rgba(79, 172, 254, 0.55);
  }
}

/* Tema butonu */
.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.4s ease;
}
.theme-toggle .icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: all 0.4s ease;
}

/* Ay */
.theme-toggle .moon {
  border-radius: 50%;
  box-shadow: inset -6px -6px 0 0 #fff;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Güneş */
.theme-toggle .sun {
  background: #ffd43b;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}
body.light .theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 18px rgba(79, 172, 254, 0.45);
}

body.light .theme-toggle .moon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

body.light .theme-toggle .sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
body:not(.light) .theme-toggle {
  box-shadow: 0 0 20px rgba(143, 107, 255, 0.45);
}

body:not(.light) .theme-toggle:hover {
  transform: rotate(15deg) scale(1.08);
}

/*Responsive*/
@media (max-width: 965px) {

  .nav-bar {
    padding: 14px 18px;
    align-items: center;
    position: relative;
    z-index: 1000;
  }

  /* SOL */
  .nav-left {
    flex: 1;
  }

  /* HAMBURGER */
  .menu-toggle {
    display: block;
    color: white;
    position: relative;
    z-index: 10001;
  }

  /* ORTA MENÜ PANEL */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    margin: 0;

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    padding: 20px 0;

    background: linear-gradient(135deg, #0b0b2b, #090a0d);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

    z-index: 10000;
  }

  body.light .nav-links {
    background: rgba(230, 245, 255, 0.95);
    backdrop-filter: blur(12px);
  }

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

  /* SAĞ */
  .nav-right {
    gap: 10px;
    position: static;
  }

  /* MOBİLDE TEKLİF YOK */
  .nav-right .btnpri {
    display: none;
  }

  /* LINKLER */
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  /* THEME BUTTON FLOAT */
  .theme-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;

    width: 54px;
    height: 54px;
    border-radius: 50%;

    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);

    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.45),
      0 0 30px rgba(111, 124, 255, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.light .theme-toggle {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
      0 12px 30px rgba(79, 172, 254, 0.45),
      0 0 35px rgba(0, 242, 254, 0.55);
  }

  .theme-toggle:active {
    transform: scale(0.9);
  }
}
@media (max-width: 600px) {
  .nav-bar {
    padding: 14px 18px;
    align-items: center;
    position:relative ;
    z-index: 1000;
  }

  /* SOL ALAN */
  .nav-left {
    flex: 1;
  }

  /* ORTA MENÜ → PANEL */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    margin: 0;

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    padding: 20px 0;

    background: linear-gradient(135deg, #0b0b2b, #090a0d);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  body.light .nav-links {
    background: rgba(230, 245, 255, 0.95);
    backdrop-filter: blur(12px);
  }

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

  /* SAĞ ALAN */
  .nav-right {
    gap: 10px;
    position:static ;
  }

  /* TEKLİF BUTONU MOBİLDE YOK */
  .nav-right .btnpri {
    display: none;
  }

  /* LINKLER */
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

    .theme-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;

    width: 54px;
    height: 54px;
    border-radius: 50%;

    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);

    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.45),
      0 0 30px rgba(111, 124, 255, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Light mode */
  body.light .theme-toggle {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
      0 12px 30px rgba(79, 172, 254, 0.45),
      0 0 35px rgba(0, 242, 254, 0.55);
  }

  /* Navbar içindeki hizayı bozmasın */
  .nav-right .theme-toggle {
    margin: 0;
  }

  /* Dokunma hissi */
  .theme-toggle:active {
    transform: scale(0.9);
  }
  
  .menu-toggle {
  position: relative;
  z-index: 10001;
}
 .nav-links {
    z-index: 10000;
  }
}