/* ========================================
   Rem Group - Custom Styles
   Tailwind CSS ile birlikte kullanılır
   ======================================== */

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

/* --- Font --- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Mega Menu --- */
.nav-item {
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  margin-top: 0 !important;
}

.nav-item:hover .mega-menu,
.nav-item.active .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Mobile Menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-submenu.open {
  max-height: 500px;
}

/* --- Hamburger Animation --- */
.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Header Scroll Effect --- */
.header-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(20px);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* --- Marquee / Referans Slider --- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* --- Hero Parallax Overlay --- */
.hero-gradient-overlay {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.85) 0%,
    rgba(14, 165, 233, 0.80) 50%,
    rgba(15, 23, 42, 0.90) 100%
  );
}

/* --- Card Hover Effects --- */
.service-card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.service-card-hover:hover .service-icon-wrapper {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: white;
}

/* --- Why Us Card --- */
.why-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.why-card:hover {
  border-left-color: #10b981;
  background-color: #f0fdf4;
  transform: translateX(4px);
}

/* --- Counter Glow --- */
.counter-glow {
  text-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

/* --- Footer Link Hover --- */
.footer-link {
  position: relative;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gradient Border --- */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  border-radius: 4px 4px 0 0;
}

/* --- Pulse Animation for CTA --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
}

.btn-pulse {
  animation: pulse-glow 2.5s infinite;
}

/* --- Stats Section Background Pattern --- */
.stats-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

/* --- Page Hero for subpages --- */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.1));
  border-radius: 50%;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #10b981, #0ea5e9);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #059669, #0284c7);
}

/* --- Selection Color --- */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: #0f172a;
}

/* --- Form Focus --- */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* --- Loading shimmer for reference logos --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-placeholder {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
