/*
Theme Name: Boody
Theme URI: https://boody.dev
Author: Abdelrahman Ezz
Description: Personal portfolio theme – dark, modern, teal-accented.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: boody
Tags: portfolio, blog, dark, modern
*/

/* ================================================
   FONTS
================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=DM+Sans:wght@400;500;600&family=Roboto+Mono:wght@400&display=swap');

/* ================================================
   DESIGN TOKENS
================================================ */
:root {
  --bg:         #060E18;
  --bg-mid:     #0B1929;
  --bg-card:    #0F2235;
  --teal:       #0FD9A0;
  --blue:       #2563EB;
  --white:      #FFFFFF;
  --light:      #F0F6FF;
  --muted:      #7A9BBF;
  --border:     rgba(122,155,191,0.15);

  --font-head:  'Sora', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-mono:  'Roboto Mono', monospace;

  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.3s ease;
  --container:  1200px;
}

/* ================================================
   RESET
================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ================================================
   UTILITIES
================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.section-subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
}

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  outline: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--bg);
}
.btn-primary:hover { background: #0cc490; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--light);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ================================================
   NAV
================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6,14,24,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}
.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(15,217,160,0.3);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.nav-logo-title {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-body);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--bg-card);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-contact {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}
.nav-contact:hover { color: var(--white); }
.nav-hire {
  background: var(--teal);
  color: var(--bg);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}
.nav-hire:hover { background: #0cc490; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  transition: var(--transition);
  border-radius: 2px;
}

/* ================================================
   PAGE WRAPPER
================================================ */
.page-content {
  padding-top: 72px;
}

/* ================================================
   HERO – HOME
================================================ */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15,217,160,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  width: 100%;
}
.hero-content { flex: 1; max-width: 568px; }
.hero-badge { margin-bottom: 20px; }
.hero-name {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-name span { color: var(--teal); }
.hero-desc {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 488px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat-value {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 14px;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  flex-shrink: 0;
}
.hero-photo {
  width: 440px;
  height: 520px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}
.hero-tag {
  position: absolute;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: var(--font-head);
}
.hero-tag-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.hero-tag-sub {
  font-size: 12px;
  color: var(--muted);
}
.hero-tag-1 { bottom: 80px; left: -60px; }
.hero-tag-2 { top: 80px; right: -40px; }

/* ================================================
   TRUSTED BY
================================================ */
.trusted {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trusted-label {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trusted-logo {
  width: 100px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-head);
  transition: var(--transition);
}
.trusted-logo:hover { border-color: var(--teal); color: var(--teal); }
.trusted-logo img { max-width: 70px; max-height: 40px; object-fit: contain; opacity: 0.7; }

/* ================================================
   ABOUT PREVIEW (Home)
================================================ */
.about-preview {
  padding: 100px 0;
}
.about-preview-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}
.about-preview-image {
  flex-shrink: 0;
  width: 448px;
  height: 480px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.about-preview-image img { width: 100%; height: 100%; object-fit: cover; }
.about-preview-content { flex: 1; }
.about-preview-content h2 {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-preview-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-preview-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ================================================
   FEATURED PROJECTS (Home)
================================================ */
.featured-projects {
  padding: 100px 0;
  background: var(--bg-mid);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-badge { justify-content: center; }
.section-header .section-title { font-size: 44px; margin-bottom: 16px; }
.section-header .section-subtitle { margin: 0 auto; text-align: center; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.section-cta { text-align: center; }

/* ================================================
   AVAILABILITY CTA (Home)
================================================ */
.availability {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.availability::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(15,217,160,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15,217,160,0.1);
  border: 1px solid rgba(15,217,160,0.3);
  border-radius: 40px;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 32px;
}
.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.availability h2 {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.availability p { color: var(--muted); font-size: 18px; margin-bottom: 40px; }
.availability-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ================================================
   PORTFOLIO GRID + CARDS
================================================ */
.page-hero {
  padding: 100px 0 60px;
  background: var(--bg-mid);
  text-align: center;
}
.page-hero .section-badge { justify-content: center; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0 20px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(15,217,160,0.08);
}
.portfolio-section { padding: 60px 0 100px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.portfolio-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.card-image-wrap {
  position: relative;
  height: 280px;
  background: var(--bg-mid);
  overflow: hidden;
}
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover .card-image-wrap img { transform: scale(1.05); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,14,24,0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-card:hover .card-overlay { opacity: 1; }
.card-cat {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.card-overlay h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.card-overlay p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  background: rgba(15,217,160,0.1);
  border: 1px solid rgba(15,217,160,0.2);
  border-radius: 4px;
  padding: 3px 8px;
}
.card-footer-bar {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}
.card-footer-bar .card-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.card-footer-bar .card-tech {
  font-size: 13px;
  color: var(--muted);
}
.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-head);
}
.card-live-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--teal);
  font-size: 13px;
  font-family: var(--font-head);
  font-weight: 600;
  transition: var(--transition);
}
.card-live-link:hover { color: var(--white); }

/* Small project cards (home featured) */
.project-card-sm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.project-card-sm:hover { border-color: var(--teal); transform: translateY(-4px); }
.project-card-sm .card-img {
  height: 200px;
  background: var(--bg-mid);
  overflow: hidden;
}
.project-card-sm .card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card-sm .card-body { padding: 20px; }
.project-card-sm .card-cat {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.project-card-sm h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.project-card-sm p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ================================================
   BLOG
================================================ */
.blog-section { padding: 60px 0 100px; }
.featured-post-wrap { margin-bottom: 60px; }
.featured-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 20px;
}
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.featured-post:hover { border-color: var(--teal); }
.featured-post-img {
  height: 440px;
  background: var(--bg-mid);
  overflow: hidden;
}
.featured-post-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-body {
  padding: 48px 40px 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.post-cat-badge {
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #60A5FA;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 40px;
}
.post-date {
  font-size: 14px;
  color: var(--muted);
}
.featured-post-body h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}
.featured-post-body p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.featured-post-cta { display: flex; align-items: center; gap: 16px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.blog-card-img {
  height: 200px;
  background: var(--bg-mid);
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-body .post-meta { margin-bottom: 12px; }
.blog-card-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog-card-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.read-more {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  transition: var(--transition);
}
.read-more:hover { color: var(--white); }

/* ================================================
   ABOUT PAGE
================================================ */
.about-hero {
  padding: 100px 0;
  background: var(--bg-mid);
}
.about-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}
.about-photo {
  flex-shrink: 0;
  width: 560px;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-content { flex: 1; }
.about-content h1 {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.about-content p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin: 32px 0;
}
.about-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.about-stat-card .value {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}
.about-stat-card .label {
  font-size: 13px;
  color: var(--muted);
}
.about-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Education & Experience */
.journey {
  padding: 100px 0;
}
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}
.journey-col h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 44px;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--bg);
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.timeline-place {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Partners */
.partners {
  padding: 80px 0;
  background: var(--bg-mid);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (min-width:769px) {
  .partners-grid { grid-template-columns: repeat(7,1fr); }
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.partner-card:hover { border-color: var(--teal); }
.partner-card img { max-width: 70px; max-height: 50px; object-fit: contain; opacity: 0.6; transition: var(--transition); }
.partner-card:hover img { opacity: 1; }

/* ================================================
   CONTACT PAGE
================================================ */
.contact-section {
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}
.contact-details h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--teal); }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(15,217,160,0.1);
  border: 1px solid rgba(15,217,160,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.contact-item-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 16px;
  color: var(--white);
  font-weight: 500;
}
.social-heading {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 16px;
}
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
  transition: var(--transition);
}
.social-link:hover { border-color: var(--teal); color: var(--white); }
.social-link svg { color: var(--teal); flex-shrink: 0; }
/* Contact Form */
.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  background: rgba(15,34,53,0.8);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-head);
}
.form-msg.success { background: rgba(15,217,160,0.1); border: 1px solid rgba(15,217,160,0.3); color: var(--teal); }
.form-msg.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #F87171; }

/* ================================================
   SINGLE BLOG
================================================ */
.single-hero {
  padding: 80px 0 60px;
  background: var(--bg-mid);
  text-align: center;
}
.single-hero .post-meta { justify-content: center; margin-bottom: 20px; }
.single-hero h1 {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.25;
}
.single-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 48px;
  border: 1px solid var(--border);
}
.single-body-wrap {
  padding: 60px 0 100px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}
.single-content h2,
.single-content h3,
.single-content h4 {
  font-family: var(--font-head);
  color: var(--white);
  margin: 36px 0 16px;
}
.single-content h2 { font-size: 28px; }
.single-content h3 { font-size: 22px; }
.single-content p { margin-bottom: 20px; }
.single-content ul,
.single-content ol { padding-left: 24px; margin-bottom: 20px; }
.single-content li { margin-bottom: 8px; }
.single-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--teal);
}
.single-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--light);
}
.single-content a { color: var(--teal); }
.single-content img { border-radius: var(--radius); margin: 16px 0; }
.single-sidebar { }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-post:last-child { margin-bottom: 0; border: none; padding: 0; }
.sidebar-post-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--bg-mid);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-post-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  transition: var(--transition);
}
.sidebar-post-title:hover { color: var(--teal); }
.sidebar-post-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: var(--transition);
}
.tag-pill:hover { border-color: var(--teal); color: var(--teal); }

/* ================================================
   SINGLE PORTFOLIO
================================================ */
.portfolio-single-hero {
  padding: 100px 0 60px;
  background: var(--bg-mid);
}
.portfolio-single-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}
.portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  transition: var(--transition);
}
.portfolio-back:hover { color: var(--teal); }
.portfolio-single-hero h1 {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 800px;
  line-height: 1.2;
}
.portfolio-hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.portfolio-cat-badge {
  background: rgba(15,217,160,0.1);
  border: 1px solid rgba(15,217,160,0.3);
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 40px;
}
.portfolio-hero-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.portfolio-hero-img-placeholder {
  width: 100%;
  height: 480px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-head);
}
.portfolio-single-body {
  padding: 60px 0 100px;
}
.portfolio-single-body-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}
.portfolio-single-content { }
.portfolio-single-content h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.portfolio-single-content .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}
.portfolio-single-content .entry-content p { margin-bottom: 20px; }
.portfolio-single-content .entry-content h3 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 22px;
  margin: 32px 0 14px;
}
.portfolio-single-content .entry-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.portfolio-single-content .entry-content li { margin-bottom: 8px; }
.portfolio-single-sidebar { }
.project-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: sticky;
  top: 92px;
}
.project-details-card h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-of-type { border: none; padding-bottom: 0; }
.detail-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.detail-value {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
}
.detail-value a { color: var(--teal); }
.detail-value a:hover { color: var(--white); }
.tech-stack-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* Related Projects */
.related-projects {
  padding: 80px 0;
  background: var(--bg-mid);
}

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
}
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 120px 40px;
}
.footer-brand .brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand .brand-title {
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 24px;
}
.footer-brand .btn { font-size: 13px; padding: 10px 20px; }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--teal); }
.footer-social-links { display: flex; flex-direction: column; gap: 10px; }
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: var(--transition);
}
.footer-social-link:hover { color: var(--teal); }
.footer-social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-bottom span {
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom span:last-child { color: var(--teal); }

/* ================================================
   404 PAGE
================================================ */
.page-404 {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 60px 24px;
}
.page-404 .num {
  font-family: var(--font-head);
  font-size: 120px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.3;
}
.page-404 h1 { font-family: var(--font-head); font-size: 36px; color: var(--white); margin-bottom: 12px; }
.page-404 p { color: var(--muted); margin-bottom: 32px; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1280px) {
  .nav-inner,
  .hero-inner,
  .trusted-inner,
  .about-preview-inner,
  .about-hero-inner,
  .portfolio-single-hero-inner,
  .portfolio-single-body-inner,
  .footer-top,
  .footer-bottom {
    padding-left: 48px;
    padding-right: 48px;
  }
}
@media (max-width: 1024px) {
  .hero-name { font-size: 44px; }
  .hero-photo { width: 360px; height: 420px; }
  .about-photo { width: 400px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-body { padding: 32px; }
  .posts-grid { grid-template-columns: repeat(2,1fr); }
  .featured-grid { grid-template-columns: repeat(2,1fr); }
  .journey-grid { grid-template-columns: 1fr; }
  .portfolio-single-body-inner,
  .single-body-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links,
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open,
  .nav-right.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 12px;
    z-index: 999;
  }
  .hero-inner { flex-direction: column; padding: 40px 20px; }
  .hero-photo { width: 100%; height: 320px; }
  .hero-tag-1, .hero-tag-2 { display: none; }
  .hero-name { font-size: 36px; }
  .trusted-inner { flex-direction: column; padding: 0 20px; }
  .about-preview-inner { flex-direction: column; padding: 0 20px; }
  .about-preview-image { width: 100%; height: 280px; }
  .about-hero-inner { flex-direction: column; padding: 0 20px; }
  .about-photo { width: 100%; height: 280px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
  .posts-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3,1fr); }
  .portfolio-single-hero-inner { padding: 0 20px; }
  .portfolio-single-hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 36px; }
  .single-hero h1 { font-size: 28px; }
  .about-stats { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .availability h2 { font-size: 32px; }
}
@media (max-width: 480px) {
  .hero-name { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
