/* ==========================================
     DIJIVOO — STYLES
     Perf notes: backdrop-filter blur radii were
     trimmed and `contain`/`will-change` hints added
     on repeated card elements (services/works grids).
     Blurring many elements every frame is the #1
     cause of the "laggy cards" feeling, especially
     with an animated canvas behind them — see script.js
     for the matching canvas throttling.
     ========================================== */

  /* ===== CSS VARIABLES ===== */
  :root {
    --teal: #1BA88A;
    --teal-light: #24D4AF;
    --teal-dark: #0E7A65;
    --slate: #2C4A5A;
    --slate-light: #3D5E72;
    --bg: #080E12;
    --bg2: #0D1A22;
    --bg3: #101F28;
    --surface: rgba(28, 55, 70, 0.45);
    --surface2: rgba(27, 168, 138, 0.08);
    --text: #E8F0F5;
    --text-dim: #7BA3B8;
    --text-faint: #3D6478;
    --border: rgba(27, 168, 138, 0.2);
    --border-bright: rgba(27, 168, 138, 0.5);
    --font-main: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-ar: 'Noto Kufi Arabic', sans-serif;
  }

  /* ===== RESET ===== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }


  /* ===== CANVAS BACKGROUND ===== */
  #bg-canvas {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    opacity: 0.35;
  }

  /* ===== SCROLLBAR ===== */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--teal-dark); border-radius: 2px; }

  /* ===== SCROLL PROGRESS ===== */
  #scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; background: linear-gradient(90deg, var(--teal-dark), var(--teal-light));
    z-index: 999; transition: width 0.1s;
  }

  /* ===== NAVIGATION ===== */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 clamp(20px, 5vw, 80px);
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(8, 14, 18, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.4s, height 0.4s, border-color 0.4s, box-shadow 0.4s;
  }
  nav.scrolled {
    height: 60px;
    border-bottom-color: var(--border-bright);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  }
  .nav-logo {
    height: 100px;
    filter: drop-shadow(0 0 12px rgba(27, 168, 138, 0.5));
    transition: filter 0.3s;
  }
  .nav-logo:hover { filter: drop-shadow(0 0 20px rgba(36, 212, 175, 0.7)); }
  .nav-links {
    display: flex; gap: 32px; list-style: none;
    align-items: center;
  }
  .nav-links a {
    font-family: var(--font-main);
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--teal-light);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
  }
  .nav-links a:hover { color: var(--teal-light); }
  .nav-links a:hover::after { transform: scaleX(1); }

  .lang-switcher {
    display: flex; gap: 6px; align-items: center;
  }
  .lang-btn {
    background: none; border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 10px; border-radius: 20px;
    font-family: var(--font-body); font-size: 0.75rem;
    transition: all 0.3s;
  }
  .lang-btn.active, .lang-btn:hover {
    background: var(--teal-dark); border-color: var(--teal);
    color: var(--text);
  }

  .hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 4px;
  }
  .hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--teal); border-radius: 2px;
    transition: all 0.35s;
  }
  .mobile-menu {
    display: none; position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(8,14,18,0.97);
    backdrop-filter: blur(30px);
    z-index: 99;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 36px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: var(--font-main);
    font-size: 2rem; font-weight: 700;
    color: var(--text-dim); letter-spacing: 0.05em;
    transition: color 0.3s;
  }
  .mobile-menu a:hover { color: var(--teal-light); }

  /* ===== SECTION BASE ===== */
  section {
    position: relative; z-index: 1;
    overflow: hidden;
  }

  /* ===== HERO ===== */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 100px clamp(20px, 8vw, 140px) 80px;
    text-align: center;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
    color: var(--teal-light); text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.8s 0.2s forwards;
  }
  .hero-eyebrow .dot {
    width: 6px; height: 6px; background: var(--teal-light);
    border-radius: 50%; animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
  }

  .hero-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800; line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 0.9s 0.4s forwards;
  }
  .hero-title .accent {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 50%, var(--teal-dark) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
  }
  .hero-title .accent::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
    border-radius: 2px;
    animation: shimmer 3s ease-in-out infinite;
  }
  @keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: scaleX(0.7); }
    50% { opacity: 1; transform: scaleX(1); }
  }

  .hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.75;
    color: var(--text-dim);
    max-width: 680px;
    margin: 0 auto 48px;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.9s 0.6s forwards;
  }

  .hero-cta {
    display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.9s 0.8s forwards;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff; border: none;
    padding: 14px 36px; border-radius: 6px;
    font-family: var(--font-main); font-size: 0.9rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    position: relative; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 30px rgba(27,168,138,0.3);
  }
  .btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    opacity: 0; transition: opacity 0.35s;
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(27,168,138,0.5); }
  .btn-primary:hover::before { opacity: 1; }
  .btn-primary span { position: relative; z-index: 1; }

  .btn-ghost {
    background: none;
    border: 1px solid var(--border-bright);
    color: var(--text); padding: 14px 36px; border-radius: 6px;
    font-family: var(--font-main); font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    transition: all 0.35s;
  }
  .btn-ghost:hover {
    background: var(--surface2);
    border-color: var(--teal-light);
    color: var(--teal-light);
    transform: translateY(-3px);
  }

  .scroll-hint {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0; animation: fadeUp 1s 1.4s forwards;
  }
  .scroll-hint span { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-faint); text-transform: uppercase; }
  .scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--teal), transparent);
    animation: scrollDrop 2s ease-in-out infinite;
  }
  @keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }

  /* ===== SECTION REVEAL ANIMATIONS ===== */
  .reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1),
                transform 0.9s cubic-bezier(0.23,1,0.32,1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-left {
    opacity: 0; transform: translateX(-60px);
    transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1),
                transform 0.9s cubic-bezier(0.23,1,0.32,1);
  }
  .reveal-left.visible { opacity: 1; transform: translateX(0); }
  .reveal-right {
    opacity: 0; transform: translateX(60px);
    transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1),
                transform 0.9s cubic-bezier(0.23,1,0.32,1);
  }
  .reveal-right.visible { opacity: 1; transform: translateX(0); }

  /* Stagger delays */
  .delay-1 { transition-delay: 0.1s; }
  .delay-2 { transition-delay: 0.2s; }
  .delay-3 { transition-delay: 0.3s; }
  .delay-4 { transition-delay: 0.4s; }
  .delay-5 { transition-delay: 0.5s; }
  .delay-6 { transition-delay: 0.6s; }

  /* ===== SECTION HEADINGS ===== */
  .section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--teal);
    margin-bottom: 16px;
  }
  .section-label::before {
    content: ''; width: 28px; height: 1px;
    background: var(--teal); display: block;
  }
  .section-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
  .section-title .accent {
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .section-sub {
    font-size: 1.05rem; color: var(--text-dim); line-height: 1.7;
    max-width: 560px;
  }

  /* ===== DIVIDER ===== */
  .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
    margin: 0 clamp(20px, 8vw, 140px);
  }

  /* ===== SERVICES ===== */
  #services {
    padding: 120px clamp(20px, 8vw, 140px);
    background: var(--bg2);
  }
  .services-header { margin-bottom: 72px; }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
  .service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 30px;
    position: relative; overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
    backdrop-filter: blur(6px);
    contain: layout paint;
  }
  .service-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(27,168,138,0.12), transparent 70%);
    opacity: 0; transition: opacity 0.5s;
  }
  .service-card:hover { 
    border-color: var(--border-bright);
    box-shadow: 0 0 40px rgba(27,168,138,0.18), 0 0 0 1px var(--border-bright);
  }
  .service-card:hover::before { opacity: 1; }

  .service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(27,168,138,0.25), rgba(27,168,138,0.08));
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: box-shadow 0.4s;
  }
  .service-card:hover .service-icon {
    box-shadow: 0 8px 24px rgba(27,168,138,0.3);
  }
  .service-title {
    font-family: var(--font-main);
    font-size: 1.15rem; font-weight: 700;
    margin-bottom: 12px; color: var(--text);
  }
  .service-desc {
    font-size: 0.9rem; line-height: 1.7;
    color: var(--text-dim);
  }
  .service-tag {
    display: inline-block;
    margin-top: 20px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px 12px;
    font-size: 0.72rem; color: var(--teal); letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .service-card .corner-glow {
    position: absolute; bottom: -20px; right: -20px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(27,168,138,0.3), transparent 70%);
    border-radius: 50%;
    transition: all 0.5s;
  }
  .service-card:hover .corner-glow { width: 120px; height: 120px; }

  /* ===== WORKS ===== */
  #works {
    padding: 120px clamp(20px, 8vw, 140px);
    background: var(--bg);
  }
  .works-header { margin-bottom: 72px; }

  .works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
  }
  .work-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                border-color 0.4s, box-shadow 0.4s;
    contain: layout paint;
    will-change: transform;
  }
  .work-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-bright);
    box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  }
  .work-preview {
    position: relative; height: 220px; overflow: hidden;
    background: linear-gradient(135deg, var(--slate), var(--bg2));
  }
  .work-preview img {
    width: 100%; height: 100%; object-fit: cover;
    transition: filter 0.3s;
    filter: brightness(0.85);
  }
  .work-card:hover .work-preview img {
    filter: brightness(1);
  }
  .work-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,14,18,0.9) 0%, rgba(8,14,18,0.2) 60%, transparent 100%);
    display: flex; align-items: flex-end; padding: 20px;
    gap: 10px;
  }
  .work-badge {
    background: rgba(27,168,138,0.28);
    border: 1px solid var(--border-bright);
    border-radius: 6px; padding: 4px 10px;
    font-size: 0.7rem; color: var(--teal-light);
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .work-actions {
    position: absolute; inset: 0;
    background: rgba(8,14,18,0.82);
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    opacity: 0; transition: opacity 0.3s;
  }
  .work-card:hover .work-actions { opacity: 1; }
  .action-btn {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 50%; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--teal-light);
    transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    transform: translateY(10px);
  }
  .work-card:hover .action-btn { transform: translateY(0); }
  .action-btn:nth-child(2) { transition-delay: 0.05s; }
  .action-btn:nth-child(3) { transition-delay: 0.1s; }
  .action-btn:hover {
    background: var(--teal-dark);
    border-color: var(--teal-light);
    transform: scale(1.1) translateY(0) !important;
    box-shadow: 0 8px 20px rgba(27,168,138,0.4);
  }

  .work-info { padding: 24px; }
  .work-title {
    font-family: var(--font-main); font-size: 1.1rem; font-weight: 700;
    margin-bottom: 8px; color: var(--text);
    transition: color 0.3s;
  }
  .work-card:hover .work-title { color: var(--teal-light); }
  .work-desc {
    font-size: 0.87rem; line-height: 1.65; color: var(--text-dim);
    margin-bottom: 16px;
  }
  .work-tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .wtag {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 100px; padding: 3px 10px;
    font-size: 0.7rem; color: var(--teal); letter-spacing: 0.08em;
  }

  /* MODAL */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(4,10,14,0.92);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal {
    background: var(--bg2);
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    max-width: 800px; width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
    padding: 40px;
  }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }
  .modal-close {
    background: none; border: 1px solid var(--border);
    color: var(--text-dim); width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    float: right; margin-bottom: 20px;
    transition: all 0.3s;
  }
  .modal-close:hover { border-color: var(--teal); color: var(--teal-light); transform: rotate(90deg); }
  .modal-img { width: 100%; border-radius: 12px; margin-bottom: 24px; }
  .modal-title { font-family: var(--font-main); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
  .modal-desc { color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; }
  .modal-links { display: flex; gap: 12px; flex-wrap: wrap; }
  .modal-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface2); border: 1px solid var(--border-bright);
    border-radius: 8px; padding: 10px 20px;
    font-size: 0.85rem; font-weight: 600; color: var(--teal-light);
    transition: all 0.3s;
  }
  .modal-link:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }

  /* ===== CONTACT ===== */
  #contact {
    padding: 120px clamp(20px, 8vw, 140px);
    background: var(--bg2);
    position: relative;
  }
  #contact::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(27,168,138,0.06), transparent 70%);
    pointer-events: none;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
    margin-top: 60px;
  }

  .contact-item {
    display: flex; align-items: center; gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 20px 24px;
    transition: border-color 0.35s, transform 0.35s; margin-bottom: 14px;
    backdrop-filter: blur(6px);
  }
  .contact-item:hover { border-color: var(--border-bright); transform: translateX(8px); }
  .contact-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: var(--surface2); border: 1px solid var(--border-bright);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
  }
  .contact-label { font-size: 0.75rem; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
  .contact-value { font-size: 0.95rem; font-weight: 500; color: var(--text); }
  .contact-value a { transition: color 0.3s; }
  .contact-value a:hover { color: var(--teal-light); }

  .social-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  }
  .social-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 24px 20px;
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; text-align: center;
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s, background-color 0.4s;
    backdrop-filter: blur(6px);
  }
  .social-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(27,168,138,0.1);
    background: rgba(27,168,138,0.1);
  }
  .social-icon { font-size: 2rem; }
  .social-name { font-family: var(--font-main); font-size: 0.9rem; font-weight: 700; }
  .social-handle { font-size: 0.78rem; color: var(--teal); }

  /* ===== FOOTER ===== */
  footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px clamp(20px, 8vw, 140px);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
  }
  .footer-copy { font-size: 0.8rem; color: var(--text-faint); }
  .footer-lang { display: flex; gap: 6px; }

  /* ===== ARABIC RTL ===== */
  [lang="ar"] body, body.lang-ar {
    font-family: var(--font-ar);
    direction: rtl;
  }
  body.lang-ar .section-label::before { order: 1; }
  body.lang-ar .section-label { flex-direction: row-reverse; }
  body.lang-ar .contact-item:hover { transform: translateX(-8px); }
  body.lang-ar .nav-links { flex-direction: row-reverse; }

  /* ===== BIG DECORATIVE NUMBERS ===== */
  .big-num {
    position: absolute; font-family: var(--font-main);
    font-size: clamp(120px, 20vw, 260px); font-weight: 800;
    color: rgba(27,168,138,0.03); line-height: 1;
    pointer-events: none; user-select: none;
    letter-spacing: -0.05em;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
  }
  @media (max-width: 600px) {
    .works-grid, .services-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    footer { flex-direction: column; text-align: center; }
  }

  /* ===== GLITCH EFFECT on logo hover ===== */
  @keyframes glitch1 {
    0%, 100% { clip-path: inset(0 0 85% 0); transform: translateX(-2px); }
    25% { clip-path: inset(40% 0 45% 0); transform: translateX(2px); }
    50% { clip-path: inset(80% 0 5% 0); transform: translateX(-2px); }
    75% { clip-path: inset(10% 0 75% 0); transform: translateX(2px); }
  }

  /* ===== LOADING SCREEN ===== */
  #loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 24px;
    transition: opacity 0.8s 0.3s, visibility 0.8s 0.3s;
  }
  #loader.hidden { opacity: 0; visibility: hidden; }
  .loader-logo { height: 180px; animation: breathe 1.5s ease-in-out infinite; }
  @keyframes breathe {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(27,168,138,0.4)); }
    50% { filter: drop-shadow(0 0 24px rgba(36,212,175,0.7)); }
  }
  .loader-bar {
    width: 180px; height: 2px;
    background: var(--bg3); border-radius: 2px; overflow: hidden;
  }
  .loader-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--teal-dark), var(--teal-light));
    border-radius: 2px;
    animation: loadFill 1.8s ease-in-out forwards;
  }
  @keyframes loadFill { to { width: 100%; } }
  .loader-text { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--text-faint); text-transform: uppercase; }

  /* ===== NOISE TEXTURE ===== */
  body::after {
    content: '';
    position: fixed; inset: 0; z-index: 9997;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.4;
  }

  /* ===== REDUCED MOTION ===== */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }