/* --- GENEL AYARLAR & PALET --- */
:root {
    --primary-color: #002366; /* Sancar Laciverti */
    --primary-dark: #001540;  /* Daha koyu lacivert */
    --secondary-color: #A5A9B4; /* Gümüş Gri */
    --accent-color: #D6001C; /* Sancar Kırmızısı */
    --accent-glow: rgba(214, 0, 28, 0.4); /* Kırmızı Parlama */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --bg-tech: #f4f6f9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-tech);
}

/* Arka Plan Deseni (Grid) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 35, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 35, 102, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* --- NAVBAR --- */
#mainNav {
    background: rgba(0, 35, 102, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease-in-out;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#mainNav .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after {
    width: 100%;
}

#mainNav .nav-link:hover, #mainNav .nav-link.active {
    color: #fff;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 12rem;
    padding-bottom: 8rem;
    background: linear-gradient(135deg, rgba(0, 35, 102, 0.9), rgba(0, 20, 60, 0.95)), url('img/team-photo.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 2rem;
}

/* --- BUTONLAR --- */
.btn {
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-color), #b30018);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-danger {
    background-color: var(--accent-color);
    border: none;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-danger:hover {
    background-color: #b30018;
    box-shadow: 0 0 25px var(--accent-glow);
}

/* --- GENEL KARTLAR --- */
.card {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 35, 102, 0.15);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

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

/* --- İNTERAKTİF HARİTA (Burası Eksikti, Şimdi Tamam) --- */
.map-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Taşmaları gizle */
    background-color: #1a1a2e; /* Deniz Rengi */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6; 
    transition: opacity 0.3s;
}

.map-container:hover .map-image {
    opacity: 0.8;
}

/* Harita Noktaları (Pin) */
.map-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(214, 0, 28, 0.7);
    animation: pulse-red 2s infinite;
    z-index: 10;
    transform: translate(-50%, -50%); /* Tam ortalamak için */
}

.map-point:hover {
    animation: none;
    transform: translate(-50%, -50%) scale(1.3);
    background-color: #fff;
}

/* Tooltip (Bilgi Kutusu) */
.map-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-align: center;
}

/* Tooltip Oku */
.map-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.95) transparent transparent transparent;
}

.map-point:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 35px; /* Yukarı kayma efekti */
}

/* Nokta Animasyonu */
@keyframes pulse-red {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(214, 0, 28, 0.7); }
    70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 10px rgba(214, 0, 28, 0); }
    100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(214, 0, 28, 0); }
}

/* --- TEAM 254 TARZI ROBOT KARTLARI --- */
.robot-gallery-card {
    border: none;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.robot-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.robot-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.robot-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.robot-gallery-card:hover .robot-img-wrapper img {
    transform: scale(1.08);
}

.robot-year-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
}

.robot-card-body {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s;
}

.robot-gallery-card:hover .robot-card-body {
    border-bottom: 3px solid var(--accent-color);
}

.robot-name {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* --- DİĞER DETAYLAR --- */
.section-heading::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.sponsor-logo-box:hover {
    border-color: var(--accent-color) !important;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .hero-section {
        clip-path: none;
        padding-top: 8rem;
    }
}