﻿/* ══════════════════════════════════════════════════
   TRIPLE P — PORTFOLIO WEBSITE
   Design: Cinematic, dark, premium editorial
   ══════════════════════════════════════════════════ */

/* ── RESET & BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #080808;
  --bg-alt:       #0f0f0f;
  --bg-card:      #111111;
  --border:       rgba(255,255,255,.08);
  --text:         #f0ede8;
  --text-muted:   #888880;
  /* Triple P brand palette */
  --accent:       #F5B800;   /* brand yellow  */
  --brand-cyan:   #00B5CC;   /* brand cyan    */
  --brand-green:  #00A651;   /* brand green   */
  --brand-navy:   #1A3B8B;   /* brand navy    */
  --brand-magenta:#D4006E;   /* brand magenta */
  --brand-red:    #E31E24;   /* play red      */
  --brand-grad:   linear-gradient(90deg,#F5B800,#00A651,#00B5CC,#1A3B8B,#D4006E,#E31E24);
  --white:        #ffffff;
  --nav-h:        72px;
  --radius:       4px;
  --radius-lg:    12px;
  --ease:         cubic-bezier(.16,1,.3,1);
  --ease-out:     cubic-bezier(.25,.46,.45,.94);
  --font-head:    'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Sans', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

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

/* ── LOADER ────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-logo {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .6s var(--ease) .2s forwards;
}

.loader-logo-img {
  height: 100px;
  width: auto;
  margin: 0 auto;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  animation: loadFill 1.6s var(--ease) .4s forwards;
}

@keyframes loadFill { to { width: 100%; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAVBAR ────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  z-index: 100;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background .4s var(--ease);
}

/* colorful brand bar always visible */
#navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
  opacity: .7;
}

#navbar.scrolled {
  background: rgba(8,8,8,.99);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo-img { height: 56px; width: auto; }

.nav-right {
  display: flex; align-items: center; gap: 1rem;
}

/* Language toggle */
.lang-toggle {
  display: flex; align-items: center; gap: .3rem;
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  padding: .3rem .65rem;
  border-radius: var(--radius);
  transition: border-color .25s, color .25s;
  cursor: pointer;
  background: none;
  font-family: var(--font-body);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle .lang-active { color: var(--accent); font-weight: 600; }
.lang-toggle .lang-sep { opacity: .4; }

.mob-lang-toggle {
  margin-top: 2rem;
  font-size: 1rem;
  padding: .5rem 1.5rem;
  border-color: rgba(255,255,255,.3);
  color: var(--white);
}

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}

.nav-links a {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right .35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  border: 1px solid var(--border) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  transition: border-color .25s, background .25s !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--bg) !important;
}
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu ul { text-align: center; }
.mobile-menu li { overflow: hidden; margin: .5rem 0; }
.mobile-menu a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: .05em;
  color: var(--white);
  transform: translateY(100%);
  transition: transform .6s var(--ease), color .3s;
}
.mobile-menu.open a { transform: translateY(0); }
.mobile-menu a:hover { color: var(--accent); }

.mob-footer {
  position: absolute; bottom: 2.5rem;
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .08em;
}

/* ── HERO ──────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding-bottom: 8vh;
  overflow: hidden;
}

.hero-media {
  position: absolute; inset: 0;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }

.hero-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.hero-slide-bg {
  /* Equal black bars top & bottom — image shows only between the two lines */
  position: absolute;
  top: var(--nav-h);
  bottom: var(--nav-h);
  left: 0; right: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1410;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.3) 0%,
    rgba(0,0,0,.1) 40%,
    rgba(0,0,0,.7) 80%,
    rgba(0,0,0,.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative; z-index: 3;
  padding: 0 5vw;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Hero logo */
.hero-logo-wrap {
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease) 2s forwards;
}
.hero-logo-img {
  height: 90px;
  width: auto;
}

/* Hero brand text — kept for reference but unused */
.hero-brand-text {
  display: none;
}

.hero-brand-text::after {
  content: '';
  position: absolute;
  bottom: -.6rem;
  left: 0;
  width: 55%;
  height: 2px;
  background: var(--accent);
}

.hero-tag {
  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease) 2.2s forwards;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
}

.hero-headline .line > span,
.hero-headline .line {
  display: block;
  transform: translateY(110%);
  animation: slideUp .85s var(--ease) forwards;
}

.hero-headline .line:nth-child(1) { animation-delay: 2.4s; }
.hero-headline .line:nth-child(2) { animation-delay: 2.55s; }
.hero-headline .line:nth-child(3) { animation-delay: 2.7s; color: var(--accent); }
.hero-headline .line:nth-child(4) { animation-delay: 2.85s; }

@keyframes slideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  color: rgba(240,237,232,.6);
  max-width: 420px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp .7s var(--ease) 3.2s forwards;
}

.hero-cta-group {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s var(--ease) 3.4s forwards;
}

/* scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; right: 5vw;
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: .75rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease) 3.6s forwards;
}

.hero-scroll-hint span {
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* hero dots */
.hero-dots {
  position: absolute; bottom: 2.5rem; left: 5vw;
  z-index: 3;
  display: flex; gap: .5rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease) 3.6s forwards;
}

.hero-dot {
  width: 24px; height: 2px;
  background: rgba(255,255,255,.3);
  border-radius: 1px;
  transition: background .3s, width .4s var(--ease);
}
.hero-dot.active { width: 40px; background: var(--accent); }

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 2rem;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute; inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
  z-index: 0;
}

.btn span, .btn i, .btn svg { position: relative; z-index: 1; }

.btn-primary {
  background: var(--white);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary::before { background: var(--accent); }
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover { color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}

.btn-full { width: 100%; justify-content: center; }

/* ── MARQUEE ───────────────────────────────────── */
.marquee-strip {
  background: var(--brand-grad);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: .45rem 0;
}

.marquee-track {
  display: inline-flex; gap: 0;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 1rem;
}
.marquee-track .sep { padding: 0; opacity: .4; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── LAYOUT HELPERS ────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 5vw; }

.section { padding: clamp(5rem, 10vh, 9rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 3.5rem; }
.section-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PORTFOLIO ─────────────────────────────────── */
#portfolio { background: var(--bg); }

.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: .45rem 1.2rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,184,154,.06);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.5px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  aspect-ratio: 16/10;
}

.portfolio-card.hidden { display: none; }

.card-media {
  position: relative;
  width: 100%; height: 100%;
}

.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .8s;
  filter: brightness(.85) saturate(.9);
}

/* No-image fallback */
.no-img { background: linear-gradient(135deg, #1a1a1a 0%, #111 100%); }
.no-img img { display: none; }
.no-img::after {
  content: 'PROJECT';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: .3em;
  color: var(--border);
}

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .5s;
  display: flex; align-items: center; justify-content: center;
}

.card-play {
  width: 60px; height: 60px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transform: scale(.7);
  transition: transform .5s var(--ease), border-color .3s;
}
.card-play svg { width: 24px; height: 24px; }

.portfolio-card:hover .card-media img {
  transform: scale(1.07);
  filter: brightness(.65) saturate(1.1);
}
.portfolio-card:hover .card-overlay { opacity: 1; }
.portfolio-card:hover .card-play { transform: scale(1); border-color: var(--accent); }

.card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  transform: translateY(8px);
  transition: transform .5s var(--ease);
  z-index: 2;
}

.portfolio-card:hover .card-info { transform: translateY(0); }

.card-cat {
  display: block;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
  padding: 5vw;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-close {
  position: absolute; top: 1.5rem; right: 2rem;
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color .3s, border-color .3s;
}
.modal-close:hover { color: var(--white); border-color: var(--white); }
.modal-close svg { width: 18px; height: 18px; }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  width: 100%;
  transform: translateY(30px);
  transition: transform .5s var(--ease) .1s;
}
.modal-overlay.open .modal-inner { transform: translateY(0); }

.modal-media-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
}
.modal-img { width: 100%; height: 100%; object-fit: cover; }

.modal-details { display: flex; flex-direction: column; justify-content: center; }
.modal-cat {
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; display: block;
}
.modal-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.modal-desc { color: var(--text-muted); font-weight: 300; margin-bottom: 2rem; }
.modal-cta { align-self: flex-start; }

/* ── SERVICES ──────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-alt);
  padding: 2.5rem 2rem;
  transition: background .4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 2px;
  background: var(--accent);
  transition: right .5s var(--ease);
}
.service-card:hover::before { right: 0; }
.service-card:hover { background: var(--bg-card); }

.service-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform .3s var(--ease);
  /* gradient border via pseudo-element */
}
.service-icon::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: var(--brand-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.service-card:hover .service-icon { transform: scale(1.08); }
.service-icon svg { width: 22px; height: 22px; position: relative; z-index: 1; }

.service-card h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: .75rem;
}

.service-card p {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ── PORTFOLIO CTA ─────────────────────────────── */
.portfolio-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  padding: 4rem 0 1rem;
}

.portfolio-cta-text {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.75;
}

.portfolio-drive-btn {
  padding: 1.1rem 2.8rem;
  font-size: .95rem;
  letter-spacing: .08em;
  gap: .8rem;
}

.portfolio-drive-btn svg { width: 20px; height: 20px; }

.portfolio-cta-note {
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  opacity: .6;
}

/* ── STATS ─────────────────────────────────────── */
.stats-section {
  background: var(--bg-card);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item { padding: 1.5rem; }

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: .02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-label {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── ABOUT ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
}

.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.9);
}

.no-img-about .about-img-wrap {
  background: linear-gradient(135deg, #1c1c1c 0%, #0f0f0f 100%);
}

.about-img-accent {
  position: absolute;
  bottom: -2rem; right: -2rem;
  width: 60%;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: .2;
  pointer-events: none;
}

.about-img-secondary {
  position: absolute;
  bottom: -3rem; right: -3rem;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--bg);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  aspect-ratio: 3/4;
  display: none; /* Enable if you have secondary image */
}
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }

.about-title { margin-bottom: 1.5rem; }

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 300;
}

.about-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2rem;
}

.about-tags span {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: .4rem .9rem;
  border-radius: 50px;
  color: var(--text-muted);
}

/* ── TESTIMONIALS ──────────────────────────────── */
.testimonials-section { padding: clamp(4rem, 8vh, 7rem) 0; }

.testimonials-swiper { padding-bottom: 3rem !important; }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
}

.quote-mark {
  font-family: 'Georgia', serif;
  font-size: 6rem;
  line-height: .5;
  color: var(--accent);
  opacity: .3;
  margin-bottom: 1rem;
  display: block;
}

.testimonial-card p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }

.author-info strong {
  display: block;
  color: var(--white);
  font-weight: 500;
}
.author-info span { font-size: .8rem; color: var(--text-muted); }

.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* ── CONTACT ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin: 1.5rem 0 2.5rem;
  font-weight: 300;
}

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }

.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  color: var(--text-muted);
  font-size: .9rem;
  transition: color .3s;
}
.contact-item:hover { color: var(--white); }
.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: .1em; }

.social-links { display: flex; gap: 1rem; }
.social-link {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color .3s, border-color .3s, background .3s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(200,184,154,.06); }
.social-link svg { width: 17px; height: 17px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { position: relative; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem .6rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 300;
  transition: border-color .3s;
  outline: none;
  resize: none;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: .9rem;
  font-size: .85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all .25s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: .35rem;
  font-size: .68rem;
  color: var(--accent);
  letter-spacing: .08em;
}

/* dual action buttons */
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.btn-flex { width: 100%; justify-content: center; gap: .6rem; }
.btn-flex svg { flex-shrink: 0; }

.btn-wa {
  background: #25D366;
  color: #fff;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  padding: .85rem 1.5rem;
  transition: background .3s, transform .3s;
}
.btn-wa:hover { background: #1ebe57; transform: translateY(-1px); }

.form-note {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
}
.form-note a { color: var(--accent); text-decoration: underline; }

/* ── FOOTER ────────────────────────────────────── */
#footer {
  background: var(--bg-card);
  border-top: none;
  padding: 4rem 0 2rem;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-grad);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1.8rem;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-col { display: flex; flex-direction: column; gap: .75rem; }
.footer-links-col strong {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .25rem;
}
.footer-links-col a, .footer-links-col span {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .25s;
  word-break: break-all;
}
.footer-links-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-bottom span { font-size: .8rem; color: var(--text-muted); }

.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  color: var(--text-muted);
  transition: color .25s;
}
.footer-socials a:hover { color: var(--accent); }
.footer-socials svg { width: 17px; height: 17px; }

/* ── WHATSAPP ──────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 90;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.35);
  transition: transform .4s var(--ease), box-shadow .4s;
  animation: waPop .6s var(--ease) 4s backwards;
}

@keyframes waPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(37,211,102,.5);
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + .75rem);
  white-space: nowrap;
  background: var(--bg-card);
  color: var(--white);
  font-size: .78rem;
  padding: .45rem .9rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .3s, transform .3s;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── BACK TO TOP ───────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 6rem; right: 2rem;
  z-index: 89;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s, transform .4s, color .25s, border-color .25s;
  pointer-events: none;
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-top:hover { color: var(--accent); border-color: var(--accent); }
.back-top svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 500px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-inner { grid-template-columns: 1fr; gap: 2rem; }
  .modal-media-wrap { max-width: 600px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .form-actions { grid-template-columns: 1fr; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-inner {
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 2rem;
    max-height: 90dvh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2.2rem, 10vw, 4rem); }
  .portfolio-grid { gap: .75px; }
  .testimonial-card { padding: 2rem; }
}

/* ── SELECTION ─────────────────────────────────── */
::selection { background: var(--accent); color: var(--bg); }

/* ── MOBILE PERFORMANCE ─────────────────────────── */
@media (max-width: 768px) {
  /* Disable heavy transitions on mobile */
  .hero-slide { transition: opacity .6s ease; }
  .reveal { transition: opacity .5s ease, transform .5s ease; }


  /* Lighter hero overlay on mobile */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,.4) 0%,
      rgba(0,0,0,.65) 60%,
      rgba(0,0,0,.92) 100%
    );
  }

  /* Reduce hero padding on mobile */
  #hero { padding-bottom: 5vh; }

  /* Portfolio CTA adjustments */
  .portfolio-cta { padding: 2rem 0 1rem; }
  .portfolio-drive-btn { width: 100%; justify-content: center; }

  /* Simpler service card on mobile */
  .service-card::before { display: none; }

  /* Lighter stats on mobile */
  .stats-grid { gap: 1rem; }
  .stat-item { padding: 1rem; }
}

/* Reduce motion for accessibility + battery */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; }
  .hero-headline .line { transform: none; opacity: 1; }
  .hero-tag, .hero-sub, .hero-cta-group,
  .hero-scroll-hint, .hero-dots { opacity: 1; }
}

/* ══════════════════════════════════════════════════
   RTL — ARABIC LANGUAGE SUPPORT
   ══════════════════════════════════════════════════ */

html[dir="rtl"] body {
  font-family: 'Tajawal', system-ui, sans-serif;
}

html[dir="rtl"] .hero-headline,
html[dir="rtl"] .section-title,
html[dir="rtl"] .loader-logo,
html[dir="rtl"] .mobile-menu a {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

html[dir="rtl"] .hero-tag,
html[dir="rtl"] .section-label,
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .btn {
  letter-spacing: 0;
}

/* Navbar RTL */
html[dir="rtl"] #navbar {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-right {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links a::after {
  left: auto; right: 0; left: 100%;
  transition: left .35s var(--ease);
}
html[dir="rtl"] .nav-links a:hover::after { left: 0; }

/* Hero RTL */
html[dir="rtl"] .hero-logo-wrap { text-align: right; }
html[dir="rtl"] .hero-content { text-align: right; }
html[dir="rtl"] .hero-cta-group { justify-content: flex-end; }
html[dir="rtl"] .hero-dots { left: auto; right: 5vw; }
html[dir="rtl"] .hero-scroll-hint { right: auto; left: 5vw; }

/* Sections RTL */
html[dir="rtl"] .section-header { text-align: right; }
html[dir="rtl"] .about-grid { direction: rtl; }
html[dir="rtl"] .about-content { text-align: right; }
html[dir="rtl"] .about-tags { justify-content: flex-start; }
html[dir="rtl"] .contact-grid { direction: rtl; }
html[dir="rtl"] .contact-info { text-align: right; }
html[dir="rtl"] .contact-details { align-items: flex-end; }
html[dir="rtl"] .contact-item { flex-direction: row-reverse; }
html[dir="rtl"] .social-links { justify-content: flex-end; }
html[dir="rtl"] .footer-top { direction: rtl; }
html[dir="rtl"] .footer-brand p { text-align: right; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .footer-links-col { text-align: right; }
html[dir="rtl"] .service-card { text-align: right; }
html[dir="rtl"] .stat-item { text-align: center; }

/* Form RTL */
html[dir="rtl"] .contact-form { direction: rtl; }
html[dir="rtl"] .form-group label { right: 1rem; left: auto; }
html[dir="rtl"] .form-note { text-align: right; }
html[dir="rtl"] .form-actions { direction: rtl; }

/* Portfolio RTL */
html[dir="rtl"] .portfolio-cta { text-align: right; }
html[dir="rtl"] .portfolio-drive-btn { margin: 0 0 0 auto; }

/* Mobile menu RTL */
html[dir="rtl"] .mobile-menu ul { direction: rtl; }

/* Mobile responsive RTL */
@media (max-width: 768px) {
  html[dir="rtl"] .hero-cta-group { justify-content: flex-start; }
  html[dir="rtl"] .hero-logo-wrap { text-align: left; }
  html[dir="rtl"] .hero-content { text-align: right; }
  html[dir="rtl"] .portfolio-drive-btn { margin: 0 auto; }

  /* RTL mobile — match English layout quality */
  html[dir="rtl"] .about-grid { direction: ltr; }
  html[dir="rtl"] .about-grid > * { direction: rtl; }
  html[dir="rtl"] .contact-grid { direction: ltr; }
  html[dir="rtl"] .contact-grid > * { direction: rtl; }
  html[dir="rtl"] .contact-info { text-align: right; }
  html[dir="rtl"] .contact-details { align-items: flex-start; }
  html[dir="rtl"] .contact-item { flex-direction: row; }
  html[dir="rtl"] .social-links { justify-content: flex-start; }
  html[dir="rtl"] .form-actions { direction: rtl; }
  html[dir="rtl"] .footer-top { direction: ltr; }
  html[dir="rtl"] .footer-top > * { direction: rtl; text-align: right; }
  html[dir="rtl"] .footer-bottom { flex-direction: column; gap: 1rem; }
  html[dir="rtl"] .stats-grid { direction: rtl; }
}

@media (max-width: 768px) {
  .hero-logo-img { height: 65px; }
  .loader-logo-img { height: 64px; }
}

/* Arabic hero headline — slightly smaller to avoid overflow */
html[dir="rtl"] .hero-headline {
  font-size: clamp(2.4rem, 5.8vw, 5.2rem);
}
@media (max-width: 480px) {
  html[dir="rtl"] .hero-headline {
    font-size: clamp(1.9rem, 8.5vw, 3.4rem);
  }
}
