/* ============================================
   REVA TESİSAT - SEO OPTİMİZE CSS v3.0
   ============================================ */

:root {
  --glass-border: rgba(220, 38, 38, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --soft-shadow: 0 10px 40px -10px rgba(220, 38, 38, 0.15);
  --brand-glow: 0 0 20px rgba(220, 38, 38, 0.4);
  
  --abc-primary: #dc2626;
  --abc-secondary: #b91c1c;
  --abc-dark: #7f1d1d;
  --abc-light: #fef2f2;
  
  --text-main: #1f2937;
  --text-light: #4b5563;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--abc-primary);
  color: white;
}

::-moz-selection {
  background: var(--abc-primary);
  color: white;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

.custom-scrollbar::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: #fef2f2;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--abc-primary), var(--abc-secondary));
  border-radius: 10px;
  border: 2px solid #fef2f2;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--abc-secondary), var(--abc-dark));
}

/* ============================================
   GLASS NAVIGATION
   ============================================ */

.glass-nav {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 2px solid var(--abc-primary);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
  transition: all var(--transition-normal);
}

.glass-nav:hover {
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.15);
}

/* ============================================
   GLASS CARD
   ============================================ */

.glass-card {
  background: white;
  border: 1px solid rgba(249, 115, 22, 0.1);
  box-shadow: var(--soft-shadow);
  border-radius: 16px;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  box-shadow: 0 20px 50px -10px rgba(220, 38, 38, 0.2);
  transform: translateY(-4px);
}

/* ============================================
   SERVICE CARD PRO
   ============================================ */

.service-card-pro {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: white;
  border: 2px solid #fecaca;
  border-radius: 16px;
  cursor: pointer;
}

.service-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--abc-primary), var(--abc-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card-pro:hover::before {
  transform: scaleX(1);
}

.service-card-pro:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.3);
  border-color: var(--abc-primary);
}

.service-card-pro img {
  transition: transform 0.4s ease;
}

.service-card-pro:hover img {
  transform: scale(1.05);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-15px); 
  }
}

.animate-float { 
  animation: float 5s ease-in-out infinite; 
}

@keyframes pulse-red {
  0% { 
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); 
  }
  70% { 
    box-shadow: 0 0 0 20px rgba(220, 38, 38, 0); 
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); 
  }
}

.btn-pulse { 
  animation: pulse-red 2s infinite; 
}

@keyframes slideInUp {
  from { 
    opacity: 0; 
    transform: translateY(40px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.animate-slide-in-up { 
  animation: slideInUp 0.8s ease-out; 
}

@keyframes tada {
  0% { transform: scale(1) rotate(0deg); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.animate-tada {
  animation: tada 1s ease infinite;
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-10%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 3s infinite;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.whatsapp-float {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  transition: all var(--transition-normal);
  animation: whatsapp-glow 2s infinite;
  width: 60px;
  height: 60px;
}

@keyframes whatsapp-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6),
                0 0 40px rgba(37, 211, 102, 0.4),
                0 0 60px rgba(37, 211, 102, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.8),
                0 0 60px rgba(37, 211, 102, 0.6),
                0 0 90px rgba(37, 211, 102, 0.4);
    transform: scale(1.05);
  }
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* ============================================
   WHATSAPP PULSE (BUTTONS)
   ============================================ */

.whatsapp-pulse {
  position: relative;
  overflow: visible;
}

.whatsapp-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: linear-gradient(45deg, #25D366, #128C7E);
  opacity: 0;
  animation: whatsapp-button-pulse 2s infinite;
  z-index: -1;
}

@keyframes whatsapp-button-pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}

/* ============================================
   FLOATING PHONE BUTTON
   ============================================ */

.phone-float {
  background: linear-gradient(135deg, var(--abc-primary) 0%, var(--abc-secondary) 100%);
  color: white;
  position: fixed;
  bottom: 25px;
  left: 25px; 
  z-index: 100;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
  animation: pulse-red 2s infinite;
  transition: all var(--transition-normal);
}

.phone-float:hover, 
.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
}

.phone-float:active {
  transform: scale(0.95);
}

/* ============================================
   MOBILE RESPONSIVE FLOATING BUTTONS
   ============================================ */

@media (max-width: 768px) {
  .phone-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .phone-float i {
    font-size: 1.25rem;
  }
  
  .whatsapp-float i {
    font-size: 1.5rem;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.875rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
}

.prose p {
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1rem;
}

.prose a {
  transition: all var(--transition-fast);
}

.prose a:hover {
  opacity: 0.8;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

input, textarea, select {
  border: 2px solid #fecaca !important;
  background-color: #fef2f2 !important;
  color: #7f1d1d;
  transition: all var(--transition-normal);
}

input:focus, textarea:focus, select:focus {
  background-color: #ffffff !important;
  border-color: var(--abc-primary) !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
  outline: none;
  transform: translateY(-2px);
}

input:hover, textarea:hover, select:hover {
  border-color: var(--abc-secondary) !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background: linear-gradient(135deg, var(--abc-primary) 0%, var(--abc-secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  transition: all var(--transition-normal);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============================================
   REVIEW CARD
   ============================================ */

.review-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #f3f4f6;
  border-top: 4px solid var(--abc-primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.review-card:hover {
  box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.15);
  transform: translateY(-4px);
  border-color: var(--abc-primary);
}

.review-stars { 
  color: #ef4444;
}

/* ============================================
   HERO BACKGROUND
   ============================================ */

.hero-bg {
  background-color: white;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(185, 28, 28, 0.05) 0%, transparent 50%),
    radial-gradient(var(--abc-light) 2px, transparent 2px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  background-position: 0 0, 0 0, 0 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #9ca3af;
  padding: 0 8px;
}

/* ============================================
   DETAILS (FAQ)
   ============================================ */

details summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

#loading-overlay {
  z-index: 9999;
}

/* ============================================
   IMAGE OPTIMIZATION
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ============================================
   LINK HOVER EFFECTS
   ============================================ */

a {
  transition: all var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

/* ============================================
   SKELETON LOADING (Optional)
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .whatsapp-float,
  .phone-float,
  nav,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ============================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
  .hero-bg {
    padding-bottom: 100px;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .glass-nav {
    padding: 0.5rem 0;
  }
  
  .service-card-pro {
    padding: 1rem;
  }
  
  .review-card {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.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-visible {
  outline: 3px solid var(--abc-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--abc-primary);
  outline-offset: 3px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

* {
  will-change: auto;
}

.animate-float,
.btn-pulse,
.whatsapp-float {
  will-change: transform;
}

/* ============================================
   DARK MODE SUPPORT (Optional - Future)
   ============================================ */

@media (prefers-color-scheme: dark) {
  /* 
  body {
    background-color: #1f2937;
    color: #f9fafb;
  }
  */
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-float,
  .btn-pulse,
  .whatsapp-float,
  .phone-float {
    animation: none;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --abc-primary: #b91c1c;
    --abc-secondary: #991b1b;
  }
  
  a {
    text-decoration: underline;
  }
  
  button {
    border: 2px solid currentColor;
  }
}

/* ============================================
   CUSTOM UTILITIES
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--abc-primary), var(--abc-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.border-gradient {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, var(--abc-primary), var(--abc-secondary));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ============================================
   CONTAINER QUERIES (Modern Browsers)
   ============================================ */

@container (min-width: 768px) {
  .service-card-pro {
    padding: 1.5rem;
  }
}

/* ============================================
   SMOOTH SCROLL ANCHORS
   ============================================ */

html {
  scroll-padding-top: 100px;
}

/* ============================================
   SELECTION COLORS (BRAND)
   ============================================ */

::selection {
  background-color: var(--abc-primary);
  color: white;
}

::-moz-selection {
  background-color: var(--abc-primary);
  color: white;
}

/* ============================================
   PREVENT TEXT SIZE ADJUST ON IOS
   ============================================ */

html {
  -webkit-text-size-adjust: 100%;
}

/* ============================================
   SAFE AREA INSETS (NOTCH SUPPORT)
   ============================================ */

@supports (padding: max(0px)) {
  .safe-area-padding {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ============================================
   END OF STYLESHEET
   ============================================ */