/* ═══════════════════════════════════════════════════════════
   MAKEDON İNŞAAT — CSS Design System
   Premium Emlak & Kentsel Dönüşüm
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Gold Palette (Logo-based) */
  --gold-primary: #C8A45C;
  --gold-light: #D4B978;
  --gold-dark: #A68841;
  --gold-muted: #8B7340;
  --gold-gradient: linear-gradient(135deg, #D4B978, #C8A45C, #A68841);
  --gold-gradient-hover: linear-gradient(135deg, #E0C98A, #D4B978, #C8A45C);
  --gold-text-gradient: linear-gradient(135deg, #E0C98A 0%, #C8A45C 50%, #A68841 100%);
  --gold-glow: 0 0 20px rgba(200, 164, 92, 0.3);
  --gold-glow-strong: 0 0 40px rgba(200, 164, 92, 0.5);

  /* Dark Palette */
  --dark-primary: #0A0F1C;
  --dark-secondary: #111827;
  --dark-card: #1A1F2E;
  --dark-border: #2A3042;
  --dark-hover: #232840;

  /* Text Colors */
  --text-primary: #F5F0E8;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-gold: #C8A45C;

  /* Accent Colors */
  --accent-emerald: #10B981;
  --accent-red: #EF4444;
  --accent-blue: #3B82F6;
  --accent-amber: #F59E0B;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(200, 164, 92, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 50;
  --z-navbar: 100;
  --z-modal: 200;
  --z-tooltip: 300;
  --z-whatsapp: 150;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;

  /* Navbar */
  --navbar-height: 120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: #070a13;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: transparent;
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-7xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gold {
  color: var(--gold-primary);
}

.text-gradient-gold {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-light);
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  max-width: 1600px;
}

.section {
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-bottom: var(--space-4);
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.5;
}

.section-label::before {
  right: calc(100% + 12px);
}

.section-label::after {
  left: calc(100% + 12px);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--dark-primary);
  font-weight: 600;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  animation: btnPulse 2.5s infinite alternate ease-in-out;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: btnShimmer 3.5s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
}

@keyframes btnShimmer {
  0% {
    left: -150%;
  }
  40% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 4px 15px rgba(200, 164, 92, 0.35);
  }
  100% {
    box-shadow: 0 4px 25px rgba(200, 164, 92, 0.75), 0 0 10px rgba(200, 164, 92, 0.2);
  }
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--gold-primary);
}

.btn-outline:hover {
  background: rgba(200, 164, 92, 0.1);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  border-color: rgba(200, 164, 92, 0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.card-glass {
  background: rgba(26, 31, 46, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 164, 92, 0.1);
}

.card-glass:hover {
  background: rgba(26, 31, 46, 0.8);
  border-color: rgba(200, 164, 92, 0.25);
}

/* ─── Form Elements ─────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--dark-secondary);
  border: 1.5px solid var(--dark-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--dark-secondary);
  border: 1.5px solid var(--dark-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  transition: all var(--transition-fast);
}

.form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

.form-select option {
  background: var(--dark-bg);
  color: var(--text-primary);
}

.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--dark-secondary);
  border: 1.5px solid var(--dark-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  min-height: 120px;
  resize: vertical;
  transition: all var(--transition-fast);
}

.form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

/* ─── Animations (GSAP-compatible classes) ──────────────── */
/* GSAP handles initial hidden state via from() — no CSS opacity:0 needed */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  /* GSAP will set these properties dynamically */
}

.stagger-item {
  /* GSAP handles initial state */
}

/* ─── Gold Glow Effect ──────────────────────────────────── */
.gold-glow {
  position: relative;
}

.gold-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gold-gradient);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(8px);
}

.gold-glow:hover::before {
  opacity: 1;
}

/* ─── Floating Gradient Orbs ────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-gold {
  background: radial-gradient(circle, rgba(200, 164, 92, 0.08), transparent);
}

.orb-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05), transparent);
}

/* ─── Divider ───────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin: var(--space-6) auto;
  border-radius: var(--radius-full);
}

/* ─── Badge ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: rgba(200, 164, 92, 0.15);
  color: var(--gold-light);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-muted);
}

/* ─── Selection ─────────────────────────────────────────── */
::selection {
  background: rgba(200, 164, 92, 0.3);
  color: var(--text-primary);
}

/* ─── WhatsApp Floating Button ──────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-whatsapp);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root {
    --text-7xl: 3.5rem;
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --text-7xl: 2.5rem;
    --text-6xl: 2.25rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --container-padding: 1rem;
    --navbar-height: 64px;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-label::before,
  .section-label::after {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --text-7xl: 2rem;
    --text-6xl: 1.875rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }
}

/* ─── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Custom Premium Backgrounds ────────────────────────── */
.bg-grid {
  background-image: 
    linear-gradient(rgba(200, 164, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 92, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.section-divider {
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 10%; 
  right: 10%; 
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 92, 0.2), transparent);
}

/* ─── Custom Premium Backgrounds ────────────────────────── */
.bg-grid {
  background-image: 
    linear-gradient(rgba(200, 164, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 92, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.section-divider {
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 10%; 
  right: 10%; 
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 92, 0.2), transparent);
}

/* ─── FAQ Section ───────────────────────────────────────── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(200, 164, 92, 0.3);
  box-shadow: var(--shadow-gold);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  background: transparent;
  user-select: none;
}

.faq-question h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-question i {
  color: var(--gold-primary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question h4 {
  color: var(--gold-primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  padding: 0 var(--space-6);
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: var(--space-2) var(--space-6) var(--space-5);
}

/* ─── Viewer Tabs ───────────────────────────────────────── */
.viewer-tabs button {
  transition: all 0.3s ease;
}
.viewer-tabs button.active {
  background: var(--gold-gradient);
  color: var(--dark-primary);
}

/* ─── Luxury Background & Aurora & Grain ────────────────── */
.luxury-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 10% 20%, rgba(200, 164, 92, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 60%, rgba(59, 130, 246, 0.04) 0%, transparent 45%),
              radial-gradient(circle at 30% 90%, rgba(200, 164, 92, 0.03) 0%, transparent 40%),
              #070a13;
}

.aurora-glow-1,
.aurora-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
}

.aurora-glow-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(200, 164, 92, 0.35) 0%, transparent 70%);
  animation: auroraMove1 35s ease-in-out infinite alternate;
}

.aurora-glow-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  animation: auroraMove2 40s ease-in-out infinite alternate;
}

.bg-grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#blueprintCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

@keyframes auroraMove1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(8%, 12%) scale(1.08) rotate(180deg);
  }
  100% {
    transform: translate(-4%, 4%) scale(0.92) rotate(360deg);
  }
}

@keyframes auroraMove2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-12%, -8%) scale(0.92) rotate(-180deg);
  }
  100% {
    transform: translate(4%, -4%) scale(1.08) rotate(-360deg);
  }
}

/* ─── Mobile Spacing & Padding Optimizations ────────────── */
@media (max-width: 992px) {
  .section {
    padding: var(--space-6) 0 !important; /* Shrunk from 96px to 24px */
  }
  
  .section-header {
    margin-bottom: var(--space-6) !important; /* Shrunk spacing */
  }

  .section-header h2 {
    font-size: 1.8rem !important; /* Compact titles */
  }

  .section-header p {
    font-size: var(--text-sm) !important;
    margin-top: var(--space-2) !important;
  }

  .section-divider::before {
    left: 20px !important;
    right: 20px !important;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 92, 0.55), transparent) !important;
  }
}
