/* Codea Dijital Çözümler - Ana CSS Dosyası */

:root {
  --primary-color: #ef4e31;
  --secondary-color: #939398;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --background: #ffffff;
  --foreground: #171717;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Float Animation */
@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: floatUpDown 3s ease-in-out infinite;
}

/* Hero Hidden - Header height margin */
body.hero-hidden {
  padding-top: 5.5rem;
}

/* Logo Scroll Animations */
@keyframes scroll-left {
  0% {
    transform: translate3d(-25%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scroll-right {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-25%, 0, 0);
  }
}

.animate-scroll-left {
  animation: scroll-left 15s linear infinite;
  will-change: transform;
}

.animate-scroll-right {
  animation: scroll-right 15s linear infinite;
  will-change: transform;
}

/* Mobilde daha hızlı animasyon */
@media (max-width: 768px) {
  .animate-scroll-left {
    animation: scroll-left 8s linear infinite;
  }

  .animate-scroll-right {
    animation: scroll-right 8s linear infinite;
  }
}

/* QLMS Floating Animations */
@keyframes float1 {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(15px, -20px);
  }
  50% {
    transform: translate(-10px, -10px);
  }
  75% {
    transform: translate(20px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-20px, 15px);
  }
  50% {
    transform: translate(10px, 20px);
  }
  75% {
    transform: translate(-15px, -10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes float3 {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(12px, 18px);
  }
  50% {
    transform: translate(-18px, 12px);
  }
  75% {
    transform: translate(15px, -15px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.animate-float-1 {
  animation: float1 8s ease-in-out infinite;
}

.animate-float-2 {
  animation: float2 10s ease-in-out infinite;
}

.animate-float-3 {
  animation: float3 9s ease-in-out infinite;
}

/* Hero Section Video Animation */
@keyframes bounce-subtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.animate-bounce {
  animation: bounce-subtle 1.5s ease-in-out infinite;
}

/* iPad Shadow Effect */
.ipad-shadow {
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}

/* Smooth video container transition */
.video-container {
  will-change: transform, border-radius;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Image Modal Overlay */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  position: relative;
  max-width: 56rem;
  width: 100%;
  margin: 1rem;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-modal.active .image-modal-content {
  transform: scale(1);
}

.image-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 10;
  transition: background 0.3s ease;
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.image-modal img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Navigation active state */
.nav-link.active {
  color: var(--primary-color);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Contact section animation */
.contact-section-hidden {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.contact-section-visible {
  max-height: 800px !important;
  opacity: 1 !important;
  padding-top: 7rem !important;
  padding-bottom: 4rem !important;
}

/* Catalog Button */
.catalog-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.catalog-button:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(1.1);
}

.catalog-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Catalog Modal */
.catalog-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.catalog-modal.active {
  display: flex;
  opacity: 1;
}

.catalog-modal-content {
  position: relative;
  max-width: 42rem;
  width: 100%;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.catalog-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
  z-index: 10;
}

.catalog-modal-close:hover {
  background: #e5e7eb;
}

.catalog-modal-header {
  padding: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.catalog-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.catalog-modal-header p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.catalog-modal-header .quick-actions {
  display: inline;
}

.catalog-modal-header button.action-btn {
  color: var(--primary-color);
  background: none;
  border: none;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.875rem;
}

.catalog-modal-header button.action-btn:hover {
  opacity: 0.8;
}

.catalog-modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

#catalog-section-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.catalog-section-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.catalog-section-item:hover {
  background: #f9fafb;
}

@media (max-width: 600px) {
  #catalog-section-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  #catalog-section-list {
    grid-template-columns: 1fr;
  }
}

.catalog-section-toggle {
  position: relative;
  display: inline-flex;
  height: 1.5rem;
  width: 2.75rem;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background: #d1d5db;
}

.catalog-section-toggle.active {
  background: var(--primary-color);
}

.catalog-section-toggle-thumb {
  pointer-events: none;
  display: inline-block;
  height: 1.25rem;
  width: 1.25rem;
  transform: translateX(0);
  border-radius: 9999px;
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.catalog-section-toggle.active .catalog-section-toggle-thumb {
  transform: translateX(1.25rem);
}

.catalog-section-info {
  flex: 1;
}

.catalog-section-info h3 {
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
}

.catalog-section-info p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.catalog-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.catalog-copy-link-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.catalog-copy-link-btn:hover {
  opacity: 0.9;
}

/* Catalog Banner */
.catalog-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(40px);
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.1);
}

.catalog-banner.active {
  display: block;
}

.catalog-banner-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.catalog-banner-text {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .catalog-banner-text {
    font-size: 1rem;
  }
}

.catalog-banner-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.catalog-banner-link:hover {
  opacity: 0.8;
}

/* Hidden sections */
.section-hidden {
  display: none !important;
}
