/* =========================================
   GENEL AYARLAR
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* YEDEK GÜVENLİK: JS çalışmazsa burası devreye girer */
section,
header {
    scroll-margin-top: 100px;
}

/* TEKNOLOJİ FONTU */
.tech-font {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

:root {
    --primary-color: #0056b3;
    --secondary-color: #050a14;
    --accent-color: #00d4ff;
    --accent-blue-deep: #003366;
    --highlight-gold: #ffc107;
    --text-light: #ffffff;
}

/* Yardımcı Sınıflar */
.text-primary {
    color: var(--primary-color) !important;
}

.text-cyan {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #004c99;
}

/* =========================================
   NAVBAR & TOP BAR
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}

.navbar {
    background-color: var(--secondary-color);
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* SCROLLSPY AKTİF MENÜ STİLİ */
.navbar-nav .nav-link {
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link.active {
    color: var(--highlight-gold) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--highlight-gold);
    padding-bottom: 5px;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* =========================================
   HERO BÖLÜMÜ (TEKNOLOJİ TASARIMI)
   ========================================= */
.hero-section {
    background-color: #020024;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* 1. 3D CYBER FLOOR */
.cyber-grid-floor {
    position: absolute;
    bottom: -30%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 204, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.4) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(60deg);
    animation: gridMove 10s linear infinite;
    opacity: 0.4;
    z-index: 0;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

@keyframes gridMove {
    from {
        transform: rotateX(60deg) translateY(0);
    }

    to {
        transform: rotateX(60deg) translateY(80px);
    }
}

/* 2. ARKAPLAN ATMOSFERİ */
.bg-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(0, 86, 179, 0.2), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15), transparent 50%);
    z-index: 1;
}

/* 3. UÇUŞAN PARTİKÜLLER */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    animation: particleFloat 20s linear infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

/* BAŞLIK & ROZETLER */
.school-brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.school-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
    flex-shrink: 0;
}

.prominent-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #ff8c00, #ffc107);
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    gap: 10px;
    border: 2px solid #fff;
}

.prominent-badge .badge-text {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Rajdhani', sans-serif;
}

.prominent-badge .badge-sub {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    border-left: 1px solid #000;
    padding-left: 10px;
    margin-left: 5px;
}

.pulse-animation {
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.hero-title {
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    color: transparent;
}

.text-glow-blue {
    color: var(--accent-color);
    text-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
}

/* BUTONLAR */
.btn-cyber-primary {
    background: linear-gradient(90deg, #0056b3, #003366);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    border-radius: 50px;
}

.btn-cyber-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 86, 179, 0.8);
    color: white;
    background: linear-gradient(90deg, #0066cc, #004c99);
}

.btn-cyber-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-cyber-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* =========================================
   YENİ RESİM TASARIMI: HUD INTERFACE
   ========================================= */
.tech-interface-container {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* DÖNEN DEV ÇARK (MASAÜSTÜ AYARI) */
.big-rotating-gear {
    position: absolute;
    bottom: -180px;
    right: -130px;
    left: auto;
    font-size: 18rem;
    color: rgba(0, 212, 255, 0.15);
    z-index: -1;
    animation: rotateGear 40s linear infinite;
    pointer-events: none;
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Ana resim kutusu */
.tech-image-box {
    position: relative;
    z-index: 5;
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

.tech-image-box:hover {
    transform: scale(1.02);
}

/* Resim ayarları */
.main-tech-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

/* Resim üzeri gradyan */
.img-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 86, 179, 0.2) 100%);
    pointer-events: none;
    z-index: 6;
}

/* Lazer Tarama */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 212, 255, 1);
    opacity: 0.6;
    animation: scanDown 4s infinite linear;
    z-index: 7;
}

@keyframes scanDown {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Parçalı Dış Çerçeve */
.tech-border {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-color);
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-color);
    transition: 0.3s;
}

.tb-top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.tb-top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.tb-bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.tb-bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Silik Arka Kutu */
.tech-backdrop {
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    z-index: 1;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

/* Küçük Yazılar */
.tech-label {
    position: absolute;
    font-size: 0.7rem;
    font-family: 'Rajdhani', sans-serif;
    color: var(--accent-color);
    letter-spacing: 2px;
    font-weight: bold;
    z-index: 10;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.8);
}

.label-top {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.label-bottom {
    bottom: -25px;
    right: 0;
}

/* =========================================
   GALERİ MENÜSÜ İÇİN YATAY KAYDIRMA (MOBİL)
   ========================================= */
.gallery-nav-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

/* Kaydırma çubuğunu gizle */
.gallery-nav-wrapper::-webkit-scrollbar {
    height: 4px;
}

.gallery-nav-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Buton Stilleri */
.gallery-scroll-nav .nav-link {
    border-radius: 50px !important;
    padding: 10px 25px;
    margin-right: 10px;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
}

.gallery-scroll-nav .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color);
}

/* =========================================
   İLETİŞİM BÖLÜMÜ DÜZELTMESİ (ORİJİNAL KOYU ARKA PLAN)
   ========================================= */
.contact-section {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
    /* Orijinal Koyu Mavi */
    padding: 80px 0;
}

.placeholder-light::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.glass-form {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   MOBİL VE TABLET OPTİMİZASYONU
   ========================================= */
@media (max-width: 991px) {

    /* --- SCROLL DÜZELTMESİ (MOBİL) --- */
    section,
    header {
        scroll-margin-top: 130px;
    }

    .hero-section {
        text-align: center;
        padding-top: 0px !important;
        /* Boşluk minimuma indirildi */
        padding-bottom: 30px;
        min-height: auto;
        height: auto;
    }

    .hero-text-col {
        margin-top: 0 !important;
    }

    .school-brand-title {
        font-size: 1.3rem;
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        padding-bottom: 5px;
        padding-left: 0;
        margin-bottom: 10px !important;
        justify-content: center;
    }

    .school-logo {
        height: 35px;
        margin-right: 10px;
    }

    /* BADGE DÜZELTMESİ: Yatay ve İnce */
    .prominent-badge {
        flex-direction: row !important;
        /* Yan yana zorla */
        padding: 8px 15px !important;
        /* Dolguyu azalt */
        gap: 8px;
        margin-bottom: 15px;
        display: inline-flex;
        border-radius: 30px;
    }

    .prominent-badge .badge-text {
        font-size: 0.9rem;
    }

    /* Yazıyı küçült */
    .prominent-badge .badge-sub {
        display: none;
    }

    /* Mobilde alt yazıyı gizle (sığması için) */

    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }

    /* Mobil için çerçeve ayarları */
    .tech-interface-container {
        margin-top: 20px;
        padding: 5px;
        width: 100%;
        max-width: 90%;
    }

    .tech-border {
        width: 25px;
        height: 25px;
    }

    /* Mobilde çark ayarı */
    .big-rotating-gear {
        /*
        font-size: 8rem;
        bottom: -30px;
        right: -10px;
        left: auto;*/
        display: none !important; /*çark iptal edildi*/
    }

    /* Mobilde arka planın yazıyı boğmaması için hafif karartma */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 0;
    }
}

/* Küçük Mobil Ekranlar için Ekstra Ayar */
@media (max-width: 576px) {
    .school-brand-title {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }

    .tech-interface-container {
        max-width: 100%;
        padding: 5px;
    }
}

/* Diğer Bölümlerin CSS'leri */
.teacher-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border-bottom: 3px solid var(--primary-color);
}

.teacher-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.teacher-card .info {
    padding: 15px;
    text-align: center;
}

/* =========================================
   GALERİ RESİM DÜZENLEMESİ (YENİ EKLENDİ)
   ========================================= */
.gallery-img {
    width: 100%;
    height: 250px;
    /* Sabit yükseklik, hepsi aynı boy olsun */
    object-fit: cover;
    /* Resmi kutuya sığdır, taşanı kes, oranı bozma */
    object-position: center;
    /* Ortala */
    border-radius: 10px;
    /* Köşeleri yuvarla */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Hafif gölge */
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    /* Üzerine gelince hafif büyüme efekti */
}

/* =========================================
   INSTAGRAM VURGULU BUTON TASARIMI
   ========================================= */
.btn-instagram-glow {
    /* Instagram'ın Orijinal Gradyan Renkleri */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white !important;
    /* İkon rengi beyaz olsun */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /* Tam yuvarlak */
    text-decoration: none;
    margin-left: 10px;
    box-shadow: 0 0 10px rgba(214, 36, 159, 0.6);
    /* Hafif pembe gölge */
    transition: all 0.3s ease;
    animation: instaPulse 2s infinite;
    /* Sürekli nabız atışı */
    vertical-align: middle;
}

.btn-instagram-glow i {
    font-size: 1.2rem;
    /* İkon boyutu */
}

/* Üzerine gelince büyüme ve dönme efekti */
.btn-instagram-glow:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 0 20px rgba(214, 36, 159, 0.9);
    /* Gölge parlasın */
}

/* Dikkat çekici Nabız Animasyonu */
@keyframes instaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 36, 159, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(214, 36, 159, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(214, 36, 159, 0);
    }
}

/* =========================================
   YÖNETİM KADROSU UNVAN TASARIMI
   ========================================= */
.badge-yonetim {
    background-color: var(--primary-color);
    /* Sitenin ana koyu mavisi */
    color: #fff;
    padding: 8px 25px;
    /* Yazının etrafına biraz boşluk (Nefes payı) */
    border-radius: 50px;
    /* Tam yuvarlak kenarlar (Modern görünüm) */
    font-size: 0.85rem;
    /* Yazı boyutu ideal */
    font-weight: 600;
    /* Ne çok kalın ne çok ince */
    letter-spacing: 1.5px;
    /* Harflerin arasını açarak elit bir hava katar */
    text-transform: uppercase;
    /* Hepsi büyük harf */
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
    /* Altına hafif, yumuşak bir gölge */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Çok ince beyaz bir iç çizgi */
    display: inline-block;
    margin-top: 5px;
}

/* Üzerine gelince çok hafif bir hareket */
.profile-card:hover .badge-yonetim {
    background-color: var(--accent-blue-deep);
    /* Hafif ton değişimi */
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* =========================================
   MOBİL GALERİ DÜZELTMESİ (EN ALTA EKLE)
   ========================================= */
@media (max-width: 768px) {

    /* Butonları ortalamayı bırak, sola yasla ki kaydırılabilsin */
    .gallery-scroll-nav {
        justify-content: flex-start !important;
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Mobilde butonları biraz kibarlaştır */
    .gallery-scroll-nav .nav-link {
        padding: 8px 16px;
        /* İç boşluğu azalt */
        font-size: 0.85rem;
        /* Yazıyı biraz küçült */
        margin-right: 8px;
        /* Aralarındaki mesafeyi sıkılaştır */
        white-space: nowrap;
        /* Yazı alt satıra inmesin */
    }

    /* Galeri kapsayıcısının kaydırma çubuğunu gizle ama kaydırmaya izin ver */
    .gallery-nav-wrapper {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0;
    }
}

/* --- YATAY TAŞMA ÇÖZÜMÜ (MENÜYÜ BOZMAZ) --- */

/* 1. Tüm ana bölümleri limitle (Body hariç) */
section,
header,
footer,
.container-fluid,
.row {
    overflow-x: clip;
    /* Modern tarayıcılar için en iyisi */
}

/* 2. Resimlerin taşmasını garanti engelle */
img {
    max-width: 100%;
    height: auto;
}

/* 3. Eğer AOS Animasyon kullanıyorsan bu şart! */
/* Animasyonla gelenler sayfayı genişletmesin */
body[data-aos-easing] {
    overflow-x: hidden;
}

/* --- MASAÜSTÜ ÇARK DÜZELTMESİ (GÜNCELLENMİŞ HALİ) --- */
@media (min-width: 992px) {

    /* 1. En dış katman (Header) */
    #hero,
    .hero-section {
        overflow: visible !important;
    }

    /* 2. İçerdeki Suçlular (Container ve Row) */
    /* Bunlar da global kuraldan etkilenip kesiyordu, onları da açtık */
    #hero .container,
    #hero .row {
        overflow: visible !important;
    }
}