﻿/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    list-style: none;
}

/* === RENK DEĞİŞKENLERİ === */
:root {
    --primary: #1e3c72;
    --secondary: #2a5298;
    --accent: #ff7e00;
    --light: #f9f9f9;
    --dark: #333333;
    --gray: #6c757d;
    --white: #ffffff;
    /* Header renkleri */
    --header-bg: var(--white);
    --header-text: var(--dark);
    /* Dropdown ve footer */
    --dropdown-bg: var(--white);
    --dropdown-hover-bg: #f0f5ff;
    --footer-bg: var(--dark);
    --footer-text: #bbb;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* === GENEL YAPI === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 15px;
}



:invalid {
    border-color: #dc3545;
}


:valid {
    border-color: #28a745;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

    .checkbox-group label {
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .checkbox-group input[type="checkbox"] {
        margin-right: 8px;
    }

/* === BUTONLAR === */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

    .btn:hover {
        background-color: #e67000;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

    .btn-outline:hover {
        background-color: var(--accent);
        color: var(--white);
    }
.btn-outline-white {
    margin-top:1rem;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

    .btn-outline-white:hover {
        background-color: var(--white);
        color: var(--accent);
    }

/* === HEADER === */
header {
    background: var(--header-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* === LOGO === */
.logo {
    display: flex;
    align-items: center;
}

    .logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .logo img {
        height: 50px;
        width: auto;
        transition: transform 0.3s ease;
    }

        .logo img:hover {
            transform: scale(1.05);
        }

/* === NAVİGASYON === */
.main-nav {
    display: flex;
    align-items: center;
}

    .main-nav > ul {
        display: flex;
        list-style: none;
        align-items: center;
    }

    .main-nav li {
        position: relative;
        margin: 0 10px;
    }

    .main-nav > ul > li > a,
    .main-nav > ul > li > p {
        color: var(--header-text);
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        padding: 10px 15px;
        border-radius: 4px;
        transition: all 0.3s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .main-nav > ul > li > a:hover,
        .main-nav > ul > li > p:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }

        .main-nav > ul > li > a i,
        .main-nav > ul > li > p i {
            margin-left: 5px;
            font-size: 12px;
        }


.section-map {
    background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)), url("/images/about-banner.jpg") center/cover no-repeat;
    color: var(--white);
    text-align: center;
    height: 300px;
    position: relative;
}

    .section-map img {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: bottom;
    }

    .section-map .img-div {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background: #00000057;
    }

    .section-map h1 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .section-map p {
        font-size: 16px;
        z-index: 1;
        position: relative;
    }

        .section-map p a {
            color: var(--white);
            text-decoration: none;
            opacity: 0.9;
            transition: 0.3s;
        }

            .section-map p a:hover {
                opacity: 1;
                text-decoration: underline;
                z-index: 1;
                position: relative;
            }

    .section-map span {
        margin: 0 5px;
        opacity: 0.7;
    }


.section-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .section-map h1 {
        font-size: 36px;
        z-index: 1;
        position: relative;
    }
/* === DROPDOWN === */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dropdown-bg);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid var(--footer-text);
    overflow: hidden;
}

.main-nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown ul {
    list-style: none;
    padding: 10px 0;
    width: 300px;
    border: 1px solid var(--dropdown-bg);
}

    .dropdown ul li a {
        display: block;
        padding: 10px 20px;
        color: var(--dark);
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 12px;
        border-radius: 5px;
    }

        .dropdown ul li a:hover {
            background-color: var(--dropdown-hover-bg);
            color: var(--primary);
            padding-left: 25px;
        }

/* === ÜRÜN DROPDOWN === */
.products-dropdown {
    min-width: 320px;
    width: 800px;
    padding: 20px;
    display: grid;
    left: unset;
    grid-template-columns: repeat(3, 1fr);
    right: 0;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark);
}

    .product-item:hover {
        background-color: var(--dropdown-hover-bg);
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .product-item img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .product-item p {
        font-weight: 600;
        color: var(--primary);
        margin-top: 5px;
    }

/* === MOBİL MENÜ BUTONU === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* === FOOTER === */
footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: var(--accent);
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: var(--footer-text);
        text-decoration: none;
        transition: 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--white);
            padding-left: 5px;
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: var(--footer-text);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #333;
        color: var(--white);
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--accent);
        }

/* === RESPONSIVE TASARIM === */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

        .main-nav.active {
            right: 0;
        }

        .main-nav > ul {
            flex-direction: column;
            width: 100%;
        }

        .main-nav li {
            width: 100%;
            margin: 5px 0;
        }

        .main-nav > ul > li > a,
        .main-nav > ul > li > p {
            color: var(--dark);
            padding: 12px 0;
            border-bottom: 1px solid #eee;
            width: 100%;
        }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        margin-top: 10px;
        display: none;
        width: 100%;
    }

        .dropdown.active {
            display: block;
        }

    .products-dropdown {
        min-width: auto;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    header {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .section-map h1 {
        font-size: 28px;
    }

    .container {
        padding: 0 20px;
    }

    .logo img {
        height: 40px;
    }
    .products-dropdown img{
        display:none;
    }
}
/*#region Alert*/
#Alert {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #000;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 9999999;
    top: -100px; /* Start position above the screen */
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0; /* Initially hidden */
    top:;
    animation: slideIn 0.5s ease forwards, slideOut 0.5s ease 2.5s forwards;
}

#AlertJS {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #000;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 100;
    top: -100px; /* Start position above the screen */
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0; /* Initially hidden */
    transition: top 0.5s ease, opacity 0.5s ease; /* Smooth transition for sliding and fading */
}


    #Alert > i,
    #AlertJS > i {
        font-size: 15px;
    }

.failed {
    background: #b53a3a !important;
}

    .failed > i {
        color: #ea5553;
    }

.success {
    background: #46cc5e !important;
}

    .success > i {
        color: #fff;
    }

    .success > span {
        color: #fff;
    }

@keyframes slideIn {
    0% {
        top: -100px;
        opacity: 0;
    }

    100% {
        top: 13px;
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        top: 13px;
        opacity: 1;
    }

    100% {
        top: -100px;
        opacity: 0;
    }
}
/*#endregion*/
