/* ===================================
   MARINEANKARA
   Ana Stil Dosyası
=================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

/* Renkler */
:root {
    --lacivert: #0A1E30;
    --lacivert2: #123A54;
    --turkuaz: #1E5A63;
    --altin: #C79A4B;
    --altinAcik: #E0B972;
    --beyaz: #FFFFFF;
    --gri: #F4F4F4;
    --yazi: #222222;
}

/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Mobilde sağa kaymayı önler */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--beyaz);
    color: var(--yazi);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =====================
        HEADER
===================== */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Logo */
.logo img {
    height: 80px;
    transition: .3s;
}

.logo img:hover {
    transform: scale(1.04);
}

/* Menü */
nav ul {
    display: flex;
    gap: 35px;
}

nav ul li a {
    color: #0A1E30;
    font-weight: 600;
    transition: .3s;
}

nav ul li a:hover {
    color: var(--altin);
}

/* Buton */
.btn {
    background: var(--altin);
    color: white;
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 600;
    transition: .4s;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: var(--altinAcik);
    color: #0A1E30;
}

/* =====================================
            HERO (SLIDER ALANI)
======================================*/
.hero {
    min-height: 92vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden; /* Dışa taşan slaytları gizler */
}

/* Slaytların Arka Plan Kapsayıcısı */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out; /* 5 saniyede bir yana yumuşak kayma efekti */
    z-index: 1;
}

/* Her Bir Slayt Fotoğrafı */
.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Karartma Katmanı (Yazıların okunması için) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 18, 30, 0.70);
    z-index: 2;
}

/* Hero İçeriği (Yazılar ve Butonlar üstte kalsın) */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-left {
    max-width: 700px;
    color: white;
}

.hero-mini {
    color: var(--altinAcik);
    letter-spacing: 4px;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 65px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-left h1 span {
    color: var(--altinAcik);
}

.hero-left p {
    font-size: 20px;
    line-height: 1.8;
    color: #DDD;
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn2 {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    transition: .4s;
    display: inline-block;
    text-align: center;
}

.btn2:hover {
    background: white;
    color: #0A1E30;
}

/* Slider Gösterge Noktaları (Dots) */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--altin);
    transform: scale(1.3);
}

/* ==========================
        WHY US (NEDEN BİZ)
========================== */
.why-us {
    padding: 100px 0;
    background: #f8f9fb;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: auto;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--altin);
    font-weight: 600;
    letter-spacing: 3px;
}

.section-title h2 {
    margin-top: 15px;
    font-size: 42px;
    color: #0A1E30;
    font-family: 'Oswald', sans-serif;
}

.section-title p {
    margin-top: 20px;
    color: #666;
    line-height: 1.8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    transition: .4s;
    box-shadow: 0 10px 25px rgba(0,0,0,.07);
}

.card:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.card h3 {
    color: #0A1E30;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    line-height: 1.7;
}

/* =====================
        FOOTER
===================== */
footer {
    background: var(--lacivert);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 80px;
}

/* =========================================================
   GÜÇLENDİRİLMİŞ MOBİL VE TABLET UYUM (RESPONSIVE)
   ========================================================= */
@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr); /* Tabletler için 2 sütun */
    }
}

@media (max-width: 768px) {
    header .container {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Mobil Hero Alanı Ayarları */
    .hero {
        min-height: 100dvh; /* Telefon ekranının tamamını kaplar */
        padding: 80px 0 50px 0;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 32px; /* Mobilde taşmayı önler */
        margin-bottom: 15px;
    }

    .hero-left p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn, 
    .hero-buttons .btn2, 
    .hero-buttons button {
        width: 100%; /* Butonlar mobil cihazda tam genişlik alır */
        box-sizing: border-box;
    }

    .hero-dots {
        bottom: 15px; /* Mobilde alt noktaların mesafesini az kısalttık */
    }

    /* Neden Biz Mobil Kart Düzeni */
    .why-us {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .cards {
        grid-template-columns: 1fr; /* Mobilde kartlar tek sütun */
        gap: 20px;
    }
}