/* ==========================================================================
       DESIGN SYSTEM & CSS VARIABLES
       ========================================================================== */
:root {
  /* Palette Tokens */
  --color-dark-bg: #16131a;
  --color-dark-surface: #221e27;
  --color-dark-elevated: #2d2734;
  --color-dark-card: rgba(44, 44, 44, 0.72);

  --color-plum: #853953;
  --color-wine: #612d53;
  --color-light: #f3f4f4;
  --color-butter: #fff4bf;
  --color-pink: #ffbefb;
  --color-lavender: #dc95ff;
  --color-purple: #8c56d4;
  --color-deep-purple: #6a35b0;

  /* Active Dark Theme Defaults */
  --bg-body: #16131a;
  --bg-surface: #221e27;
  --bg-surface-elevated: #2d2734;
  --bg-card: rgba(44, 44, 44, 0.68);
  --bg-card-hover: rgba(68, 42, 72, 0.82);
  --bg-glass: rgba(26, 22, 32, 0.85);
  --bg-input: rgba(32, 27, 38, 0.9);

  --border-color: rgba(220, 149, 255, 0.16);
  --border-hover: rgba(220, 149, 255, 0.5);
  --border-glow: rgba(255, 190, 251, 0.6);

  --text-primary: #f3f4f4;
  --text-secondary: #d8d1de;
  --text-muted: #a399ab;
  --text-accent: #dc95ff;

  --gradient-brand: linear-gradient(
    135deg,
    #853953 0%,
    #8c56d4 50%,
    #dc95ff 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    #ffbefb 0%,
    #dc95ff 50%,
    #8c56d4 100%
  );
  --gradient-soft: linear-gradient(
    135deg,
    rgba(133, 57, 83, 0.35) 0%,
    rgba(140, 86, 212, 0.22) 100%
  );
  --gradient-card: linear-gradient(
    145deg,
    rgba(44, 44, 44, 0.82) 0%,
    rgba(97, 45, 83, 0.28) 100%
  );

  /* Multi-layered Glowing Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.38), 0 0 16px rgba(133, 57, 83, 0.2);
  --shadow-lg:
    0 16px 45px rgba(0, 0, 0, 0.48), 0 0 28px rgba(140, 86, 212, 0.25);
  --shadow-glow:
    0 0 35px rgba(220, 149, 255, 0.32), 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow-button:
    0 6px 22px rgba(133, 57, 83, 0.5), 0 0 20px rgba(220, 149, 255, 0.35);
  --shadow-card-hover:
    0 20px 48px -10px rgba(0, 0, 0, 0.6), 0 0 32px rgba(220, 149, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

/* Light Theme Settings */
[data-theme="light"] {
  --bg-body: #faf7fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4eef7;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-input: #ffffff;

  --border-color: rgba(140, 86, 212, 0.2);
  --border-hover: rgba(133, 57, 83, 0.45);
  --border-glow: rgba(140, 86, 212, 0.45);

  --text-primary: #2c2c2c;
  --text-secondary: #5a4c61;
  --text-muted: #7e7086;
  --text-accent: #612d53;

  --gradient-brand: linear-gradient(
    135deg,
    #853953 0%,
    #612d53 50%,
    #8c56d4 100%
  );
  --gradient-accent: linear-gradient(135deg, #853953 0%, #8c56d4 100%);
  --gradient-soft: linear-gradient(
    135deg,
    rgba(255, 190, 251, 0.4) 0%,
    rgba(220, 149, 255, 0.25) 100%
  );
  --gradient-card: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(246, 239, 248, 0.85) 100%
  );

  --shadow-sm: 0 4px 14px rgba(97, 45, 83, 0.08);
  --shadow-md:
    0 8px 28px rgba(97, 45, 83, 0.12), 0 0 15px rgba(220, 149, 255, 0.15);
  --shadow-lg:
    0 16px 45px rgba(97, 45, 83, 0.16), 0 0 25px rgba(140, 86, 212, 0.18);
  --shadow-glow:
    0 0 30px rgba(140, 86, 212, 0.25), 0 10px 25px rgba(97, 45, 83, 0.1);
  --shadow-glow-button:
    0 6px 22px rgba(133, 57, 83, 0.35), 0 0 20px rgba(140, 86, 212, 0.25);
  --shadow-card-hover:
    0 20px 42px -10px rgba(97, 45, 83, 0.18), 0 0 30px rgba(140, 86, 212, 0.22);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark light;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition:
    background-color var(--transition-smooth),
    color var(--transition-smooth);
  position: relative;
}

/* ==========================================================================
       1. SCROLL PROGRESS BAR (ANIMATED SCROLLING)
       ========================================================================== */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 10000;
  box-shadow: 0 0 12px var(--color-lavender);
  transition: width 0.08s ease-out;
  pointer-events: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-lavender);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transition:
    opacity 160ms ease,
    width 180ms ease,
    height 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  will-change: transform;
  margin: -11px 0 0 -11px;
  box-shadow: 0 0 16px rgba(220, 149, 255, 0.35);
}

.custom-cursor.is-visible {
  opacity: 1;
}
.custom-cursor.is-hovering {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  background: rgba(220, 149, 255, 0.12);
  border-color: var(--color-pink);
}

/* ==========================================================================
       3. BACKGROUND ORBS & PARTICLE CANVAS
       ========================================================================== */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  contain: strict;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  transition:
    transform 12s ease-in-out,
    opacity 0.5s ease;
  animation: floatOrb 22s infinite alternate ease-in-out;
  will-change: transform;
}

[data-theme="light"] .ambient-orb {
  opacity: 0.25;
  filter: blur(90px);
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 540px;
  height: 540px;
  background: var(--color-wine);
  animation-duration: 24s;
}

.orb-2 {
  top: 40%;
  right: -10%;
  width: 580px;
  height: 580px;
  background: var(--color-purple);
  animation-duration: 28s;
  animation-delay: -6s;
}

.orb-3 {
  bottom: -15%;
  left: 25%;
  width: 480px;
  height: 480px;
  background: var(--color-plum);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(60px, 40px) scale(1.1) rotate(35deg);
  }
  100% {
    transform: translate(-40px, 60px) scale(0.95) rotate(-25deg);
  }
}

@media (max-width: 768px), (pointer: coarse) {
  .ambient-orb {
    animation: none !important;
    filter: blur(35px) !important;
    opacity: 0.22 !important;
    width: 240px !important;
    height: 240px !important;
    will-change: auto !important;
  }
  .orb-1 {
    top: -30px;
    left: -30px;
  }
  .orb-2 {
    top: 40%;
    right: -30px;
  }
  .orb-3 {
    bottom: -30px;
    left: 10%;
  }
  #bgCanvas {
    opacity: 0.4;
  }
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--color-pink);
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Sections scroll-margin to prevent header overlap */
section {
  padding: 95px 0;
  position: relative;
  z-index: 2;
  scroll-margin-top: 80px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 54px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-soft);
  border: 1px solid var(--border-color);
  color: var(--text-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  animation: shadowPulse 4s infinite alternate ease-in-out;
}

@keyframes shadowPulse {
  0% {
    box-shadow: 0 0 10px rgba(220, 149, 255, 0.15);
  }
  100% {
    box-shadow: 0 0 20px rgba(220, 149, 255, 0.35);
  }
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
       NAVIGATION & HEADER
       ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: transform var(--transition-bounce);
}

.brand-logo:hover {
  transform: scale(1.04);
}

.logo-emblem {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  /* background: var(--gradient-brand); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* color: #FFFFFF; */
  font-weight: 800;
  font-size: 1.15rem;
  /* box-shadow: 0 4px 14px rgba(133, 57, 83, 0.4); */
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-smooth);
}

.brand-logo:hover .logo-emblem {
  transform: rotate(8deg) scale(1.08);
  box-shadow: 0 0 20px rgba(220, 149, 255, 0.6);
}

.logo-text span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  background: rgba(34, 30, 39, 0.65);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .nav-menu {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(140, 86, 212, 0.2);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(220, 149, 255, 0.14);
}

.nav-link.active {
  color: #ffffff !important;
  font-weight: 600;
  background: var(--gradient-brand) !important;
  border-color: rgba(255, 190, 251, 0.35);
  box-shadow:
    0 2px 10px rgba(133, 57, 83, 0.4),
    0 0 10px rgba(220, 149, 255, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform var(--transition-bounce);
}

.theme-toggle-btn:hover svg {
  transform: rotate(25deg);
}

.sun-icon {
  display: none;
}
.moon-icon {
  display: block;
}
[data-theme="light"] .sun-icon {
  display: block;
}
[data-theme="light"] .moon-icon {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
       BUTTONS & SHADOW GLOW EFFECTS
       ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease-in-out;
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: var(--shadow-glow-button);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(140, 86, 212, 0.55),
    0 0 25px rgba(220, 149, 255, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--color-lavender);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-glow);
}

.btn-icon {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Tech Tags / Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(140, 86, 212, 0.12);
  border: 1px solid var(--border-color);
  color: var(--text-accent);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(220, 149, 255, 0.22);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 149, 255, 0.25);
}

/* ==========================================================================
       4. INTERACTIVE MOUSE SPOTLIGHT ON CARDS (SHADOW & MOUSE EFFECT)
       ========================================================================== */
.interactive-card {
  position: relative;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(220, 149, 255, 0.16),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

[data-theme="light"] .interactive-card::before {
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(140, 86, 212, 0.12),
    transparent 45%
  );
}

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

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

/* ==========================================================================
       SECTION 1: HOME (HERO)
       ========================================================================== */
.hero-section {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 60px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(133, 57, 83, 0.28);
  border: 1px solid rgba(220, 149, 255, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-pink);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(133, 57, 83, 0.3);
  animation: shadowPulse 3s infinite alternate ease-in-out;
}

[data-theme="light"] .status-pill {
  background: rgba(133, 57, 83, 0.12);
  color: var(--color-plum);
  border-color: rgba(133, 57, 83, 0.3);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.hero-greeting {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-lavender);
  margin-bottom: 6px;
}

[data-theme="light"] .hero-greeting {
  color: var(--color-plum);
}

.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.hero-name span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(220, 149, 255, 0.3);
}

.hero-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.title-highlight {
  color: var(--color-butter);
  background: rgba(140, 86, 212, 0.28);
  padding: 2px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid var(--color-lavender);
  box-shadow: 0 0 15px rgba(220, 149, 255, 0.2);
}

[data-theme="light"] .title-highlight {
  color: var(--color-wine);
  background: rgba(220, 149, 255, 0.28);
  border-bottom-color: var(--color-purple);
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-tech-stack {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-stack-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual / Avatar with Mouse Tilt & Glowing Rings */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 500px;
  height: 500px;
  max-width: 100%;
  transition: transform 0.4s ease-out;
}

.avatar-glow-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.75;
  filter: blur(22px);
  animation: rotateRing 14s linear infinite;
}

@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 6px;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-frame {
  box-shadow:
    0 0 50px rgba(220, 149, 255, 0.7),
    var(--shadow-lg);
  transform: scale(1.03);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  transition:
    transform var(--transition-smooth),
    filter var(--transition-smooth);
}

.avatar-wrapper:hover .hero-profile-img {
  transform: scale(1.06);
}

.avatar-tagline {
  position: absolute;
  bottom: 22px;
  background: rgba(44, 44, 44, 0.88);
  border: 1px solid var(--color-lavender);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-pink);
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

[data-theme="light"] .avatar-tagline {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-wine);
}

/* Floating Badges around Avatar */
.floating-badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 4;
  animation: floatBadge 6s ease-in-out infinite alternate;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.floating-badge:hover {
  transform: scale(1.1) !important;
  box-shadow: var(--shadow-glow);
  border-color: var(--color-lavender);
}

.badge-top-left {
  top: 10px;
  left: -20px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 25px;
  right: -25px;
  animation-delay: -3s;
}

.badge-bottom-left {
  bottom: 20px;
  left: -20px;
  animation-delay: -1.5s;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-12px) scale(1.04);
  }
}

/* ==========================================================================
       SECTION 2: ABOUT
       ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.about-photo-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-surface-elevated);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition:
    transform var(--transition-smooth),
    filter var(--transition-smooth);
}

.about-image-card:hover .about-photo-img {
  transform: scale(1.05);
}

.about-photo-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.about-photo-badge {
  background: rgba(34, 30, 39, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  color: var(--color-pink);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .about-photo-badge {
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-wine);
  border-color: var(--color-lavender);
}

.about-image-card:hover .about-photo-placeholder svg {
  transform: scale(1.1) translateY(-4px);
}

.about-photo-placeholder p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.about-photo-placeholder small {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-bio-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-bio-text:last-of-type {
  margin-bottom: 24px;
}

.about-bio-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.highlight-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.highlight-box:hover {
  border-color: var(--color-lavender);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lavender);
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.highlight-box:hover .highlight-icon {
  transform: scale(1.15) rotate(6deg);
}

[data-theme="light"] .highlight-icon {
  color: var(--color-plum);
}

.highlight-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.highlight-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
       SECTION 3: EDUCATION
       ========================================================================== */
.education-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.education-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 44px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gradient-brand);
  box-shadow: 0 0 15px var(--color-lavender);
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(140, 86, 212, 0.15);
  border: 1px solid var(--border-color);
  color: var(--color-lavender);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

[data-theme="light"] .edu-badge {
  color: var(--color-wine);
}

.edu-degree {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.edu-university {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-pink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .edu-university {
  color: var(--color-plum);
}

.edu-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 14px;
}

.edu-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.edu-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-lavender);
  flex-shrink: 0;
}

[data-theme="light"] .edu-meta-item svg {
  color: var(--color-plum);
}

.edu-gpa-badge {
  background: var(--gradient-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  text-align: center;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-smooth);
}

.edu-gpa-badge:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-glow);
}

.gpa-value {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}

.gpa-scale {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gpa-status {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
       SECTION 4: SKILLS (EXACTLY 3 CATEGORIES)
       ========================================================================== */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-category-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(133, 57, 83, 0.35);
  transition: transform var(--transition-bounce);
}

.skill-category-card:hover .category-icon {
  transform: scale(1.12) rotate(6deg);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.skills-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  position: relative;
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-lavender);
  transform: translateY(-5px) scale(1.04);
  box-shadow: var(--shadow-glow);
}

.skill-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--color-lavender);
  transition:
    transform var(--transition-bounce),
    filter var(--transition-fast);
}

[data-theme="light"] .skill-icon-wrap {
  color: var(--color-plum);
}

.skill-item:hover .skill-icon-wrap {
  transform: scale(1.22) rotate(4deg);
  filter: drop-shadow(0 0 8px var(--color-lavender));
}

.skill-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
       SECTION 5: WORK EXPERIENCE (EXACTLY 2 ENTRIES)
       ========================================================================== */
.timeline-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 11px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-lavender),
    var(--color-plum),
    var(--color-purple)
  );
  box-shadow: 0 0 10px var(--color-lavender);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  top: 0;
  left: -36px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 3px solid var(--color-lavender);
  box-shadow: 0 0 14px var(--color-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform var(--transition-bounce);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.25);
  box-shadow: 0 0 20px var(--color-pink);
}

.timeline-marker::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-plum);
}

.experience-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.exp-role {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.exp-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-lavender);
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .exp-company {
  color: var(--color-plum);
}

.exp-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--gradient-soft);
  border: 1px solid var(--border-color);
  color: var(--text-accent);
  box-shadow: var(--shadow-sm);
}

.exp-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
       SECTION 6: OFFERED SERVICES (EXACTLY 4 SERVICES)
       ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
  box-shadow: 0 0 12px var(--color-lavender);
}

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

.service-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(133, 57, 83, 0.45);
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-smooth);
}

.service-card:hover .service-logo-wrap {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 0 28px rgba(220, 149, 255, 0.6);
}

.service-logo-wrap svg {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

.service-card:hover .service-features li {
  color: var(--text-secondary);
  transform: translateX(3px);
}

.service-features li svg {
  width: 15px;
  height: 15px;
  color: var(--color-lavender);
  flex-shrink: 0;
}

[data-theme="light"] .service-features li svg {
  color: var(--color-plum);
}

/* ==========================================================================
       SECTION 7: PROJECTS
       ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.project-visual-wrapper,
.project-visual-placeholder {
  height: 290px;
  width: 100%;
  background: var(--bg-surface-elevated);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.project-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-thumbnail-img {
  transform: scale(1.04);
}

.project-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(133, 57, 83, 0.45) 0%,
    rgba(140, 86, 212, 0.35) 100%
  );
  transition: transform var(--transition-smooth);
}

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

.project-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(22, 19, 26, 0.88);
  border: 1px solid var(--color-lavender);
  color: var(--color-pink);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

[data-theme="light"] .project-badge-pill {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-wine);
}

.project-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-actions-row .btn {
  flex: 1 1 auto;
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* Project Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-bounce);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform var(--transition-bounce),
    background-color var(--transition-fast);
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--color-plum);
  color: #fff;
}

.modal-image-wrap {
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  max-height: 240px;
  display: none;
  background: var(--bg-surface-elevated);
}

.modal-image-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity var(--transition-fast);
}

.modal-gallery-tabs {
  display: none;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-tab-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.modal-tab-btn:hover {
  border-color: var(--color-lavender);
  color: var(--text-primary);
}

.modal-tab-btn.active {
  background: var(--color-wine);
  color: #ffffff;
  border-color: var(--color-lavender);
  box-shadow: 0 2px 8px rgba(133, 57, 83, 0.4);
}

.modal-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
       SECTION 8: ACHIEVEMENTS
       ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.achievement-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.achievement-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.achievement-card.has-media {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

.achievement-media-container {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface-elevated);
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.achievement-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-smooth);
}

.achievement-media-img.pos-bottom {
  object-position: center 60%;
}

.achievement-card:hover .achievement-media-img {
  transform: scale(1.08);
}

.achievement-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 22, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.achievement-media-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #120e18;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(6px);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast);
}

.achievement-card:hover .achievement-media-btn {
  transform: translateY(0);
}

.achievement-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex-grow: 1;
}

.achievement-card.has-media .achievement-icon-wrap {
  margin-top: -46px;
  position: relative;
  z-index: 3;
  border: 3px solid var(--bg-surface);
  background: var(--gradient-brand);
}

.achievement-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(133, 57, 83, 0.45);
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-smooth);
}

.achievement-card:hover .achievement-icon-wrap {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 0 28px rgba(220, 149, 255, 0.6);
}

.achievement-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.achievement-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.achievement-provider {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-lavender);
  margin-bottom: 12px;
}

[data-theme="light"] .achievement-provider {
  color: var(--color-plum);
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.achievement-status-badge {
  margin-top: 16px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(140, 86, 212, 0.15);
  border: 1px solid var(--border-color);
  color: var(--text-accent);
  box-shadow: 0 0 10px rgba(220, 149, 255, 0.15);
}

/* Lightbox Modal styles */
.lightbox-box {
  max-width: 820px;
  padding: 24px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(0, 0, 0, 0.6);
}

.lightbox-image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
       SECTION 9: FEEDBACK (TESTIMONIALS)
       ========================================================================== */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feedback-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  position: relative;
}

.feedback-demo-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 190, 251, 0.15);
  border: 1px solid var(--color-pink);
  color: var(--color-pink);
  margin-bottom: 18px;
  box-shadow: 0 0 10px rgba(255, 190, 251, 0.2);
}

[data-theme="light"] .feedback-demo-badge {
  background: rgba(133, 57, 83, 0.1);
  border-color: var(--color-plum);
  color: var(--color-plum);
}

.feedback-quote-icon {
  color: var(--color-lavender);
  opacity: 0.4;
  margin-bottom: 12px;
  transition:
    transform var(--transition-smooth),
    opacity var(--transition-smooth);
}

.feedback-card:hover .feedback-quote-icon {
  transform: translateY(-3px) scale(1.1);
  opacity: 0.8;
}

[data-theme="light"] .feedback-quote-icon {
  color: var(--color-plum);
}

.feedback-quote {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feedback-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.author-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-lavender);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .author-avatar-placeholder {
  color: var(--color-wine);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stars-rating {
  display: flex;
  gap: 3px;
  color: var(--color-butter);
  margin-top: 4px;
  text-shadow: 0 0 8px rgba(255, 244, 191, 0.4);
}

/* ==========================================================================
       SECTION 10: GET IN TOUCH (CONTACT)
       ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.direct-contact-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.direct-contact-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.direct-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  transition: transform var(--transition-bounce);
}

.direct-contact-card:hover .direct-icon-wrap {
  transform: scale(1.12) rotate(6deg);
}

.icon-whatsapp {
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.icon-gmail {
  background: #9b0d8f;
  box-shadow: 0 4px 16px rgba(234, 67, 53, 0.4);
}

.direct-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

/* Social Connections Card */
.social-links-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.social-links-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.social-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  border-color: var(--color-lavender);
  background: var(--gradient-soft);
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-bounce);
}

.social-btn:hover svg {
  transform: scale(1.2);
}

/* Contact Form */
.contact-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-lavender);
  box-shadow:
    0 0 0 3px rgba(220, 149, 255, 0.3),
    0 0 20px rgba(220, 149, 255, 0.2);
}

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

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: #ef4444;
}

.form-group.has-error .form-error {
  display: block;
}

/* Form Feedback Message */
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-alert[hidden] {
  display: none !important;
}

.form-alert.success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  animation: alertSlide 0.4s ease-out;
}

@keyframes alertSlide {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
       FOOTER & BACK TO TOP
       ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 38px 0;
  position: relative;
  z-index: 10;
}

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

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-lavender);
  transform: translateY(-2px);
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-smooth);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 0 38px rgba(220, 149, 255, 0.7);
}

/* ==========================================================================
       5. ENHANCED SCROLL REVEAL ANIMATIONS (SCROLLING ANIMATION)
       ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-stagger > *:nth-child(1) {
  transition-delay: 0.04s;
}
.reveal-stagger > *:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal-stagger > *:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal-stagger > *:nth-child(4) {
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.active {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
  .reveal-stagger > * {
    transition-delay: 0s !important;
  }
  #scrollProgressBar {
    transition: none;
  }
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.mobile-menu-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
       RESPONSIVE DESIGN (TABLET & MOBILE)
       ========================================================================== */
@media (max-width: 1024px) {
  section {
    padding: 70px 0;
    scroll-margin-top: 75px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 74px);
    background: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 13px 18px;
    font-size: 1.02rem;
    border-radius: var(--radius-md);
    justify-content: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-tech-stack {
    justify-content: center;
  }

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

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

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

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

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  section {
    padding: 55px 0;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.94rem;
  }

  .hero-name {
    font-size: clamp(2.1rem, 8vw, 2.75rem);
  }

  .hero-title {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  }

  .hero-bio {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .avatar-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .floating-badge {
    display: none;
  }

  .about-photo-wrapper {
    height: 300px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .education-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }

  .edu-degree {
    font-size: 1.35rem;
  }

  .edu-university {
    font-size: 1rem;
  }

  .edu-gpa-badge {
    width: 100%;
    padding: 16px 20px;
  }

  .timeline-container {
    padding-left: 26px;
  }

  .timeline-marker {
    left: -26px;
    width: 20px;
    height: 20px;
  }

  .timeline-container::before {
    left: 8px;
  }

  .experience-card {
    padding: 22px 18px;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .project-card .project-body {
    padding: 20px 18px;
  }

  .project-visual-wrapper,
  .project-visual-placeholder {
    height: 200px;
  }

  .project-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .project-actions-row .btn {
    width: 100%;
  }

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

  .achievement-card {
    padding: 24px 18px;
  }

  .achievement-card.has-media {
    padding: 0;
  }

  .achievement-media-container {
    height: 160px;
  }

  .achievement-card.has-media .achievement-body {
    padding: 20px 18px 24px;
  }

  .feedback-card {
    padding: 24px 20px;
  }

  .contact-form-card {
    padding: 26px 20px;
  }

  .direct-contact-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
  }

  .direct-contact-card .btn {
    width: 100%;
  }

  .social-links-card {
    padding: 20px 18px;
  }

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

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents mobile browser auto-zoom on focus */
  }

  .modal-box {
    padding: 24px 18px;
    max-width: 94vw;
    max-height: 88vh;
    overflow-y: auto;
  }

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

@media (max-width: 480px) {
  .skills-subgrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .skill-item {
    padding: 14px 8px;
  }

  .skill-name {
    font-size: 0.8rem;
  }

  .skill-icon-wrap {
    width: 36px;
    height: 36px;
  }

  .skill-icon-wrap svg {
    width: 26px;
    height: 26px;
  }

  .status-pill {
    font-size: 0.76rem;
    padding: 5px 12px;
  }
}

/* ==========================================================================
       CLIENT REVIEWS & CV DOWNLOAD ENHANCEMENTS
       ========================================================================== */
.star-rating-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.85rem;
  color: rgba(220, 149, 255, 0.28);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast),
    text-shadow var(--transition-fast);
  touch-action: manipulation;
}

.star-btn:hover,
.star-btn.hovered,
.star-btn.active {
  color: #ffd700;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.65);
  transform: scale(1.18);
}

.star-rating-picker .rating-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-lavender);
  margin-left: 8px;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .custom-cursor {
    display: none !important;
  }
}

[data-theme="light"] .star-rating-picker .rating-label {
  color: var(--color-plum);
}

.review-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .review-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .review-form-card {
    padding: 26px 20px;
  }
}

.review-card-pop {
  animation: reviewCardPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes reviewCardPop {
  0% {
    opacity: 0;
    transform: translateY(-25px) scale(0.92);
    box-shadow: 0 0 40px rgba(220, 149, 255, 0.6);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feedback-verified-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  margin-bottom: 18px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.feedback-new-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(220, 149, 255, 0.2);
  border: 1px solid var(--color-lavender);
  color: var(--color-pink);
  margin-bottom: 18px;
  box-shadow: 0 0 15px rgba(220, 149, 255, 0.35);
  animation: shadowPulse 3s infinite alternate ease-in-out;
}

.feedback-card-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-alert.error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  animation: alertSlide 0.4s ease-out;
}

.reviews-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.reviews-loading-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(220, 149, 255, 0.2);
  border-top-color: var(--color-lavender);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spinReview 0.8s linear infinite;
}

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

.wisdom-section {
  --primary-accent: #9b0d8f;
  --bg-color: #1a1a24;
  --text-main: #e2e8f0;
  
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem; /* مساحة خارجية أقل */
  width: 100%;
}

.portfolio-quote {
  position: relative;
  max-width: 750px; /* عرض ملموم أكتر */
  background: linear-gradient(145deg, var(--bg-color), #242430);
  padding: 2rem 3rem; /* مسافات داخلية أقل عشان يقل في الطول */
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary-accent);
  text-align: center;
  margin: 0;
  transition: transform 0.3s ease;
}

.portfolio-quote:hover {
  transform: translateY(-5px);
}

.quote-mark {
  position: absolute;
  font-size: 4rem; /* علامات تنصيص أصغر */
  color: var(--primary-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.top-mark {
  top: 10px;
  left: 15px;
}

.bottom-mark {
  bottom: -15px;
  right: 15px;
}

.quote-text {
  font-size: 1.15rem;
  line-height: 1.6;

  color: var(--text-main);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.quote-highlight {
  font-size: 1.25rem;
  font-weight: 1000;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .portfolio-quote {
    padding: 1.5rem;
  }

  .quote-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .quote-highlight {
    font-size: 1.1rem;
  }

  .quote-mark {
    font-size: 3rem;
  }
}
