/* ═══════════════════════════════════════════
   BADR ELDEEN REDA — Portfolio
   Inspired by: Steel Blue Gradient Texture
   #1a3d5c → #1e5280 → #2d6fa8 → #3a82be
   ═══════════════════════════════════════════ */

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

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

:root {
  /* ── Extracted from the background image ── */
  --bg-dark:      #152d46;   /* darkest corners */
  --bg-mid:       #1a3d5c;   /* main dark tone */
  --bg-core:      #1e5280;   /* mid body sections */
  --bg-bright:    #2a6aa0;   /* lighter areas */
  --bg-highlight: #3479b2;   /* brightest spots */

  /* ── Texture gradient (replicates the bg image) ── */
  --gradient-main: radial-gradient(
    ellipse at 70% 20%,
    #3479b2 0%,
    #2060a0 25%,
    #1a4870 55%,
    #152d46 100%
  );

  /* ── Accent & UI ── */
  --white:      #ffffff;
  --white-95:   rgba(255,255,255,0.95);
  --white-80:   rgba(255,255,255,0.80);
  --white-60:   rgba(255,255,255,0.60);
  --white-35:   rgba(255,255,255,0.35);
  --white-18:   rgba(255,255,255,0.18);
  --white-10:   rgba(255,255,255,0.10);
  --white-06:   rgba(255,255,255,0.06);
  --white-03:   rgba(255,255,255,0.03);

  /* ── Highlight color from bg (lighter blue) ── */
  --accent:       #6bb8e8;   /* bright sky for interactive */
  --accent-glow:  rgba(107,184,232,0.30);
  --accent-dim:   rgba(107,184,232,0.15);

  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-main);
  background-color: #252B72;
  background-image: 
    radial-gradient(at 0% 0%, rgba(63, 107, 196, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(145, 196, 216, 0.2) 0px, transparent 50%),
    linear-gradient(135deg, #111438 0%, #252B72 60%, #2e358a 100%);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--white-95);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════
   GLASS UTILITY — used everywhere
   Frosted glass over the textured bg
══════════════════════════════ */
.glass {
  background: rgba(12, 28, 50, 0.50);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--white-18);
}

.glass-light {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--white-18);
}

/* ══════════════════════════════
   LOADER
══════════════════════════════ */
.loader-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #252B72;
  background-image: 
    radial-gradient(at 0% 0%, rgba(63, 107, 196, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(145, 196, 216, 0.2) 0px, transparent 50%),
    linear-gradient(135deg, #111438 0%, #252B72 60%, #2e358a 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader-wrap.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  width: 46px;
  height: 46px;
  border: 3px solid var(--white-18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.loader-text {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-60);
  font-weight: 500;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(15, 32, 54, 0.80);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom-color: var(--white-18);
}

/* Logo */
.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}

.logo-circle {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--white-18);
}

.logo-circle span {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--bg-mid);
  letter-spacing: -0.04em;
}

/* Links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-80);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--white) !important;
  color: var(--bg-mid) !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s, box-shadow 0.3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(255,255,255,0.25) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2.5rem 4rem;
}

/* Subtle overlay darkening the bottom for text legibility */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12,28,48,0.45) 0%,
    rgba(12,28,48,0.10) 50%,
    rgba(12,28,48,0.30) 100%
  );
  pointer-events: none;
}

/* Animated light orb — mimics the highlight in the bg */
.hero-orb {
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(107,184,232,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -80px;
  right: 8%;
  animation: orb-float 10s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
  border-radius: 50%;
  bottom: 5%;
  left: 5%;
  animation: orb-float 13s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes orb-float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(25px,-30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up 0.9s var(--ease) 0.5s forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white-35);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-95);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #7dd3fc;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.7rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
  color: var(--white);
}

.hero h1 .accent {
  /* Slightly lighter than body — using the bg highlight color */
  color: #a8d8f5;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--white-80);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 2.25rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--bg-mid);
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  font-family: var(--font-main);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(255,255,255,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--white-35);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  font-family: var(--font-main);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.20);
  border-color: var(--white-60);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-18);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.70rem;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* Photo */
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up 0.9s var(--ease) 0.75s forwards;
}

.photo-frame {
  position: relative;
  width: 310px;
  height: 310px;
}

.photo-circle-bg {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  z-index: 1;
  box-shadow:
    0 0 0 3px var(--white-35),
    0 20px 60px rgba(0,0,0,0.35);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.photo-ring {
  position: absolute;
  inset: -16px;
  border: 2px dashed rgba(168,216,245,0.35);
  border-radius: 50%;
  animation: rotate-ring 22s linear infinite;
  z-index: 0;
}

.photo-ring::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #a8d8f5;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(168,216,245,0.6);
}

@keyframes rotate-ring { to { transform: rotate(360deg); } }

/* ══════════════════════════════
   SECTION BASE & TRANSITIONS
══════════════════════════════ */
section { 
  padding: 6rem 2.5rem; 
  position: relative; 
}

/* Each section has its own glass overlay to layer over the fixed bg */
section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Alternate sections: slightly darker glass overlay */
.about::before,
.skills::before,
.contact::before {
  background: rgba(12, 25, 44, 0.40);
}

.services::before,
.cases::before {
  background: rgba(20, 45, 75, 0.30);
}

.section-container {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-line {
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, #a8d8f5, rgba(168,216,245,0.3));
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

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

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--white);
}

.section-header p {
  color: var(--white-60);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 540px;
  line-height: 1.75;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.about-text p {
  color: var(--white-80);
  font-size: 1.03rem;
  line-height: 1.82;
  margin-bottom: 1.4rem;
}

.edu-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a8d8f5;
  margin-bottom: 1.25rem;
}

.education-timeline {
  position: relative;
  padding-left: 1.75rem;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #a8d8f5, rgba(168,216,245,0.2));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.25rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 5px;
  width: 10px;
  height: 10px;
  background: #a8d8f5;
  border-radius: 50%;
  border: 2px solid var(--bg-mid);
  transform: translateX(-4px);
}

.timeline-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.timeline-item .date {
  font-size: 0.78rem;
  color: #a8d8f5;
  font-family: var(--font-mono);
  font-weight: 500;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--white-60);
  margin-top: 0.2rem;
}

.timeline-item .exp-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-item .exp-list li {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.5;
  position: relative;
  padding-left: 1rem;
}

.timeline-item .exp-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #a8d8f5;
  font-size: 0.85rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.highlight-item {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--white-18);
  border-radius: 12px;
  padding: 1.2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.highlight-item:hover {
  border-color: rgba(168,216,245,0.40);
  transform: translateY(-2px);
}

.hi-icon {
  width: 38px;
  height: 38px;
  background: rgba(168,216,245,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8d8f5;
  margin-bottom: 0.6rem;
}

.highlight-item h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
.highlight-item p { font-size: 0.78rem; color: var(--white-60); line-height: 1.5; }

/* ══════════════════════════════
   SKILLS
══════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.skill-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--white-18);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  transition: border-color 0.35s, transform 0.3s, box-shadow 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #a8d8f5, rgba(168,216,245,0.2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.skill-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(168,216,245,0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.30);
}

.skill-card:hover::after { transform: scaleX(1); }

.skill-icon {
  width: 42px;
  height: 42px;
  background: rgba(168,216,245,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8d8f5;
  margin-bottom: 1rem;
}

.skill-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.45rem; color: var(--white); }
.skill-card p { font-size: 0.8rem; color: var(--white-60); line-height: 1.6; }

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--white-18);
  border-radius: 16px;
  padding: 2.1rem 2.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(168,216,245,0.40);
  transform: translateY(-3px);
}

.service-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(168,216,245,0.50);
  font-family: var(--font-mono);
  line-height: 1;
  flex-shrink: 0;
}

.service-body h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white); }
.service-body p { font-size: 0.88rem; color: var(--white-60); line-height: 1.75; }

/* ══════════════════════════════
   CASE STUDIES
══════════════════════════════ */
.case-study {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--white-18);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s;
}

.case-study:last-child { margin-bottom: 0; }

.case-study.open {
  background: rgba(255,255,255,0.10);
  border-color: rgba(168,216,245,0.40);
}

.case-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  cursor: pointer;
  transition: background 0.25s;
  flex-wrap: wrap;
}

.case-header:hover { background: rgba(255,255,255,0.05); }

.case-number {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--bg-mid);
  background: #a8d8f5;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.case-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}

.niche-tag {
  font-size: 0.78rem;
  color: var(--white-60);
  background: var(--white-10);
  border: 1px solid var(--white-18);
  padding: 0.28rem 0.8rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.case-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem 0.4rem 1rem;
  background: var(--white-10);
  border: 1px solid var(--white-18);
  border-radius: 20px;
  color: var(--white-80);
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}

.case-toggle:hover {
  background: var(--white-18);
}

.toggle-text {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease), background 0.3s;
}

.case-study.open .case-toggle {
  background: rgba(168,216,245,0.10);
  border-color: rgba(168,216,245,0.30);
}

.case-study.open .toggle-icon {
  transform: rotate(45deg);
  background: rgba(168,216,245,0.20);
  color: #a8d8f5;
}

.case-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s var(--ease);
}

.case-study.open .case-body { max-height: 2500px; }

.case-content { padding: 0 2rem 2rem; }

.case-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--white-10);
}

.metric-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--white-18);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}

.metric-card:hover { background: rgba(255,255,255,0.12); }

.metric-value {
  font-size: 1.55rem;
  font-weight: 900;
  color: #a8d8f5;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-label {
  font-size: 0.67rem;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.case-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.case-description h4 {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a8d8f5;
  margin-bottom: 0.75rem;
}

.case-description p {
  font-size: 0.9rem;
  color: var(--white-80);
  line-height: 1.82;
  margin-top: 0.65rem;
}

.case-screenshot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--white-18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
}

.case-screenshot + .case-screenshot { margin-top: 0.9rem; }

.case-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.case-screenshot:hover img { transform: scale(1.02); }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--white);
}

.contact-info > p {
  color: var(--white-60);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  max-width: 400px;
}

.contact-links { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  border: 1px solid var(--white-18);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.3s, transform 0.25s, background 0.3s;
}

.contact-link:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(168,216,245,0.45);
  transform: translateX(5px);
}

.contact-link-icon {
  width: 42px;
  height: 42px;
  background: rgba(168,216,245,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8d8f5;
  flex-shrink: 0;
}

.contact-link-text h5 {
  font-size: 0.70rem;
  color: var(--white-60);
  font-weight: 500;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-link-text p { font-size: 0.92rem; font-weight: 600; color: var(--white); }

/* Form */
.contact-form {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-18);
  border-radius: 18px;
  padding: 2.25rem;
}

.contact-form h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--white); }

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--white-80);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--white-18);
  border-radius: 9px;
  padding: 0.8rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(168,216,245,0.60);
  box-shadow: 0 0 0 3px rgba(168,216,245,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-35); }

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

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

.btn-submit {
  width: 100%;
  background: var(--white);
  color: var(--bg-mid);
  padding: 0.95rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  margin-top: 0.4rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,255,255,0.25);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--white-10);
  background: rgba(10, 22, 40, 0.50);
  backdrop-filter: blur(20px);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer p { font-size: 0.83rem; color: var(--white-60); }
.footer .accent { color: #a8d8f5; }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 0 1.25rem; }
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(15,30,55,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1.75rem;
    gap: 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s, visibility 0.4s;
    border-bottom: 1px solid var(--white-18);
  }
  .nav-links.open { 
    transform: translateY(0); 
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }

  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .photo-frame { width: 240px; height: 240px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }

  .case-header { padding: 1.4rem; }
  .case-content { padding: 0 1.4rem 1.75rem; }
  .case-details { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: repeat(2, 1fr); }

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

  section { padding: 4rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr; }
}

/* ══════════════════════════════
   LIGHTBOX
══════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 50, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.show {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox.show img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--white-60);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}
.lightbox-close:hover {
  color: #a8d8f5;
  transform: scale(1.1);
}
