/* 
  KRAL HALI YIKAMA AFYON - Clean Mobile Action Bar & Floating System
  Pure HTML5, CSS3 & JavaScript Standard
*/

:root {
  --background: #ffffff;
  --background-elevated: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --surface-accent: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-gold: #c59b27;
  --accent-light: #e0f2fe;
  --whatsapp-green: #25d366;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', 'Inter Tight', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-content-width: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background-color: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Motion & Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Top Notification Bar */
.top-bar {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #e0f2fe;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: #38bdf8;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

header.scrolled {
  padding: 0.55rem 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.25s ease;
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

#mobile-menu-btn {
  display: none;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

/* Typography Standards */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.tech-label {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 800;
}

/* Page Banner */
.page-banner {
  padding-top: 40px;
  padding-bottom: 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* Cards & Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.glass-card, .service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card:hover, .service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.6;
}

.card-footer-btn {
  margin-top: auto;
  width: 100%;
}

/* Stats Counter Badge */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
  transition: all 0.3s ease;
  min-height: 44px;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--surface-strong);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Form Fields Styling */
input, select, textarea {
  background-color: var(--surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 16px !important;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 99;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 30px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}

.online-pulse {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Container */
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--surface);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-body {
  display: none;
  padding: 0 1.25rem 1.1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Footer Developer Credit */
.dev-credit-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

/* Mobile Fixed Action Bar - 2 Buttons Grid (Hemen Ara & Instagram) */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-strong);
  padding: 0.65rem 0.85rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
}

.mobile-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 65px;
  }

  .nav-links, .header-actions {
    display: none !important;
  }

  #mobile-menu-btn {
    display: block !important;
  }

  .brand-logo-img {
    height: 40px;
  }

  .top-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0;
  }

  .mobile-action-bar {
    display: block;
  }

  .floating-whatsapp {
    bottom: 75px;
    right: 15px;
    padding: 0.65rem 1.1rem;
    font-size: 0.82rem;
  }
}
