/* ==========================================================================
   BuTasarım - Kurumsal Web Sitesi & Yönetim Paneli Tasarım Sistemi
   ========================================================================== */

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --accent: #0EA5E9;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --dark-bg: #090D16;
  --dark-card: #0F172A;
  --dark-surface: #1E293B;
  --dark-border: rgba(255, 255, 255, 0.08);
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.16);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--slate-800);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font-family: inherit;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--slate-500); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-cyan {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  border-color: rgba(14, 165, 233, 0.25);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #DC2626;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.topbar {
  background: #050912;
  color: var(--slate-400);
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.topbar-rates {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f131a;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  cursor: default;
}

.rate-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.rate-label {
  color: var(--slate-300);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rate-val {
  color: #10B981;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.rate-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
  animation: pulseRate 2s infinite ease-in-out;
}

@keyframes pulseRate {
  0% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.35; transform: scale(0.85); }
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.topbar-center span,
.topbar-right span,
.topbar-socials span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
  font-size: 0.82rem;
}

.topbar-center a,
.topbar-right a,
.topbar-socials a {
  color: #CBD5E1;
  font-weight: 500;
  transition: color 0.2s ease;
}

.topbar-right,
.topbar-socials {
  display: flex;
  align-items: center;
  justify-self: end;
}

.topbar a:hover {
  color: var(--white);
}

@media (max-width: 992px) {
  .topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .topbar-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  display: flex;
  align-items: center;
}

.logo-title span {
  color: var(--primary);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-top: -3px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-link {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--slate-100);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-800);
  padding: 8px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 20px 24px 30px;
  box-shadow: var(--shadow-xl);
  z-index: 999;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav .nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */

.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
              #0B0F19;
  color: var(--white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--white);
  margin: 18px 0;
  line-height: 1.15;
}

.hero-content p {
  color: #CBD5E1;
  font-size: 1.2rem;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111827;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-media-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-media-card:hover img {
  transform: scale(1.03);
}

.hero-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: rgba(79, 70, 229, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 0 35px rgba(79, 70, 229, 0.7);
  cursor: pointer;
  transition: var(--transition);
}

.hero-play-badge:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--primary);
}

/* Standard Page Header */
.page-header-section {
  background: linear-gradient(180deg, #0B0F19 0%, #111827 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header-section h1 {
  color: var(--white);
  margin: 16px 0 12px;
}

.page-header-section p {
  color: var(--slate-300);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   Video Player Box
   ========================================================================== */

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid var(--slate-200);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-top: 6px;
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  margin-bottom: 54px;
}

.section-header p {
  color: var(--slate-600);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 12px auto 0;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-card:hover .service-link {
  gap: 12px;
}

/* Features List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--slate-700);
}

.feature-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Projects / Portfolio Cards
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-img-box {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.05);
}

.project-content {
  padding: 24px;
}

.project-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.project-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.project-content p {
  color: var(--slate-600);
  font-size: 0.92rem;
}

/* ==========================================================================
   Blog Cards & Single Blog View
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-img-box {
  height: 210px;
  overflow: hidden;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-box img {
  transform: scale(1.05);
}

.blog-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-content p {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-single-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--slate-200);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--slate-700);
}

.blog-single-content h2,
.blog-single-content h3 {
  margin: 32px 0 16px;
  color: var(--slate-900);
}

.blog-single-content p {
  margin-bottom: 20px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  background: none;
  border: none;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--slate-600);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 24px;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.contact-info-card {
  background: #0B0F19;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-800);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: #CBD5E1;
  font-size: 1.18rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #060911;
  color: var(--slate-400);
  padding: 80px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-links .nav-link {
  color: var(--slate-400) !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links .nav-link:hover {
  color: #FFFFFF !important;
  background: transparent !important;
  transform: translateX(4px);
}

.footer-links .nav-link.active {
  background: transparent !important;
  color: var(--slate-300) !important;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Admin Panel Specific Styles
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F1F5F9;
}

.admin-sidebar {
  width: 270px;
  background: #090D16;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav {
  list-style: none;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #94A3B8;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(79, 70, 229, 0.18);
  color: var(--white);
}

.admin-nav a.active {
  background: var(--primary);
  color: var(--white);
}

.admin-sidebar-footer {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--white);
  height: 70px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.admin-content {
  padding: 32px;
  flex-grow: 1;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 28px;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--slate-500);
  cursor: pointer;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--primary);
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Media Library Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.media-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.media-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.media-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--slate-100);
}

.media-info {
  padding: 10px 12px;
  font-size: 0.78rem;
}

.media-info .name {
  font-weight: 600;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
}

/* Toast / Alert */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Responsive Utilities & Breakpoints
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .topbar {
    display: none;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
  }
  .form-control {
    font-size: 16px; /* iOS Safari auto-zoom prevention */
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 55px 0;
  }
  .page-header-section {
    padding: 55px 0 65px;
  }
  .services-grid, .projects-grid, .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .service-card {
    padding: 24px 20px;
  }
  .cta-banner {
    padding: 36px 20px;
  }
  .contact-info-card, .contact-card {
    padding: 24px 20px;
  }
}
