:root {
    --rs-w: 100%;
    --rs-h: 800px;
    --rs-duration: 1000ms;
    --rs-ease: cubic-bezier(0.77, 0, 0.175, 1);
    --rs-bullet-size: 12px;
    --rs-bullet-gap: 12px;
    --rs-nav-size: 50px;
    --rs-layer-duration: 1200ms;
    --rs-primary-color: #3554D1;
    --rs-secondary-color: #3554d10d;
  }

  /* SLIDER CONTAINER */
  .rs-slider { 
    position: relative; 
    width: var(--rs-w); 
    height: var(--rs-h); 
    overflow: hidden; 
    isolation: isolate;
    background: #1a1a1a;
    margin: 0 auto;
    color:#fff;
  }
  .rs-slider, .rs-slider * { user-select: none; -webkit-tap-highlight-color: transparent; }
  
  /* Slider'ın her zaman tam ekran kaplamasını sağla */
  .rs-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    z-index: 0;
  }

  /* SLIDES TRACK */
  .rs-track { 
    position: absolute; 
    inset: 0;
    perspective: 1000px;
    z-index: 1;
  }
  
  /* SLIDE */
  .rs-slide { 
    position: absolute; 
    inset: 0; 
    opacity: 0; 
    visibility: hidden;
    transform: scale(1.05) translateZ(0);
    transition: all var(--rs-duration) var(--rs-ease);
    will-change: transform, opacity;
    z-index: 0;
    pointer-events: none;
  }
  .rs-slide.is-active { 
    opacity: 1; 
    visibility: visible;
    transform: scale(1) translateZ(0); 
    z-index: 5;
    pointer-events: auto;
  }
  .rs-slide.is-prev {
    transform: scale(0.95) translateX(-100px) translateZ(0);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
  }
  .rs-slide.is-next {
    transform: scale(0.95) translateX(100px) translateZ(0);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
  }
  
  /* Aktif olmayan slide'ların layer'larını kesinlikle gizle */
  .rs-slide:not(.is-active) .rs-layer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* BACKGROUND - Image/Video */
  .rs-bg { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    filter: brightness(0.85) saturate(1.1);
    transform-origin: center;
    will-change: transform;
    overflow: hidden;
    transition: opacity 0.5s ease;
  }
  
  /* Eğer background-image olarak yüklendiyse */
  .rs-bg[style*="background-image"] {
    background-size: cover;
    background-position: center center;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
  }
  
  /* Yükleme sırasında placeholder */
  .rs-bg[data-src] {
    background-color: #1a1a1a;
    background-image: none !important;
  }
  
  .rs-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    object-fit: cover;
    display: block;
  }
  
  .rs-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    object-fit: cover;
    display: block;
  }

   /* FADE IN/OUT EFFECTS - 2 saniye */
   .rs-slide.is-active .rs-bg {
     animation: fadeInBackground 2s ease-in-out both;
   }
   
   @keyframes fadeInBackground { 
     0% { 
       opacity: 0;
       filter: brightness(0.85) saturate(1.1) blur(10px);
     } 
     100% { 
       opacity: 1;
       filter: brightness(0.85) saturate(1.1) blur(0);
     } 
   }

  /* OVERLAY */
  .rs-overlay { 
    position: absolute; 
    inset: 0; 
    background: radial-gradient(ellipse at 30% 40%, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    pointer-events: none;
    z-index: 1;
  }

  /* LAYERS CONTAINER */
  .rs-layers { 
    position: absolute; 
    inset: 0; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 150px;
    padding-left: clamp(20px, 5vw, 80px);
    padding-right: clamp(20px, 5vw, 80px);
    padding-bottom: clamp(20px, 5vw, 80px);
    gap: 8px;
    z-index: 2;
    text-align: center;
  }

  /* LAYER BASE */
  .rs-layer { 
    width: 100%;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  }
  
  .rs-layer.animated {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* TYPOGRAPHY */
  .rs-title { 
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 0;
    display: block;
    width: 100%;
    text-align: center;
    font-size:25px;
    color:#fff;
  }

  .rs-big-title {
    font-size: 40px; 
    line-height: 1.2; 
    color:#fff;
    font-weight: 900;
    margin: 0;
  }
  
  .rs-subtitle { 
    font-size: clamp(18px, 3vw, 16px); 
    opacity: 0.95;
    font-weight: normal;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin: 0;
    display: block;
    width: 100%;
    text-align: center;
    color:#fff;
  }
  
  .rs-text { 
    font-size: clamp(14px, 2vw, 18px); 
    opacity: 0.9;
    line-height: 1.7;
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin: 0 auto;
    display: block;
    width: 100%;
    text-align: center;
  }


  /* BUTTONS */
  .rs-btns { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 16px; 
    margin-top: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .rs-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px 20px; 
    border-radius: 50px; 
    border: 2px solid rgba(255,255,255,0.2); 
    backdrop-filter: blur(10px) saturate(180%);
    text-decoration: none; 
    color: #fff; 
    font-weight: normal;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }
  
  .rs-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .rs-btn:hover::before {
    width: 300px;
    height: 300px;
  }
  
  .rs-btn span {
    position: relative;
    z-index: 1;
  }
  
  .rs-btn.primary { 
    background:  var(--rs-primary-color); 
    border-color: transparent;
    box-shadow: 0 8px 25px var(--rs-secondary-color);
  }
  
  .rs-btn.primary:hover {
    box-shadow: 0 12px 35px var(--rs-primary-color);
    transform: translateY(-2px);
    color:#fff;
  }
  
  .rs-btn.secondary {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
  }
  
  .rs-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
  }

  /* NAVIGATION BULLETS */
  .rs-bullets { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    bottom: 30px; 
    display: flex; 
    gap: var(--rs-bullet-gap); 
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
  }
  
  .rs-bullets button { 
    width: var(--rs-bullet-size); 
    height: var(--rs-bullet-size); 
    border-radius: 50%; 
    border: 0; 
    background: rgba(255,255,255,0.4); 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
  }
  
  .rs-bullets button::after {
    display:none;
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--rs-primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
  }
  
  .rs-bullets button:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.6);
  }
  
  .rs-bullets button.active {
    background: var(--rs-primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(255,107,53,0.6);
  }
  
  .rs-bullets button.active::after {
    opacity: 1;
    transform: scale(1.3);
  }

  /* NAVIGATION ARROWS */
  .rs-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: var(--rs-nav-size); 
    height: var(--rs-nav-size); 
    border-radius: 50%; 
    display: grid; 
    place-items: center; 
    border: 2px solid rgba(255,255,255,0.3); 
    background: rgba(0,0,0,0.4); 
    color: #fff; 
    cursor: pointer; 
    z-index: 10; 
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .rs-arrow:hover { 
    background: rgba(255,255,255,0.2);
    border-color: var(--rs-primary-color);
    transform: translateY(-50%) scale(1.1);
  }
  
  .rs-arrow svg { 
    width: 24px; 
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }
  
  .rs-prev { left: 30px; }
  .rs-next { right: 30px; }

  /* PROGRESS BAR */
  .rs-progress { 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    height: 4px; 
    background: rgba(255,255,255,0.15); 
    overflow: hidden;
    z-index: 10;
  }
  
  .rs-progress span { 
    display: block; 
    height: 100%; 
    width: 0%; 
    background: rgba(206, 214, 224,.3);
    box-shadow: 0 0 10px var(--rs-primary-color);
    transition: width linear;
  }

  /* PARALLAX */
  .rs-layer[data-depth] { 
    will-change: transform; 
  }

  /* LOADING SPINNER */
  .rs-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--rs-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
  }
  
  @keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    :root { --rs-h: 600px; --rs-nav-size: 45px; }
    .rs-title { font-size: 20px; }
    .rs-subtitle { font-size: clamp(16px, 2.5vw, 24px); }
    .rs-big-title {font-size:30px}
  }
  
  @media (max-width: 768px) {
    :root { --rs-h: 500px; --rs-nav-size: 40px; }
    .rs-btns { gap: 10px; margin-top: 10px; }
    .rs-btn { padding: 6px 16px; font-size: 14px; }
    .rs-prev { left: 15px; }
    .rs-next { right: 15px; }
    .rs-bullets { bottom: 20px; padding: 8px 15px; }
    
    /* Mobilde ikinci halkayı gizle */
    .rs-bullets button::after {
      display: none;
    }
    
    /* Mobilde padding-top'u azalt */
    .rs-layers {
      padding-top: inherit;
      justify-content: center;
      gap: 6px;
    }
  }
  
  @media (max-width: 480px) {
    :root { --rs-h: 450px; }
    .rs-arrow { display: none; }
    .rs-layers { 
      padding: 40px 20px 20px 20px;
      gap: 6px;
    }
    .rs-bullets { gap: 8px; }
    .rs-btns { margin-top: 10px; }
    
    /* Mobilde bullet'ları küçült */
    .rs-bullets button {
      transform: scale(1) !important;
    }
    .rs-bullets button.active {
      transform: scale(1.2) !important;
    }
    
    /* Mobilde görsellerin tam kaplamasını garantile */
    .rs-bg {
      background-size: cover !important;
      width: 100% !important;
      height: 100% !important;
    }
    
    .rs-bg img,
    .rs-bg video {
      min-width: 100% !important;
      min-height: 100% !important;
      width: 100vw !important;
      height: 100% !important;
    }
  }

  /* UTILITY CLASSES */
  .text-gradient {
    background: linear-gradient(135deg, #fff, var(--rs-primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .glow {
    text-shadow: 0 0 20px var(--rs-primary-color), 0 0 40px var(--rs-primary-color);
  }

  .masthead {
    position: absolute;
    bottom: 25%;
    width: 100%;
  }

  @media (max-width: 1024px) {
    .masthead {
        position: static;
        margin-top:0px;
    }
    .masthead .mainSearch {
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }
  }