/* =================================================================
   Saral Yatırım - Custom Styles
   ================================================================= */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px; /* offset for fixed header */
}

/* Hero/section that span full viewport — pull up under header */
section.relative.h-screen,
section.relative.h-\[70vh\],
section.relative.h-\[60vh\] {
  margin-top: -80px;
}

/* =================================================================
   Animations
   ================================================================= */

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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Scroll indicator */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.animate-scroll-indicator {
  animation: scrollIndicator 2s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
}

/* =================================================================
   Header behavior on scroll
   ================================================================= */

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* =================================================================
   Portfolio cards
   ================================================================= */

.portfolio-card {
  position: relative;
  cursor: pointer;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 5;
}

.portfolio-card:hover::after {
  border-color: rgba(255, 255, 255, 0.4);
}

/* =================================================================
   Form styling
   ================================================================= */

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
}

/* =================================================================
   Selection
   ================================================================= */

::selection {
  background: #2a9d8f;
  color: white;
}

/* =================================================================
   Scrollbar
   ================================================================= */

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #2a9d8f;
}
::-webkit-scrollbar-thumb:hover {
  background: #1f7d72;
}

/* =================================================================
   Reduce motion
   ================================================================= */

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