/* =============================================
   ARSLAN İNŞAAT
   Header Styles — 2026 Premium Design (Light Theme)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --color-bg: #f4f6fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f8;
  --color-border: rgba(0, 46, 108, 0.1);
  --color-border-hover: rgba(0, 46, 108, 0.35);
  --color-navy: #002e6c;
  --color-navy-light: #1a4d99;
  --color-navy-dark: #001d47;
  --color-navy-muted: rgba(0, 46, 108, 0.6);
  --color-white: #ffffff;
  --color-text: #0d1f3c;
  --color-text-muted: #5a6e8a;
  --color-topbar-bg: #002e6c;
  --navbar-height: 96px;
  --topbar-height: 40px;
  --site-logo-height: 56px;
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-navy: 0 0 30px rgba(0,46,108,0.12);
  --shadow-nav: 0 8px 40px rgba(0,46,108,0.12);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  min-height: 100vh;
}

/* ======================================
   HEADER LAYOUT
====================================== */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* ======================================
   TOP BAR
====================================== */
.header-topbar {
  background: var(--color-topbar-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--topbar-height);
  position: relative;
  z-index: 1001;
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.topbar-item svg { width: 13px; height: 13px; color: rgba(255,255,255,0.9); flex-shrink: 0; }
.topbar-item:hover { color: #ffffff; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.social-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  text-decoration: none;
}
.social-btn svg { width: 13px; height: 13px; }
.social-btn:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

/* ======================================
   MAIN NAVBAR
====================================== */
.navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0,46,108,0.15);
  box-shadow: var(--shadow-nav);
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ---- Logo ---- */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition);
}
.logo-img {
  display: block;
  height: var(--site-logo-height);
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
  filter: none;
  transition: filter 0.2s ease;
}

/* Gölge yalnızca ana sayfa slider üzerindeki şeffaf menüde */
body.page-home .main-header .navbar:not(.scrolled) .logo-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

@media (hover: hover) and (pointer: fine) {
  .nav-logo:hover .logo-img {
    transform: translateY(-1px);
  }
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.navbar.scrolled .logo-name {
  color: var(--color-navy);
}
.logo-tagline {
  font-size: 0.68rem;
  color: var(--color-navy-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}

/* ---- Nav Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.navbar.scrolled .nav-link {
  color: var(--color-text-muted);
}
.nav-link:hover, .nav-item.active .nav-link { color: #fff; }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-item.active .nav-link { color: var(--color-navy); }
.nav-indicator {
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-navy), var(--color-navy-light));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link:hover .nav-indicator,
.nav-item.active .nav-indicator { width: calc(100% - 1.5rem); }

/* ---- CTA Button ---- */
.nav-actions { flex-shrink: 0; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,46,108,0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.btn-cta:hover::before { opacity: 1; }
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,46,108,0.4);
}
.btn-cta svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn-cta:hover svg { transform: translateX(3px); }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1030;
}
.hamburger:hover { background: rgba(0,46,108,0.08); }
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span {
  background: var(--color-navy);
}
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 24px; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 24px; }

/* ======================================
   MOBILE MENU
====================================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,60,0.5);
  backdrop-filter: blur(4px);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(380px, 90vw);
  height: 100dvh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 1020;
  display: flex;
  flex-direction: column;
  transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  pointer-events: none;
  visibility: hidden;
}
.mobile-menu.active {
  right: 0;
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.mobile-logo {
  display: flex;
  align-items: center;
}
.mobile-logo .logo-img {
  height: var(--site-logo-height);
  width: auto;
  max-width: min(200px, 68vw);
  object-fit: contain;
}
.mobile-close {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0, 46, 108, 0.08);
  border: 1px solid rgba(0, 46, 108, 0.12);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-close:hover { background: rgba(0, 46, 108, 0.14); color: var(--color-navy-dark); border-color: rgba(0, 46, 108, 0.2); }
.mobile-close svg { width: 18px; height: 18px; }

.mobile-nav-links {
  list-style: none;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.mobile-nav-links li a span {
  font-size: 0.72rem;
  color: var(--color-navy-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 22px;
}
.mobile-nav-links li a:hover {
  color: var(--color-navy);
  background: rgba(0,46,108,0.06);
  border-color: var(--color-border-hover);
  padding-left: 1.75rem;
}

.mobile-menu-footer {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--color-border);
}
.mobile-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.mobile-contact svg { width: 18px; height: 18px; }
.mobile-contact:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,46,108,0.35); }

/* ---- Preloader Logo (header.css yedek — asıl preloader.css) ---- */
.preloader-img {
  height: var(--site-logo-height);
  width: auto;
  max-width: min(200px, 72vw);
  object-fit: contain;
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-link { padding: 0.5rem 0.75rem; font-size: 0.82rem; }
}
@media (max-width: 900px) {
  :root {
    --navbar-height: 80px;
  }
  .logo-img {
    height: var(--site-logo-height);
    max-width: min(180px, 48vw);
  }
  .topbar-left .topbar-item:last-child { display: none; }
}
@media (max-width: 480px) {
  :root {
    --navbar-height: 72px;
  }
  .topbar-inner { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }
  .header-topbar { display: none; }
  .logo-img {
    height: var(--site-logo-height);
    max-width: min(160px, 52vw);
  }

  .mobile-logo .logo-img {
    height: var(--site-logo-height);
  }
}

/* ======================================
   SCROLL PROGRESS BAR
====================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-navy-light));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0,46,108,0.4);
}

/* ======================================
   HERO PLACEHOLDER
====================================== */
.page-hero-placeholder {
  min-height: calc(100vh - var(--navbar-height) - var(--topbar-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,46,108,0.07) 0%, transparent 65%),
              linear-gradient(180deg, #f4f6fb 0%, #eef1f8 100%);
  text-align: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-placeholder::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(0,46,108,0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 4s ease-in-out infinite;
}
.page-hero-placeholder::after {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  border: 1px solid rgba(0,46,108,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 4s ease-in-out infinite 1s;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,46,108,0.08);
  border: 1px solid rgba(0,46,108,0.2);
  border-radius: 100px;
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-navy);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--color-navy-dark);
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.hero-coming-soon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0,46,108,0.04);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}
.hero-coming-soon svg { width: 16px; height: 16px; color: var(--color-navy); }
