/* ==========================================================
   RAYANE DBICHI — PORTFOLIO
   Modern dark theme with cinematic gold accent
========================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --text: #f5f1ea;
  --text-dim: #a3a3a3;
  --text-mute: #6b6b6b;
  --accent: #d4a574;
  --accent-2: #e8c896;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1280px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

::selection { background: var(--accent); color: var(--bg); }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6vw;
}

/* ==========================================================
   CUSTOM CURSOR
========================================================== */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease), width 0.3s, height 0.3s, background 0.3s;
}
body.cursor-hover .cursor {
  width: 50px; height: 50px;
  background: var(--accent);
  opacity: 0.3;
}
body.cursor-hover .cursor-follower {
  width: 0; height: 0;
  opacity: 0;
}
@media (max-width: 900px) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ==========================================================
   LOADER
========================================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  text-align: center;
}
.loader-text {
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.loader-bar {
  width: 240px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
  margin: 0 auto;
}
.loader-progress {
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: loadProgress 1.4s var(--ease) forwards;
}
@keyframes loadProgress {
  to { width: 100%; }
}

/* ==========================================================
   NAVIGATION
========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  transition: all 0.3s var(--ease);
}
.logo-mark.big { width: 50px; height: 50px; font-size: 1.5rem; }
.logo:hover .logo-mark { background: var(--accent); color: var(--bg); }
.logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
}
.logo-text .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .menu-btn { display: flex; z-index: 101; }
}

/* ==========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.5) 70%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 6vw;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero-tag .line {
  display: block;
  width: 40px; height: 1px;
  background: var(--accent);
}

/* Hero tag row (Portfolio + Morocco availability) */
.hero-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-tag-row .hero-tag { margin-bottom: 0; }
.hero-tag-morocco {
  position: relative;
  padding: 0.45rem 1.1rem 0.45rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(212, 165, 116, 0.08);
  color: var(--accent);
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.dot-mr {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  background: #c1272d; /* Morocco red */
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(193, 39, 45, 0.25);
  animation: pulse 1.8s infinite;
}
@media (max-width: 600px) {
  .hero-tag-row { gap: 0.6rem; }
  .hero-tag-morocco { font-size: 0.65rem; padding: 0.4rem 0.9rem 0.4rem 1.4rem; }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: wordIn 1s var(--ease) forwards;
}
.hero-title .word:nth-child(1) { animation-delay: 0.3s; }
.hero-title .word:nth-child(2) { animation-delay: 0.5s; color: var(--accent); font-style: italic; }

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

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0;
  animation: fadeIn 1s 0.8s var(--ease) forwards;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s 1s var(--ease) forwards;
}
.hero-roles i {
  color: var(--accent);
  font-style: normal;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s 1.2s var(--ease) forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ==========================================================
   BUTTONS
========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease);
  cursor: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ==========================================================
   MARQUEE
========================================================== */
.marquee {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text-dim);
}
.marquee-track span:nth-child(odd) { color: var(--accent); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================
   SECTIONS COMMON
========================================================== */
section { padding: 7rem 0; position: relative; }
.section-head {
  margin-bottom: 4rem;
  position: relative;
}
.section-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.3em;
}
.section-num.light { color: var(--accent-2); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.section-sub {
  color: var(--text-dim);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ==========================================================
   ABOUT
========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.about-text .lead strong { color: var(--accent); }
.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.about-text p em { color: var(--text); font-style: italic; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
}
.stat-plus {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
  margin-left: -0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.visual-card {
  width: 100%;
  height: 100%;
  position: relative;
}
.visual-card video,
.visual-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.visual-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.pulse {
  display: block;
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { aspect-ratio: 16/10; }
  .about-stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ==========================================================
   SERVICES
========================================================== */
.services { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  cursor: none;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(212, 165, 116, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.5s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.service-card:hover::before { opacity: 1; }

.service-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.service-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: all 0.4s;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-tags li {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   PROJECTS
========================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.projects-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(212, 165, 116, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  color: rgba(245, 245, 245, 0.55);
}
.projects-empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.projects-empty svg {
  color: rgba(212, 165, 116, 0.7);
}
.projects-empty p {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.projects-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}
.projects-grid-4 .project {
  aspect-ratio: 9/16;
}
.projects-grid-4 .project.project-tall {
  grid-row: span 2;
  aspect-ratio: 9/16;
}
.project {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.project:nth-child(1) { grid-row: span 2; aspect-ratio: 9/16; }
.project video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s;
  filter: brightness(0.85);
}
.project:hover video { transform: scale(1.05); filter: brightness(1); }
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.project:hover .project-overlay { opacity: 1; }
.project-meta { display: flex; flex-direction: column; gap: 0.3rem; }
.project-cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-meta h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
}
.project-play {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  transition: transform 0.4s var(--ease);
  align-self: flex-end;
  margin-bottom: 0.4rem;
}
.project:hover .project-play { transform: scale(1.1); }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid-4 { grid-template-columns: 1fr; }
  .projects-grid-4 .project.project-tall { grid-row: auto; }
  .project:nth-child(1) { grid-row: auto; }
  .project { aspect-ratio: 9/14; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   LIGHTBOX
========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; animation: fadeIn 0.3s var(--ease); }
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.3s;
  cursor: none;
}
.lightbox-close:hover { background: var(--accent); color: var(--bg); }
.lightbox-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.lightbox-inner video {
  width: 100%;
  max-height: 75vh;
  border-radius: var(--radius);
  background: #000;
}
.lightbox-meta {
  margin-top: 1.5rem;
  color: var(--text);
}
.lightbox-meta h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.lightbox-meta span {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ==========================================================
   CERTIFICATES
========================================================== */
.certificates { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cert-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.cert-card.featured { grid-row: span 1; }
.cert-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s var(--ease);
}
.cert-card:hover .cert-image img { transform: scale(1.02); }
.cert-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid #4ade80;
  color: #4ade80;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.placeholder-img {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  font-size: 4rem;
  border-bottom: 1px solid var(--line);
}
.cert-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.cert-issuer {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.cert-info h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}
.cert-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cert-info p strong { color: var(--accent-2); }
.cert-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.cert-meta > div { display: flex; flex-direction: column; gap: 0.2rem; }
.cert-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.cert-value {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 900px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-meta { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* ==========================================================
   CONTACT — WhatsApp / Email CTA row
========================================================== */
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
.contact-cta-row .btn {
  cursor: pointer;
}
.contact-cta-row .btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   FOOTER — contact links
========================================================== */
.footer-link {
  color: var(--text-dim);
  transition: color 0.3s;
}
.footer-link:hover { color: var(--accent); }
.footer-right .sep {
  color: var(--text-mute);
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================
   CONTACT
========================================================== */
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.contact-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.contact-left > p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ci-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.ci-value {
  color: var(--text);
  font-size: 1rem;
  transition: color 0.3s;
}
a.ci-value:hover { color: var(--accent); }

.socials {
  display: flex;
  gap: 0.7rem;
}
.social {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all 0.3s;
  cursor: none;
}
.social svg { width: 18px; height: 18px; }
.social:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
  resize: vertical;
  cursor: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a3a3a3' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-status {
  font-size: 0.9rem;
  color: #4ade80;
  text-align: center;
  min-height: 1.2rem;
}
.form-status.error { color: #ef4444; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
}

/* ==========================================================
   FOOTER
========================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.6s infinite;
}
/* ==========================================================
   REVEAL ANIMATIONS
========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   AUTOPLAY PROJECTS WHEN IN VIEW
========================================================== */
.project video {
  /* paused by default; JS will play when in view */
}
