/* Özplaş Modern Tasarım - Animasyon ve Hover Efektleri */

/* Genel Animasyon Stilleri */
.animated {
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }
  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }
  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes bounce {
  from, 20%, 53%, 80%, to {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -15px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -7px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Header ve Navigasyon Animasyonları */
.main-header {
  animation: fadeInDown 0.5s;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo img {
  transition: all 0.3s ease;
}

.main-header.scrolled .logo img {
  transform: scale(0.9);
}

.main-nav ul li a {
  position: relative;
  transition: all 0.3s ease;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  cursor: pointer;
  display: none;
  font-size: 24px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle.active i::before {
  content: "\f00d";
}

/* Hero Slider Animasyonları */
.hero-slider .swiper-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .swiper-slide-active {
  opacity: 1;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.swiper-slide-active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.3s;
}

.swiper-slide-active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.5s;
}

.swiper-slide-active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.7s;
}

.swiper-slide-active .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

.swiper-button-next,
.swiper-button-prev {
  background-color: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--primary-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  color: white;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  width: 30px;
  border-radius: 10px;
}

/* Özellikler Bölümü Animasyonları */
.features-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: var(--light);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
  color: var(--accent-color);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--primary-color);
}

.feature-card p {
  color: var(--gray-medium);
  font-size: var(--font-size-md);
}

/* Hakkımızda Bölümü Animasyonları */
.about-section {
  padding: var(--spacing-xxxl) 0;
  background-color: var(--gray-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-content {
  padding-right: var(--spacing-xl);
}

.about-text {
  margin-bottom: var(--spacing-lg);
  color: var(--gray-dark);
  font-size: var(--font-size-lg);
  line-height: 1.8;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 5px solid var(--primary-color);
  border-left: 5px solid var(--primary-color);
  z-index: 1;
  transition: all 0.3s ease;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-bottom: 5px solid var(--primary-color);
  border-right: 5px solid var(--primary-color);
  z-index: 1;
  transition: all 0.3s ease;
}

.about-image:hover::before,
.about-image:hover::after {
  width: 120px;
  height: 120px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

/* Ürünler Bölümü Animasyonları */
.product-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  background-color: var(--light);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-zoom,
.product-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--light);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 18px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.product-zoom {
  transition-delay: 0.1s;
}

.product-link {
  transition-delay: 0.2s;
}

.product-card:hover .product-zoom,
.product-card:hover .product-link {
  transform: translateY(0);
  opacity: 1;
}

.product-zoom:hover,
.product-link:hover {
  background-color: var(--primary-color);
  color: var(--light);
  transform: scale(1.1);
}

.product-content {
  padding: var(--spacing-lg);
}

.product-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s ease;
}

.product-card:hover .product-content h3 {
  color: var(--primary-color);
}

.product-content p {
  color: var(--gray-medium);
  margin-bottom: var(--spacing-lg);
}

.text-center {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* Çözümler Bölümü Animasyonları */
.solution-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  height: 350px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.solution-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.solution-card:hover img {
  transform: scale(1.1);
}

.solution-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-xl);
  color: var(--light);
  transition: all 0.3s ease;
}

.solution-card:hover .solution-overlay {
  background: linear-gradient(to bottom, rgba(0, 86, 179, 0.6) 0%, rgba(0, 86, 179, 0.9) 100%);
}

.solution-title {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xl);
  margin: 0;
  line-height: 1.2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.solution-card:hover .solution-title {
  transform: translateY(0);
  opacity: 1;
}

.solution-subtitle {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.2s;
}

.solution-card:hover .solution-subtitle {
  transform: translateY(0);
  opacity: 1;
}

.solution-description {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-md);
  line-height: 1.5;
  margin-top: var(--spacing-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.3s;
}

.solution-card:hover .solution-description {
  opacity: 0.9;
  transform: translateY(0);
}

.solution-link {
  display: flex;
  align-items: center;
  margin-top: var(--spacing-md);
  font-weight: var(--font-weight-medium);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.4s;
}

.solution-card:hover .solution-link {
  opacity: 1;
  transform: translateY(0);
}

.solution-link span {
  margin-right: var(--spacing-sm);
}

.solution-link i {
  transition: all 0.3s ease;
}

.solution-card:hover .solution-link i {
  transform: translateX(5px);
}

/* Kalite Politikası Bölümü Animasyonları */
.quality-section {
  padding: var(--spacing-xxxl) 0;
  background-color: var(--light);
  background-image: url('../images/quality_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.quality-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.quality-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--light);
}

.quality-section .section-title,
.quality-section .section-subtitle {
  color: var(--light);
}

.quality-section .section-title::after {
  background-color: var(--light);
}

.quality-text {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

/* İstatistikler Bölümü Animasyonları */
.stats-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--primary-color);
  color: var(--light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.2);
  color: var(--light);
}

.stat-number {
  font-size: var(--font-size-jumbo);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-family-heading);
}

.stat-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
}

/* İletişim Bölümü Animasyonları */
.contact-section {
  padding: var(--spacing-xxxl) 0;
  background-color: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.contact-text {
  font-size: var(--font-size-lg);
  color: var(--gray-dark);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.contact-details {
  margin-top: var(--spacing-xl);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: var(--spacing-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  background-color: var(--primary-color);
  color: var(--light);
  transform: scale(1.1);
}

.contact-item p {
  margin: 0;
  color: var(--gray-dark);
}

.contact-form {
  background-color: var(--light);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer Animasyonları */
.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--light);
  transform: translateY(-5px);
}

.footer-column ul li a {
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Yukarı Çık Butonu */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* Buton Animasyonları */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary::after,
.btn-secondary::after,
.btn-accent::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: -2;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-accent:hover::after {
  height: 100%;
}

/* Responsive Animasyonlar */
@media (max-width: 992px) {
  .stats-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xxl);
  }
  
  .about-content {
    padding-right: 0;
    order: 2;
  }
  
  .about-image {
    order: 1;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light);
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .main-nav ul.active {
    max-height: 500px;
    padding: var(--spacing-md) 0;
  }
  
  .main-nav ul li {
    margin: 0;
    text-align: center;
    padding: var(--spacing-sm) 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-display);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
