@import url('https://fonts.cdnfonts.com/css/satoshi');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* Global font tokens used across every page */
:root {
  --font-heading: 'Rubik', 'Satoshi', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-ui: 'Satoshi', 'DM Sans', 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: #0f172a;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

p, li, a, button, input, textarea {
  font-family: var(--font-body);
}

.ui-text {
  font-family: var(--font-ui);
  letter-spacing: -0.01em;
}

 

/* ========================================================================
   # NAVBAR (ANA MENÜ ALANI)
   - Masaüstü: ortalanmış nav, hover ile mega menü
   - Mobil: hamburger, dokun-tık ile mega menü
   ======================================================================== */

/* --- Navbar dış sarma --- */
.navbar {
  position: absolute;
  top: 0;
  left: 50%;
  margin-top: 20px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar.is-sticky {
  position: fixed;
  top: 12px;
  margin-top: 0;
  animation: navSlideDown 0.25s ease;
  z-index: 1200;
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* --- Navbar container --- */
.nav-container {
  width: 70%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  padding: 8px 22px;
  margin: 0 5px;
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.navbar.is-sticky .nav-container {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
}
.logo-icon {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}



/* ========================================================================
   # NAVIGATION LINKS
   ======================================================================== */

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

/* Menü item */
.nav-links a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #1f2937;
  padding: 9px 16px;
  border-radius: 999px;
  transition: 0.25s ease;
  font-family: var(--font-ui);
  letter-spacing: -0.01em;
}

/* Hover */
.nav-links a:hover {
  color: #0f172a;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

/* Dropdown trigger */
.dropdown {
  position: static; /* mega menü nav-container ortasında çıksın diye üst seviyeye göre konumlanır */
  pointer-events: auto;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  height: 3px;
  width: 100%;
  background: #0f172a;
  border-radius: 4px;
  transition: 0.3s ease;
}
.nav-toggle { margin-left: auto; }
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 1140px) and (min-width: 1025px) {
  .nav-container { width: 90%; gap: 10px; padding: 6px 12px; }
  .nav-links { gap: 12px; }
  .nav-links a { padding: 8px 10px; font-size: 15px; }
  .logo-icon { height: 36px; }
  .nav-right { gap: 8px; }
  .contact-btn { padding: 6px 12px; }
}

@media (max-width: 1024px) {
  /* Mobilde hover açılmasın; açık dropdown hover'da kapanmasın */
  .dropdown:not(.open):hover .mega-menu,
  .navbar.nav-open .dropdown:not(.open):hover .mega-menu {
    display: none !important;
  }
  .navbar.nav-open .dropdown.open:hover .mega-menu {
    display: block !important;
  }

  .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 8px 12px;
    box-sizing: border-box;
    height: 64px;
  }
  .nav-toggle { display: flex; margin-left: auto; order: 0; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: #ffffff;
    padding: 12px 12px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    gap: 6px;
    z-index: 1200;
    margin-top: 0;
    border-radius: 16px 16px 0 0;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .navbar.nav-open .nav-links { display: flex; }
  .nav-links li { flex: 1 1 100%; width: 100%; }
  .nav-links a {
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding: 12px 12px;
    border-radius: 0;
    color: #0f172a;
    font-weight: 600;
    display: block;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .nav-links .dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8fb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 14px;
  }
  .nav-links .dropdown > a::after {
    content: "›";
    font-size: 16px;
    color: #6b7280;
    margin-left: 12px;
    transform: rotate(0deg);
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .navbar.nav-open .dropdown.open > a::after {
    transform: rotate(90deg);
    color: #0f172a;
  }
  .nav-links a[href*="index.html"],
  .nav-links a[href*="hakkimizda.html"] {
    padding: 12px 12px;
    border-radius: 8px;
    background: #f6f7fb;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }
  .dropdown .mega-menu { display: none; }
  .navbar.nav-open .dropdown .mega-menu { display: none; }
  .navbar.nav-open .dropdown.open .mega-menu {
    display: block;
    position: static;
    transform: none;
    width: 92%;
    max-width: 420px;
    margin: 6px auto 0;
    box-shadow: none;
    padding: 0;
    background: #ffffff;
  }
  .mega-top { grid-template-columns: 1fr; gap: 10px; }
  .mega-section a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 10px;
    margin-bottom: 0;
    border-radius: 12px;
    background: #f6f7fb;
    gap: 10px;
  }
  .mega-section a::after {
    content: "›";
    font-size: 16px;
    color: #9ca3af;
    margin-left: auto;
  }
  .mega-section h3 { margin-bottom: 8px; color: #6b7280; font-size: 13px; text-transform: none; letter-spacing: 0; }
  .mega-section a h4 { margin: 0 0 6px 6px; font-size: 15px; color: #111827; }
  .mega-section a p { margin: 4px 0 0 0; font-size: 12px; color: #6b7280; }
  .mega-banner { display: none; }
  #megaMenuProducts .mega-top,
  #megaMenuServices .mega-top { grid-template-columns: 1fr; gap: 10px; }
  #megaMenuProducts .mega-section a,
  #megaMenuServices .mega-section a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 10px;
    border-radius: 12px;
    background: #f6f7fb;
  }
  #megaMenuProducts .mega-section h3,
  #megaMenuServices .mega-section h3 { margin-bottom: 8px; }
  .nav-right { display: none; }
  .contact-btn { display: none !important; }
  .nav-links .nav-contact-mobile { display: none; }
  .nav-links .nav-contact-mobile a {
    background: #2563eb;
    color: #fff;
    border-radius: 14px;
  }
}

/* Masaüstü için mobil contact linkini gizle */
.nav-links .nav-contact-mobile { display: none; }

@media (max-width: 1024px) {
  /* Mobilde contact linkini göster */
  .nav-links .nav-contact-mobile { display: block; }
}

@media (max-width: 640px) {
  .nav-links { gap: 6px; }
  .nav-links li { flex: 1 1 100%; }
  .nav-links a { padding: 10px; border-radius: 12px; }
  .mega-menu { padding: 14px 12px; }
  .mega-top { grid-template-columns: 1fr; }
  .logo-icon { height: 34px; }
}

@media (max-width: 480px) {
  .nav-links { padding: 10px 12px 18px; }
  .nav-links a { padding: 10px 10px; font-size: 14px; line-height: 1.32; }
  .nav-links .dropdown > a { padding: 12px 12px; }
}



/* ========================================================================
   # MEGA MENU
   ======================================================================== */

.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 40px));
  padding: 34px 40px;
  border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.08), rgba(255,255,255,0) 55%), #151417;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  display: none;
  margin-top: 0;
  font-family: var(--font-ui);
  color: #e5e7eb;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
}







/* Open behavior */
.dropdown:hover .mega-menu,
.mega-menu:hover {
  display: grid;
  pointer-events: auto;
}

/* Grid layout */
.mega-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0;
  margin: 0;
}

@media (min-width: 1025px) {
  .mega-top {
    padding-right: 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  .mega-section {
    padding: 0 28px;
  }

  .mega-section:first-child {
    padding-left: 0;
    padding-right: 28px;
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  .mega-section:last-child {
    padding-left: 28px;
  }

  .mega-banner {
    padding-left: 32px;
  }
}



/* ========================================================================
   # MEGA MENU - CATEGORY HEADERS
   ======================================================================== */

.mega-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #f3f4f6;
  text-transform: none;
  padding-bottom: 0;
  margin-bottom: 16px;
  border-bottom: none;
  transition: color 0.25s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

/* Hover */
.mega-section h3:hover {
  color: #ffffff;
  letter-spacing: 0.02em;
  border-bottom: none;
  transform: none;
}



/* ========================================================================
   # MEGA MENU - CHILD ITEMS
   ======================================================================== */

.mega-section a {
  display: block;
  padding: 6px 0;
  padding-left: 3px;
  margin-bottom: 10px;
  border-radius: 10px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  font-weight: 400;
  box-shadow: none;
}

.mega-section a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
  box-shadow: none;
}

/* Title */
.mega-section a h4 {
  font-size: 15px;
  font-weight: 600;
  color: #f9fafb;
  margin: 0 0 6px 6px;
  font-family: var(--font-heading);
}

/* Description */
.mega-section a p {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.45;
  font-family: var(--font-ui);
  font-weight: 400;
}



/* ========================================================================
   # MEGA MENU - BANNER CARD
   ======================================================================== */

.mega-banner {
  background: transparent;
  border-radius: 14px;
  height: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}
.mega-banner img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 34px rgba(0,0,0,0.45);
}
.banner-text {
  font-size: 13px;
  font-weight: 600;
  position: static;
  color: #d1d5db;
  line-height: 1.4;
}

/* ========================================================================
   # NAVBAR → SAĞ TARAF BUTTONLAR
   ======================================================================== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login {
  font-size: 14px;
  cursor: pointer;
  color: #333;
  transition: 0.2s;
}
    
.login:hover {
  color: #000;
}

.contact-btn {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-btn {
  background: #111;
  border-radius: 10px;
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #111;
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

@media (max-width: 1024px) {
  .navbar.is-sticky {
    top: 0;
  }
}
