/* ==== RESET ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-padding-top: 70px; /* sabit navbar için */
}
body {
    font-family: 'Roboto', sans-serif;
    color: #0D1B2A;
    background: #fff;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #0D1B2A;
    margin-bottom: .5rem;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}

/* ==== NAVBAR ==== */
.navbar {
    background: #0D1B2A;
    color: #FFF;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo {
    font-size: 1.5rem;
    color: #FFF;
}
.nav-links {
    display: flex;
    gap: 1rem;
}
.nav-links.open {
    display: block;
    background: #0D1B2A;
    padding: 1rem;
}
.nav-links a {
    color: #FFF;
    padding: .5rem;
    display: block;
}
.menu-toggle {
    display: none;
    color: #FFF;
    font-size: 1.5rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
    }
    .menu-toggle {
        display: block;
    }
}

/* ==== BUTTONS ==== */
.btn {
    display: inline-block;
    padding: .75rem 1.5rem;
    background: #FF5722;       /* turuncu ana renk */
    color: #FFF;
    border-radius: 4px;
    transition: .3s;
}
.btn:hover {
    background: #E64A19;       /* koyu turuncu hover */
}
.btn-outline {
    background: transparent;
    border: 2px solid #FF5722; /* turuncu çerçeve */
    color: #FF5722;
}
.btn-outline:hover {
    background: #FF5722;
    color: #FFF;
}

/* ==== SECTIONS ==== */
section {
    padding: 5rem 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}
section:first-of-type {
    border-top: none;
}
section:nth-of-type(even) {
    background: #fafafa;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #0D1B2A, #FF5722);
    color: #FFF;
    text-align: center;
    padding: 8rem 0 4rem;
}

/* BAŞLIKLAR */
.features h2,
.services h2,
.process h2,
.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* ==== GRIDS ==== */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ==== CARDS ==== */
.feature-card,
.card {
    background: #F7F7F7;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: .3s;
}
.feature-card:hover,
.card:hover {
    transform: translateY(-5px);
}

/* ==== ICONS ==== */
.icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

/* ==== PROCESS ==== */
.process .steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.step {
    flex: 1 1 200px;
    text-align: center;
    background: #F7F7F7;
    padding: 1.5rem;
    border-radius: 8px;
}

/* ==== CONTACT ==== */
.contact form {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: #FFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.alert.success {
    background: #d4edda;
    color: #155724;
}
.alert.error {
    background: #f8d7da;
    color: #721c24;
}

/* ==== FOOTER ==== */
.footer {
    text-align: center;
    padding: 1rem 0;
    background: #0D1B2A;
    color: #FFF;
    margin-top: 4rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .hero {
        padding: 10rem 0 4rem;
    }
    section {
        padding: 6rem 0;
    }
    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- Contact bölümü grid düzeni --- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

/* --- Ortak kart stili --- */
.contact-card {
    background: #FFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Başlık ve metin ayarları */
.contact-card h2,
.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: #0D1B2A;
}
.contact-details p {
    margin-bottom: .75rem;
    line-height: 1.4;
}

/* Form altındaki buton kartın içinde kalsın */
.contact-card form {
    margin-top: 1rem;
}

/* Mobilde tek sütun olsun */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ==== WhatsApp Sabit Butonu ==== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;   /* alttan 30px boşluk */
    right: 30px;    /* sağdan 30px boşluk */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s;
}
.whatsapp-float:hover {
    background-color: #1DA851;
}
.whatsapp-float img {
    width: 32px;
    height: 32px;
}


/* === Hamburger İkonu === */
.menu-toggle {
    display: none; /* masaüstünde gizle */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: #FFF;
    transition: transform .3s, opacity .3s;
}

/* === Off‑Canvas Menü & Overlay === */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s;
    z-index: 101;
}
.nav-links {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #0D1B2A;
    flex-direction: column;
    padding-top: 4rem;
    gap: 1.5rem;
    list-style: none;
    transition: left .3s ease;
    z-index: 102;
}
.nav-links li a {
    color: #FFF;
    font-size: 1.1rem;
    padding: .75rem 1.5rem;
    display: block;
}
.nav-links li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Menü açıkken */
.nav-open .nav-links {
    left: 0;
}
.nav-open .nav-overlay {
    visibility: visible;
    opacity: 1;
}

/* Hamburger to X animasyonu */
.nav-open .menu-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-open .menu-toggle .bar:nth-child(2) {
    opacity: 0;
}
.nav-open .menu-toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === Mobil için Aktif Et === */
@media (max-width:768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: flex;
    }
}

/* === Mobil (off‑canvas) === */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        visibility: hidden; opacity: 0;
        transition: opacity .3s, visibility .3s;
        z-index: 101;
    }
    .nav-links {
        position: fixed;
        top: 0; left: -250px;
        width: 250px; height: 100%;
        background: #0D1B2A;
        flex-direction: column;
        padding-top: 4rem;
        gap: 1.5rem;
        list-style: none;
        transition: left .3s ease;
        z-index: 102;
        display: flex;
    }
    .nav-open .nav-links {
        left: 0;
    }
    .nav-open .nav-overlay {
        visibility: visible; opacity: 1;
    }
    /* hamburger → X animasyonu aynı mobil kurallar altında kalıyor */
    .nav-open .menu-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-open .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-open .menu-toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* === Masaüstü (yatay nav) === */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    .nav-overlay {
        display: none;
    }
    .nav-links {
        position: static;      /* normale dön */
        display: flex !important;
        flex-direction: row;   /* yatay sıralama */
        background: none;
        width: auto; height: auto;
        left: auto; top: auto;
        padding: 0;
        gap: 1rem;
    }
    .nav-links li a {
        padding: .5rem 0;      /* sadece dikey padding */
    }
}
