/* Flask Akü Takviye Fethiye - Custom Styles */

/* CSS Variables for Dark Theme */
:root {
  --background: hsl(220, 13%, 18%);
  --foreground: hsl(210, 20%, 92%);
  --card: hsl(220, 13%, 21%);
  --card-foreground: hsl(210, 20%, 92%);
  --popover: hsl(220, 13%, 21%);
  --popover-foreground: hsl(210, 20%, 92%);
  --primary: hsl(348, 83%, 56%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(34, 85%, 52%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(220, 13%, 24%);
  --muted-foreground: hsl(215, 13%, 65%);
  --accent: hsl(204, 94%, 57%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(210, 40%, 98%);
  --border: hsl(220, 13%, 28%);
  --input: hsl(220, 13%, 25%);
  --ring: hsl(348, 83%, 56%);
  
  /* Brand Colors */
  --brand-primary: #e91e63;
  --brand-secondary: #ff9800;
  --brand-accent: #2196f3;
  
  /* Fonts */
  --font-sans: 'Poppins', sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, monospace;
  
  /* Spacing and sizing */
  --radius: 0.75rem;
  --shadow-2xs: 0px 2px 0px 0px hsl(348, 83%, 56% / 0.00);
  --spacing: 0.25rem;
}

/* Dark theme (default) */
.dark {
  --background: hsl(220, 13%, 18%);
  --foreground: hsl(210, 20%, 92%);
  --card: hsl(220, 13%, 21%);
  --card-foreground: hsl(210, 20%, 92%);
  --muted: hsl(220, 13%, 24%);
  --muted-foreground: hsl(215, 13%, 65%);
  --border: hsl(220, 13%, 28%);
  --input: hsl(220, 13%, 25%);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom animations */
@keyframes batteryPulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1;
  }
  50% { 
    transform: scale(1.1); 
    opacity: 0.8;
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }
  0% {
    opacity: 0;
    transform: scale3d(.3, .3, .3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(.9, .9, .9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(.97, .97, .97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Animation classes */
.battery-icon {
  animation: batteryPulse 2s infinite;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.bounce-in {
  animation: bounceIn 1s ease-out;
}

/* Hero section specific styles */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}


.hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

/* Dikey ekranlar için (mobil portrait) */
@media (orientation: portrait) {
    .hero-video-iframe {
        width: 177.78vh; /* 16:9 oranında height'a göre width */
        height: 100vh;
        transform: translate(-50%, -50%);
    }
}

/* Yatay ekranlar için (desktop/mobile landscape) */
@media (orientation: landscape) {
    .hero-video-iframe {
        width: 100vw;
        height: 56.25vw; /* 16:9 oranında width'e göre height */
        min-height: 100vh;
        transform: translate(-50%, -50%);
    }
}

/* Ekstra dar ekranlar için */
@media (max-width: 480px) and (orientation: portrait) {
    .hero-video-iframe {
        width: 200vh; /* Daha fazla crop için */
        height: 100vh;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), #d81b60);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d81b60, var(--brand-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--brand-secondary), #f57c00);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f57c00, var(--brand-secondary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Gallery image lazy loading */
.gallery-image {
  transition: all 0.3s ease;
  opacity: 0;
}

.gallery-image.loaded {
  opacity: 1;
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Form styles */
.form-input {
  background: var(--input);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}
/* YouTube Video Full Coverage - Mobil için */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 ratio */
    transform: translate(-50%, -50%) scale(1.2);
    z-index: -1;
}

/* Mobil cihazlar için özel düzenleme */
@media (max-width: 768px) {
    .video-container iframe {
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@media (max-width: 480px) {
    .video-container iframe {
        transform: translate(-50%, -50%) scale(1.8);
    }
}

/* Responsive text sizes */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: hsl(348, 100%, 60%);
    --secondary: hsl(34, 100%, 55%);
    --background: hsl(0, 0%, 0%);
    --foreground: hsl(0, 0%, 100%);
  }
}

/* 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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Mobile-specific optimizations */
@media (max-width: 640px) {
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-full {
    width: 100%;
  }
  
  .mobile-text-center {
    text-align: center;
  }
  
  .mobile-padding {
    padding: 1rem;
  }
}

/* Emergency button pulse effect */
.emergency-pulse {
  animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
  }
}

/* Utility classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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