/* Main stylesheet for PHP version - Premium Design */

/* Custom Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Hero stats - load animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Reduce motion for accessibility */
@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;
  }
}

/* Focus visible styles with premium gradient */
*:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Custom scrollbar with premium styling */
::-webkit-scrollbar {
  width: 12px;
}

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

.dark ::-webkit-scrollbar-track {
  background: #030303;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0284c7, #0ea5e9);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #3730a3, #0284c7);
}

/* Premium Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  }
  100% {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

/* Premium Glass & Shimmer Utilities */
.premium-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.premium-glass-hover:hover {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 45px -10px rgba(37, 99, 235, 0.25);
}

.text-shimmer {
  background: linear-gradient(
    to right,
    #fff 20%,
    #3b82f6 40%,
    #2563eb 60%,
    #fff 80%
  );
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.bg-mesh-blue {
  background-image: 
    radial-gradient(at 0% 0%, hsla(222,47%,11%,1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(224,76%,48%,1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(217,91%,60%,1) 0, transparent 50%);
}

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

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

/* Form error states */
.error-message {
  display: none;
}

.error-message.show {
  display: block;
}

input.error,
select.error,
textarea.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Success/Error messages */
#form-message.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  font-weight: 600;
}

#form-message.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Image Lazy Loading */
img[loading="lazy"] {
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Cookie consent system removed */

/* Dynamic page content styles */
.dynamic-page-content {
  display: block;
  width: 100%;
}

.dynamic-page-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
  line-height: 1.2;
}

.dynamic-page-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #1e293b;
  line-height: 1.3;
}

.dynamic-page-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  line-height: 1.4;
}

.dynamic-page-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #1e293b;
}

.dynamic-page-content ul,
.dynamic-page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.dynamic-page-content li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.dynamic-page-content a {
  color: #0ea5e9;
  text-decoration: underline;
}

.dynamic-page-content a:hover {
  color: #4f46e5;
}

/* Dark mode styles */
.dark .dynamic-page-content h1 {
  color: #f1f5f9;
}

.dark .dynamic-page-content h2,
.dark .dynamic-page-content h3 {
  color: #e2e8f0;
}

.dark .dynamic-page-content p,
.dark .dynamic-page-content li {
  color: #cbd5e1;
}

.dark .dynamic-page-content a {
  color: #818cf8;
}

.dark .dynamic-page-content a:hover {
  color: #a5b4fc;
}

/* ============================================================
   Section Transition Fades
   Her section'ın üst ve altına siyaha doğru gradient fade
   ============================================================ */

#problems,
#about,
#services,
#process,
#projects,
#pricing,
#contact {
  position: relative;
}

#problems::before,
#about::before,
#services::before,
#process::before,
#projects::before,
#pricing::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

#problems::after,
#about::after,
#services::after,
#process::after,
#projects::after,
#pricing::after,
#contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ============================================================
   Section Dividers - Glowing separator lines
   ============================================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(37, 99, 235, 0.15) 20%,
    rgba(37, 99, 235, 0.5) 50%,
    rgba(37, 99, 235, 0.15) 80%,
    transparent 100%
  );
  position: relative;
  overflow: visible;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  filter: blur(4px);
}

/* ============================================================
   Hero Background - Code Floats & Dot Grid
   ============================================================ */

.hero-dot-grid {
  background-image: radial-gradient(circle, rgba(37,99,235,0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

@keyframes heroFloat1 {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
  33%       { transform: translateY(-12px) translateX(4px); opacity: 1; }
  66%       { transform: translateY(6px) translateX(-4px); opacity: 0.7; }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.5; }
  40%       { transform: translateY(10px) translateX(-6px); opacity: 0.9; }
  70%       { transform: translateY(-8px) translateX(5px); opacity: 0.6; }
}
