/* ============================================
   Abu Talib Studio - Portfolio Styles
   Modern, clean, conversion-focused
   ============================================ */

/* CSS Variables - Light (default) */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #5c5c7a;
  --text-muted: #8b8b9e;
  --accent: #0057FF;
  --accent-hover: #0046cc;
  --accent-light: rgba(0, 87, 255, 0.08);
  --border: #e8e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 87, 255, 0.12);
  --gradient-hero: linear-gradient(135deg, #f8f9fc 0%, #eef1f9 50%, #e8ecf7 100%);
  --gradient-accent: linear-gradient(135deg, #0057FF 0%, #0046cc 100%);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1e1e32;
  --text-primary: #f0f0f5;
  --text-secondary: #b8b8c8;
  --text-muted: #7a7a8e;
  --accent: #3d7aff;
  --accent-hover: #5c8fff;
  --accent-light: rgba(61, 122, 255, 0.15);
  --border: #2d2d42;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(61, 122, 255, 0.2);
  --gradient-hero: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #162038 100%);
  --gradient-accent: linear-gradient(135deg, #3d7aff 0%, #5c8fff 100%);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Accessibility: focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: hidden;
}

section {
  padding: 5rem 0;
}

/* ========== Header & Nav ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 15, 26, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 87, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 87, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  animation: fadeUp 0.8s ease;
}

.hero-content .subheadline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-trust {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-buttons .btn {
  min-width: 140px;
}

.hero-buttons .btn-whatsapp {
  min-width: 160px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Services Cards (Home) ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.service-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
  margin-top: 0.5rem;
}

.service-card-link:hover {
  color: var(--accent-hover);
}

.section-pad {
  padding: 5rem 1.5rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Why Choose Me */
.why-choose {
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.why-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Featured Work */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.featured-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.featured-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.featured-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.featured-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.featured-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.featured-card:hover .featured-link {
  color: var(--accent-hover);
}

/* CTA Final */
.cta-final {
  background: var(--gradient-hero);
  padding: 4rem 0;
}

.cta-final-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final h2 {
  margin-bottom: 0.75rem;
}

.cta-final p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-final-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-final-buttons .btn {
  min-width: 160px;
}

/* Home services grid - 5 cards */
.services-grid-home {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ========== Highlight Strip ========== */
.highlight-strip {
  background: var(--gradient-accent);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.highlight-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.highlight-item {
  font-size: 1.1rem;
  font-weight: 600;
}

.highlight-item span {
  opacity: 0.9;
  font-weight: 500;
}

/* ========== Testimonials ========== */
.testimonials {
  background: var(--bg-secondary);
}

.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  text-align: center;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card .role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== About Page ========== */
.about-hero {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  object-fit: cover;
}

.about-content h1 {
  margin-bottom: 1rem;
}

.about-content .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Skills progress */
.skills-list {
  list-style: none;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-item label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.skill-item .percent {
  color: var(--accent);
  font-size: 0.9rem;
}

.skill-bar {
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
  width: 0;
  transition: width 1s ease-out;
}

.skill-item.visible .skill-fill {
  width: var(--skill-width);
}

/* ========== Portfolio ========== */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card .thumb {
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  overflow: hidden;
}

.portfolio-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .thumb img {
  transform: scale(1.05);
}

.portfolio-card .info {
  padding: 1.5rem;
}

.portfolio-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.portfolio-card .tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 500;
}

.portfolio-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.portfolio-card .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

/* ========== Services Page (Portfolio-style) ========== */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.service-page-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.service-page-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.service-page-card .card-visual {
  aspect-ratio: 16/10;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.service-page-card .card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0.03;
  transition: opacity 0.3s ease;
}

.service-page-card:hover .card-visual::before {
  opacity: 0.08;
}

.service-page-card .card-visual .icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-page-card:hover .card-visual .icon-wrap {
  transform: scale(1.08);
  background: rgba(0, 87, 255, 0.15);
}

.service-page-card .card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-page-card .card-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.service-page-card .card-body .tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 500;
}

.service-page-card .card-body h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.service-page-card .card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-page-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.service-page-card .card-actions .btn {
  flex: 1;
  min-width: 120px;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
}

/* WhatsApp button */
.btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: #20bd5a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Services CTA strip */
.services-cta-strip {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 3rem;
  text-align: center;
  border: 1px solid var(--border);
}

.services-cta-strip h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.35rem;
}

.services-cta-strip p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.services-cta-strip .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.services-cta-strip .cta-buttons .btn {
  min-width: 160px;
}

/* Floating WhatsApp button (optional - used on contact/site-wide) */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* ========== Blog ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card .thumb {
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .content {
  padding: 1.5rem;
}

.blog-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.blog-card-title a {
  color: var(--text-primary);
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.blog-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.blog-read-more:hover {
  color: var(--accent-hover);
}

.blog-section {
  padding-top: 0;
  padding-bottom: 4rem;
}

/* Blog post single page */
.blog-post-header {
  padding: 120px 0 2rem;
  background: var(--gradient-hero);
}

.blog-back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-back:hover {
  color: var(--accent);
}

.blog-post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-post-header h1 {
  margin-bottom: 0.75rem;
  max-width: 720px;
}

.blog-post-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

.blog-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.blog-post-body h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.blog-post-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ========== Contact ========== */
.contact-section {
  padding-top: 120px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h1 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-details-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  min-height: 52px;
}

.contact-detail-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.contact-detail-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 100px;
}

.contact-detail-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  word-break: break-all;
}

.contact-detail-item:hover .contact-detail-value {
  color: var(--accent-hover);
}

@media (max-width: 480px) {
  .contact-detail-item {
    flex-wrap: wrap;
  }
  .contact-detail-label {
    min-width: 100%;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-wrap .btn {
  width: 100%;
  padding: 1rem;
}

/* ========== Page Header (inner pages) ========== */
.page-header {
  padding: 120px 0 3rem;
  background: var(--gradient-hero);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .about-intro,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    min-height: 44px;
  }

  .nav-links .theme-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
  }

  .highlight-strip-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .cta-final-buttons {
    flex-direction: column;
  }

  .cta-final-buttons .btn {
    width: 100%;
    min-height: 48px;
  }

  .section-pad {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .services-grid-home {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .service-card,
  .service-page-card .card-body {
    padding: 1.5rem;
  }

  .services-page-grid {
    grid-template-columns: 1fr;
  }

  .fab-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    min-width: 48px;
    min-height: 48px;
  }

  .form-group input,
  .form-group textarea {
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 16px; /* prevents zoom on iOS */
  }

  .form-group textarea {
    min-height: 120px;
  }

  .contact-form-wrap .btn {
    min-height: 48px;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }

  .page-header {
    padding: 100px 0 2rem;
  }

  .cta-final {
    padding: 3rem 0;
  }

  .blog-post-header {
    padding: 100px 0 1.5rem;
  }

  .blog-post-body {
    padding: 2rem 1rem 3rem;
  }

  .blog-post-body h2 {
    font-size: 1.2rem;
  }

  .blog-post-cta {
    flex-direction: column;
  }

  .blog-post-cta .btn {
    width: 100%;
  }
}
