/* --- ANA YAP --- */
.slider {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
border: 40px solid #f9f9f5;
border-bottom: 0;
background: #050505;
}/* --- ARKA PLAN & KEN BURNS EFEKTİ --- */
.slider-bg-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 120%;
z-index: 1;
will-change: transform;
}.slide-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
opacity: 0;
transform: scale(1.05);
transition: opacity 2s ease-in-out, transform 10s linear;
filter: brightness(0.6);
}.slide-bg.active {
opacity: 1;
transform: scale(1);
z-index: 2;
}/* --- YAZI GRUBU --- */
.slider-content-wrapper {
position: relative;
z-index: 10;
text-align: center;
color: #fff;
width: 100%;
will-change: transform, opacity;
}.slide-text {
margin-top: 150px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, 50%);
width: 100%;
opacity: 0;
transition: opacity 1s ease, transform 1s ease;
}.slide-text.active {
position: relative;
opacity: 1;
transform: translate(-50%, -50%);
}.main-title {
font-size:70px;
font-weight:300;
line-height: 1.1;
margin-bottom: 15px;/* KİBARLAŞTIRMA 3: Mesafe 20px (Kısa hareket) */
transform: translateY(20px);/* Cubic-bezier ile "lüks" yaylanma efekti */
transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.5s ease;
opacity: 0;
}.main-title b {
font-style: italic;
font-family: var(--font2);
font-weight: 400;
}.sub-title {
font-size: 0.9rem;
letter-spacing: 4px;
text-transform: uppercase;
font-weight: 300;/* KİBARLAŞTIRMA 3: Mesafe 15px */
transform: translateY(15px);transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s,
opacity 1.5s ease 0.2s;
opacity: 0;
}.slide-text.active .main-title,
.slide-text.active .sub-title {
transform: translateY(0);
opacity: 1;
}/* --- BUTONLAR --- */
.slider-nav {
position: absolute;
bottom: 60px;
right: 60px;
z-index: 20;
display: flex;
gap: 15px;
}.nav-btn {
width: 45px;
height: 45px;
border: 1px solid rgba(255, 255, 255, 0.863);
border-radius: 50%;
background: transparent;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.4s ease;
}.nav-btn:hover {
background: #fff;
color: #000;
border-color: #fff;
transform: scale(1.05); /* Hafif büyüme */
}/* --- SCROLL LINE --- */
.scroll-indicator {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
opacity: 0.6;
color: #fff;
}.scroll-text {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 8px;
}.scroll-line {
width: 1px;
height: 50px;
background: rgba(255, 255, 255, 0.15);
position: relative;
overflow: hidden;
}.scroll-line::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50%;
background: #fff;
animation: scrollDown 2.5s infinite cubic-bezier(0.77, 0, 0.175, 1);
}@keyframes scrollDown {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(200%);
}
}@media (max-width: 768px) {
.slider {
border-width: 20px;
}
.main-title {
font-size: 3rem;
}
.slider-nav {
bottom: 30px;
right: 30px;
}
}/* --- MOBIL UYUMLULUK AYARLARI --- */@media (max-width: 991px) {
.main-title {
font-size: 50px; /* Tabletler için biraz küçültüldü */
}
}@media (max-width: 768px) {
.slider {
border-width: 15px; /* Kalın çerçeveyi mobilde incelttik */
height: 40svh; /* Mobil tarayıcı çubukları dahil tam ekran (destekleyen tarayıcılarda) */
}.slide-text {
margin-top: 0; /* Masaüstündeki 150px boşluğu mobilde sıfırladık */
padding: 0 20px; /* Yazıların kenarlara yapışmaması için */
width: 100%;
box-sizing: border-box;
}.main-title {
font-size: 32px; /* Başlık boyutu mobilde okunabilir seviyeye çekildi */
line-height: 1.2;
margin-bottom: 10px;
}.sub-title {
font-size: 0.7rem;
letter-spacing: 2px; /* Harf arası mesafeyi daralttık ki sığsın */
}.slider-nav {
bottom: 30px;
right: 50%; /* Butonları alt merkeze aldık */
transform: translateX(50%);
gap: 10px;
}.nav-btn {
width: 40px;
height: 40px;
}.scroll-indicator {
display: none; /* Mobilde dikey ekran az olduğu için scroll ikonunu gizlemek daha temiz durur */
}
}/* Çok küçük ekranlar için (iPhone SE vb.) */
@media (max-width: 480px) {
.main-title {
font-size: 28px;
}
.slider {
border-width: 10px;
}
}@media(max-width:1024px){
.slider{
margin: 0;
margin-top: 60px;
border: none;
}
}