/* ============================================================
   NURA MUSTAPHA ALI — PORTFOLIO DESIGN SYSTEM
   Futuristic · Light · Glassmorphic · Animated
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand Colors */
  --color-navy:     #0B2A36;
  --color-mauve:    #915675;
  --color-rose:     #C6959D;
  --color-beige:    #D4B7A8;
  --color-sage:     #CBCDC3;
  --color-white:    #FFFFFF;
  --color-ivory:    #FAF8F5;
  --color-light:    #F5F2EE;

  /* Semantic */
  --primary:        var(--color-mauve);
  --primary-light:  #aa6a8a;
  --primary-pale:   rgba(145, 86, 117, 0.08);
  --secondary:      var(--color-rose);
  --text-dark:      var(--color-navy);
  --text-body:      #2d4a56;
  --text-muted:     #6b8a97;
  --bg:             var(--color-ivory);
  --bg-card:        rgba(255, 255, 255, 0.75);
  --bg-glass:       rgba(255, 255, 255, 0.6);
  --border:         rgba(203, 205, 195, 0.5);
  --border-glow:    rgba(145, 86, 117, 0.25);

  /* Typography */
  --font-display:   'Syne', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Type Scale */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */
  --text-7xl:   4.5rem;     /* 72px */
  --text-8xl:   6rem;       /* 96px */

  /* Spacing (8pt grid) */
  --s-1:  0.25rem;   /* 4px  */
  --s-2:  0.5rem;    /* 8px  */
  --s-3:  0.75rem;   /* 12px */
  --s-4:  1rem;      /* 16px */
  --s-5:  1.25rem;   /* 20px */
  --s-6:  1.5rem;    /* 24px */
  --s-8:  2rem;      /* 32px */
  --s-10: 2.5rem;    /* 40px */
  --s-12: 3rem;      /* 48px */
  --s-16: 4rem;      /* 64px */
  --s-20: 5rem;      /* 80px */
  --s-24: 6rem;      /* 96px */
  --s-32: 8rem;      /* 128px */

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 4px rgba(11, 42, 54, 0.05);
  --shadow-sm:  0 2px 12px rgba(11, 42, 54, 0.07);
  --shadow-md:  0 4px 24px rgba(145, 86, 117, 0.1);
  --shadow-lg:  0 8px 40px rgba(145, 86, 117, 0.15);
  --shadow-xl:  0 16px 60px rgba(145, 86, 117, 0.2);
  --shadow-glow: 0 0 30px rgba(145, 86, 117, 0.2), 0 0 60px rgba(198, 149, 157, 0.1);

  /* Z-Index Scale */
  --z-base:    0;
  --z-card:    10;
  --z-sticky:  20;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-normal: 300ms;
  --dur-slow:   500ms;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { max-width: 68ch; line-height: 1.75; }

.text-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-navy { color: var(--text-dark); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--s-8);
}

.section {
  padding: var(--s-24) 0;
  position: relative;
  overflow: hidden;
}

.section-sm { padding: var(--s-16) 0; }
.section-lg { padding: var(--s-32) 0; }

/* ── Grid System ──────────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }

/* ── Background System ─────────────────────────────────────── */
.bg-white { background: var(--color-white); }
.bg-ivory { background: var(--color-ivory); }
.bg-light { background: var(--color-light); }
.bg-mesh {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(145, 86, 117, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(198, 149, 157, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212, 183, 168, 0.04) 0%, transparent 60%),
    var(--color-ivory);
}

/* ── Glass Card ───────────────────────────────────────────── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-8);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  min-height: 48px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-mauve), var(--primary-light));
  color: white;
  box-shadow: 0 4px 20px rgba(145, 86, 117, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(145, 86, 117, 0.45);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--s-2) var(--s-5);
  font-size: var(--text-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--s-5) var(--s-10);
  font-size: var(--text-lg);
  min-height: 56px;
}

/* ── Section Labels / Tags ────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid rgba(145, 86, 117, 0.2);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.tag {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1px solid rgba(145, 86, 117, 0.15);
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--s-16);
}

.section-header h2 { margin-bottom: var(--s-4); }
.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* ── Glow Divider ─────────────────────────────────────────── */
.glow-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-mauve), var(--color-rose));
  border-radius: var(--r-full);
  margin: var(--s-4) auto;
  box-shadow: 0 0 10px rgba(145, 86, 117, 0.4);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--s-4) 0;
  transition: all var(--dur-normal) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--s-3) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-dark);
  text-decoration: none;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--r-sm);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav-link {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-pale);
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-mauve), var(--primary-light));
  color: white !important;
  padding: var(--s-2) var(--s-6) !important;
  box-shadow: 0 4px 15px rgba(145, 86, 117, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(145, 86, 117, 0.4) !important;
  background: var(--primary-pale) !important;
  color: var(--primary) !important;
}

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease-out);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(145, 86, 117, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 75% 60%, rgba(198, 149, 157, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(212, 183, 168, 0.1) 0%, transparent 50%),
    var(--color-ivory);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}

.hero-content { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: linear-gradient(135deg, rgba(145,86,117,0.1), rgba(198,149,157,0.1));
  border: 1px solid rgba(145, 86, 117, 0.2);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--s-6);
  animation: fadeInDown var(--dur-slow) var(--ease-out) 0.2s both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.hero-name {
  font-size: clamp(var(--text-5xl), 7vw, var(--text-8xl));
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.3s both;
  margin-bottom: var(--s-4);
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--color-mauve) 0%, var(--color-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-title {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--s-6);
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.4s both;
}

/* Typing effect cursor */
.typing-cursor::after {
  content: '|';
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--s-8);
  max-width: 50ch;
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.5s both;
}

.hero-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  animation: fadeInUp var(--dur-slow) var(--ease-out) 0.6s both;
}

.hero-image-wrap {
  position: relative;
  animation: fadeInRight var(--dur-slow) var(--ease-out) 0.4s both;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-2xl);
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, rgba(145,86,117,0.1) 0%, transparent 60%);
  z-index: 1;
}

.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r-2xl) + 2px);
  background: linear-gradient(135deg, var(--color-mauve), var(--color-rose), var(--color-beige));
  z-index: -1;
  animation: border-spin 8s linear infinite;
}

.hero-stat-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-stat-badge.stat-1 {
  bottom: var(--s-8);
  left: -var(--s-8);
  animation-delay: 0s;
}

.hero-stat-badge.stat-2 {
  top: var(--s-12);
  right: -var(--s-6);
  animation-delay: -3s;
}

.stat-badge-num {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1;
}

.stat-badge-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Floating Orbs ────────────────────────────────────────── */
.orbs-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orb-float var(--orb-dur, 20s) ease-in-out infinite;
}

.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(145,86,117,0.3), transparent 70%);
  top: -100px; left: -100px;
  --orb-dur: 18s;
}

.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(198,149,157,0.25), transparent 70%);
  bottom: -80px; right: -80px;
  --orb-dur: 22s;
  animation-delay: -8s;
}

.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,183,168,0.2), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  --orb-dur: 16s;
  animation-delay: -4s;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a3f50 100%);
  padding: var(--s-8) 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(145,86,117,0.15) 0%, rgba(198,149,157,0.1) 100%);
}

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

.stat-item {
  text-align: center;
  padding: var(--s-4) var(--s-6);
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: white;
  line-height: 1;
  display: block;
}

.stat-number .plus { color: var(--color-rose); }
.stat-label { font-size: var(--text-sm); color: rgba(255,255,255,0.65); margin-top: var(--s-1); }

/* ── Project Cards ────────────────────────────────────────── */
.project-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-glow);
}

.project-cover {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project-card:hover .project-cover img { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,42,54,0.85), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--s-6);
  gap: var(--s-3);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-body {
  padding: var(--s-6);
}

.project-category {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s-3);
  transition: color var(--dur-fast);
}

.project-card:hover .project-title { color: var(--primary); }

.project-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; }

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

/* ── Blog Cards ───────────────────────────────────────────── */
.blog-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--dur-normal) var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

.blog-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.blog-card:hover .blog-cover img { transform: scale(1.06); }

.blog-body { padding: var(--s-6); }

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

.blog-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s-3);
  line-height: 1.4;
}

.blog-card:hover .blog-title { color: var(--primary); }

/* ── Service Cards ────────────────────────────────────────── */
.service-card {
  padding: var(--s-8);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-mauve), var(--color-rose));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-pale), rgba(198,149,157,0.1));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  border: 1px solid rgba(145, 86, 117, 0.15);
  transition: all var(--dur-normal) var(--ease-out);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-mauve), var(--primary-light));
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(145, 86, 117, 0.3);
}

.service-card:hover .service-icon svg { color: white; }

.service-icon svg { width: 24px; height: 24px; color: var(--primary); transition: color var(--dur-fast); }

/* ── Skill Bar ────────────────────────────────────────────── */
.skill-item { margin-bottom: var(--s-4); }
.skill-header { display: flex; justify-content: space-between; margin-bottom: var(--s-2); }
.skill-name { font-weight: 600; font-size: var(--text-sm); }
.skill-percent { font-size: var(--text-sm); color: var(--primary); font-family: var(--font-mono); font-weight: 600; }

.skill-bar {
  height: 6px;
  background: rgba(203,205,195,0.5);
  border-radius: var(--r-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-mauve), var(--color-rose));
  border-radius: var(--r-full);
  width: 0%;
  transition: width 1.2s var(--ease-out);
  box-shadow: 0 0 8px rgba(145, 86, 117, 0.4);
}

/* ── Testimonial Card ─────────────────────────────────────── */
.testimonial-card {
  padding: var(--s-8);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--s-4);
  right: var(--s-6);
  font-size: 80px;
  font-family: var(--font-display);
  color: var(--primary-pale);
  line-height: 1;
  font-weight: 800;
}

/* ── Tech Marquee ─────────────────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  display: flex;
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap !important;
  gap: var(--s-8);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--dur-fast);
}

.marquee-item:hover {
  border-color: var(--border-glow);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-group { margin-bottom: var(--s-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--s-2);
}

.form-input {
  width: 100%;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.8);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--dur-fast) var(--ease-out);
  outline: none;
  min-height: 50px;
}

.form-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(145, 86, 117, 0.1);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23915675' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: var(--s-10);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, var(--color-navy) 0%, #112535 100%);
  color: rgba(255,255,255,0.8);
  padding: var(--s-20) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-mauve), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--s-3);
}

.footer-brand-name span { color: var(--color-rose); }
.footer-desc { font-size: var(--text-sm); line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: var(--s-6); max-width: 30ch; }

.footer-social {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--dur-fast) var(--ease-out);
}

.social-icon:hover {
  background: var(--color-mauve);
  border-color: var(--color-mauve);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(145, 86, 117, 0.4);
}

.social-icon svg { width: 18px; height: 18px; }

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  margin-bottom: var(--s-5);
}

.footer-links { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: all var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.footer-link:hover {
  color: var(--color-rose);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--s-24) + 60px) 0 var(--s-16);
  background: var(--bg-mesh);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ── Back to Top ──────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: var(--s-8);
  right: var(--s-8);
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--color-mauve), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(145, 86, 117, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--dur-normal) var(--ease-out);
  z-index: var(--z-sticky);
  border: none;
}

.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(145, 86, 117, 0.5); }

/* ── AI Text Badge ────────────────────────────────────────── */
.ai-text-wrapper {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--s-3);
  background: linear-gradient(135deg, rgba(145,86,117,0.05), rgba(198,149,157,0.05));
  border: 1px solid rgba(145,86,117,0.15);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-4) 0;
}

.ai-badge {
  flex-shrink: 0;
  padding: var(--s-1) var(--s-2);
  background: linear-gradient(135deg, var(--color-mauve), var(--primary-light));
  color: white;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.ai-text-content { font-size: var(--text-base); color: var(--text-body); line-height: 1.6; font-style: italic; }

/* ── Scroll Reveal (initial state) ────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="fade"] { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}

.filter-btn {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.6);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(145, 86, 117, 0.3);
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--s-20) var(--s-6);
  color: var(--text-muted);
}

.empty-state svg { width: 80px; height: 80px; margin: 0 auto var(--s-4); opacity: 0.3; }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: var(--s-4); }
.mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-8 { margin-bottom: var(--s-8); }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}

@media (max-width: 768px) {
  :root { --s-24: 4rem; --s-20: 3rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100dvh;
    background: rgba(250, 248, 245, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: -10px 0 30px rgba(11, 42, 54, 0.08);
    border-left: 1px solid rgba(145, 86, 117, 0.15);
    padding: 100px var(--s-6) var(--s-8);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--s-3);
    z-index: 99;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links .nav-link {
    font-size: var(--text-base);
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: var(--r-md);
    padding: var(--s-3) var(--s-5);
    width: 100%;
    transition: all var(--dur-fast) var(--ease-out);
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    background: var(--primary-pale);
    transform: translateX(6px);
  }

  .nav-toggle { display: flex; z-index: 100; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s-10); text-align: center; }
  .hero-image-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-description { margin: 0 auto var(--s-8); }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s-4); }
  .hero-name { font-size: var(--text-5xl); }
  .hero-stat-badge { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none; }
  .marquee-track { animation: none; }
}

/* ── Custom Interactive & Responsive Enhancements ─────────── */

/* 1. Stretched Clickable Card Link */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.blog-card,
.project-card {
  position: relative;
}

/* Exclude internal links from stretched-link overlay */
.blog-card a:not(.stretched-link),
.project-card a:not(.stretched-link) {
  position: relative;
  z-index: 2;
}

/* 2. Responsive Layout Grids */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s-12);
  align-items: start;
}

@media (max-width: 992px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
}

.layout-sidebar-detail {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s-12);
  align-items: start;
}

@media (max-width: 992px) {
  .layout-sidebar-detail {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
}

/* Featured blog article layout */
.blog-featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-12);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}

.blog-featured-article:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .blog-featured-article {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

/* 3. CKEditor Image & Typography Responsiveness */
.ckeditor-content {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.85;
}

.ckeditor-content h1,
.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4,
.ckeditor-content h5,
.ckeditor-content h6 {
  font-family: var(--font-body) !important; /* Force standard body font for article flow readability */
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

.ckeditor-content h1 { font-size: var(--text-2xl) !important; }
.ckeditor-content h2 { font-size: var(--text-xl) !important; }
.ckeditor-content h3 { font-size: var(--text-lg) !important; }
.ckeditor-content h4 { font-size: var(--text-base) !important; }

.ckeditor-content p {
  margin-bottom: 1.25rem !important;
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  color: var(--text-body) !important;
  line-height: 1.85 !important;
}

.ckeditor-content blockquote {
  border-left: 4px solid var(--primary) !important;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5) !important;
  margin: var(--s-6) 0 !important;
  font-style: italic !important;
  color: var(--text-muted) !important;
  background: var(--primary-pale) !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
}

.ckeditor-content ul, 
.ckeditor-content ol {
  margin: 0 0 var(--s-5) var(--s-6) !important;
  padding-left: var(--s-2) !important;
}

.ckeditor-content ul {
  list-style-type: disc !important;
}

.ckeditor-content ol {
  list-style-type: decimal !important;
}

.ckeditor-content li {
  margin-bottom: var(--s-2) !important;
  font-family: var(--font-body) !important;
}

.ckeditor-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--r-md);
  margin: var(--s-4) 0;
  display: block;
}

.ckeditor-content figure,
.ckeditor-content figure.image,
.ckeditor-content .image {
  max-width: 100% !important;
  width: auto !important;
  margin: var(--s-4) 0;
}

.ckeditor-content figure img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--r-md);
  display: block;
}

.ckeditor-content figcaption {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--s-2);
}

/* 4. Tablet Layout Enhancements */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

