/* MODERNIZED CSS - MALKOÇOĞLU LOGISTICS 
    Primary Color: #880D15 
*/

:root {
    --bg-color: #0A0A0A;
    --primary-color: #880D15;
    --primary-hover: #a3121b; /* Biraz daha açık kırmızı */
    --text-color: #EAEAEA;
    --text-muted: #A0A0A0;
    --sidebar-bg: #121212;
    --border-color: #222;
    --card-bg: #161616;
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-right: 80px; /* Sidebar alanı */
    padding-top: 60px;    /* Header alanı */
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Top Header --- */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 80px);
    height: 60px;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 3rem;
    z-index: 1001;
}

.social-link-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    margin-right: 2.5rem;
    transition: var(--transition);
}

.social-link-item:hover { color: var(--primary-color); }

.social-link-item svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* --- Sidebar Navigation --- */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between;
    padding: 30px 0;
    z-index: 1002;
}

.sidebar-nav .logo img { 
    width: 50px; 
    height: 50px; 
    object-fit: contain; 
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav ul li { margin: 30px 0; }

.sidebar-nav ul li a svg { 
    width: 26px; 
    height: 26px; 
    stroke: var(--text-color); 
    transition: var(--transition);
}

.sidebar-nav ul li a:hover svg, 
.sidebar-nav ul li a.active svg { 
    stroke: var(--primary-color); 
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.apply-now-sidebar {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.apply-now-sidebar:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Showcase Sections --- */
.showcase-section {
    min-height: 100vh;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    padding: 5% 8%;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
}

.showcase-title { 
    font-family: var(--font-title); 
    font-size: clamp(2.5rem, 8vw, 5.5rem); 
    line-height: 1; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase;
}

.showcase-title span { color: var(--primary-color); }

.showcase-text { 
    font-size: 1.1rem; 
    color: var(--text-muted);
    max-width: 650px; 
}

/* Highlight Box (Home) */
.highlight-box { 
    background: rgba(136, 13, 21, 0.05); 
    padding: 2rem; 
    margin-top: 2rem; 
    border-left: 5px solid var(--primary-color); 
    max-width: 700px; 
}

/* --- Hero Apply Button --- */
.hero-apply-button-container {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end; /* Butonu sağa yaslar */
}

.hero-apply-button {
    background-color: var(--primary-color);
    color: white;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-family: var(--font-title);
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(136, 13, 21, 0.3);
}

.hero-apply-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(136, 13, 21, 0.5);
}

/* --- Events Section (Kart Resim Sorunu Çözümü) --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.event-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

/* RESİM KUTUSU: Resmin büyümesini engeller */
.event-card-image {
    width: 100%;
    height: 220px; /* Sabit yükseklik kartların eşit durmasını sağlar */
    overflow: hidden;
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi sünnetmeden kutuya sığdırır */
    object-position: center;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.1); /* Hover yapınca hafif zoom efekti */
}

.event-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: white;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.event-info-item svg {
    stroke: var(--primary-color);
    width: 18px;
    height: 18px;
}

.event-card-button {
    margin-top: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: var(--transition);
}

.event-card-button:hover { background-color: var(--primary-hover); }

/* --- About Section & Team --- */
.about-section-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5rem; 
    align-items: start;
}

.team-grid-new { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem; 
}

.team-member-card { 
    background: var(--card-bg); 
    border-radius: 12px; 
    padding: 2rem; 
    text-align: center; 
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.team-member-card:hover {
    border-color: var(--primary-color);
    background: #1a1a1a;
}

.team-member-card img { 
    width: 90px; height: 90px; 
    border-radius: 50%; 
    border: 3px solid var(--primary-color); 
    margin-bottom: 1rem;
    object-fit: cover;
}

/* --- Gallery Section --- */
.gallery-scroller { 
    height: 70vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    gap: 20px;
}

.gallery-track { 
    display: flex; 
    animation: scroll-left 40s linear infinite; 
}

.track-2 { animation: scroll-right 40s linear infinite; }

.gallery-scroller-item { 
    width: 350px; 
    height: 200px; 
    padding: 0 10px; 
    flex-shrink: 0;
}

.gallery-scroller-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 10px;
    filter: grayscale(30%);
    transition: var(--transition);
}

.gallery-scroller-item img:hover { filter: grayscale(0%); transform: scale(1.05); }

@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* --- Scroll Animations --- */
.showcase-section > * { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 1s ease-out; 
}

section.visible > * { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1024px) {
    body { padding-right: 0; padding-top: 70px; }
    .sidebar-nav { display: none; } /* Mobilde sidebar kalkar (İstersen hamburger menü yapabilirsin) */
    .top-header { width: 100%; padding: 0 1.5rem; }
    .about-section-content { grid-template-columns: 1fr; }
    .showcase-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .showcase-section { padding: 4rem 1.5rem; }
    .event-grid { grid-template-columns: 1fr; }
    .hero-apply-button-container { justify-content: center; }
    .gallery-scroller-item { width: 250px; height: 150px; }
    .social-link-item .social-name { display: none; }
}