/* ============================================================
   DAMLA GEDIKLI – PORTFOLIO
   styles.css

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────────
   01. CSS Variables
   02. Reset & Base
   03. Typography
   04. Buttons
   05. Navigation
   06. Hero Section
   07. Projects Preview (Homepage)
   08. About Section
   09. Skills Section
   10. Contact Section
   11. Footer
   12. Projects Overview Page (projekte.html)
   13. Project Detail Page (projekt*.html)
   14. Scroll Reveal Utilities
   15. Keyframe Animations
   16. Responsive – Tablet (≤ 900px)
   17. Responsive – Mobile (≤ 600px)
   ============================================================ */

/* ── 01. CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Colour palette */
  --bg:             #FFFAF4;
  --bg-card:        #E8EAF4;
  --bg-skills:      #4A5BAA;
  --bg-skills-end:  #3A4B90;
  --blue-900:       #1C2960;
  --blue-700:       #2D42A0;
  --blue-500:       #6878C8;
  --blue-300:       #A0AED8;
  --blue-100:       #D8DCF0;
  --white:          #FFFFFF;
  --text:           #1C2960;
  --text-soft:      #5A6898;

  /* Typography */
  --font:           'Baumans', system-ui, -apple-system, sans-serif;
  --font-display:   'Baumans', Georgia, serif;

  /* Spacing scale */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;
  --s7:  96px;
  --s8:  128px;

  /* Border radii */
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-xl:   48px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:  0 2px  8px  rgba(28, 41, 96, 0.07);
  --sh-md:  0 8px  28px rgba(28, 41, 96, 0.12);
  --sh-lg:  0 20px 56px rgba(28, 41, 96, 0.18);

  /* Transitions */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  0.18s ease;
  --t-med:   0.32s ease;
  --t-slow:  0.6s  var(--ease);

  /* Layout */
  --max-w:   1200px;
  --pad-x:   clamp(20px, 5vw, 60px);
  --nav-h:   72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 03. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue-900);
}

h1 { font-size: clamp(2rem,   5vw,  3.5rem); }
h2 { font-size: clamp(1.75rem,4vw,  2.75rem);}
h3 { font-size: clamp(1.1rem, 2vw,  1.4rem); }
h4 { font-size: 1rem; }

p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-soft);
  line-height: 1.75;
}

em {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15em;
  color: var(--blue-900);
}

/* ── 04. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 12px 30px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background var(--t-med),
    color      var(--t-med),
    transform  var(--t-fast),
    box-shadow var(--t-med);
}

.btn:hover { transform: translateY(-2px); }

.btn--outline {
  border: 1.5px solid var(--blue-900);
  color:  var(--blue-900);
  background: transparent;
}
.btn--outline:hover {
  background:  var(--blue-900);
  color:       var(--white);
  box-shadow:  var(--sh-md);
}

.btn--primary {
  background:  var(--blue-900);
  color:       var(--white);
  box-shadow:  var(--sh-sm);
}
.btn--primary:hover {
  background: var(--blue-700);
  box-shadow: var(--sh-md);
}

.btn--email {
  background: var(--blue-700);
  color:      var(--white);
  gap:        var(--s2);
}
.btn--email:hover {
  background: var(--blue-900);
  box-shadow: var(--sh-md);
}

/* ── LAYOUT UTILITY ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--s8);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--blue-900);
  margin-bottom: var(--s5);
}

/* ── 05. NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(216, 220, 240, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-sm);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  transition: opacity var(--t-fast);
}
.nav__logo:hover { opacity: 0.65; }

.nav__logo-icon {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

.nav__logo-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--blue-900);
  letter-spacing: 0.01em;
}

/* Desktop links */
.nav__links {
  display: flex;
  gap: var(--s4);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue-700);
  transition: width var(--t-med);
}
.nav__link:hover,
.nav__link.is-active { color: var(--blue-900); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--blue-900);
  transition: transform var(--t-med), opacity var(--t-fast);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg);  }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0;                                   }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(244, 240, 234, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--s4) var(--pad-x);
  flex-direction: column;
  gap: var(--s3);
  box-shadow: var(--sh-md);
  z-index: 99;
}
.nav__mobile.is-open { display: flex; }

.nav__mobile-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  padding-block: var(--s1);
  border-bottom: 1px solid var(--blue-100);
  transition: color var(--t-fast);
}
.nav__mobile-link:hover { color: var(--blue-700); }

/* ── 06. HERO SECTION ──────────────────────────────────────── */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

/* Name images wrapper – full bleed, no max-width cap */
.hero__name {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.hero__name-img {
  height: auto;
  display: block;
}

/* name-1 (DAMLA) – top-left, roughly 65 % of viewport width */
.hero__name-img--1 {
  width: clamp(340px, 62vw, 820px);
  align-self: flex-start;
  margin-left: -4vw;
  animation: slideInLeft 8s var(--ease) 0.1s both;
}

/* name-2 (GEDIKLI) – bottom-right, wider, bleeds slightly off right edge */
.hero__name-img--2 {
  width: clamp(420px, 88vw, 1180px);
  align-self: flex-end;
  margin-right: -8vw;
  animation: slideInRight 4s var(--ease) 0.5s both;
}

/* Tagline between the two name rows */
.hero__tagline {
  align-self: center;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--blue-900);
  letter-spacing: 0.28em;
  padding-block: clamp(12px, 2.5vw, 28px);
}

.hero__tagline-word {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.hero__tagline-word:hover {
  transform: translateY(-10px) rotate(-6deg);
}
.hero__tagline-word:nth-child(2):hover {
  transform: translateY(-10px) rotate(6deg);
}
.hero__tagline-word:nth-child(3):hover {
  transform: translateY(-10px) rotate(-6deg);
}

.hero__subtitle {
  display: none; /* hidden – tagline replaces it in the hero */
}

/* ── 07. PROJECTS PREVIEW (Homepage) ───────────────────────── */
.projects-preview {
  position: relative;
  overflow: visible;
}

/* Decorative background blob */
.section-blob {
  position: absolute;
  left: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: var(--blue-100);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.projects-preview .container { position: relative; z-index: 1; }

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s6);
}

/* Project card (shared by homepage grid + overview grid) */
.project-card {
  cursor: pointer;
  /* no border-radius / overflow here so the title sits freely below */
}

.project-card__img-wrap {
  aspect-ratio: 3 / 2;
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  /* hover lift lives here, not on the outer article */
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.project-card:hover .project-card__img-wrap {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.project-card:hover .project-card__img { transform: scale(1.06); }

.project-card__title {
  margin-top: var(--s1);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-soft);
  /* sits outside the rounded image box */
  padding-inline: 4px;
}

.section__cta {
  text-align: center;
  margin-top: var(--s4);
}

/* ── 08. ABOUT SECTION ─────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: stretch;
}

.about__right {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about__intro-text {
  font-size: 1.8rem;
  font-style: normal;
  font-family: 'Dancing Script', cursive !important;
  color: var(--blue-900);
  margin-bottom: var(--s1);
}

.about__body {
  font-size: 0.95rem;
  margin-bottom: var(--s2);
}

.about__photo {
  aspect-ratio: 5 / 4;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* About slideshow */
.about__slideshow {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.about__slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.about__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.about__slide.is-active {
  opacity: 1;
}

/* Timeline */
.timeline {
  padding-left: var(--s1);
  margin-top: 10rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s3);
  position: relative;
}

/* Vertical connecting line between dots */
.timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -8px;
  width: 2px;
  background: var(--blue-100);
}

.timeline__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-700);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.timeline__content { padding-bottom: var(--s6); }

.timeline__date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-700);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--s1);
}

.timeline__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 2px;
}

.timeline__org {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: var(--s2);
}

.timeline__desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── 09. SKILLS SECTION ────────────────────────────────────── */
.skills {
  background: url('home-assets/Meine-Skills-bg.png') center center / cover no-repeat;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.skills::before,
.skills::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.skills::before {
  width: 320px; height: 320px;
  bottom: -80px; left: -80px;
  background: rgba(255,255,255,0.05);
}
.skills::after {
  width: 220px; height: 220px;
  top: -60px; right: -40px;
  background: rgba(255,255,255,0.04);
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
  position: relative;
  z-index: 1;
}

.skills__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--s3);
}

.skills__desc {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
}

/* Skill icons cloud */
.skills__icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 80px;
  column-gap: var(--s3);
  justify-items: center;
}

.skill-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: default;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  animation: float 5s ease-in-out infinite;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.skill-icon:hover {
  transform: scale(1.14) rotate(4deg) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
  animation-play-state: paused;
}

/* Staggered float delays */
.skill-icon:nth-child(1) { animation-delay: 0.0s; }
.skill-icon:nth-child(2) { animation-delay: 0.5s; }
.skill-icon:nth-child(3) { animation-delay: 1.0s; }
.skill-icon:nth-child(4) { animation-delay: 1.5s; }
.skill-icon:nth-child(5) { animation-delay: 0.3s; }
.skill-icon:nth-child(6) { animation-delay: 0.8s; }
.skill-icon:nth-child(7) { animation-delay: 1.3s; }
.skill-icon:nth-child(8) { animation-delay: 1.8s; }

/* Brand colours removed – now using PNG images */
.skill-icon--figma,
.skill-icon--ai,
.skill-icon--ae,
.skill-icon--ps,
.skill-icon--protopie,
.skill-icon--html,
.skill-icon--css,
.skill-icon--blender { background: transparent; box-shadow: none; }

.skill-icon__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
}

.skill-icon__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
}

/* ── 10. CONTACT SECTION ───────────────────────────────────── */
.contact { text-align: center; }

.contact__inner { max-width: 560px; margin-inline: auto; }

.contact__deco {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  margin-inline: auto;
  margin-bottom: var(--s4);
  animation: contact-sway 4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes contact-sway {
  0%   { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  100% { transform: rotate(-5deg); }
}

.contact__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: var(--s3);
}

.contact__text {
  font-size: 0.95rem;
  margin-bottom: var(--s5);
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}

.contact__socials {
  display: flex;
  gap: var(--s4);
}

.contact__social-link {
  font-size: 0.9rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  transition: color var(--t-fast);
}
.contact__social-link:hover { color: var(--blue-700); }

/* ── 11. FOOTER ────────────────────────────────────────────── */
.footer {
  padding-block: var(--s4);
  border-top: 1px solid var(--blue-100);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}

.footer__links { display: flex; gap: var(--s4); }

.footer__link {
  font-size: 0.8rem;
  color: var(--text-soft);
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--blue-700); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ── 12. PROJECTS OVERVIEW PAGE ────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + var(--s6));
  padding-bottom: var(--s5);
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: var(--s2);
}

.page-header__intro {
  max-width: 560px;
  font-size: 1rem;
}

.projects-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  padding-bottom: var(--s7);
}

/* Overlay fade on overview cards – scoped to img-wrap */
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 41, 96, 0);
  border-radius: var(--r-md);
  transition: background var(--t-med);
  pointer-events: none;
}
.projects-overview__grid .project-card__img-wrap {
  position: relative;
}
.projects-overview__grid .project-card:hover .project-card__overlay {
  background: rgba(28, 41, 96, 0.08);
}

/* "coming soon" notice */
.projects-more {
  text-align: center;
  padding-block: var(--s3) var(--s5);
}
.projects-more__text {
  font-size: 1rem;
  color: var(--text-soft);
}
.projects-more__text span {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--blue-700);
}

/* ── 13. PROJECT DETAIL PAGE ───────────────────────────────── */
.project-detail {
  padding-top: calc(var(--nav-h) + var(--s6));
}

.project-detail__header { margin-bottom: var(--s5); }

.project-detail__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  margin-bottom: var(--s2);
}

.project-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-detail__tag {
  font-size: 0.85rem;
  color: var(--text-soft);
}
.project-detail__tag:not(:last-child)::after {
  content: ' |';
  margin-left: 4px;
}

/* Full-width slider */
.project-slider {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  position: relative;
  margin-bottom: var(--s5);
}

.project-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.project-slider__slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.project-slider__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-slider__slide--video {
  background: #000;
}
.project-slider__slide--video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.project-slider > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-slider > iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
/* Hide default cursor over iframes so custom cursor stays visible at edge */
.project-slider iframe,
.project-section__img-wrap iframe {
  cursor: none;
}
.project-slider > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-slider__dots {
  position: absolute;
  bottom: var(--s2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--s1);
}

.project-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), transform var(--t-fast);
}
.project-slider__dot.is-active {
  background: white;
  transform: scale(1.3);
}

/* Intro row: text + info box */
.project-detail__intro-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--s5);
  align-items: start;
  margin-bottom: var(--s7);
}

.project-detail__intro-text {
  font-size: 1rem;
  line-height: 1.8;
}

/* Full-width intro text (new layout) */
.project-detail__intro-full {
  font-size: 1rem;
  line-height: 1.8;
  padding-block: var(--s5);
}

/* Info box */
.project-info-box {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: var(--s4);
  position: sticky;
  top: calc(var(--nav-h) + var(--s3));
}

.project-info-box__section { margin-bottom: var(--s4); }
.project-info-box__section:last-child { margin-bottom: 0; }

.project-info-box__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s1);
}

.project-info-box__value {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Alternating content sections */
.project-section {
  padding-block: var(--s7);
  border-top: 1px solid var(--blue-100);
}

.project-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}

/* Three-column layout (image | text | info box) */
.project-section__grid--three {
  grid-template-columns: 1fr 1fr auto;
}
.project-section__grid--three .project-info-box {
  width: 200px;
  align-self: center;
  position: static;
}

/* Intro column: text stacked above info box */
.project-section__intro-col {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  justify-content: center;
}
.project-section__intro-col .project-info-box {
  position: static;
}

/* Intro layout: grid on top, full-width bar below */
.project-intro-layout {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

/* Full-width horizontal info bar */
.project-info-box--bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  position: static;
  margin-bottom: var(--s7);
}
.project-info-box--bar .project-info-box__section {
  margin-bottom: 0;
}

/* Project intro text */
.project-intro {
  margin-bottom: var(--s7);
}
.project-intro p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Reversed layout (text left / image right) */
.project-section__grid--reversed {
  direction: rtl;
}
.project-section__grid--reversed > * { direction: ltr; }

.project-section__img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-card);
  position: relative;
}
.project-section__img-wrap img,
.project-section__img-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SECTION SLIDESHOW ─────────────────────────────────────── */
.section-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}
.section-slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.section-slideshow__slide.is-active {
  opacity: 1;
  position: relative;
}

.project-section__text h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  margin-bottom: var(--s3);
}
.project-section__text p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── 14. SCROLL REVEAL UTILITIES ───────────────────────────── */

/* Base state: hidden */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal       { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }

/* Visible state (added by IntersectionObserver) */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger grid: children animate in sequence */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger.is-visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero fade-in (auto-plays on load) */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) forwards;
}
.fade-in--delay { animation-delay: 0.35s; }

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
*, *::before, *::after { cursor: none !important; }

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  background-image: url('home-assets/dg-cursor-.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transform: translate(-50%, -50%);
}

#custom-cursor.is-clicked {
  background-image: url('home-assets/dg-cursor-click.png');
}

#cursor-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99997;
}

/* ── 15. KEYFRAME ANIMATIONS ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes float {
  0%, 100% { transform: translateY(0);   }
  40%       { transform: translateY(-9px); }
  70%       { transform: translateY(-4px); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-300px); }
  to   { opacity: 1; transform: translateX(0);       }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(300px); }
  to   { opacity: 1; transform: translateX(0);     }
}

/* ── 15b. PROJECT CAROUSEL ─────────────────────────────────── */
.project-carousel {
  margin-top: var(--s7);
  margin-bottom: var(--s5);
}

.project-carousel__track-wrap {
  position: relative;
  overflow: hidden;
}

.project-carousel__track {
  display: flex;
  gap: var(--s2);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

/* Each slide matches project-card width: ~1/3 of container, showing ~2.3 visible + peek */
.project-carousel__slide {
  flex: 0 0 calc((100% - var(--s2) * 2) / 2.3);
  min-width: 0;
  cursor: pointer;
}

.project-carousel__img-wrap {
  aspect-ratio: 3 / 2;
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.project-carousel__slide:hover .project-carousel__img-wrap {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.project-carousel__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.project-carousel__slide:hover .project-carousel__img-wrap img {
  transform: scale(1.06);
}

/* Prev / Next buttons */
.project-carousel__btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  background: transparent;
  color: var(--blue-900);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--t-med);
}
.project-carousel__btn--prev { left: 0; }
.project-carousel__btn--next { right: 0; }

/* Show arrow only when hovering the respective edge zone */
.project-carousel__btn--prev:hover,
.project-carousel__track-wrap:has(.project-carousel__btn--prev:hover) .project-carousel__btn--prev {
  opacity: 1;
}
.project-carousel__btn--next:hover,
.project-carousel__track-wrap:has(.project-carousel__btn--next:hover) .project-carousel__btn--next {
  opacity: 1;
}

.project-carousel__btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.lightbox-overlay.is-open img {
  transform: scale(1);
}
.project-carousel__btn:hover .project-carousel__btn-icon {
  background: var(--white);
  transform: scale(1.08);
}

/* Dots – removed */
.project-carousel__dots { display: none; }

/* ── 16. RESPONSIVE – TABLET (≤ 900px) ────────────────────── */
@media (max-width: 900px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }

  .projects-grid,
  .projects-overview__grid { grid-template-columns: repeat(2, 1fr); }

  .about__grid    { grid-template-columns: 1fr; gap: var(--s5); }
  .skills__grid   { grid-template-columns: 1fr; gap: var(--s5); }

  .project-detail__intro-row {
    grid-template-columns: 1fr;
  }
  .project-info-box {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
  }
  .project-info-box__section { margin-bottom: 0; }

  .project-section__grid          { grid-template-columns: 1fr; }
  .project-section__grid--three   { grid-template-columns: 1fr; }
  .project-section__grid--reversed { direction: ltr; }
}

/* ── 17. RESPONSIVE – MOBILE (≤ 600px) ────────────────────── */
@media (max-width: 600px) {
  :root {
    --s7: 64px;
    --s8: 80px;
  }

  .projects-grid,
  .projects-overview__grid { grid-template-columns: 1fr; }

  .skills__icons { grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
  .skill-icon    { width: 60px; height: 60px; }

  .footer__inner { flex-direction: column; text-align: center; }

  .project-info-box { grid-template-columns: 1fr; }

  .contact__socials { flex-direction: column; align-items: center; gap: var(--s2); }
}
