/* ============================================
   VAMIE — Design System
   Beauty of Imperfection × Maker Culture
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* VAMIE Premium Palette */
  --bg-canvas: #EBE6DF;       /* The Canvas (Kraft/Yulaf) */
  --bg-pure: #FAF9F6;         /* Pure Space (Temiz Boşluk) */
  --accent-stitch: #D4A373;   /* The Stitch (Mumlu İp Hardalı) */
  --accent-craft: #A87C61;    /* The Craft (Deri/Kil) */
  --text-denim: #1B2A41;      /* The Denim (Koyu İndigo) */
  --text-shadow: #2C2C2C;     /* The Shadow (Kömür Grisi) */

  /* Shadows & Glassmorphism (VAMIE renklerine uyarlandı) */
  --shadow-soft: rgba(27, 42, 65, 0.08); /* İndigo tabanlı yumuşak gölge */
  --shadow-medium: rgba(27, 42, 65, 0.12); /* İndigo tabanlı orta gölge */
  --glass-bg: rgba(235, 230, 223, 0.55); /* Canvas tabanlı cam efekti */
  --glass-border: rgba(212, 163, 115, 0.4); /* Stitch tabanlı ince çerçeve */
  --stitch-glow: rgba(212, 163, 115, 0.45); /* Hardal sarısı parlama efekti */

  /* Typography Colors */
  --text-body: var(--text-shadow);
  --text-heading: var(--text-denim);
  --text-light: var(--bg-pure);

  /* Typography */
  --font-heading: 'Space Mono', 'Courier Prime', monospace;
  --font-body: 'Inter', 'DM Sans', sans-serif;

  /* Sizing */
  --section-pad: clamp(60px, 10vh, 120px);
  --content-max: 1200px;
  --border-radius: 12px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Typography Scale --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  letter-spacing: 0.1em;
  padding-left: 0.1em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.05em;
  padding-left: 0.05em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.03em;
  padding-left: 0.03em;
}

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  max-width: 60ch;
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.25em;
  padding-left: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-canvas);
  transition: all 0.5s var(--ease-smooth);
}

.nav.scrolled {
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 40px;
  box-shadow: 0 4px 30px var(--shadow-soft);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-denim);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-stitch);
  transition: width 0.4s var(--ease-smooth);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Hamburger Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-denim);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-denim);
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav__toggle.active .hamburger {
  background-color: transparent;
}

.nav__toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(27, 42, 71, 0.3) 0%,
      rgba(253, 246, 214, 0.15) 60%,
      var(--bg-canvas) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  width: 100%;
  max-width: var(--content-max);
}

.hero__title {
  color: var(--text-light);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.hero__subtitle {
  color: rgba(250, 249, 246, 0.8);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 249, 246, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.hero__scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250, 249, 246, 0.6), transparent);
  animation: scrollLineGrow 2s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scrollLineGrow {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }

  100% {
    opacity: 0;
    transform: scaleY(1);
  }
}

/* --- Section Base --- */
.section {
  padding: var(--section-pad) 24px;
  position: relative;
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 80px);
}

.section__header h2 {
  margin-bottom: 12px;
}

.section__header .subtitle {
  margin-top: 8px;
}

/* --- Divider --- */
.section-divider {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent-stitch), transparent);
  margin: 0 auto 20px;
  border: none;
}

/* --- Philosophy Section --- */
.philosophy {
  background: var(--bg-canvas);
  position: relative;
}

.philosophy__canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.philosophy__canvas-wrap canvas {
  width: 100%;
  height: 100%;
  pointer-events: all;
}

.philosophy .section__inner {
  position: relative;
  z-index: 1;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 8vh, 120px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.pillar.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar:nth-child(even) {
  direction: rtl;
}

.pillar:nth-child(even)>* {
  direction: ltr;
}

/* Imperfection asymmetry offsets */
.pillar:nth-child(1) .pillar__image {
  transform: rotate(-1.2deg);
}

.pillar:nth-child(2) .pillar__image {
  transform: rotate(0.8deg) translateY(15px);
}

.pillar:nth-child(3) .pillar__image {
  transform: rotate(-0.5deg) translateX(-10px);
}

.pillar__image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-medium);
  transition: transform 0.6s var(--ease-smooth);
}

.pillar__image:hover {
  transform: rotate(0deg) scale(1.02) !important;
}

.pillar__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth), filter 0.8s;
}

.pillar__image:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Glass overlay on images */
.pillar__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(205, 224, 201, 0.1) 0%,
      transparent 50%);
  pointer-events: none;
}

.pillar__text {
  padding: clamp(10px, 3vw, 30px);
}

.pillar__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-denim);
  /* #1B2A47 */
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.pillar__text h3 {
  margin-bottom: 16px;
  color: var(--text-heading);
}

.pillar__text p {
  color: var(--text-body);
  line-height: 1.8;
}

/* --- Impact Counter Section --- */
.impact {
  background: var(--text-denim);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%,
      rgba(205, 224, 201, 0.06) 0%,
      transparent 60%);
  pointer-events: none;
}

.impact .section__header h2 {
  color: var(--text-light);
}

.impact .subtitle {
  color: rgba(250, 249, 246, 0.5);
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.impact__card {
  background: rgba(250, 249, 246, 0.04);
  border: 1px solid rgba(250, 249, 246, 0.08);
  border-radius: var(--border-radius);
  padding: clamp(30px, 4vw, 50px) clamp(20px, 3vw, 30px);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s;
  backdrop-filter: blur(10px);
}

.impact__card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 196, 163, 0.25);
}

.impact__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-craft), var(--accent-stitch));
  opacity: 0;
  transition: opacity 0.4s;
}

.impact__card:hover::before {
  opacity: 1;
}

.impact__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.impact__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--accent-stitch);
  margin-bottom: 8px;
  line-height: 1;
}

.impact__unit {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  opacity: 0.6;
}

.impact__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.6;
  margin-top: 16px;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(180deg,
      var(--bg-canvas) 0%,
      var(--bg-canvas) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-craft), transparent 70%);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  margin: 0 auto 40px;
  opacity: 0.7;
  text-align: center;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 48px;
  background: var(--accent-stitch);
  color: var(--text-denim);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(250, 249, 246, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--stitch-glow);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* --- Footer --- */
.footer {
  background: var(--text-denim);
  color: rgba(250, 249, 246, 0.4);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.6);
  margin-bottom: 8px;
}

/* --- Stitching Animation --- */
.stitch-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: stitchIn 0.5s forwards;
  position: relative;
}

.stitch-char::before,
.stitch-char::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-stitch);
  transform: scaleX(0);
  transform-origin: left;
  animation: stitchLine 0.3s forwards;
  animation-delay: inherit;
}

.stitch-char::after {
  bottom: -2px;
}

.stitch-char::before {
  top: -2px;
}

@keyframes stitchIn {
  0% {
    opacity: 0;
    transform: translateY(12px) rotateX(40deg);
  }

  60% {
    opacity: 1;
    transform: translateY(-3px) rotateX(-5deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes stitchLine {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

/* Space character fix */
.stitch-space {
  display: inline-block;
  width: 0.3em;
}

/* --- Scroll Reveal Base --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* --- Denim Texture Overlay (subtle) --- */
.denim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: repeating-linear-gradient(45deg,
      transparent,
      transparent 2px,
      rgba(27, 42, 71, 0.3) 2px,
      rgba(27, 42, 71, 0.3) 3px);
  mix-blend-mode: multiply;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pillar:nth-child(even) {
    direction: ltr;
  }

  .pillar__image {
    transform: rotate(0deg) !important;
  }

  .impact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--bg-canvas);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    box-shadow: -10px 0 30px var(--shadow-soft);
    transition: right 0.4s var(--ease-smooth);
    z-index: 1000;
  }

  .nav__links.active {
    right: 0;
  }

  .nav__toggle {
    display: block;
  }

  .nav {
    padding: 16px 20px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
  }

  .btn-primary {
    padding: 16px 36px;
    font-size: 0.78rem;
  }
}

/* --- Loading Animation --- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-denim);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-stitch);
  animation: loaderPulse 1.5s infinite;
}

@keyframes loaderPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* --- Hero Tagline & CTA --- */
.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: rgba(250, 249, 246, 0.75);
  max-width: 52ch;
  margin: 0 auto 40px;
  text-align: center;
}

.hero__cta {
  margin-top: 8px;
}

/* --- Experience Section (inherits .philosophy styles) --- */
.experience {
  background: var(--bg-canvas);
  position: relative;
}

.experience .section__inner {
  position: relative;
  z-index: 1;
}

/* --- FAQ Section --- */
.faq {
  background: var(--bg-canvas);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid rgba(27, 42, 71, 0.08);
  overflow: hidden;
}

.faq__item:first-child {
  border-top: 1px solid rgba(27, 42, 71, 0.08);
}

.faq__question {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.6;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  color: var(--text-heading);
  position: relative;
  list-style: none;
  transition: color 0.3s var(--ease-smooth);
}

/* Remove default marker */
.faq__question::-webkit-details-marker {
  display: none;
}

/* Custom plus/minus indicator */
.faq__question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-stitch);
  transition: transform 0.3s var(--ease-smooth);
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__question:hover {
  color: var(--text-denim);
}

.faq__answer {
  padding: 0 40px 28px 0;
  animation: faqOpen 0.4s var(--ease-smooth);
}

.faq__answer p {
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.8;
  color: var(--text-body);
  opacity: 0.75;
  max-width: 65ch;
}

.faq__answer p+p {
  margin-top: 16px;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 12px var(--shadow-soft);
  transition: bottom 0.5s var(--ease-smooth);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-body);
  max-width: 800px;
}

.cookie-btn {
  background: var(--text-denim);
  color: var(--bg-canvas);
  border: none;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.3s;
}

.cookie-btn:hover {
  opacity: 0.8;
}

/* ── Back To Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--bg-canvas);
  color: var(--text-denim);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s;
  box-shadow: 0 4px 12px var(--shadow-soft);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
}
