/* ==========================================================================
   AMIR HASSEN ALI - REFACTORED SENIOR PORTFOLIO (amir.pro.et)
   Design System: Strict Flat Minimalist & Restrained Liquid Glass
   Colors:
     #023d39 (Deep Forest Teal)
     #dba359 (Warm Radiant Gold)
     #ffffff (Pure Brilliant White)
   Typography:
     'Montserrat', sans-serif exclusively across 100% of the website.
   STRICT RULE: PURE FLAT SOLID COLOR PALETTE ONLY.
   ========================================================================== */

:root {
  /* Strict Flat Palette */
  --c-teal: #023d39;
  --c-teal-deep: #012220;
  --c-teal-dark: #012b28;
  --c-teal-surface: #034b46;
  --c-teal-card: #023632;
  --c-teal-glass: rgba(2, 61, 57, 0.85);

  --c-gold: #dba359;
  --c-gold-hover: #e8b877;
  --c-gold-subtle: rgba(219, 163, 89, 0.15);
  --c-gold-border: rgba(219, 163, 89, 0.35);

  --c-white: #ffffff;
  --c-white-dim: rgba(255, 255, 255, 0.85);
  --c-white-muted: rgba(255, 255, 255, 0.65);
  --c-white-faint: rgba(255, 255, 255, 0.12);

  /* Software Official Accent Colors (Progress Bar & Indicator) */
  --c-sw-ps: #31a8ff;
  --c-sw-ai: #ff9a00;
  --c-sw-pr: #9999ff;
  --c-sw-ae: #9999ff;
  --c-sw-id: #ff3366;
  --c-sw-figma: #f24e1e;

  /* Typography: Strictly Montserrat */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Geometry & Restrained Glass */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Subtle Shadows & Clean Transitions */
  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.75);

  --ease-clean: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: var(--font-main);
  background-color: var(--c-teal-deep);
  color: var(--c-white);
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--c-teal-deep);
  color: var(--c-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Download protection on portfolio assets */
.no-download,
.no-download img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* Headings & Text */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

p {
  font-family: var(--font-main);
  color: var(--c-white-dim);
}

/* ==========================================================================
   RESTRAINED LIQUID GLASS SYSTEM (FLAT TRANSLUCENT)
   ========================================================================== */

.liquid-glass {
  background-color: var(--c-teal-glass);
  border: 1px solid var(--c-gold-border);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.liquid-glass-card {
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.25);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.liquid-glass-card:hover {
  border-color: var(--c-gold);
  transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background-color: var(--c-gold);
  color: var(--c-teal-deep);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--c-gold);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--c-white);
  color: var(--c-teal-deep);
  border-color: var(--c-white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--c-white);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--c-gold-border);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--c-gold-subtle);
  border-color: var(--c-gold);
  color: var(--c-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   MINIMAL WELCOME / LOADING SCREEN (CLEAN TEXT ONLY)
   ========================================================================== */

#welcome-screen {
  position: fixed;
  inset: 0;
  background-color: var(--c-teal-deep);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  will-change: opacity, transform;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

#welcome-screen.dissolved {
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
}

.welcome-minimal-box {
  text-align: center;
}

.welcome-minimal-text {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-white);
  opacity: 0;
  animation: animCalmFadeIn 0.8s ease forwards;
}

/* Ambient Background Particles Canvas (Low-Attention, Non-Distracting) */
.ambient-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   TOP NAVIGATION BAR (SOLID #023d39, PROMINENT STANDALONE LOGO)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background-color: var(--c-teal);
  border-bottom: 1px solid rgba(219, 163, 89, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.nav-brand-logo {
  height: 60px;
  width: auto;
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 10px 16px;
  color: var(--c-white);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--c-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.nav-talk-btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background-color: var(--c-gold);
  color: var(--c-teal-deep);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--c-gold);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-talk-btn:hover {
  background-color: var(--c-white);
  color: var(--c-teal-deep);
  border-color: var(--c-white);
  transform: translateY(-1px);
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--c-gold);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--c-gold);
}

.mobile-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  padding: 24px 32px;
  background-color: var(--c-teal);
  border-bottom: 2px solid var(--c-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 0.95rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   HERO SECTION (CLEAN, STILL / SUBTLE MOTION, MONTSERRAT ONLY)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 92vh;
  padding: 130px 24px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-grid {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-author-tag {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.hero-main-title {
  font-family: var(--font-main);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.hero-main-title .gold-text {
  color: var(--c-gold);
}

.hero-subheadline {
  font-family: var(--font-main);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--c-white-dim);
  max-width: 540px;
  font-weight: 400;
}

.hero-quote-note {
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--c-white-muted);
  max-width: 520px;
  line-height: 1.6;
  border-left: 2px solid var(--c-gold);
  padding-left: 14px;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Hero Portrait Frame (Clean, Still, Flat) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background-color: var(--c-teal-card);
  border: 1px solid var(--c-gold-border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease;
}

.hero-portrait-frame:hover {
  border-color: var(--c-gold);
}

.hero-portrait-img-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--c-teal-deep);
  aspect-ratio: 4 / 5;
}

.hero-portrait-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   WHAT I DO — DYNAMIC FOLDER UI
   ========================================================================== */

.section-wrapper {
  position: relative;
  padding: 90px 24px;
  z-index: 10;
}

.container-narrow {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--c-gold-subtle);
  border: 1px solid var(--c-gold-border);
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-main);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--c-white-muted);
  line-height: 1.6;
}

/* Interactive Folder-Style Layout */
.folder-deck-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.folder-tabs-header {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 0;
  margin-bottom: -1px;
  z-index: 2;
  position: relative;
}

.folder-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 12px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.25);
  border-bottom: none;
  color: var(--c-white-muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.folder-tab-btn .folder-idx {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-gold);
}

.folder-tab-btn:hover {
  color: var(--c-white);
  background-color: var(--c-teal-surface);
}

.folder-tab-btn.active {
  background-color: var(--c-teal-card);
  border-color: var(--c-gold);
  color: var(--c-gold);
  font-weight: 700;
  transform: translateY(-2px);
}

.folder-body-canvas {
  background-color: var(--c-teal-card);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-lg);
  border-top-left-radius: 0;
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  min-height: 280px;
  position: relative;
}

.folder-panel-item {
  display: none;
  animation: animCalmFadeIn 0.35s ease forwards;
}

.folder-panel-item.active {
  display: block;
}

.folder-panel-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.folder-panel-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.folder-discipline-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-gold);
  letter-spacing: 0.08em;
}

.folder-discipline-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--c-white);
}

.folder-discipline-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-white-dim);
}

.folder-deliverables-box {
  background-color: var(--c-teal-deep);
  border: 1px solid var(--c-gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.folder-deliverables-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-gold);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.folder-deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folder-deliverables-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--c-white-dim);
}

.folder-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-gold);
}

/* ==========================================================================
   PORTFOLIO SHOWCASE & CARD TEXT BELOW IMAGE
   ========================================================================== */

.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.25);
  color: var(--c-white-dim);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-white);
}

.filter-btn.active {
  background-color: var(--c-gold);
  color: var(--c-teal-deep);
  border-color: var(--c-gold);
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Portfolio Card: Text cleanly positioned BELOW the image */
.work-card {
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-card);
}

.work-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--c-teal-deep);
}

.work-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-card:hover .work-thumb-wrapper img {
  transform: scale(1.03);
}

/* Card Information Block: 100% Below Image */
.work-card-info-bottom {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--c-teal-card);
  border-top: 1px solid rgba(219, 163, 89, 0.15);
  flex: 1;
}

.work-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-category-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--c-gold-subtle);
  border: 1px solid var(--c-gold-border);
  color: var(--c-gold);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

.work-card-rating span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-left: 3px;
}

.star-icon {
  width: 13px;
  height: 13px;
  fill: var(--c-gold);
}

.work-card-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.35;
}

.work-card-institution {
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--c-white-muted);
}

/* ==========================================================================
   PORTFOLIO DETAIL MODAL (CLEAN LIGHTBOX, UNOBSTRUCTED ARTWORK)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(1, 25, 23, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-clean-panel {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  background-color: var(--c-teal-deep);
  border: 1px solid var(--c-gold-border);
  box-shadow: var(--shadow-modal);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--c-teal-card);
  border: 1px solid var(--c-gold-border);
  color: var(--c-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--c-gold);
  color: var(--c-teal-deep);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Modal Artwork Display (Completely Clear, No Text Overlaid) */
.modal-media-pane {
  position: relative;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  user-select: none;
}

.modal-media-pane img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.modal-watermark-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: rgba(2, 61, 57, 0.85);
  border: 1px solid var(--c-gold-border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-gold);
  pointer-events: none;
}

/* Modal Concise Information */
.modal-details-pane {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.modal-work-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.25;
}

.modal-meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.2);
}

.modal-meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-gold);
}

.modal-meta-val {
  font-size: 0.88rem;
  color: var(--c-white-dim);
  line-height: 1.5;
}

.modal-client-quote {
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: var(--c-teal-card);
  border-left: 3px solid var(--c-gold);
  border-top: 1px solid rgba(219, 163, 89, 0.2);
  border-right: 1px solid rgba(219, 163, 89, 0.2);
  border-bottom: 1px solid rgba(219, 163, 89, 0.2);
}

.modal-quote-text {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--c-white);
  line-height: 1.5;
  margin-bottom: 6px;
}

.modal-quote-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   ABOUT AMIR HASSEN ALI (STRICTLY PORTRAIT PHOTO ONLY, FLAT SYSTEM)
   ========================================================================== */

.about-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.about-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background-color: var(--c-teal-card);
  border: 1px solid var(--c-gold-border);
  color: var(--c-white-dim);
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.about-tab-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-white);
}

.about-tab-btn.active {
  background-color: var(--c-gold);
  color: var(--c-teal-deep);
  border-color: var(--c-gold);
  font-weight: 700;
}

.about-tab-content {
  display: none;
  animation: animCalmFadeIn 0.3s ease;
}

.about-tab-content.active {
  display: block;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.about-portrait-card {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-lg);
  background-color: var(--c-teal-card);
  border: 1px solid var(--c-gold-border);
}

.about-portrait-card img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-text-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-greeting-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-main-headline {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.25;
}

.highlight-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background-color: var(--c-teal-card);
  border-left: 3px solid var(--c-gold);
  border-top: 1px solid rgba(219, 163, 89, 0.2);
  border-right: 1px solid rgba(219, 163, 89, 0.2);
  border-bottom: 1px solid rgba(219, 163, 89, 0.2);
}

.highlight-box p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--c-white-dim);
}

.about-paragraph {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--c-white-muted);
}

/* Quick Facts Grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.fact-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-gold);
}

.fact-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-white);
}

/* Process Timeline (How We'll Work Together) */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.process-step-card {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--c-gold);
  color: var(--c-teal-deep);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
}

.step-text {
  font-size: 0.88rem;
  color: var(--c-white-dim);
  line-height: 1.6;
}

/* ==========================================================================
   SOFTWARE & STRENGTHS (NO CODING, VERTICAL ANIMATED PROGRESS BARS)
   ========================================================================== */

.software-vertical-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.software-row-card {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background-color: var(--c-teal-card);
  border: 1px solid rgba(219, 163, 89, 0.25);
  display: grid;
  grid-template-columns: 52px 1fr 64px;
  gap: 20px;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.software-row-card:hover {
  border-color: var(--c-gold);
  transform: translateX(4px);
}

/* Icon badge rendered in Brand Colors (#dba359 / #ffffff on #023d39) */
.software-brand-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--c-teal-deep);
  border: 1px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-gold);
  letter-spacing: -0.02em;
}

.software-info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.software-header-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.software-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
}

.software-specialty {
  font-size: 0.8rem;
  color: var(--c-white-muted);
}

/* Animated Progress Bar Track */
.software-bar-track {
  width: 100%;
  height: 7px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.software-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Specific Software Colors for Progress Fill & Indicator */
.software-bar-fill.ps,
.software-percent.ps {
  background-color: var(--c-sw-ps);
}
.software-percent.ps { background: none; color: var(--c-sw-ps); }

.software-bar-fill.ai,
.software-percent.ai {
  background-color: var(--c-sw-ai);
}
.software-percent.ai { background: none; color: var(--c-sw-ai); }

.software-bar-fill.pr,
.software-percent.pr {
  background-color: var(--c-sw-pr);
}
.software-percent.pr { background: none; color: var(--c-sw-pr); }

.software-bar-fill.ae,
.software-percent.ae {
  background-color: var(--c-sw-ae);
}
.software-percent.ae { background: none; color: var(--c-sw-ae); }

.software-bar-fill.id,
.software-percent.id {
  background-color: var(--c-sw-id);
}
.software-percent.id { background: none; color: var(--c-sw-id); }

.software-bar-fill.figma,
.software-percent.figma {
  background-color: var(--c-sw-figma);
}
.software-percent.figma { background: none; color: var(--c-sw-figma); }

.software-percent {
  font-size: 1.1rem;
  font-weight: 800;
  text-align: right;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 30px;
}

.contact-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background-color: var(--c-teal-card);
  border: 1px solid var(--c-gold-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--c-teal-deep);
  border: 1px solid rgba(219, 163, 89, 0.3);
  color: var(--c-white);
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-gold);
  background-color: var(--c-teal-card);
}

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

.contact-direct-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background-color: var(--c-teal-deep);
  border: 1px solid rgba(219, 163, 89, 0.2);
  color: var(--c-white);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-link-pill:hover {
  border-color: var(--c-gold);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--c-teal-card);
  border: 1px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-gold);
}

/* ==========================================================================
   10. AI PORTFOLIO GUIDE CHATBOT & RIGGED ROBOT MASCOT (amir.pro.et)
   Strict Flat Color Palette: #023d39, #dba359, #ffffff. Pure Flat Solids.
   ========================================================================== */

/* Mascot Trigger Button (Standalone Floating Robot Head - Much Larger 100x100, Zero Box) */
.ai-bot-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 100px;
  height: 100px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  margin: 0;
  outline: none;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.ai-bot-trigger-btn:hover {
  transform: scale(1.08);
  background: transparent;
}

.ai-bot-trigger-btn:active {
  transform: scale(0.95);
}

.trigger-mascot-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent;
  border: none;
}

/* Smoothly hide trigger mascot when chat drawer opens so header mascot takes prominence */
body.ai-chat-open .ai-bot-trigger-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}

/* Redesigned High-Contrast Flat Chat Window (Solid #023d39 Header, Crisp #ffffff Feed) */
.ai-chat-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 48px);
  border-radius: 16px;
  background-color: var(--c-white);
  border: 2px solid var(--c-teal);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  z-index: 10001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
}

.ai-chat-window.active {
  display: flex;
  animation: animDrawerPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Chat Header in Solid Flat Deep Teal (#023d39) with Prominent Large Mascot */
.ai-chat-header {
  padding: 14px 18px;
  background-color: var(--c-teal);
  border-bottom: 2px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ai-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-mascot-container {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ai-header-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-gold);
  background-color: #012825;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-gold);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.25s ease;
}

.ai-chat-close-btn {
  background: transparent;
  border: none;
  color: var(--c-gold);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.ai-chat-close-btn:hover {
  background-color: rgba(219, 163, 89, 0.18);
  color: var(--c-white);
}

/* Message Feed Body in Crisp Solid White (#ffffff) */
.ai-chat-messages {
  flex: 1;
  padding: 18px;
  background-color: #ffffff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.ai-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.ai-chat-msg.bot-msg {
  align-self: flex-start;
}

.ai-chat-msg.user-msg {
  align-self: flex-end;
}

.ai-msg-bubble {
  padding: 12px 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  word-break: break-word;
}

/* Incoming Bot Bubble: Deep Teal #023d39 with White Text & Gold Border Accent */
.ai-chat-msg.bot-msg .ai-msg-bubble {
  background-color: var(--c-teal);
  color: var(--c-white);
  border-radius: 14px 14px 14px 2px;
  border: 1px solid rgba(219, 163, 89, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* User Bubble: Radiant Gold #dba359 with Deep Teal #023d39 Text */
.ai-chat-msg.user-msg .ai-msg-bubble {
  background-color: var(--c-gold);
  color: var(--c-teal-deep);
  font-weight: 600;
  border-radius: 14px 14px 2px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Quick Navigation Chips in Crisp White / Teal Outline */
.ai-quick-chips {
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  background-color: #ffffff;
  border-top: 1px solid #e2e8e7;
  scrollbar-width: none;
}

.ai-quick-chips::-webkit-scrollbar {
  display: none;
}

.ai-chip-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: #ffffff;
  color: var(--c-teal);
  border: 1px solid var(--c-teal);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ai-chip-btn:hover {
  background-color: var(--c-teal);
  color: var(--c-gold);
  border-color: var(--c-teal);
}

/* Chat Input Bar Anchored at Bottom in Solid White with 1px solid #023d39 border */
.ai-chat-input-bar {
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid var(--c-teal);
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-chat-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background-color: #ffffff;
  border: 1px solid var(--c-teal);
  color: var(--c-teal);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-input:focus {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 2px rgba(2, 61, 57, 0.2);
}

.ai-chat-input::placeholder {
  color: #627573;
}

.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--c-teal);
  border: none;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ai-chat-send:hover {
  background-color: var(--c-gold);
  color: var(--c-teal);
  transform: scale(1.05);
}

.ai-chat-send:active {
  transform: scale(0.95);
}
  color: var(--c-teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.ai-chat-send:hover {
  background-color: var(--c-white);
  transform: scale(1.05);
}

.ai-chat-send:active {
  transform: scale(0.95);
}

/* Temporary Section Highlight Outline */
.section-highlight-active {
  outline: 2px solid var(--c-gold) !important;
  outline-offset: 8px !important;
  transition: outline 0.3s ease;
}

/* ==========================================================================
   ROBOT RIG SVG GEOMETRY & PARTICLE STYLING
   ========================================================================== */

.bot-svg-element {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.bot-head-group {
  transform-origin: 60px 60px;
  transition: transform 0.25s ease;
}

.bot-antenna-part {
  transform-origin: 60px 22px;
}

.bot-antenna-orb {
  transform-origin: 60px 20px;
}

.bot-pupil {
  transition: transform 0.08s ease-out;
}

.eyelid-top,
.eyelid-bottom {
  transition: height 0.12s ease;
}

.bot-mouth-part {
  transition: d 0.15s ease, fill 0.15s ease, stroke 0.15s ease;
}

.bot-cheeks-part {
  transition: opacity 0.3s ease;
}

.particle-soundwaves {
  transform-origin: 60px 68px;
}

.particle-anger {
  transform-origin: 84px 47px;
}

.particle-zzz {
  transform-origin: 90px 30px;
}

.particle-sparkles {
  transform-origin: 92px 28px;
}

/* ==========================================================================
   14 DISTINCT WORKING ANIMATIONS & EMOTION RIG KEYFRAMES
   ========================================================================== */

/* 1. Idle Breath & Antenna Ambient Float */
.bot-anim-idle .bot-head-group {
  animation: animBotFloat 3.8s ease-in-out infinite;
}

.bot-anim-idle .bot-antenna-part {
  animation: animAntennaSway 3.8s ease-in-out infinite;
}

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

@keyframes animAntennaSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

/* 2. Curious Head Tilt */
.bot-anim-curious .bot-head-group {
  transform: rotate(-3.5deg) translateY(-1px);
}

/* 3. Happy Hop */
.bot-anim-happy .bot-head-group {
  animation: animBotHappyHop 0.8s ease-in-out infinite;
}

@keyframes animBotHappyHop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.03); }
}

/* 4. Excited Rapid Wiggle & Antenna Pulse */
.bot-anim-excited .bot-head-group {
  animation: animBotExcitedWiggle 0.5s ease-in-out infinite;
}

.bot-anim-excited .bot-antenna-orb {
  animation: animAntennaPulse 0.5s ease-in-out infinite;
}

.bot-anim-excited .particle-sparkles {
  animation: animSparkleTwinkle 0.8s ease-in-out infinite;
}

@keyframes animBotExcitedWiggle {
  0%, 100% { transform: rotate(0deg) translateY(-2px); }
  25% { transform: rotate(4deg) translateY(-4px); }
  75% { transform: rotate(-4deg) translateY(-4px); }
}

@keyframes animAntennaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* 5. Thinking Tilt & Pondering Gaze */
.bot-anim-thinking .bot-head-group {
  transform: rotate(4deg) translateY(-2px);
}

.bot-anim-thinking .bot-antenna-orb {
  animation: animAntennaPulse 1.2s ease-in-out infinite;
}

/* 6. Bored Slump */
.bot-anim-bored .bot-head-group {
  transform: rotate(5deg) translateY(3px);
}

/* 7. Sleepy Nod */
.bot-anim-sleepy .bot-head-group {
  animation: animBotNodSleep 4s ease-in-out infinite;
}

.bot-anim-sleepy .particle-zzz {
  animation: animZzzDrift 2.2s ease-in-out infinite;
}

@keyframes animBotNodSleep {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(4px) rotate(6deg); }
}

@keyframes animZzzDrift {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(6px, -12px) scale(1.15); }
}

/* 8. Annoyed Head Shake */
.bot-anim-annoyed .bot-head-group {
  animation: animHeadShake 0.4s ease-in-out;
}

@keyframes animHeadShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-3deg); }
  75% { transform: translateX(4px) rotate(3deg); }
}

/* 9. Angry Tremor & Vein Mark Pulse */
.bot-anim-angry .bot-head-group {
  animation: animAngryTremor 0.15s infinite;
}

.bot-anim-angry .particle-anger {
  animation: animAngerPulse 0.4s ease-in-out infinite;
}

@keyframes animAngryTremor {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1.5px, 1px); }
  75% { transform: translate(1.5px, -1px); }
}

@keyframes animAngerPulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.25); }
}

/* 10. Surprised Pop Jump */
.bot-anim-surprised .bot-head-group {
  animation: animPopJump 0.5s ease-out;
}

@keyframes animPopJump {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.08) translateY(-8px); }
  70% { transform: scale(0.96) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

/* 11. Wink Tilt */
.bot-anim-wink .bot-head-group {
  transform: rotate(-2deg);
}

/* 12. Listening Acoustic Pulse */
.bot-anim-listening .particle-soundwaves {
  animation: animSoundwavePulse 1s ease-in-out infinite;
}

@keyframes animSoundwavePulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 13. Proud Affirmative Nod */
.bot-anim-proud .bot-head-group {
  animation: animAffirmativeNod 1.2s ease-in-out;
}

@keyframes animAffirmativeNod {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  70% { transform: translateY(2px); }
}

/* 14. Shy Modest Tilt */
.bot-anim-shy .bot-head-group {
  transform: rotate(3deg) translateY(1px);
}

/* Additional UI Keyframes */
@keyframes animSparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

@keyframes animTooltipFade {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes animDrawerPop {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  padding: 60px 24px 30px;
  border-top: 1px solid var(--c-gold-border);
  background-color: var(--c-teal-deep);
  z-index: 10;
}

.footer-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  height: 42px;
  width: auto;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--c-white-muted);
  line-height: 1.6;
  max-width: 340px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: var(--c-white-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--c-gold);
}

.footer-bottom-bar {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--c-white-muted);
}

.admin-secret-trigger {
  color: rgba(219, 163, 89, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  transition: color 0.2s ease;
}

.admin-secret-trigger:hover {
  color: var(--c-gold);
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background-color: var(--c-teal-deep);
  border: 1px solid var(--c-gold);
  color: var(--c-white);
  box-shadow: var(--shadow-card);
  font-size: 0.86rem;
  font-weight: 600;
  pointer-events: auto;
  animation: animCalmFadeIn 0.3s ease;
}

/* ==========================================================================
   SUBTLE STILL ANIMATIONS (CALM, GENTLE, NON-CHAOTIC)
   ========================================================================== */

@keyframes animCalmFadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

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

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

  .hero-main-title {
    font-size: 2.7rem;
  }

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

  .modal-clean-panel {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .cms-layout-grid {
    grid-template-columns: 1fr;
  }

  .cms-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--c-gold-border);
  }

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

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

  .folder-panel-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 68px;
  }

  .nav-container {
    padding: 0 18px;
  }

  .nav-brand-logo {
    height: 44px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .mobile-drawer {
    top: 68px;
  }

  .hero-section {
    padding-top: 104px;
  }

  .hero-main-title {
    font-size: 2.1rem;
  }

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

  .software-row-card {
    grid-template-columns: 44px 1fr 48px;
    gap: 12px;
    padding: 16px;
  }

  .ai-bot-trigger-btn {
    bottom: 16px;
    right: 16px;
    width: 84px;
    height: 84px;
  }

  .trigger-mascot-container {
    width: 84px;
    height: 84px;
  }

  .ai-chat-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
    height: calc(100vh - 88px);
    max-height: 540px;
  }
}
