/* Custom component styles — Tailwind utilities are in output.css */

/* فونت Dana با وزن‌های مختلف */
@font-face {
  font-family: "Dana";
  src: url("/frontend/src/fonts/Dana/woff2/DanaFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("/frontend/src/fonts/Dana/woff2/DanaFaNum-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("/frontend/src/fonts/Dana/woff2/DanaFaNum-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* فونت Morabba با وزن‌های مختلف */
@font-face {
  font-family: "Morabba";
  src: url("/frontend/src/fonts/Morabba/woff2/Morabba-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Morabba";
  src: url("/frontend/src/fonts/Morabba/woff2/Morabba-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Morabba";
  src: url("/frontend/src/fonts/Morabba/woff2/Morabba-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "mahyar";
  src: url("/frontend/src/fonts/iranyekanwebregular.b95439c1.b95439c1.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-background: #050505;
  --color-section: #0D0D0D;
  --color-card: #171717;
  --color-border: #2C2C2C;
  --color-primary: #D4AF37;
  --color-hover: #EBCB62;
  --color-white: #FFFFFF;
  --color-gray: #B3B3B3;

  /* complementary semantic aliases */
  --bg: var(--color-background);
  --surface: var(--color-section);
  --surface-alt: var(--color-card);
  --border: var(--color-border);
  --gold: var(--color-primary);
  --gold-soft: var(--color-hover);
  --text: var(--color-white);
  --muted: var(--color-gray);
}

@layer base {
  :root {
    color-scheme: dark;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: "Dana", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
  }

  .font-Morabba {
    font-family: "Morabba", sans-serif;
  }

  .font-Dana {
    font-family: "Dana", sans-serif;
  }
}

@layer components {
  #site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(0px);
    height: 90px;
  }

  #site-header.scrolled {
    background: rgba(5, 5, 5, 0.75);
    border-color: #272727;
    backdrop-filter: blur(20px);
    height: 70px;
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 300ms ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .logo-text {
    font-size: 26px;
    color: var(--color-primary);
  }

  .logo-badge {
    border-radius: 16px;
  }

  .rounded-card {
    border-radius: 16px;
  }

  .text-secondary {
    color: var(--color-gray);
  }

  .text-primary {
    color: var(--color-primary);
  }

  .bg-background {
    background-color: var(--color-background);
  }

  .bg-surface {
    background-color: var(--color-section);
  }

  .border-border {
    border-color: var(--color-border);
  }

  .max-w-container {
    max-width: 1280px;
  }

  .max-w-menu {
    max-width: 320px;
  }

  .mobile-menu-width {
    width: 86vw;
  }

  .shadow-menu {
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  }

  .case-study-shell {
    max-width: 1280px;
  }

  .case-study-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 12% 10%, rgba(212, 175, 55, 0.18), transparent 28%),
      radial-gradient(circle at 86% 16%, rgba(255, 244, 220, 0.12), transparent 24%),
      radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.10), transparent 30%),
      linear-gradient(180deg, #120d02 0%, #080601 48%, #050400 100%);
  }

  .case-study-page::before,
  .case-study-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
  }

  .case-study-page::before {
    background:
      radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.16), transparent 0 30%),
      radial-gradient(circle at 82% 22%, rgba(255, 244, 220, 0.10), transparent 0 26%),
      radial-gradient(circle at 52% 82%, rgba(212, 175, 55, 0.08), transparent 0 28%);
    filter: blur(12px);
    opacity: 1;
  }

  .case-study-page::after {
    z-index: -1;
    background:
      linear-gradient(rgba(212, 175, 55, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
    opacity: 0.22;
  }

  .case-study-top-blob {
    left: -8rem;
  }

  .case-study-orb-offset {
    right: -6rem;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 68%);
  }

  .case-study-section,
  .case-study-image-shell,
  .case-study-block,
  .case-study-modal-image {
    border-radius: 2rem;
  }

  .case-study-image-shell,
  .case-study-block {
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(0, 0, 0, 0.2);
  }

  .case-study-image-shell {
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  }

  .case-study-block {
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  }

  .case-study-hero-grid {
    display: grid;
    gap: 2rem;
  }

  @media (min-width: 1024px) {
    .case-study-hero-grid {
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
      align-items: start;
    }
  }

  .case-study-summary-grid {
    display: grid;
    gap: 0.75rem;
  }

  @media (min-width: 640px) {
    .case-study-summary-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 1280px) {
    .case-study-summary-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  .case-study-main-image {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    object-position: top;
    cursor: zoom-in;
  }

  @media (min-width: 640px) {
    .case-study-main-image {
      aspect-ratio: 5 / 6;
    }
  }

  @media (min-width: 1024px) {
    .case-study-main-image {
      aspect-ratio: 4 / 5;
    }
  }

  .case-study-thumb-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    cursor: zoom-in;
  }

  .case-study-title {
    line-height: 1.15;
  }

  .case-study-grid-two {
    display: grid;
    gap: 1.5rem;
  }

  @media (min-width: 1024px) {
    .case-study-grid-two {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
  }

  .case-study-modal-image {
    display: block;
    width: auto;
    height: auto;
    max-height: 100dvh;
    max-width: 100dvw;
    object-fit: contain;
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.65);
  }

  .case-study-modal-image-animating {
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
  }

  .case-study-modal-image--enter-next {
    transform: translateX(32px) scale(0.98);
    opacity: 0;
    filter: blur(6px);
  }

  .case-study-modal-image--enter-prev {
    transform: translateX(-32px) scale(0.98);
    opacity: 0;
    filter: blur(6px);
  }

  .case-study-modal-image--exit-next {
    transform: translateX(-32px) scale(0.985);
    opacity: 0;
    filter: blur(6px);
  }

  .case-study-modal-image--exit-prev {
    transform: translateX(32px) scale(0.985);
    opacity: 0;
    filter: blur(6px);
  }

  @media (prefers-reduced-motion: reduce) {
    .case-study-modal-image-animating {
      transition: none;
    }

    .case-study-modal-image--enter-next,
    .case-study-modal-image--enter-prev,
    .case-study-modal-image--exit-next,
    .case-study-modal-image--exit-prev {
      transform: none;
      opacity: 1;
      filter: none;
    }
  }

  .case-study-shell-pad {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  @media (min-width: 640px) {
    .case-study-shell-pad {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }

  @media (min-width: 1024px) {
    .case-study-shell-pad {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }

  .hero-height {
    min-height: calc(100vh - 90px);
  }

  .section-height {
    min-height: 70vh;
  }

  .contact-section {
    padding: 104px 32px;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.18), transparent 28%),
      linear-gradient(135deg, rgba(12, 12, 12, 0.98), rgba(6, 6, 6, 0.98));
  }

  .contact-section::before {
    content: "";
    position: absolute;
    inset: auto -5% -8% auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
  }

  .contact-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
    direction: ltr;
  }

  .contact-content {
    max-width: 650px;
    justify-self: start;
    direction: rtl;
    text-align: right;
  }

  .contact-title {
    font-family: "Morabba", sans-serif;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.3;
    font-weight: 700;
    margin: 12px 0 18px;
    color: var(--color-white);
    letter-spacing: -0.03em;
  }

  .contact-description {
    font-size: 17px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }

  .contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
  }

  .contact-badges span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
  }

  .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
  }

  .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .contact-btn:hover {
    transform: translateY(-2px);
  }

  .contact-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #f1d47a);
    color: #101010;
    box-shadow: 0 14px 36px rgba(212, 175, 55, 0.2);
  }

  .contact-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.04);
  }

  .contact-list {
    list-style: none;
    padding: 18px 20px;
    margin: 26px 0 0;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
  }

  .contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    justify-content: flex-end;
    flex-direction: row-reverse;
  }

  .contact-link:hover {
    color: var(--color-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(-2px);
  }

  .contact-link:active {
    transform: scale(0.98);
  }

  .contact-link-static {
    cursor: default;
    color: rgba(255, 255, 255, 0.84);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
  }

  .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: none;
    flex-shrink: 0;
  }

  .contact-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
  }

  .contact-link:hover .contact-icon {
    background: transparent;
  }

  .contact-media {
    display: flex;
    justify-content: flex-end;
  }

  .contact-image-card {
    position: relative;
    width: min(100%, 480px);
    padding: 16px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  }

  .contact-image-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    pointer-events: none;
  }

  .contact-image-card img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
    display: block;
  }

  .contact-image-overlay {
    position: absolute;
    left: 28px;
    bottom: 28px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(12px);
  }
  /* ═══════════════════════════════════════════
     Footer — Premium Redesign
  ═══════════════════════════════════════════ */
  .site-footer {
    --footer-gold: #d4a637;
    --footer-gold-soft: rgba(212,166,55,0.15);
    --footer-bg: #070a14;
    padding: 80px 20px 0;
    margin-top: 60px;
    background:
      radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212,166,55,0.07) 0%, transparent 55%),
      radial-gradient(ellipse 40% 30% at 5% 100%, rgba(212,166,55,0.04) 0%, transparent 50%),
      linear-gradient(180deg, #0a0e1a 0%, #070a14 30%, #060813 100%);
    position: relative;
    overflow: hidden;
  }

  /* Gold gradient top accent line */
  .site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(212,166,55,0.3) 15%,
      rgba(249,226,139,0.85) 40%,
      rgba(212,166,55,1) 50%,
      rgba(249,226,139,0.85) 60%,
      rgba(212,166,55,0.3) 85%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 2;
  }

  /* Ambient top glow */
  .site-footer::after {
    content: "";
    position: absolute;
    top: -80px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 200px;
    background: radial-gradient(ellipse, rgba(212,166,55,0.1) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(48px);
    z-index: 1;
  }

  .footer-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 2fr 1fr 1.2fr;
    align-items: start;
    direction: rtl;
    position: relative;
    z-index: 3;
    padding-bottom: 64px;
  }

  /* Brand column */
  .footer-logo img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(212,166,55,0.25);
    box-shadow: 0 0 0 4px rgba(212,166,55,0.06), 0 8px 32px rgba(0,0,0,0.5);
    transition: box-shadow .25s ease;
  }
  .footer-logo:hover img {
    box-shadow: 0 0 0 4px rgba(212,166,55,0.15), 0 12px 40px rgba(212,166,55,0.15);
  }

  .footer-brand-name {
    display: block;
    font-family: "Morabba", sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #f8d36b 0%, #d4a64f 40%, #f9e28b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 14px;
    letter-spacing: -0.01em;
  }

  .footer-desc {
    color: rgba(255,255,255,0.55);
    margin-top: 10px;
    max-width: 340px;
    line-height: 1.8;
    font-size: 14px;
  }

  .footer-trust {
    margin-top: 16px;
  }
  .footer-trust .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212,166,55,0.1), rgba(212,166,55,0.05));
    border: 1px solid rgba(212,166,55,0.2);
    color: var(--footer-gold);
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 11px;
    text-transform: uppercase;
  }
  .footer-trust .trust-badge::before {
    content: "✦";
    font-size: 9px;
    opacity: 0.8;
  }

  /* Column headings */
  .footer-links h4,
  .footer-contact h4 {
    color: #fff;
    font-family: "Morabba", sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 12px;
  }
  .footer-links h4::after,
  .footer-contact h4::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, var(--footer-gold), transparent);
    border-radius: 2px;
  }

  /* Links column */
  .footer-links ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:4px; }
  .footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    transition: color .2s ease, transform .2s ease;
  }
  .footer-links a::before {
    content: "←";
    font-size: 11px;
    opacity: 0;
    color: var(--footer-gold);
    transform: translateX(6px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .footer-links a:hover {
    color: #fff;
    transform: translateX(-4px);
  }
  .footer-links a:hover::before { opacity: 1; transform: translateX(0); }

  /* Contact column */
  .footer-contact p {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.52);
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-contact a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color .2s ease;
    direction: ltr;
    display: inline-block;
  }
  .footer-contact a:hover { color: var(--footer-gold); }
  .footer-address { color: rgba(255,255,255,0.4) !important; font-size: 13px !important; }

  /* Social icons */
  .footer-socials { display: flex; gap: 10px; margin-top: 20px; }
  .footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
  }
  .footer-socials a:hover {
    border-color: rgba(212,166,55,0.4);
    background: rgba(212,166,55,0.08);
    transform: translateY(-3px);
  }
  .footer-socials img { width: 18px; height: 18px; object-fit: contain; }

  /* Divider between grid and bottom bar */
  .footer-bottom {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
  }
  .footer-bottom::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,166,55,0.25), transparent);
    pointer-events: none;
  }

  .footer-copy { color: rgba(255,255,255,0.35); margin:0; font-size:13px; font-weight:500; }
  .footer-legal a { color: rgba(255,255,255,0.35); text-decoration:none; font-size:13px; transition: color .2s ease; }
  .footer-legal a:hover { color: var(--footer-gold); }

  /* Responsive */
  @media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 36px; }
    .footer-contact { grid-column: span 2; }
  }

  @media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-contact { grid-column: span 2; }
  }

  @media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-contact { grid-column: span 1; }
    .footer-bottom .mx-auto { flex-direction: column; gap: 6px; align-items: center; text-align: center; }
    .site-footer { padding-top: 56px; }
  }

  .max-w-text {
    max-width: 700px;
  }

  @media (max-width: 900px) {
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .contact-media {
      justify-content: center;
    }
  }

  @media (max-width: 640px) {
    .contact-section {
      padding: 72px 20px;
    }

    .contact-image-card {
      width: min(100%, 430px);
    }

    .contact-image-card img {
      height: min(70vh, 520px);
      object-fit: contain;
      object-position: center;
    }
  }

  .hero-section {
    min-height: calc(100vh - 90px);
    padding: 42px 32px;
    display: flex;
    align-items: center;
  }

  .hero-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-pretitle {
    color: var(--color-primary);
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(201, 161, 109, 0.3);
    border-radius: 24px;
    background: rgba(201, 161, 109, 0.05);
  }

  .hero-title {
    font-family: "Morabba", sans-serif;
    font-size: clamp(3rem, 4vw, 4.6rem);
    line-height: 1.02;
    max-width: 560px;
    color: var(--color-white);
  }
      /* Smooth scroll for anchor links */
      html {
        scroll-behavior: smooth;
      }

      /* Responsive services grid: mobile 1, tablet 2, desktop 3 */
      .services-grid {
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr;
      }

      @media (min-width: 640px) {
        .services-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (min-width: 1024px) {
        .services-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
      }

      .service-card {
         background: var(--color-section);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 22px;
        border-radius: 16px;
        transition: transform 280ms cubic-bezier(.2, .9, .2, 1), box-shadow 280ms ease;
        will-change: transform;
      }

      .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(6, 7, 20, 0.6);
      }

      .service-icon {
        width: 56px;
        height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
        color: #fff;
        font-weight: 700;
        font-size: 20px;
        margin-bottom: 12px;
        transition: transform 320ms cubic-bezier(.2, .9, .2, 1), box-shadow 320ms ease, background 320ms ease;
      }

      .service-card:hover .service-icon {
        transform: translateY(-6px) scale(1.06) rotate(-2deg);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
        background: linear-gradient(135deg, #fbbf24 0%, #60a5fa 100%);
      }

      .service-title {
        margin: 0 0 8px;
        font-weight: 700;
        font-size: 1.05rem;
      }

      .service-desc {
        margin: 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.95rem;
        line-height: 1.45;
      }
  .hero-description {
    font-family: "Dana", sans-serif;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
  }

  .about-section {
    min-height: 70vh;
    padding: 80px 32px;
    display: flex;
    align-items: center;
    background: var(--color-section);
  }

  .about-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
  }

  .about-media {
    display: flex;
    justify-content: center;
  }

  .about-photo {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .about-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--color-primary);
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 600;
  }

  .about-title {
    font-family: "Morabba", sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.35;
    color: var(--color-white);
    max-width: 560px;
  }

  .about-description {
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
  }

  .skills-section {
    padding: 96px 32px;
    min-height: 70vh;
    background: var(--color-background);
  }

  .skills-heading {
    max-width: 760px;
    margin-bottom: 42px;
  }

  .skills-eyebrow {
    color: var(--color-primary);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .skills-title {
    font-size: clamp(1.8rem, 2.2vw, 2.5rem);
    line-height: 1.5;
    color: var(--color-white);
    font-family: "Morabba", sans-serif;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.8);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 16px 36px rgba(212, 175, 55, 0.12);
  }

  .skill-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--color-primary);
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(248, 211, 107, 0.18), rgba(212, 166, 79, 0.08));
    border: 1px solid rgba(248, 211, 107, 0.3);
  }

  .skill-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
  }

  section h2 {
    font-family: "Morabba", sans-serif;
  }

  .hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .hero-point {
    display: flex;
    align-items: center;
    gap: 16px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 18px;
    padding: 16px 18px;
  }

  .hero-point-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(248, 211, 107, 0.25) 0%, rgba(212, 166, 79, 0.15) 100%);
    border: 1px solid rgba(248, 211, 107, 0.4);
    color: var(--color-primary);
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(248, 211, 107, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), 
                background 400ms ease-out, 
                box-shadow 400ms ease-out,
                border-color 400ms ease-out;
  }

  .btn-primary {
    background: linear-gradient(135deg, #f8d36b 0%, #d4a64f 100%);
    color: #1a1410;
    box-shadow: 0 8px 24px rgba(248, 211, 107, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .btn-primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(248, 211, 107, 0.4), 0 6px 16px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #fae89b 0%, #e8b85f 100%);
  }

  .btn-primary:active {
    transform: translateY(-2px);
  }

  .btn-secondary {
    border: 1.5px solid rgba(248, 211, 107, 0.4);
    color: #ffffff;
    background: rgba(248, 211, 107, 0.08);
    box-shadow: 0 4px 16px rgba(248, 211, 107, 0.1);
  }

  .btn-secondary:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 211, 107, 0.8);
    background: rgba(248, 211, 107, 0.18);
    box-shadow: 0 14px 36px rgba(248, 211, 107, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .btn-secondary:active {
    transform: translateY(-2px);
  }

  .hero-socials {
    display: flex;
    gap: 18px;
    margin-top: 10px;
  }

  .hero-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    background: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 320ms ease-out;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  }

  .hero-social:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  }

  .hero-social img {
    width: 56px;
    height: 56px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
    transition: transform 320ms ease, filter 320ms ease, opacity 320ms ease;
  }

  .hero-social:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
  }

  .hero-social svg {
    stroke: #f8d36b;
    transition: stroke 400ms ease-out;
  }

  .hero-social:hover {
    transform: translateY(-8px) scale(1.15);
    background: linear-gradient(135deg, rgba(248, 211, 107, 0.28) 0%, rgba(212, 166, 79, 0.15) 100%);
    border-color: rgba(248, 211, 107, 0.6);
    box-shadow: 0 12px 28px rgba(248, 211, 107, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .hero-social:hover svg {
    stroke: #fae89b;
  }

  .hero-social:active {
    transform: translateY(-2px) scale(1.08);
  }

  .hero-right {
    position: relative;
    display: grid;
    place-items: center;
  }

  .hero-shadow {
    position: absolute;
    inset: 0;
    margin: auto;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border-radius: 40px;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.16), transparent 45%);
    filter: blur(30px);
    z-index: 1;
  }

  .monitor-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
    z-index: 2;
  }

  .monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .monitor-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .tab {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
  }

  .tab.active {
    background: rgba(212, 175, 55, 0.18);
    color: var(--color-white);
  }

  .monitor-status {
    display: flex;
    gap: 8px;
  }

  .monitor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.95);
  }

  .monitor-body {
    padding: 22px;
  }

  .code-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
  }

  .code-window {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
    border-radius: 28px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 80px rgba(0, 0, 0, 0.35);
  }

  .code-line {
    display: flex;
    gap: 14px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-size: 14px;
    line-height: 1.8;
  }

  .code-gutter {
    color: rgba(255, 255, 255, 0.28);
    min-width: 24px;
    text-align: right;
    flex-shrink: 0;
  }

  .code-line {
    white-space: nowrap;
    overflow: hidden;
  }

  .code-text {
    display: inline-block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
  }

  .code-tag {
    color: #82aaff;
  }

  .code-attr {
    color: #ffcb6b;
  }

  .code-string {
    color: #c3e88d;
  }

  .code-comment {
    color: #6272a4;
    font-style: italic;
  }

  .code-text {
    white-space: nowrap;
  }

  .typed-line {
    display: block;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 1.2em;
  }

  .typed-line .typing-text {
    background: linear-gradient(135deg, #f8d36b 0%, #d4a64f 35%, #f2c94c 65%, #f9e28b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
  }


  .code-cursor {
    display: inline-block;
    width: 10px;
    margin-left: 2px;
    color: var(--color-primary, #c9a16d);
    animation: blink-cursor 1s steps(2, start) infinite;
  }

  @keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  @media (max-width: 992px) {
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 34px;
    }

    .about-wrapper {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .about-content {
      order: 1;
    }

    .about-media {
      order: 2;
    }

    .hero-left,
    .hero-right {
      width: 100%;
    }

    .hero-section {
      padding: 36px 18px;
    }

    .hero-actions {
      justify-content: center;
      width: 100%;
    }

    .hero-points {
      grid-template-columns: 1fr;
    }

    .monitor-panel {
      max-width: 100%;
      width: 100%;
    }
  }

  @media (max-width: 768px) {
    .hero-section {
      padding: 30px 16px;
      min-height: auto;
    }

    .hero-title {
      font-size: clamp(2.4rem, 8vw, 3.6rem);
      max-width: 100%;
    }

    .hero-description {
      font-size: 16px;
      max-width: 100%;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
    }

    .btn-primary,
    .btn-secondary {
      width: 100%;
      padding: 14px 20px;
    }

    .hero-socials {
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .hero-social {
      width: 72px;
      height: 72px;
    }

    .hero-social img {
      width: 42px;
      height: 42px;
    }

    .monitor-body,
    .code-window {
      padding: 18px;
    }

    .code-line {
      font-size: 13px;
      gap: 12px;
    }
  }

  @media (max-width: 560px) {
    .hero-section {
      padding: 24px 14px;
    }

    .hero-grid {
      gap: 24px;
    }

    .hero-point {
      padding: 14px 16px;
    }

    .hero-point-icon {
      width: 42px;
      height: 42px;
      font-size: 20px;
    }

    .btn-primary,
    .btn-secondary {
      padding: 12px 18px;
    }

    .hero-social {
      width: 62px;
      height: 62px;
    }

    .hero-social img {
      width: 34px;
      height: 34px;
    }

    .logo-text {
      font-size: 22px;
    }

    .logo-image {
      width: 42px;
      height: 42px;
    }

    .language-segment .segment-option {
      min-width: 36px;
      padding: 8px 12px;
      font-size: 13px;
    }
  }

  @media (max-width: 560px) {
    .hero-section {
      padding: 28px 14px;
    }

    .hero-grid {
      gap: 24px;
    }

    .hero-point {
      padding: 14px 16px;
    }

    .hero-point-icon {
      width: 42px;
      height: 42px;
      font-size: 20px;
    }

    .btn-primary,
    .btn-secondary {
      padding: 12px 20px;
    }

    .hero-social {
      width: 62px;
      height: 62px;
    }

    .hero-social img {
      width: 34px;
      height: 34px;
    }

    .logo-text {
      font-size: 22px;
    }

    .logo-image {
      width: 42px;
      height: 42px;
    }

    .language-segment .segment-option {
      min-width: 36px;
      padding: 8px 12px;
      font-size: 13px;
    }
  }

  .language-segment,
  #mobile-language-switcher,
  .mobile-language-switcher {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    align-items: center;
    gap: 4px;
    padding: 8px 14px !important;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    transition: border-color 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
  }

  .language-segment:hover,
  .mobile-language-switcher:hover,
  #mobile-language-switcher:hover {
    border-color: rgba(212, 175, 55, 0.65);
    background: rgba(212, 175, 55, 0.06);
  }

  .language-segment .segment-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray);
    background: transparent;
    transition: all 250ms ease;
    cursor: pointer;
  }

  .language-segment .segment-option.active {
    color: #050505;
    background: var(--color-primary);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.18);
  }

  .language-segment .segment-option.inactive:hover {
    color: var(--color-white);
  }
}


@layer base {
  :root {
    color-scheme: dark;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: "Dana", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
  }

  .font-Morabba {
    font-family: "Morabba", sans-serif;
  }

  .font-Dana {
    font-family: "Dana", sans-serif;
  }
}

@layer components {
  #site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(0px);
    height: 90px;
  }

  #site-header.scrolled {
    background: rgba(5, 5, 5, 0.75);
    border-color: #272727;
    backdrop-filter: blur(20px);
    height: 70px;
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 300ms ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  #mobile-menu-overlay {
    display: none;
    opacity: 0;
    transition: opacity 250ms ease;
  }

  #mobile-menu-overlay.mobile-menu-overlay-visible {
    display: block;
    opacity: 1;
  }

  .translate-x-full {
    transform: translateX(100%);
  }

  .translate-x-0 {
    transform: translateX(0);
  }

  #mobile-menu {
    will-change: transform;
    transition: transform 300ms ease;
    top: 0;
    bottom: 0;
    height: 100vh;
  }
}

