/* Mevcut CSS'inizi koruyarak aşağıdaki efektleri ekleyin */

/* ============ ANIMATED BACKGROUND ============ */
body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(182, 139, 42, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(10, 37, 64, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(182, 139, 42, 0.08) 0%, transparent 50%),
    var(--bg);
  background-size: 300% 300%, 400% 400%, 350% 350%, 450% 450%, 300% 300%, 100% 100%;
  animation: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    linear-gradient(45deg, rgba(30, 144, 255, 0.08), rgba(182, 139, 42, 0.06), rgba(10, 37, 64, 0.04)),
    linear-gradient(-45deg, rgba(182, 139, 42, 0.05), rgba(30, 144, 255, 0.07), rgba(10, 37, 64, 0.06)),
    radial-gradient(circle at 60% 30%, rgba(30, 144, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 30% 60%, rgba(182, 139, 42, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(10, 37, 64, 0.05) 0%, transparent 35%);
  background-size: 400% 400%, 350% 350%, 500% 500%, 600% 600%, 400% 400%;
  animation: none;
}

/* enable bg animations when not scrolling */
body:not(.scrolling)::before {
  animation: 
    gradientShift1 5s ease-in-out infinite,
    gradientShift2 7s ease-in-out infinite reverse,
    gradientShift3 6s ease-in-out infinite,
    gradientShift4 8s ease-in-out infinite reverse,
    gradientShift5 5.5s ease-in-out infinite;
}

body:not(.scrolling)::after {
  animation: 
    colorWave1 12s ease-in-out infinite,
    colorWave2 15s ease-in-out infinite reverse,
    gradientShift6 8.5s ease-in-out infinite reverse,
    gradientShift7 6.5s ease-in-out infinite,
    gradientShift8 7.5s ease-in-out infinite reverse;
}

/* Yeni renk geçiş animasyonları */
@keyframes colorWave1 {
  0% { 
    background-position: 0% 50%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    filter: hue-rotate(0deg); 
  }
  25% { 
    background-position: 25% 75%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    filter: hue-rotate(15deg); 
  }
  50% { 
    background-position: 50% 50%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    filter: hue-rotate(30deg); 
  }
  75% { 
    background-position: 75% 25%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    filter: hue-rotate(15deg); 
  }
  100% { 
    background-position: 0% 50%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    filter: hue-rotate(0deg); 
  }
}

@keyframes colorWave2 {
  0% { 
    background-position: 0% 0%, 0% 50%, 0% 0%, 0% 0%, 0% 0%;
    filter: brightness(1) contrast(1); 
  }
  33% { 
    background-position: 0% 0%, 33% 67%, 0% 0%, 0% 0%, 0% 0%;
    filter: brightness(1.1) contrast(1.05); 
  }
  66% { 
    background-position: 0% 0%, 66% 33%, 0% 0%, 0% 0%, 0% 0%;
    filter: brightness(0.95) contrast(1.02); 
  }
  100% { 
    background-position: 0% 0%, 0% 50%, 0% 0%, 0% 0%, 0% 0%;
    filter: brightness(1) contrast(1); 
  }
}

@keyframes gradientShift1 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  25% { background-position: 25% 25%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 50% 50%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  75% { background-position: 75% 25%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
}

@keyframes gradientShift2 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  33% { background-position: 0% 0%, 30% 30%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  66% { background-position: 0% 0%, 60% 20%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
}

@keyframes gradientShift3 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 0% 0%, 0% 0%, 40% 60%, 0% 0%, 0% 0%, 0% 0%; }
}

@keyframes gradientShift4 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  25% { background-position: 0% 0%, 0% 0%, 0% 0%, 20% 80%, 0% 0%, 0% 0%; }
  75% { background-position: 0% 0%, 0% 0%, 0% 0%, 80% 20%, 0% 0%, 0% 0%; }
}

@keyframes gradientShift5 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  40% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 60% 40%, 0% 0%; }
  80% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 20% 80%, 0% 0%; }
}

@keyframes gradientShift6 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 70% 30%, 0% 0%, 0% 0%; }
}

@keyframes gradientShift7 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  33% { background-position: 0% 0%, 40% 60%, 0% 0%; }
  66% { background-position: 0% 0%, 80% 20%, 0% 0%; }
}

@keyframes gradientShift8 {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 0% 0%, 0% 0%, 60% 90%; }
}

/* ============ SMOOTH SCROLL & TRANSITIONS ============ */
html {
  scroll-behavior: smooth;
}

/* reduce global transitions to avoid jank */
.btn, .card, .day, .slot, select, input, .logo, .contact-fab, .bubble {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out, opacity 0.2s ease-out;
}

/* ============ HEADER ENHANCEMENTS ============ */
header {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.brand-name {
  background: linear-gradient(135deg, #fff, #f0f9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============ BUTTON IMPROVEMENTS ============ */
.btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), #f4d03f);
  box-shadow: 
    0 10px 30px rgba(182, 139, 42, .25), 
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.4), 
    transparent
  );
  transition: left 0.5s ease;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 40px rgba(182, 139, 42, .35), 
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* ============ HERO SECTION ANIMATIONS ============ */
.hero {
  animation: fadeInUp 1.5s ease-out 0.4s both;
}

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

h1 {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    filter: drop-shadow(0 0 5px rgba(30, 144, 255, 0.3));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(30, 144, 255, 0.5));
  }
}

.lead {
  animation: fadeInUp 1.5s ease-out 0.9s both;
}

/* ============ CARD ENHANCEMENTS ============ */
.card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, .10),
    0 8px 32px rgba(30, 144, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.2);
  animation: cardSlideIn 1.3s ease-out 1.1s both;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(30, 144, 255, 0.5), 
    transparent
  );
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============ FORM FIELD IMPROVEMENTS ============ */
.field {
  animation: fadeInUp 0.8s ease-out both;
}

.field:nth-child(1) { animation-delay: 0.2s; }
.field:nth-child(2) { animation-delay: 0.35s; }
.field:nth-child(3) { animation-delay: 0.5s; }
.field:nth-child(4) { animation-delay: 0.65s; }
.field:nth-child(5) { animation-delay: 0.8s; }

select, input[type="text"], input[type="tel"], input[type="email"] {
  border: 2px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.02),
    0 1px 2px rgba(0,0,0,0.05);
  position: relative;
}

select:focus, input:focus {
  border-color: var(--blue);
  box-shadow: 
    0 0 0 3px rgba(30, 144, 255, 0.1),
    inset 0 2px 4px rgba(0,0,0,0.02),
    0 4px 12px rgba(30, 144, 255, 0.15);
  outline: none;
  transform: translateY(-1px);
}

select:hover, input:hover {
  border-color: rgba(30, 144, 255, 0.3);
  transform: translateY(-1px);
}

/* ============ DATE WHEEL ENHANCEMENTS ============ */
.date-wheel {
  background: linear-gradient(145deg, #ffffff, #f8faff);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.08);
  border: 2px solid rgba(30, 144, 255, 0.1);
}

.date-wheel select {
  background: linear-gradient(145deg, #ffffff, #f8faff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.date-wheel select:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.15);
}

/* ============ CALENDAR IMPROVEMENTS ============ */
.cal {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
  border: 2px solid rgba(30, 144, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--blue), 
    var(--gold), 
    var(--blue)
  );
}

.cal-head .month {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.day {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.day:hover:not(.disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 144, 255, 0.2);
  border-color: var(--blue);
  background: linear-gradient(145deg, #ffffff, #f0f9ff);
}

.day.selected {
  animation: daySelected 0.3s ease;
  box-shadow: 
    0 8px 24px rgba(30, 144, 255, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

@keyframes daySelected {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.day.disabled {
  filter: grayscale(1);
}

/* ============ SLOTS ENHANCEMENTS ============ */
.slot {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: linear-gradient(145deg, #ffffff, #f8faff);
}

.slot:hover:not([disabled]) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 24px rgba(10, 37, 64, 0.15);
  border-color: var(--navy);
}

.slot.selected {
  animation: slotSelected 0.4s ease;
  box-shadow: 
    0 12px 28px rgba(10, 37, 64, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

@keyframes slotSelected {
  0% { transform: scale(1); }
  50% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.slot[disabled] {
  filter: grayscale(1);
  position: relative;
}

.slot[disabled]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #dc2626;
  transform: rotate(-15deg);
}

/* ============ MODAL ENHANCEMENTS ============ */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdropFadeIn 0.3s ease;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--navy), 
    var(--blue), 
    var(--gold), 
    var(--blue), 
    var(--navy)
  );
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.summary-list {
  animation: listFadeIn 0.6s ease 0.2s both;
}

.summary-list li {
  opacity: 0;
  animation: listItemSlide 0.4s ease both;
}

.summary-list li:nth-child(1) { animation-delay: 0.1s; }
.summary-list li:nth-child(2) { animation-delay: 0.2s; }
.summary-list li:nth-child(3) { animation-delay: 0.3s; }
.summary-list li:nth-child(4) { animation-delay: 0.4s; }
.summary-list li:nth-child(5) { animation-delay: 0.5s; }
.summary-list li:nth-child(6) { animation-delay: 0.6s; }
.summary-list li:nth-child(7) { animation-delay: 0.7s; }
.summary-list li:nth-child(8) { animation-delay: 0.8s; }

@keyframes listFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============ TOOTH ANIMATIONS ENHANCEMENT ============ */
/* Diş animasyonları kaldırıldı - yukarıdaki arka plan efektleri kullanılıyor */

/* ============ LOADING STATES ============ */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(30, 144, 255, 0.2);
  border-top: 2px solid var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ SUCCESS STATES ============ */
.success {
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
  100% { transform: scale(1); }
}

/* ============ ERROR STATES ============ */
.error {
  animation: fieldErrorShake 0.6s ease;
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.2) !important;
}

@keyframes fieldErrorShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-8px) scale(1.02); }
  20% { transform: translateX(8px) scale(1.02); }
  30% { transform: translateX(-6px) scale(1.01); }
  40% { transform: translateX(6px) scale(1.01); }
  50% { transform: translateX(-4px) scale(1.005); }
  60% { transform: translateX(4px) scale(1.005); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
}

/* Field container error state for better visibility */
.field.error {
  animation: fieldContainerShake 0.8s ease;
  background: linear-gradient(145deg, rgba(214, 40, 40, 0.05), rgba(214, 40, 40, 0.02));
  border-radius: 8px;
  padding: 8px;
  margin: -8px;
}

@keyframes fieldContainerShake {
  0%, 100% { transform: translateX(0); }
  5% { transform: translateX(-10px) scale(1.02); }
  15% { transform: translateX(10px) scale(1.02); }
  25% { transform: translateX(-8px) scale(1.015); }
  35% { transform: translateX(8px) scale(1.015); }
  45% { transform: translateX(-6px) scale(1.01); }
  55% { transform: translateX(6px) scale(1.01); }
  65% { transform: translateX(-4px) scale(1.005); }
  75% { transform: translateX(4px) scale(1.005); }
  85% { transform: translateX(-2px); }
  95% { transform: translateX(2px); }
}

.helper {
  animation: helperSlide 0.3s ease;
}

@keyframes helperSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ RESPONSIVE IMPROVEMENTS ============ */
@media (max-width: 768px) {
  .card {
    margin: 20px;
    padding: 18px;
  }
  
  .btn {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .day {
    height: 48px;
    font-size: 14px;
  }
  
  .slot {
    font-size: 14px;
    padding: 10px;
  }
}

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

/* ============ FOCUS IMPROVEMENTS ============ */
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ============ PRINT STYLES ============ */
@media print {
  .bg,
  header,
  .btn {
    display: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

main{
  padding-top: calc(var(--header-h)+800); /* header + nefes payi */
}

.contact-fab,
.contact-fab .phone-icon {
  text-decoration: none;
}

