/* ═══════════════════════════════════════════════════════════════
   PHOTOGRAPHY PORTFOLIO – MAIN STYLESHEET
   Design: Dark/light with sky-blue primary, slate dark palette
   Fonts: Inter + Playfair Display
═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts fallback (loaded in <head>) ───────────────── */
:root {
  /* Primary (sky blue) */
  --primary-50:  #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  /* Dark (slate) */
  --dark-50:  #f8fafc;
  --dark-100: #f1f5f9;
  --dark-200: #e2e8f0;
  --dark-300: #cbd5e1;
  --dark-400: #94a3b8;
  --dark-500: #64748b;
  --dark-600: #475569;
  --dark-700: #334155;
  --dark-800: #1e293b;
  --dark-900: #0f172a;

  /* Semantic tokens (dark mode default) */
  --bg:        #0f172a;
  --bg-alt:    #1e293b;
  --bg-card:   #1e293b;
  --text:      #f1f5f9;
  --text-muted: #94a3b8;
  --border:    #334155;
  --shadow:    rgba(0,0,0,0.3);
  --shadow-lg: rgba(0,0,0,0.5);
  --nav-bg:    rgba(15,23,42,0.9);

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-py: 6rem;
  --container:  1200px;
  --radius:     0.75rem;
  --radius-sm:  0.5rem;
  --radius-lg:  1.25rem;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* ── Dark mode (always active) ───────────────────────────────── */
[data-theme="dark"], [data-theme="light"] {
  --bg:        var(--dark-900);
  --bg-alt:    var(--dark-800);
  --bg-card:   var(--dark-800);
  --text:      #f1f5f9;
  --text-muted: #94a3b8;
  --border:    var(--dark-700);
  --shadow:    rgba(0,0,0,0.3);
  --shadow-lg: rgba(0,0,0,0.5);
  --nav-bg:    rgba(15,23,42,0.9);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--primary-500); color: #fff; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--dark-400); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-500); }

/* ── Container ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ──────────────────────────────────────────────── */
.heading-1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; }
.heading-2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.15; }
.heading-3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { margin-bottom: 1rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.125rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.9375rem; border: 2px solid transparent;
  transition: all var(--transition); cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-600); color: #fff; border-color: var(--primary-600); }
.btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(2,132,199,0.3); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: #fff; color: var(--dark-900); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #22c55e; color: #fff; border-color: #22c55e; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 8px 24px var(--shadow-lg); transform: translateY(-2px); }

/* ── Forms ───────────────────────────────────────────────────── */
.input {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font-size: 0.9375rem; transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.input::placeholder { color: var(--text-muted); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
textarea.input { resize: vertical; min-height: 120px; }

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-alt); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
  animation: slideDown 0.5s ease-out;
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px var(--shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 5rem;
}
.nav-logo {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: #fff; transition: color var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.85);
  transition: color var(--transition); position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary-400); transform: scaleX(0);
  transition: transform var(--transition); transform-origin: left;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--primary-400); }
.navbar.scrolled .nav-link { color: var(--text-muted); }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--primary-600); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Theme toggle */
.theme-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%; width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition); color: #fff;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); }
.navbar.scrolled .theme-toggle { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .theme-icon-sun { display: inline; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: inline; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all var(--transition);
}
.navbar.scrolled .nav-hamburger span { background: var(--text); }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; bottom: 0; width: min(320px, 100%);
    background: var(--bg-card); flex-direction: column; align-items: flex-start;
    padding: 5rem 2rem 2rem; gap: 0.5rem; box-shadow: -8px 0 32px var(--shadow-lg);
    transition: right var(--transition-slow);
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.125rem; color: var(--text); padding: 0.75rem 1rem; width: 100%; border-radius: var(--radius-sm); }
  .nav-link:hover, .nav-link.active { background: var(--primary-50); color: var(--primary-700); }
  [data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active { background: rgba(14,165,233,0.1); color: var(--primary-400); }
  .nav-link::after { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark-900) 0%, #0a1628 50%, var(--dark-900) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(14,165,233,0.08) 0%, transparent 60%);
}
.hero-bg-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.3; transition: opacity 1s ease;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: 2rem 1rem; animation: heroFadeIn 1s ease-out;
}
.hero-badge {
  display: inline-block; color: var(--primary-400); font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.875rem;
  margin-bottom: 1.5rem; animation: fadeInUp 0.8s 0.2s both;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.05; margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.4s both;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.75);
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
  animation: fadeInUp 0.8s 0.6s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; animation: fadeInUp 0.8s 0.8s both; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-wheel {
  width: 1.5rem; height: 2.5rem; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 999px; display: flex; align-items: flex-start; justify-content: center; padding: 0.3rem;
}
.hero-scroll-dot { width: 4px; height: 8px; background: #fff; border-radius: 999px; }

/* ══════════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem;
}
.stat-item { text-align: center; }
.stat-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--primary-100); color: var(--primary-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.75rem;
}
[data-theme="dark"] .stat-icon { background: rgba(14,165,233,0.15); color: var(--primary-400); }
.stat-value { font-size: 2.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.stat-label { color: var(--text-muted); font-size: 0.9375rem; }

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO / GALLERY GRIDS
══════════════════════════════════════════════════════════════ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 1.75rem; }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Portfolio card */
.portfolio-item {
  display: block; border-radius: var(--radius); overflow: hidden;
  position: relative; aspect-ratio: 4/3; background: var(--bg-alt);
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  opacity: 0; transition: opacity var(--transition); display: flex; align-items: flex-end; padding: 1.5rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-content { color: #fff; transform: translateY(8px); transition: transform var(--transition); }
.portfolio-item:hover .portfolio-overlay-content { transform: translateY(0); }
.portfolio-overlay-content h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.portfolio-overlay-content p { font-size: 0.875rem; opacity: 0.8; }

/* Masonry */
.masonry { column-count: 1; column-gap: 1.25rem; }
@media (min-width: 640px)  { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery-thumb { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; }
.gallery-thumb img { width: 100%; height: auto; transition: transform 0.5s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  opacity: 0; transition: opacity var(--transition); display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-thumb:hover .gallery-thumb-overlay { opacity: 1; }
.gallery-thumb-overlay h3 { color: #fff; font-size: 0.9375rem; font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap { max-width: 90vw; max-height: 85vh; position: relative; }
.lightbox-img-wrap img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption { text-align: center; color: #fff; margin-top: 1rem; }
.lightbox-caption h3 { font-size: 1.125rem; font-weight: 600; }
.lightbox-caption p { font-size: 0.875rem; opacity: 0.7; margin-top: 0.25rem; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem; color: #fff; font-size: 2rem;
  background: transparent; border: none; line-height: 1; opacity: 0.7; transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2.5rem; background: transparent; border: none; line-height: 1;
  opacity: 0.7; transition: opacity var(--transition); padding: 0 1rem;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   FILTER TABS
══════════════════════════════════════════════════════════════ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-tab {
  padding: 0.5rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500;
  font-size: 0.9rem; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--primary-400); color: var(--primary-600); }
.filter-tab.active { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.search-bar { position: relative; }
.search-bar input { padding-left: 2.5rem; }
.search-bar .search-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem; pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER (sub-pages)
══════════════════════════════════════════════════════════════ */
.page-header {
  padding: 8rem 0 4rem; background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  text-align: center;
}
[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.125rem; }
.page-filters { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* ══════════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════════ */
.service-card { border-radius: var(--radius); overflow: hidden; }
.service-img { aspect-ratio: 16/9; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1.75rem; }
.service-title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-desc { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.7; }
.service-features { margin-bottom: 1.5rem; }
.service-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.service-features li::before { content: '✓'; color: var(--primary-600); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.service-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.service-price-label { font-size: 0.8rem; color: var(--text-muted); }
.service-price-value { font-size: 1.5rem; font-weight: 700; color: var(--primary-600); }
.service-duration-label { font-size: 0.8rem; color: var(--text-muted); text-align: right; }
.service-duration-value { font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════════ */
.testimonial-card { padding: 2rem; }
.testimonial-stars { color: #facc15; font-size: 1.125rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--text-muted); font-style: italic; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  text-align: center; color: #fff;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { font-size: 1.125rem; opacity: 0.9; max-width: 560px; margin: 0 auto 2rem; }

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.contact-info-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  background: var(--primary-100); color: var(--primary-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.25rem;
}
[data-theme="dark"] .contact-info-icon { background: rgba(14,165,233,0.15); color: var(--primary-400); }
.contact-info-label { font-weight: 600; margin-bottom: 0.25rem; }
.contact-info-value { color: var(--text-muted); font-size: 0.9375rem; }
.contact-info-value a { color: inherit; transition: color var(--transition); }
.contact-info-value a:hover { color: var(--primary-600); }
.contact-hours { background: var(--primary-50); border-radius: var(--radius); padding: 1.25rem; margin-top: 2rem; }
[data-theme="dark"] .contact-hours { background: rgba(14,165,233,0.08); }
.contact-hours h4 { font-weight: 600; margin-bottom: 0.5rem; }
.contact-hours p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
[data-theme="dark"] .alert-success { background: rgba(34,197,94,0.1); color: #4ade80; border-color: #16a34a; }
[data-theme="dark"] .alert-error { background: rgba(239,68,68,0.1); color: #f87171; border-color: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   BLOG
══════════════════════════════════════════════════════════════ */
.blog-card { border-radius: var(--radius); overflow: hidden; }
.blog-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-meta .badge { background: var(--primary-100); color: var(--primary-700); padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600; }
[data-theme="dark"] .blog-meta .badge { background: rgba(14,165,233,0.15); color: var(--primary-400); }
.blog-title { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.75rem; line-height: 1.3; }
.blog-title a:hover { color: var(--primary-600); }
.blog-excerpt { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; }
.blog-read-more { color: var(--primary-600); font-weight: 600; font-size: 0.9rem; transition: gap var(--transition); display: inline-flex; align-items: center; gap: 0.3rem; }
.blog-read-more:hover { gap: 0.6rem; }

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-img-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination button {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-weight: 500;
  transition: all var(--transition); cursor: pointer;
}
.pagination button:hover { border-color: var(--primary-400); color: var(--primary-600); }
.pagination button.active { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-text { padding: 0 0.75rem; color: var(--text-muted); font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; font-weight: 600; font-size: 1rem; background: transparent;
  border: none; color: var(--text); text-align: left; cursor: pointer; gap: 1rem;
}
.faq-arrow { flex-shrink: 0; transition: transform var(--transition); font-size: 0.875rem; color: var(--primary-600); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; padding-bottom: 1.25rem; }

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO DETAIL
══════════════════════════════════════════════════════════════ */
.detail-hero { padding-top: 6rem; }
.detail-hero img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--radius); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; margin-top: 3rem; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-meta-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.detail-meta-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.detail-meta-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.detail-meta-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.25rem; font-weight: 600; }
.detail-meta-value { font-weight: 500; }
.detail-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.detail-images img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: transform var(--transition); }
.detail-images img:hover { transform: scale(1.03); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer { background: var(--dark-900); color: #94a3b8; padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-serif); font-size: 1.75rem; color: #fff; margin-bottom: 1rem; }
.footer-tagline { line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.9375rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link {
  width: 2.5rem; height: 2.5rem; background: var(--dark-800); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary-600); color: #fff; transform: translateY(-2px); }
.social-link svg { width: 1.125rem; height: 1.125rem; }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { transition: color var(--transition); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--primary-400); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.9375rem; }
.footer-contact svg { width: 1.125rem; height: 1.125rem; color: var(--primary-400); flex-shrink: 0; margin-top: 2px; }
.footer-contact a:hover { color: var(--primary-400); }
.footer-bottom {
  border-top: 1px solid var(--dark-800); padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.875rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--primary-400); }

/* ══════════════════════════════════════════════════════════════
   LOADING
══════════════════════════════════════════════════════════════ */
.loading-spinner {
  width: 3rem; height: 3rem; border: 3px solid var(--border);
  border-top-color: var(--primary-600); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 3rem auto;
}
.loading-center { text-align: center; padding: 4rem 1rem; }
.loading-center p { color: var(--text-muted); margin-top: 1rem; }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes slideDown  { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Scroll-triggered animations */
.animate-on-scroll { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════════════════ */
.not-found { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.not-found-code { font-size: 8rem; font-weight: 700; color: var(--primary-100); line-height: 1; margin-bottom: 1rem; }
[data-theme="dark"] .not-found-code { color: rgba(14,165,233,0.15); }
.not-found h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; }
.not-found p { color: var(--text-muted); margin-bottom: 2rem; }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-auto { margin-top: auto; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
