/* ========== Font ve Genel Ayarlar ========== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #891720;
    --primary-hover: #510d2a;
    --secondary: #ae9b7d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #343a40;

    --text-color: #333;
    --background: #ffffff;

    --background-custom:#891720;

    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

body i{
    color: var(--primary) !important;
}

/* ========== Preloader ========== */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary, #007bff);
    width: 0%;
    transition: width 0.3s;
}

.preloader-content {
    text-align: center;
}

.loading-text {
    margin-top: 10px;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

/* ========== Başlıklar ========== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px;
    font-weight: 600;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration:none !important;
}

/* ========== Buttonlar ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    transition: 0.3s ease;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.btn-custom{
    background-color: var(--primary) !important;
    color: white !important;
}
.btn-custom:hover{
    background-color: var(--primary-hover);
}

.btn::after {
    content: "\f138";
    font-family: "bootstrap-icons";
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-size: 1rem;
    line-height: 1;
    position: relative;
    top: 1px;
}
.btn.no-icon::after {
    content: none;
}

/* ========== Form Elemanları ========== */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
}

/* ========== Navbar  ========== */
header {
    padding: 20px 0;
    background-color: var(--light);
    border-bottom: 1px solid #ddd;
}

header nav ul {
    list-style: none;
    gap: 20px;
    padding: 0;
}

header nav ul li a {
    color: var(--primary) !important;
    font-weight: 400;
}

header nav ul li a:hover {
    color: var(--primary-hover);
}

header .mega-dropdown-menu ul li a{
    color: var(--text-color) !important;
}
header .mega-dropdown-menu h5{
    color: var(--primary) !important;
    font-weight: 500;
}

.mega-menu .dropdown-menu {
    background-color: var(--light) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: 63px !important;
    transform: none !important;
    border-radius: 0;
    border: none;
}

/* ========== Footer ========== */
footer {
    padding: 20px 0;
    background-color: #222;
    color: white;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: var(--secondary-color);
}

footer h5 {
    color: #ddd;
}

.footer-logo {
    fill: white;
    /* filter: brightness(0) invert(1); */
}

footer i {
    color:var(--secondary) !important;
}


/* Mega Menü Genel Stil */
.mega-menu .dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    display: none;
    z-index: 1000;
}

/* Her bir hizmet için genişlik */
.mega-menu .dropdown-menu .row > .col-md-4 {
    padding: 10px;
}

/* Alt hizmetlerin stili */
.subservices {
    margin-top: 10px;
}

.subservices ul {
    list-style: none;
    padding-left: 0;
}

.subservices li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding-left: 0 !important;
}

.subservices li a:hover {
    text-decoration: underline;
}

/* Menu Hover durumunda */
.mega-menu:hover .dropdown-menu {
    display: block;
}

/* Menü başlıkları */
.mega-menu .dropdown-menu h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.mega-menu .dropdown-menu a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
    padding: 5px 10px;
    display: block;
}

.mega-menu .dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* Menü görünümünü geliştirmek için animasyon ekleyelim */
@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.mega-menu .dropdown-menu {
    animation: slideIn 0.3s ease-in-out;
}

/* Header başlangıç durumu */
#mainHeader {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: white;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Yukarı çıktığında gizle */
#mainHeader.hide {
    transform: translateY(-100%);
    opacity: 0;
}

/* Geri gelirken göster */
#mainHeader.show {
    transform: translateY(0);
    opacity: 1;
}

.custom-offcanvas {
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}

.custom-offcanvas.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}
.offcanvas-backdrop {
    transition: opacity 0.5s ease-in-out;
    -webkit-transition: opacity 0.5s ease-in-out;
    -moz-transition: opacity 0.5s ease-in-out;
    -ms-transition: opacity 0.5s ease-in-out;
    -o-transition: opacity 0.5s ease-in-out;
}

/* ========== Banner ========== */
.inner-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    position: relative;
    padding-top:100px;
}

.inner-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.inner-banner .container {
    position: relative;
    z-index: 2;
}

.inner-banner h1 {
    color:white;
}

/* ========== Galeri Grid ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== Header Service Image ========== */
.service-image-wrapper {
    width: 90%;
    max-height: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-image-wrapper:hover img {
    transform: scale(1.05);
}


/* ========== Responsive ========== */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background-color:var(--primary);
    color: white;
    border: none;
    outline: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 8px rgba(0,0,0,0.3);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    display: flex;
    animation: pulse-ring 2s infinite;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #555;
    transform: scale(1.1);
}

/* Dalgamsı sinyal (pulse) efekti */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}
