:root {
  --bg:           #FAF7F4;
  --bg-warm:      #F3EDE6;
  --text:         #1E1612;
  --text-soft:    #3D2E28;
  --text-muted:   #9C8880;
  --accent:       #C07A5C;
  --accent-dark:  #A0624A;
  --accent-faint: rgba(192, 122, 92, 0.09);
  --accent-glow:  rgba(192, 122, 92, 0.22);
  --card-bg:      #FFFFFF;
  --card-border:  rgba(192, 122, 92, 0.12);
  --card-shadow:
    0 2px 12px rgba(62, 28, 14, 0.06),
    0 1px 3px  rgba(62, 28, 14, 0.04);
  --card-shadow-hover:
    0 10px 40px rgba(62, 28, 14, 0.10),
    0 2px  8px  rgba(62, 28, 14, 0.06);
  --sparkle:      rgba(192, 122, 92, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 55% at 15% 15%, rgba(220, 150, 118, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 85% 85%, rgba(192, 122, 92, 0.07) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Floating sparkles ── */

.sparkles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  color: var(--sparkle);
  font-style: normal;
  line-height: 1;
  user-select: none;
  animation: float-up var(--dur) var(--delay) infinite ease-in-out;
}

@keyframes float-up {
  0%, 100% { transform: translateY(0)   rotate(0deg);   opacity: var(--base); }
  50%       { transform: translateY(-14px) rotate(18deg); opacity: calc(var(--base) * 2.2); }
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 5vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  gap: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before,
.eyebrow::after {
  content: '✦';
  font-size: 0.65em;
  opacity: 0.7;
}

.domain {
  font-family: 'Cormorant Garamond', 'Garamond', ui-serif, serif;
  font-size: clamp(2.6rem, 8.5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(192, 122, 92, 0.12);
  margin-top: 0.2rem;
}

.domain span {
  color: var(--accent);
}

.tagline {
  font-family: 'Cormorant Garamond', ui-serif, serif;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 38ch;
  margin-top: 0.4rem;
}

.tagline strong {
  font-style: normal;
  font-weight: 600;
  color: var(--text-soft);
}

/* ── Divider ── */

.divider {
  position: relative;
  z-index: 1;
  width: min(100% - 4rem, 680px);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid rgba(192, 122, 92, 0.15);
}

/* ── Cards ── */

.cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: min(100% - 2 * clamp(1.5rem, 5vw, 2.5rem), 900px);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 2.5rem);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(192, 122, 92, 0.28);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-faint);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(192, 122, 92, 0.15);
}

.card__title {
  font-family: 'Cormorant Garamond', ui-serif, serif;
  font-size: clamp(1.1rem, 1.9vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card__desc {
  font-size: clamp(0.875rem, 1.5vw, 0.9rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA section ── */

.cta-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 5vw, 2.5rem) clamp(4rem, 7vw, 6rem);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 3rem;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  border-radius: 10px;
  box-shadow:
    0 4px 20px var(--accent-glow),
    0 1px 4px rgba(62, 28, 14, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px var(--accent-glow),
    0 2px 8px rgba(62, 28, 14, 0.18);
  opacity: 0.94;
  outline: none;
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-style: italic;
  font-family: 'Cormorant Garamond', ui-serif, serif;
  font-size: 0.95rem;
}

/* ── Projects / Diğer Projelerimiz ── */

.projects {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 2.5rem);
  border-top: 1px solid rgba(192, 122, 92, 0.10);
}

.projects__inner {
  max-width: 900px;
  margin: 0 auto;
}

.projects__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.8vw, 2rem);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
  animation: card-enter 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.18s; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.project-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(192, 122, 92, 0.28);
}

.project-card__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
}

.project-card__logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.project-card:hover .project-card__logo {
  transform: scale(1.07);
  filter: drop-shadow(0 4px 12px rgba(192, 122, 92, 0.2));
}

/* Sinapskit inline brand mark */
.sinapskit-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.sinapskit-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1e2a31;
  transition: color 0.3s ease;
}

.project-card:hover .sinapskit-name {
  color: #ff6b4a;
}

/* Sinapskit node pulse animations */
.s-node {
  transform-box: fill-box;
  transform-origin: center;
}

.s-node-1 { animation: node-pulse 2.4s 0s    infinite ease-in-out; }
.s-node-2 { animation: node-pulse 2.4s 0.8s  infinite ease-in-out; }
.s-node-3 { animation: node-pulse 2.4s 1.6s  infinite ease-in-out; }

@keyframes node-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.35); opacity: 0.8; }
}

/* Line shimmer on Sinapskit hover */
.s-line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.5s ease;
}

.project-card:hover .s-line {
  stroke-dashoffset: 0;
}

.project-card__desc {
  font-size: clamp(0.875rem, 1.4vw, 0.9rem);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-top: 0.25rem;
}

/* ── Footer ── */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid rgba(192, 122, 92, 0.08);
}

/* ── Responsive ── */

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

@media (max-width: 680px) {
  .cards {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: start;
  }

  .card__icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
    width: 38px;
    height: 38px;
  }

  .card__title { margin-bottom: 0.3rem; }

  .hero { padding-bottom: 2rem; }
}

@media (min-width: 681px) and (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .domain { font-size: 2.4rem; }
  .cta    { padding: 0.9rem 2rem; width: 100%; }
  .hero   { padding-top: 4rem; padding-bottom: 1.5rem; }
  .project-card__logo { height: 40px; }
  .sinapskit-name     { font-size: 1.3rem; }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .sparkle        { animation: none !important; }
  .card           { transition: none; }
  .cta            { transition: none; }
  .project-card   { animation: none; transition: none; }
  .s-node         { animation: none !important; }
  .s-line         { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .project-card__logo { transition: none; }
  html            { scroll-behavior: auto; }
}
