/* ════════════════════════════════════════════════════
   DİJİTAL DAVETİYE — ANA SAYFA STİLLERİ
   main.css  |  Google Fonts: Outfit + Playfair Display
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

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

:root {
  --gold:        #c9a84c;
  --gold-light:  #f0d080;
  --gold-glow:   rgba(201,168,76,0.25);
  --bg-deep:     #06060f;
  --bg-dark:     #0d0d1f;
  --bg-card:     rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.12);
  --text-primary:#f0eee8;
  --text-muted:  #9998aa;
  --radius-lg:   20px;
  --radius-xl:   30px;
  --shadow-gold: 0 0 40px rgba(201,168,76,0.2);
  --transition:  all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── CANVAS PARTICLES ── */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.5;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,6,15,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(6,6,15,0.9);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}

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

.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px;
  transition: var(--transition); position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px;
  left: 0; width: 0; height: 1px;
  background: var(--gold); transition: var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a1a !important;
  border-radius: 50px; font-weight: 700 !important;
  font-size: 0.9rem !important; letter-spacing: 0.5px;
  transition: var(--transition) !important; text-decoration: none;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px var(--gold-glow) !important;
}

.nav-cta::after { display: none !important; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: var(--transition); }

/* ── HERO SECTION ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 5% 80px; z-index: 1;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35) saturate(1.2);
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-deep) 100%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px; font-size: 0.82rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease infinite;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 580px;
  margin: 0 auto 40px; line-height: 1.8;
  font-weight: 300;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-primary {
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a1a; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 50px; cursor: pointer;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 10px;
  box-shadow: 0 8px 30px var(--gold-glow);
  transition: var(--transition); position: relative; overflow: hidden;
}

.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  opacity: 0; transition: var(--transition);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--gold-glow); }
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  padding: 16px 40px;
  background: transparent;
  color: var(--text-primary); font-weight: 500; font-size: 1rem;
  border: 1px solid var(--glass-border); border-radius: 50px; cursor: pointer;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 10px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,168,76,0.08);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  animation: fadeIn 1s ease 1.2s both;
}

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

@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── SECTION COMMONS ── */
section { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .tag {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  font-weight: 500;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted); font-size: 1rem;
  max-width: 500px; margin: 0 auto; line-height: 1.8;
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 60px 5%;
  background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(201,168,76,0.02));
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.stats-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; text-align: center;
}

.stat-item .number {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: block; margin-bottom: 8px;
}

.stat-item .label { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.5px; }

/* ── GALLERY SECTION ── */
.gallery-section { padding: 100px 5%; }

.templates-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── TEMPLATE CARD ── */
.template-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  will-change: transform;
}

.template-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold), 0 30px 60px rgba(0,0,0,0.4);
  transform: translateY(-8px);
}

.card-image-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
}

.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.template-card:hover .card-image-wrap img { transform: scale(1.08); }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(6,6,15,0.9) 100%);
  display: flex; align-items: flex-end; padding: 24px;
  opacity: 0; transition: var(--transition);
}

.template-card:hover .card-overlay { opacity: 1; }

.card-overlay-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a1a; font-weight: 700; font-size: 0.9rem;
  border-radius: 50px; cursor: pointer; transition: var(--transition);
}

.card-overlay-btn:hover { transform: scale(1.05); }

.card-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 6px 14px;
  background: rgba(6,6,15,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px; font-size: 0.75rem;
  color: var(--gold); letter-spacing: 1px;
  text-transform: uppercase;
}

.card-body { padding: 24px; }

.card-theme {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}

.theme-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

.theme-label {
  font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 600;
  margin-bottom: 10px; color: var(--text-primary);
}

.card-desc {
  color: var(--text-muted); font-size: 0.88rem;
  line-height: 1.7; margin-bottom: 20px;
}

.card-features {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}

.feature-tag {
  padding: 4px 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50px; font-size: 0.75rem;
  color: var(--gold);
}

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

.price-area { }

.price-label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 2px; }
.price-value {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.btn-quote {
  padding: 10px 22px; border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a1a; font-weight: 700; font-size: 0.85rem;
  border-radius: 50px; cursor: pointer;
  transition: var(--transition); display: flex;
  align-items: center; gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-quote:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 25px var(--gold-glow); }

/* ── FEATURES SECTION ── */
.features-section { padding: 100px 5%; }

.features-section-inner {
  max-width: 1200px; margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center; transition: var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(201,168,76,0.3), rgba(201,168,76,0.1));
  box-shadow: 0 0 20px var(--gold-glow);
}

.feature-card h3 {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 12px; color: var(--text-primary);
}

.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ── HOW IT WORKS ── */
.how-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, rgba(201,168,76,0.04), transparent);
}

.steps-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute; top: 28px; left: 20%; right: 20%;
  height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.step-item { text-align: center; }

.step-number {
  width: 56px; height: 56px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
  font-size: 1.1rem; font-weight: 700; color: var(--gold);
  background: var(--bg-deep);
  position: relative; z-index: 1;
  transition: var(--transition);
}

.step-item:hover .step-number {
  background: var(--gold); color: #0a0a1a;
  box-shadow: 0 0 20px var(--gold-glow);
}

.step-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.step-item p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }

/* ── TESTIMONIALS ── */
.testimonials-section { padding: 100px 5%; }

.testimonials-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.testimonial-card:hover { border-color: rgba(201,168,76,0.25); transform: translateY(-4px); }

.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-date { font-size: 0.78rem; color: var(--text-muted); }

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 5%; text-align: center;
  position: relative; overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.1) 0%, transparent 70%);
}

.cta-content { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px;
}

.cta-content p { color: var(--text-muted); margin-bottom: 40px; line-height: 1.8; }

/* ── FOOTER ── */
footer {
  padding: 40px 5%;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold); font-size: 1.1rem;
}

.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ── MODAL / PREVIEW ── */
.preview-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}

.preview-modal.active { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1100px;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); overflow: hidden;
  transform: scale(0.9); transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), var(--shadow-gold);
}

.preview-modal.active .modal-inner { transform: scale(1); }

.modal-header {
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--gold);
}

.modal-actions { display: flex; gap: 12px; align-items: center; }

.modal-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(255,0,0,0.15); color: #ff6b6b; border-color: rgba(255,0,0,0.3); }

.modal-iframe-wrap {
  position: relative;
  aspect-ratio: 16/9.5; width: 100%;
  overflow: hidden;
}

.modal-iframe-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
  pointer-events: auto;
}

.modal-footer {
  padding: 16px 24px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}

.modal-template-info { }
.modal-template-name { font-weight: 600; font-size: 1rem; }
.modal-template-sub { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }

.modal-quote-btn {
  padding: 12px 28px; border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a1a; font-weight: 700; font-size: 0.9rem;
  border-radius: 50px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.modal-quote-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--gold-glow); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 20px;
    position: fixed; inset: 0; top: 70px;
    background: rgba(6,6,15,0.97);
    padding: 40px; z-index: 999;
    align-items: center; justify-content: center;
    font-size: 1.3rem;
  }
  .hamburger { display: flex; }
  .templates-grid { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  footer { flex-direction: column; text-align: center; }
  .modal-iframe-wrap { aspect-ratio: 4/5; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
