/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0B0F19;
  --surface: #111827;
  --surface-light: #1F2937;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --text-main: #F9FAFB;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --border: #263244;
  --white: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.1);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border);
}

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

.btn-icon {
  font-size: 1.1rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: -2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 1rem;
}
.lang-switcher a {
  color: var(--text-muted);
  transition: var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.lang-active {
  color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-desc {
  margin: 0.5rem auto 0;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-glow);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== WHY WEBSITE ===== */
.why-section {
  background: var(--surface);
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-text h2 {
  margin-bottom: 1rem;
}

.why-text>p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--primary);
}

.why-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

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

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(37, 99, 235, 0.3);
}

.project-image {
  width: 100%;
  height: 280px;
  min-height: 280px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.project-link:hover {
  gap: 0.7rem;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  font-size: 4rem;
  opacity: 0.3;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text .btn {
  margin-top: 1rem;
}

/* ===== BLOG PREVIEW ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-glow);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-meta-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.blog-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.blog-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.blog-read-more:hover {
  gap: 0.7rem;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--surface);
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
}

/* ===== PROCESS / HOW I WORK ===== */
.process-section {
  background: var(--bg-dark);
  padding: 6rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.process-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.7) 0%, rgba(11, 15, 25, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.process-card:hover::before {
  opacity: 1;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  transition: all 0.3s ease;
  margin-bottom: 0.25rem;
}

.process-card:hover .process-number {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.process-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.process-card:hover h3 {
  color: var(--white);
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Tablet (769px to 1024px) - 3 + 2 centered layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .process-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .process-card {
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 230px;
    padding: 1.75rem 1.25rem;
  }
}

/* Desktop (>1024px) - 5 across in one row */
@media (min-width: 1025px) {
  .process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .process-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-list {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
  }
}

@media (max-width: 992px) {

  .why-content,
  .about-preview {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrapper {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .logo-tagline {
    display: none;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 5rem 2rem 2rem;
    transition: var(--transition);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .overlay.active {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== BLOG IMAGES ===== */

/* Featured post: image is absolutely positioned inside the fixed-height visual area,
   removing it from flex flow so it reliably fills the container at any aspect ratio. */
.post-featured-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Blog detail cover image */
.post-cover-image {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-cover-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Homepage blog card image */
.blog-card-image {
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Privacy policy page */
.page-hero {
  padding: 9rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.policy-section {
  padding: 5rem 0;
}

.policy-content {
  max-width: 720px;
}

.policy-content h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.policy-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.policy-content a {
  color: var(--primary);
}

.policy-content a:hover {
  text-decoration: underline;
}

.policy-meta {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Services page */
.services-full {
  padding: 5rem 0;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item-left {
  position: sticky;
  top: 7rem;
}

.service-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-item-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-item-left h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.service-item-left .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.service-item-right > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.detail-box h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.detail-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-box li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.detail-box li::before {
  content: '→';
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 1px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-item-left {
    position: static;
  }

  .service-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects list page */
.projects-section {
  padding: 5rem 0;
}

.demo-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.project-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.project-full:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.08);
}

.project-full-header {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 0;
}

.project-visual {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.project-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.project-full:hover .project-visual img {
  transform: scale(1.03);
}

.project-visual-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-full-body {
  padding: 2.5rem;
}

.project-full-body .project-tag {
  margin-bottom: 0.75rem;
}

.project-full-body h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.project-full-body > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.meta-box {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.meta-box h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.meta-box p {
  font-size: 0.9rem;
}

.meta-box .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tech-tag {
  font-size: 0.75rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .project-full-header {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 200px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Blog list page */
.blog-section {
  padding: 5rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.post-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.post-featured:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.08);
}

.post-featured-visual {
  height: 260px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.post-featured-body {
  padding: 2rem;
}

.post-featured-body .blog-meta {
  margin-bottom: 0.75rem;
}

.post-featured-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-featured-body p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-sidebar {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  color: var(--primary);
  cursor: pointer;
}

.category-count {
  font-size: 0.75rem;
  background: var(--bg-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .post-detail {
    padding: 1.5rem;
  }
}

/* Blog detail page */
.post-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.post-detail-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-detail-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0.75rem;
  color: var(--text);
}

.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-2);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3 {
  color: var(--text);
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content pre {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content code {
  font-family: monospace;
  font-size: 0.9em;
  background: var(--bg-dark);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.post-content pre code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--primary-hover);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Project detail page */
.project-detail-section {
  padding: 5rem 0;
}

.project-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.project-detail-visual {
  width: 100%;
  max-height: 460px;
  overflow: hidden;
  background: var(--bg-dark);
  position: relative;
}

.project-detail-visual img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.project-detail-visual-placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.project-detail-body {
  padding: 2.5rem;
}

.project-detail-body h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.project-detail-body > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.project-detail-card .project-meta-grid {
  margin-bottom: 2.5rem;
}

.project-detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.error-section {
  padding: 12rem 0 8rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  max-width: 500px;
  width: 100%;
}

@media (max-width: 700px) {
  .project-detail-visual img {
    height: 260px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-body {
    padding: 1.5rem;
  }
}

/* Project listing card — tech chips shown outside the meta-grid */
.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

/* Project detail — case study narrative sections (Challenge / Solution / Technologies) */
.project-section {
  margin-bottom: 2rem;
}

.project-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.project-section .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Related projects */
.related-projects {
  padding: 0 0 5rem;
}

.related-projects h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.related-project-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.08);
}

.related-project-visual {
  height: 160px;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.related-project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.related-project-body {
  padding: 1.25rem;
}

.related-project-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

@media (max-width: 900px) {
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* About page */
.about-full {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}

.about-sidebar {
  position: sticky;
  top: 7rem;
}

.avatar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 120px;
  height: 120px;
  background: var(--surface-light);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid var(--border);
  object-fit: cover;
}

.avatar-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.avatar-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  font-size: 1.1rem;
}

.info-row a {
  color: var(--primary);
}

.info-row a:hover {
  text-decoration: underline;
}

.about-main h2 {
  margin-bottom: 1.25rem;
}

.about-main p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-main h3 {
  font-size: 1.2rem;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.skill-tag span:first-child {
  font-size: 1.1rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.value-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .about-full {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.contact-section {
  padding: 5rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 7rem;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.contact-method:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-method-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-method-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-form-box > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.contact-form-box input:focus,
.contact-form-box select:focus,
.contact-form-box textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
  color: var(--text-muted);
}

.contact-form-box select {
  appearance: none;
  cursor: pointer;
}

.contact-form-box select option {
  background: var(--surface);
}

.contact-form-box textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  margin-top: 1.5rem;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
}

.availability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #22C55E;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.availability-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.availability-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  background: #22C55E;
  border-radius: 50%;
  animation: avail-pulse 2s ease-in-out infinite;
}

@keyframes avail-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.availability-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.availability-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}