/* === components.css — Page Loader, Cursor, Particles, Orbs, Navigation, Buttons, Divider === */

      /* ============================================================
       PAGE LOADER
       ============================================================ */
      .page-loader {
        position: fixed;
        inset: 0;
        background: var(--bg-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        transition:
          opacity 0.5s,
          visibility 0.5s;
      }
      .page-loader.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }
      .loader-ring {
        width: 48px;
        height: 48px;
        border: 3px solid rgba(255, 255, 255, 0.06);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        box-shadow: 0 0 24px rgba(217,125,22,0.15);
      }

      /* ============================================================
       CUSTOM CURSOR
       ============================================================ */
      ::selection {
        background: rgba(217, 125, 22, 0.3);
        color: #fff;
      }
      .cursor-dot {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s;
        mix-blend-mode: difference;
        opacity: 0;
      }
      .cursor-ring {
        position: fixed;
        width: 36px;
        height: 36px;
        border: 1.5px solid rgba(217, 125, 22, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transition:
          transform 0.15s,
          width 0.3s,
          height 0.3s;
        opacity: 0;
      }
      .cursor-dot.visible,
      .cursor-ring.visible {
        opacity: 1;
      }
      .cursor-dot.hover,
      .cursor-ring.hover {
        transform: scale(1.5);
      }

      /* ============================================================
       PARTICLES OVERLAY
       ============================================================ */
      .particles-overlay {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 1;
      }
      .particle {
        position: absolute;
        width: 3px;
        height: 3px;
        background: rgba(217, 125, 22, 0.3);
        border-radius: 50%;
        animation: float 20s ease-in-out infinite;
      }

      /* ============================================================
       FLOATING ORBS
       ============================================================ */
      .floating-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        pointer-events: none;
        z-index: 0;
      }
      .floating-orb--primary {
        width: 500px;
        height: 500px;
        background: radial-gradient(
          circle,
          rgba(217, 125, 22, 0.15),
          rgba(157, 65, 1, 0.05)
        );
        top: -100px;
        right: -100px;
        animation: float 15s ease-in-out infinite;
      }
      .floating-orb--secondary {
        width: 400px;
        height: 400px;
        background: radial-gradient(
          circle,
          rgba(255, 151, 0, 0.1),
          rgba(217, 125, 22, 0.03)
        );
        bottom: -80px;
        left: -80px;
        animation: float-reverse 18s ease-in-out infinite;
      }

      /* ============================================================
       NAVIGATION
       ============================================================ */
      .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: var(--nav-height);
        display: flex;
        align-items: center;
        transition:
          background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
          box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
          transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        animation: blurFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
      }
      .nav.scrolled {
        background: rgba(10, 10, 11, 0.9);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 30px rgba(0,0,0,0.3);
      }
      .nav.nav-hidden {
        transform: translateY(-100%);
      }
      .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
      }
      .nav-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.35rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--text-primary);
        z-index: 1001;
      }
      .nav-logo svg {
        width: 30px;
        height: 30px;
        color: var(--primary);
      }
      .logo-text {
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: 0.15em;
        text-transform: uppercase;
      }
      .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
      }
      .nav-links a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-secondary);
        transition: color 0.3s, transform 0.3s;
        position: relative;
        animation: blurFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
      }
      .nav-links li:nth-child(1) a { animation-delay: 0.3s; }
      .nav-links li:nth-child(2) a { animation-delay: 0.38s; }
      .nav-links li:nth-child(3) a { animation-delay: 0.46s; }
      .nav-links li:nth-child(4) a { animation-delay: 0.54s; }
      .nav-links li:nth-child(5) a { animation-delay: 0.62s; }
      .nav-links li:nth-child(6) a { animation-delay: 0.7s; }
      .nav-links li:nth-child(7) a { animation-delay: 0.78s; }
      .nav-links a:hover {
        transform: translateY(-1px);
      }
      .nav-links a::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--primary-bright));
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 1px;
      }
      .nav-links a:hover,
      .nav-links a.active {
        color: var(--text-primary);
      }
      .nav-links a:hover::after,
      .nav-links a.active::after {
        width: 100%;
      }
      .nav-cta.desktop-only {
        display: inline-flex;
      }
      .hamburger {
        display: none;
        flex-direction: column;
        gap: 5px;
        z-index: 1001;
        padding: 4px;
      }
      .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: var(--transition);
      }
      .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }
      .hamburger.open span:nth-child(2) {
        opacity: 0;
      }
      .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
      }

      /* Mobile Menu */
      .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition:
          opacity var(--transition),
          visibility var(--transition);
      }
      .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
      }
      .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        z-index: 1000;
        padding: 100px 32px 32px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: right var(--transition);
      }
      .mobile-menu.open {
        right: 0;
      }
      .mobile-menu a {
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-secondary);
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: color var(--transition);
      }
      .mobile-menu a:hover {
        color: var(--primary);
      }

      /* ============================================================
       BUTTONS
       ============================================================ */
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 28px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
        font-weight: 600;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
      }
      .btn svg {
        transition: transform 0.3s;
      }
      .btn:hover svg {
        transform: translateX(3px);
      }
      [dir="rtl"] .btn:hover svg {
        transform: translateX(-3px);
      }
      .btn-primary {
        background: linear-gradient(
          135deg,
          var(--primary),
          var(--primary-bright)
        );
        color: #fff;
        border: none;
      }
      .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 36px rgba(217, 125, 22, 0.35);
      }
      .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 4px 16px rgba(217, 125, 22, 0.2);
      }
      .btn-secondary {
        background: transparent;
        color: var(--text-primary);
        border: 1px solid rgba(255, 255, 255, 0.15);
      }
      .btn-secondary:hover {
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(217, 125, 22, 0.1);
      }
      .btn-secondary:active {
        transform: translateY(0);
      }
      .btn .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: scale(0);
        animation: ripple-effect 0.6s linear;
        pointer-events: none;
      }

      /* ============================================================
       NAV RIGHT GROUP
       ============================================================ */
      .nav-right {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      /* ============================================================
       LANGUAGE SWITCH
       ============================================================ */
      .lang-switch {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-secondary);
        font-family: var(--font);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        cursor: pointer;
        transition: all var(--transition);
        position: relative;
        z-index: 1001;
      }
      .lang-switch:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(217, 125, 22, 0.08);
      }
      .lang-switch.active {
        background: linear-gradient(
          135deg,
          var(--primary),
          var(--primary-bright)
        );
        border-color: transparent;
        color: #fff;
      }

      /* ============================================================
       SECTION DIVIDER
       ============================================================ */
      .section-divider {
        height: 1px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(217, 125, 22, 0.2),
          transparent
        );
        position: relative;
        overflow: hidden;
      }
      .section-divider::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(217,125,22,0.6), transparent);
        animation: dividerShine 4s ease-in-out infinite;
      }
      @keyframes dividerShine {
        0% { left: -50%; }
        100% { left: 150%; }
      }

      /* === PDF Preview Modal === */
      .pdf-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
      }
      .pdf-modal--open {
        opacity: 1;
        visibility: visible;
      }
      .pdf-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
      }
      .pdf-modal__container {
        position: relative;
        width: 90vw;
        height: 85vh;
        max-width: 1000px;
        background: #0a0a0b;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: scale(0.95) translateY(20px);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 25px 60px rgba(0,0,0,0.5);
      }
      .pdf-modal--open .pdf-modal__container {
        transform: scale(1) translateY(0);
      }
      .pdf-modal__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        flex-shrink: 0;
      }
      .pdf-modal__title {
        font-size: 0.875rem;
        font-weight: 600;
        color: #fafafa;
      }
      .pdf-modal__actions {
        display: flex;
        gap: 0.5rem;
      }
      .pdf-modal__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(255,255,255,0.1);
        background: transparent;
        color: #a1a1aa;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
      }
      .pdf-modal__btn:hover {
        background: rgba(255,255,255,0.05);
        color: #fafafa;
        border-color: rgba(255,255,255,0.2);
      }
      .pdf-modal__btn--close:hover {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.3);
      }
      .pdf-modal__body {
        flex: 1;
        overflow: hidden;
      }
      .pdf-modal__iframe,
      .pdf-modal__body object {
        width: 100%;
        height: 100%;
        border: none;
        background: #fff;
      }

      /* PDF preview button styling in cards */
      .pdf-preview-btn {
        cursor: pointer;
        font-family: inherit;
      }
      button.project-card__link {
        background: none;
        font-family: inherit;
      }
      button.project-card__overlay-link {
        background: none;
        border: none;
        font-family: inherit;
        font-size: inherit;
        cursor: pointer;
      }

      @media (max-width: 768px) {
        .pdf-modal__container {
          width: 96vw;
          height: 90vh;
          border-radius: 0.75rem;
        }
      }
