/* ==========================================================================
   Asedmmd Mousavi - Luxury 3D Editorial Portfolio
   Designed for High-Fidelity Persian/RTL Layout & Future Django Integration
   ========================================================================== */

/* --------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------- */
:root {
  /* Color Palette matching reference */
  --bg-primary: #0b090a;
  --bg-secondary: #120e10;
  --bg-card: rgba(22, 18, 20, 0.85);
  --bg-card-hover: rgba(31, 24, 27, 0.95);
  --bg-overlay: rgba(11, 9, 10, 0.85);

  --accent-burgundy: #5c1d2b;
  --accent-burgundy-glow: rgba(92, 29, 43, 0.45);
  --accent-gold: #dfbfa8;
  --accent-gold-hover: #edd3c2;
  --accent-gold-glow: rgba(223, 191, 168, 0.3);
  --accent-rose: #9c3349;
  
  --text-main: #f0eae6;
  --text-muted: #b5aba5;
  --text-subtle: #736a67;
  --text-dark: #0b090a;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-burgundy: rgba(92, 29, 43, 0.5);
  --border-active: rgba(223, 191, 168, 0.4);

  /* 3D Shadows */
  --shadow-3d-card: 0 20px 40px -15px rgba(0, 0, 0, 0.9), 0 0 25px rgba(92, 29, 43, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  --shadow-3d-hover: 0 30px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(92, 29, 43, 0.4), inset 0 1px 2px rgba(223, 191, 168, 0.25);

  /* Typography */
  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-script: 'Great Vibes', 'Alex Brush', cursive, sans-serif;

  /* Layout & Spacing */
  --container-max-width: 1280px;
  --section-padding: 80px 24px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-persian);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  perspective: 1400px;
  background-image: 
    radial-gradient(circle at 85% 15%, var(--accent-burgundy-glow) 0%, transparent 50%),
    radial-gradient(circle at 15% 55%, rgba(74, 21, 33, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(92, 29, 43, 0.3) 0%, transparent 55%);
  background-attachment: fixed;
}

/* 3D Ambient Glowing Orbs */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.5;
  border-radius: 50%;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-glow-1 {
  top: -100px;
  right: -50px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #5c1d2b 0%, transparent 70%);
}

.ambient-glow-2 {
  top: 50%;
  left: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #4a1521 0%, transparent 70%);
  animation-delay: -4s;
}

.ambient-glow-3 {
  bottom: 80px;
  right: 10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(92, 29, 43, 0.35) 0%, transparent 70%);
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.08); }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------
   3D Tilt & Interactive Cards System
   -------------------------------------------------- */
.js-tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  position: relative;
  will-change: transform;
}

.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.js-tilt-card:hover .card-glare {
  opacity: 1;
}

/* --------------------------------------------------
   Top Header Bar
   -------------------------------------------------- */
.site-header {
  padding: 24px 0 16px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-tag {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-tag .dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(223, 191, 168, 0.9);
}

/* --------------------------------------------------
   Hero Section
   -------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 30px 0 70px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

/* Massive 3D Editorial Title */
.hero-giant-title {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 14vw, 13.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #dfbfa8;
  opacity: 0.95;
  user-select: none;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
  line-height: 0.9;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.2),
    0 4px 8px rgba(0,0,0,0.8),
    0 15px 30px rgba(0,0,0,0.9),
    0 0 40px rgba(92, 29, 43, 0.5);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

/* Hero Content - Right Side */
.hero-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--border-radius-pill);
  background: rgba(46, 213, 115, 0.08);
  border: 1px solid rgba(46, 213, 115, 0.3);
  box-shadow: 0 4px 15px rgba(46, 213, 115, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: #4cd137;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.status-badge .live-dot {
  width: 7px;
  height: 7px;
  background-color: #4cd137;
  border-radius: 50%;
  box-shadow: 0 0 10px #4cd137;
  animation: pulseDot 2s infinite ease-in-out;
}

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

/* 3D Pill Button */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(223, 191, 168, 0.5);
  background: linear-gradient(135deg, rgba(28, 20, 24, 0.9), rgba(18, 14, 16, 0.8));
  backdrop-filter: blur(14px);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.btn-pill:hover {
  background: linear-gradient(135deg, #702033, #4a1521);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(92, 29, 43, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-pill:active {
  transform: translateY(0) scale(0.98);
}

.btn-pill .sparkle {
  color: var(--accent-gold);
  font-size: 1rem;
}

.hero-signature {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: #dfbfa8;
  text-shadow: 0 2px 15px rgba(223, 191, 168, 0.4);
  transform: rotate(-3deg);
  margin-top: 4px;
  letter-spacing: 2px;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
}

/* Hero Center - 3D Portrait Container */
.hero-col-center {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-portrait-frame {
  width: 100%;
  max-width: 420px;
  height: 520px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-3d-card);
  border: 1px solid rgba(223, 191, 168, 0.15);
  background-color: var(--bg-card);
  /* ماسک هوشمند برای محو تدریجی بالای عکس و آشکارسازی کامل PORTFOLIO */
  -webkit-mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    transparent 12%, 
    rgba(0, 0, 0, 0.35) 26%, 
    rgba(0, 0, 0, 0.85) 38%, 
    #000000 50%, 
    #000000 100%
  );
  mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    transparent 12%, 
    rgba(0, 0, 0, 0.35) 26%, 
    rgba(0, 0, 0, 0.85) 38%, 
    #000000 50%, 
    #000000 100%
  );
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
  filter: contrast(1.05) brightness(0.95);
  transition: transform var(--transition-slow);
}

.hero-portrait-frame:hover .hero-portrait-img {
  transform: scale(1.04);
}

/* Hero Content - Left Side (Bio & Location) */
.hero-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}

/* Luxury 3D Bio Card */
.hero-bio-card {
  width: 100%;
  max-width: 340px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(28, 20, 24, 0.75), rgba(15, 11, 13, 0.85));
  border: 1px solid rgba(223, 191, 168, 0.2);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-3d-card);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.hero-bio-card:hover {
  border-color: rgba(223, 191, 168, 0.45);
  box-shadow: var(--shadow-3d-hover);
  transform: translateY(-3px);
}

.bio-accent-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-burgundy));
  border-radius: 0 4px 4px 0;
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.85;
  text-align: right;
  direction: rtl;
}

.bio-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-gold);
  letter-spacing: 0.3px;
}

.bio-highlight {
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, #dfbfa8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3D Fixed Location & Remote Card */
.hero-location-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(24, 17, 20, 0.7), rgba(13, 9, 11, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-3d-card);
  backdrop-filter: blur(14px);
  text-align: right;
  direction: rtl;
  transition: all var(--transition-normal);
}

.hero-location-card:hover {
  border-color: var(--border-burgundy);
  box-shadow: var(--shadow-3d-hover);
  transform: translateY(-2px);
}

.location-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #702033, #3a1019);
  border: 1px solid rgba(223, 191, 168, 0.45);
  box-shadow: 0 8px 20px rgba(92, 29, 43, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.location-pin-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  animation: pinBounce 3s ease-in-out infinite;
  z-index: 2;
  transition: transform 0.3s ease;
}

.hero-location-card:hover .location-pin-img {
  transform: scale(1.15) translateY(-2px);
}

@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.pin-radar-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(223, 191, 168, 0.45);
  animation: radarWave 2.5s infinite ease-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes radarWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.location-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-city {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.location-type {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* --------------------------------------------------
   Section Common Header
   -------------------------------------------------- */
.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 36px;
}

.section-title-tag {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-tag .star {
  color: var(--accent-gold);
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(223, 191, 168, 0.7);
}

.section-link-more {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------
   Selected Projects Section (3D Video Support)
   -------------------------------------------------- */
.projects-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-3d-card);
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-burgundy);
  box-shadow: var(--shadow-3d-hover);
  transform: translateY(-6px);
}

.project-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.project-number {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 2px 10px rgba(223, 191, 168, 0.3);
}

.project-meta-info {
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  text-transform: uppercase;
}

.project-category {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Video / Preview Container */
.project-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius-sm);
  background-color: #140d11;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  position: relative;
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(92, 29, 43, 0.35) 0%, #120e10 85%);
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-placeholder-box:hover {
  background: radial-gradient(circle at center, rgba(120, 39, 58, 0.5) 0%, #161113 85%);
}

.play-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5c1d2b, #2b0e14);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 6px 20px rgba(92, 29, 43, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: all var(--transition-fast);
}

.play-icon-circle svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.project-card:hover .play-icon-circle {
  transform: scale(1.12);
  box-shadow: 0 10px 25px rgba(92, 29, 43, 0.7);
}

.video-hint-text {
  font-size: 0.8rem;
  color: var(--text-main);
  max-width: 220px;
  line-height: 1.4;
  font-weight: 500;
}

.video-file-name {
  font-size: 0.72rem;
  color: var(--accent-gold);
  direction: ltr;
  opacity: 0.85;
}

/* Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-badge {
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------
   Tools & Tech Stack Section (3D Interactive Grid)
   -------------------------------------------------- */
.tools-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-color);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-3d-card);
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.tool-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-burgundy);
  box-shadow: var(--shadow-3d-hover);
  transform: translateY(-4px);
}

.tool-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(223, 191, 168, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 9px;
  transition: all var(--transition-fast);
}

.tech-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-fast);
}

.tool-card:hover .tech-icon-img {
  transform: scale(1.15) rotate(3deg);
}

.tool-card:hover .tool-icon-box {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(92, 29, 43, 0.4), rgba(22, 18, 20, 0.8));
  box-shadow: 0 6px 20px rgba(92, 29, 43, 0.45);
}

.tool-details {
  display: flex;
  flex-direction: column;
}

.tool-name {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-main);
  text-transform: uppercase;
}

.tool-role-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --------------------------------------------------
   Contact / CTA Section
   -------------------------------------------------- */
.contact-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.2fr 240px;
  align-items: center;
  gap: 32px;
}

/* Contact Col 1: Big Heading */
.contact-heading-wrap h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  text-transform: uppercase;
}

.contact-script-word {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  color: #dfbfa8;
  font-weight: 400;
  margin-top: 4px;
  direction: ltr;
  text-align: right;
  text-transform: none !important;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(223, 191, 168, 0.4);
  white-space: nowrap;
}

/* Contact Col 2: Info & Action */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-availability-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.contact-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0;
}

.contact-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  direction: ltr;
  justify-content: flex-start;
  transition: all var(--transition-fast);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius-sm);
  width: fit-content;
}

.contact-detail-item:hover {
  background: rgba(92, 29, 43, 0.35);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: translateX(-4px);
  box-shadow: 0 4px 15px rgba(92, 29, 43, 0.3);
}

.contact-channel-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.contact-detail-item:hover .contact-channel-icon {
  transform: scale(1.15);
}

/* Contact Col 3: Portrait Frame */
.contact-portrait-wrap {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.contact-portrait-frame {
  width: 240px;
  height: 300px;
  flex-shrink: 0;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(223, 191, 168, 0.3);
  background-color: var(--bg-card);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-3d-card);
}

.contact-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
  transition: transform var(--transition-normal);
}

.contact-portrait-frame:hover img {
  transform: scale(1.04);
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */
.site-footer {
  padding: 30px 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-content .star {
  color: var(--accent-gold);
}

/* --------------------------------------------------
   Interactive Modal for Contact / Message
   -------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 9, 10, 0.88);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-box {
  background: linear-gradient(145deg, #1d1418, #120e10);
  border: 1px solid var(--border-burgundy);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 540px;
  padding: 36px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(92, 29, 43, 0.4);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  position: relative;
}

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

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--accent-burgundy);
  color: #fff;
  border-color: var(--accent-gold);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

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

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(223, 191, 168, 0.15);
}

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

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, #78273a, #4a1521);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(92, 29, 43, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
  margin-top: 10px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #8f3147, #5c1d2b);
  box-shadow: 0 12px 25px rgba(92, 29, 43, 0.65);
  transform: translateY(-2px);
}

.form-alert-msg {
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-alert-msg.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.form-alert-msg.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.live-dot.busy {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.empty-projects-msg, .empty-skills-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-md);
}

/* --------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------- */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero-col-center {
    grid-column: span 2;
    order: -1;
    margin-bottom: 20px;
  }

  .hero-portrait-frame {
    max-width: 340px;
    height: 420px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-portrait-wrap {
    grid-column: span 2;
    margin-top: 20px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-giant-title {
    font-size: clamp(3.2rem, 16vw, 6rem);
    top: 5px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
    text-align: center;
  }

  .hero-col-right, .hero-col-left {
    align-items: center;
    text-align: center;
  }

  .hero-bio-card, .hero-location-card {
    max-width: 100%;
  }

  .hero-col-center {
    grid-column: span 1;
  }

  .hero-portrait-frame {
    max-width: 280px;
    height: 360px;
  }

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

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

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

  .contact-heading-wrap, .contact-info-wrap {
    align-items: center;
    text-align: center;
  }

  .contact-script-word {
    text-align: center;
  }

  .contact-detail-item {
    justify-content: center;
  }

  .contact-portrait-wrap {
    grid-column: span 1;
  }
}

/* Small Mobile (<= 425px) */
@media (max-width: 425px) {
  :root {
    --section-padding: 50px 16px;
  }

  .btn-pill {
    padding: 10px 20px;
    font-size: 0.82rem;
  }

  .hero-signature {
    font-size: 2.5rem;
  }

  .modal-box {
    padding: 24px 16px;
  }
}
