/* MCBÜ Proje Ofisi - Custom CSS */

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active Navigation */
nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Card Hover Effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #284591 0%, #0091d2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  opacity: 0.9;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #284591 0%, #0091d2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Announcement Card */
.announcement-card {
  background: linear-gradient(180deg, #284591 0%, #0091d2 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: box-shadow 0.3s ease;
}
.announcement-card:hover {
  box-shadow: 0 10px 30px rgba(40, 69, 145, 0.3);
}

/* News Card */
.news-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(40, 69, 145, 0.5);
}

/* Partner/Project Card */
.partner-card,
.project-card {
  background: white;
  border-radius: 24px;
  box-shadow: 8px 8px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.partner-card:hover,
.project-card:hover {
  transform: scale(1.05);
}
/* BANNER SLIDER */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.hero-slider .slide.active {
  opacity: 1;
}
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  /*object-fit: contain;*/
  background-color: #ffffff;
}
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}
.slider-nav .dot {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background: rgba(120, 130, 145, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.slider-nav .dot:hover {
  background: rgba(150, 160, 175, 0.9);
}
.slider-nav .dot.active {
  background: #ffffff;
  width: 70px;
  height: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* Slider ok butonları - hover ile görünür */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(28, 69, 139, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 24px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
}
.hero-slider:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
}
.slider-btn:hover {
  background: rgba(28, 69, 139, 1);
  transform: translateY(-50%) scale(1.1);
}
.slider-btn.prev {
  left: 15px;
}
.slider-btn.next {
  right: 15px;
}

/* FAQ Card */
.faq-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 40, 85, 0.1);
}

/* FAQ Content Animation */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out,
    opacity 0.3s ease-out;
  opacity: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-content.open {
  max-height: 200px;
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* FAQ Icon Rotation */
.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate {
  transform: rotate(45deg);
}

/* Mission/Vision Card */
.mission-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 40, 85, 0.1),
    0 25px 60px -15px rgba(0, 40, 85, 0.25);
  overflow: hidden;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Page Transition */
main {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Styles */
#mobile-menu {
  backdrop-filter: blur(10px);
}

.mobile-nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.mobile-dropdown-content {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .partner-card,
  .project-card {
    border-radius: 16px;
  }
  
  /* Hero slider responsive */
  .hero-slider {
    transform: perspective(1000px) rotateX(0deg);
  }
  
  /* Carousel scrollbar hide on mobile */
  #partnersCarousel,
  #projectsCarousel {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  
  #partnersCarousel > *,
  #projectsCarousel > * {
    scroll-snap-align: start;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-slider {
    transform: perspective(1000px) rotateX(0.5deg);
  }
}
