/* ============================================================
   XRE Commercial – Enhancements CSS
   Premium hover efektleri, animasyonlar, Tailwind-spirit CSS
   ============================================================ */

/* ── Keyframe Animasyonlar ─────────────────────────────────── */

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5); }
  50%       { box-shadow: 0 0 0 16px rgba(124, 58, 237, 0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(124,58,237,0.8), 0 0 20px rgba(124,58,237,0.4); }
  50%       { text-shadow: 0 0 20px rgba(124,58,237,1), 0 0 40px rgba(56,189,248,0.6); }
}

@keyframes borderDance {
  0%   { border-color: rgba(124,58,237,0.4); }
  33%  { border-color: rgba(56,189,248,0.6); }
  66%  { border-color: rgba(34,197,94,0.5); }
  100% { border-color: rgba(124,58,237,0.4); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

@keyframes scanLine {
  0%   { top: -2px; }
  100% { top: 100%; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Utility: Animasyon Sınıfları ──────────────────────────── */

.animate-slide-up   { animation: slideInUp 0.6s ease both; }
.animate-fade-left  { animation: fadeInLeft 0.6s ease both; }
.animate-fade-right { animation: fadeInRight 0.6s ease both; }
.animate-bounce     { animation: bounceSoft 2s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* ── Header: Glassmorphism + Scroll Efekti ─────────────────── */

.header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(124, 58, 237, 0.12) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 32px rgba(124, 58, 237, 0.12) !important;
}

/* ── Nav Linkleri: Gradient Underline + Glow ───────────────── */

.nav-link {
  position: relative;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(56,189,248,0.08));
  opacity: 0;
  transform: scaleX(0.8) scaleY(0.6);
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  opacity: 1;
  transform: scaleX(1) scaleY(1);
}

.nav-link::after {
  background: linear-gradient(90deg, #7c3aed, #38bdf8, #22c55e) !important;
  height: 2px !important;
  border-radius: 2px;
}

.nav-link:hover {
  color: #7c3aed !important;
}

/* ── Logo: Hover Shine ─────────────────────────────────────── */

.logo {
  position: relative;
  overflow: hidden;
}

.logo-img {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  filter: drop-shadow(0 0 0 rgba(124,58,237,0));
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(-2deg) !important;
  filter: drop-shadow(0 4px 16px rgba(124,58,237,0.4));
}

/* ── Butonlar: Ateş Eden Efektler ──────────────────────────── */

.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.03em;
}

/* Ripple efekti */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* Shimmer efekti */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 150%;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4) !important;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.55) !important;
  background: linear-gradient(135deg, #6d28d9, #1d4ed8) !important;
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3) !important;
  background: rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 8px 32px rgba(255,255,255,0.15) !important;
}

.btn-white {
  background: #ffffff !important;
  color: #7c3aed !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.btn-white:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(124,58,237,0.25) !important;
  background: linear-gradient(135deg, #f8f4ff, #ffffff) !important;
}

/* ── Hero Badge: Animasyonlu ───────────────────────────────── */

.hero-badge {
  animation: borderDance 4s linear infinite;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.12) !important;
}

/* ── Gradient Text: Animasyonlu ────────────────────────────── */

.gradient-text {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #a855f7 30%,
    #38bdf8 60%,
    #22c55e 80%,
    #ffffff 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: gradientShift 4s linear infinite;
}

/* ── Hero Highlights: Glassmorphism Hover ──────────────────── */

.hero-highlight {
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hero-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(56,189,248,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.hero-highlight:hover::before {
  opacity: 1;
}

.hero-highlight:hover {
  transform: translateY(-8px) scale(1.04) !important;
  border-color: rgba(124,58,237,0.4) !important;
  box-shadow: 0 16px 40px rgba(124,58,237,0.2);
}

.hero-highlight strong {
  animation: countUp 0.6s ease both;
}

/* ── Hero Floating Card: Glow ──────────────────────────────── */

.hero-floating-card {
  animation: floatCard 6s ease-in-out infinite;
  transition: all 0.3s ease;
}

.hero-floating-card:hover {
  background: rgba(15,23,42,0.88) !important;
  border-color: rgba(124,58,237,0.4) !important;
  box-shadow: 0 0 40px rgba(124,58,237,0.25);
}

/* ── ROI Card: Pulse ───────────────────────────────────────── */

.hero-roi-card {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ── Stat Cards: Ateş Eden Hover ───────────────────────────── */

.stat-card {
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border: 1px solid rgba(124,58,237,0.1) !important;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124,58,237,0.08),
    transparent
  );
  transition: left 0.6s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #38bdf8, #22c55e);
  transition: width 0.5s ease;
  border-radius: 0 0 12px 12px;
}

.stat-card:hover::after {
  width: 100%;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
  border-color: rgba(124,58,237,0.4) !important;
  box-shadow: 0 20px 60px rgba(124,58,237,0.2) !important;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(56,189,248,0.06)) !important;
}

.stat-number {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
  animation: neonPulse 1.5s ease-in-out infinite;
  -webkit-text-fill-color: unset;
  color: #7c3aed;
}

/* ── Service Cards: 3D Tilt + Glow ────────────────────────── */

.service-card {
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border: 1px solid rgba(124,58,237,0.1) !important;
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124,58,237,0.06) 0%,
    rgba(56,189,248,0.04) 50%,
    rgba(34,197,94,0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #38bdf8, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 12px 12px 0 0;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02) !important;
  border-color: rgba(124,58,237,0.35) !important;
  box-shadow: 0 24px 64px rgba(124,58,237,0.18) !important;
}

.service-icon {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(8deg) !important;
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
}

.service-card:hover .service-icon::after {
  opacity: 0.7;
}

/* ── Property Cards: Zoom + Overlay ───────────────────────── */

.property-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(124,58,237,0.08);
}

.property-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #38bdf8, #22c55e);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.property-card:hover::after {
  transform: scaleX(1);
}

.property-card:hover {
  transform: translateY(-14px) scale(1.015) !important;
  box-shadow: 0 32px 80px rgba(124,58,237,0.2) !important;
  border-color: rgba(124,58,237,0.3) !important;
}

.property-image img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.property-card:hover .property-image img {
  transform: scale(1.12) !important;
  filter: brightness(1.05) saturate(1.1);
}

/* ── Investment Card: Premium Glow ─────────────────────────── */

.featured-investment {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease !important;
}

.featured-investment::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(124,58,237,0.08) 60deg,
    transparent 120deg
  );
  animation: rotateSlow 8s linear infinite;
  z-index: 0;
}

.featured-investment > * {
  position: relative;
  z-index: 1;
}

.featured-investment:hover {
  box-shadow: 0 0 60px rgba(124,58,237,0.25), 0 40px 80px rgba(0,0,0,0.4) !important;
  transform: translateY(-4px);
}

.investment-badge {
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  transition: all 0.3s ease;
}

.investment-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(124,58,237,0.6);
}

.investment-item {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: default;
}

.investment-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(56,189,248,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.investment-item:hover::before {
  opacity: 1;
}

.investment-item:hover {
  transform: translateY(-6px) scale(1.03) !important;
  border-color: rgba(124,58,237,0.35) !important;
  box-shadow: 0 12px 32px rgba(124,58,237,0.2);
}

/* ── CTA Section: Animated Gradient ───────────────────────── */

.cta-section {
  background: linear-gradient(
    135deg,
    #7c3aed 0%,
    #2563eb 40%,
    #0891b2 70%,
    #059669 100%
  ) !important;
  background-size: 300% 300% !important;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.06) 0%,
    transparent 60%
  );
  animation: rotateSlow 15s linear infinite;
}

.cta-section h2 {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.cta-section p,
.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* ── Footer: Link Hover Efektleri ──────────────────────────── */

.footer-section a {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease !important;
  padding-left: 0;
}

.footer-section a::before {
  content: '→';
  position: absolute;
  left: -18px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #7c3aed;
}

.footer-section a:hover {
  color: #a78bfa !important;
  padding-left: 18px;
}

.footer-section a:hover::before {
  opacity: 1;
  left: 0;
}

/* ── WhatsApp Butonu: Ateş Eden Pulse ──────────────────────── */

.whatsapp-btn {
  animation: pulseGlow 2.5s ease-in-out infinite;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.whatsapp-btn:hover {
  transform: scale(1.2) translateY(-6px) rotate(8deg) !important;
  box-shadow: 0 16px 48px rgba(0,170,68,0.55) !important;
}

/* ── Scroll-Reveal: Intersection Observer Sınıfları ─────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Section Başlıkları: Gradient Underline ────────────────── */

.featured-properties h2,
.services h2,
.stats h2 {
  position: relative;
  display: inline-block;
}

.featured-properties h2::after,
.services h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #38bdf8);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.featured-properties:hover h2::after,
.services:hover h2::after {
  width: 120px;
}

/* ── Mobile Menu: Slide Down Animasyon ─────────────────────── */

.mobile-menu {
  animation: slideInUp 0.3s ease;
  border-top: 2px solid rgba(124,58,237,0.15);
}

.mobile-menu-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s ease !important;
  display: block;
}

.mobile-menu-link:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(56,189,248,0.06));
  color: #7c3aed !important;
  padding-left: 24px;
}

/* ── Floating Stats: Hover Glow ────────────────────────────── */

.floating-stats div {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.floating-stats div:hover {
  background: rgba(124,58,237,0.15) !important;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(124,58,237,0.2);
}

/* ── Property Type Badge ───────────────────────────────────── */

.property-type {
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  transition: all 0.3s ease;
  cursor: default;
}

.property-card:hover .property-type {
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  transform: scale(1.05);
}

/* ── Contact Form: Focus Glow ──────────────────────────────── */

input, select, textarea {
  transition: all 0.3s ease !important;
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15), 0 4px 16px rgba(124,58,237,0.1) !important;
  transform: translateY(-1px);
}

/* ── Scroll Progress Bar ───────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #38bdf8, #22c55e);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Tooltip Efekti ────────────────────────────────────────── */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15,23,42,0.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(124,58,237,0.3);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Cursor Glow (Desktop) ─────────────────────────────────── */

@media (hover: hover) {
  .stat-card,
  .service-card,
  .property-card,
  .investment-item {
    cursor: default;
  }
}

/* ── Responsive Adjustments ────────────────────────────────── */

@media (max-width: 768px) {
  .service-card:hover,
  .stat-card:hover,
  .property-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .btn-white:hover {
    transform: translateY(-2px) scale(1.01) !important;
  }
}

/* ── Prefers Reduced Motion ────────────────────────────────── */

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