/* 
 * MRH İnşaat - Premium Web Tasarım Sistemi
 * Tasarım Dili: Modern, Ferah, Kurumsal Kırmızı (#e30613) & Derin Slate (#0f172a)
 */

:root {
    --primary: #0f172a;          /* Slate 900 - Derin Güven ve Kurumsallık */
    --primary-light: #1e293b;    /* Slate 800 */
    --danger-custom: #e30613;    /* MRH Kırmızı */
    --danger-hover: #b8050f;     /* Koyu Kırmızı */
    --bg-light: #f8fafc;         /* Slate 50 - Ferah Arka Plan */
    --card-bg: #ffffff;
    --text-dark: #0f172a;        /* Koyu Gri/Siyah */
    --text-muted: #64748b;       /* Slate 500 - Yardımcı Metin */
    --text-light: #f1f5f9;       /* Slate 100 */
    --border-light: #e2e8f0;     /* Slate 200 */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

/* 1. Genel Kurallar & Gövde */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    letter-spacing: -0.15px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.3px;
}

a {
    transition: var(--transition);
}

.fs-7 { font-size: 0.88rem !important; }
.fs-8 { font-size: 0.78rem !important; }

/* 2. Üst İletişim Bandı (Top Bar) */
.top-bar {
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a:hover {
    color: #ffffff !important;
    filter: brightness(1.2);
}

.social-icons-top a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
}

.social-icons-top a:hover {
    background-color: var(--danger-custom);
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* 3. Glassmorphism Navbar */
.navbar {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 22px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.navbar-scrolled {
    padding: 12px 0;
    background-color: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.navbar-brand img, .footer-logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-brand:hover img, .footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) brightness(1.2);
    opacity: 1;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    font-weight: 550;
    padding: 8px 18px !important;
    border-radius: 50px; /* Modern yumuşak hap şeklinde köşeler */
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(227, 6, 19, 0.12); /* Çok hafif kurumsal kırmızı parıltı */
    border-color: rgba(227, 6, 19, 0.2);
    font-weight: 650;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.1);
}

/* Toggler Düğmesi Tasarımı */
.navbar-toggler {
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2) !important;
}

/* 4. Buton Tasarımları */
.btn-danger-custom {
    background-color: var(--danger-custom);
    color: #ffffff;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
    transition: var(--transition);
}

.btn-danger-custom:hover {
    background-color: var(--danger-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.btn-outline-light-custom {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-light-custom:hover {
    background-color: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* 5. Hero Carousel (Slayt) */
.hero-slider {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background-color: var(--primary);
}

.carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.05);
    transform: scale(1);
    will-change: transform;
}

/* Degradeli Karartma Maskesi */
.carousel-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.85) 100%);
    pointer-events: none;
}

.carousel-caption-custom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: #ffffff;
    z-index: 10;
}

.caption-content {
    max-width: 750px;
}

/* Slayt Yazı Animasyonları ve Varsayılan Durumlar */
.carousel-item .caption-content h2,
.carousel-item .caption-content p,
.carousel-item .caption-content .btn-group-custom {
    opacity: 0;
    transform: translateY(35px);
    will-change: transform, opacity;
}

.carousel-item.active .carousel-img-wrapper img {
    animation: kenBurns 10s ease-out forwards;
}

.carousel-item.active .caption-content h2 {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.carousel-item.active .caption-content p {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.carousel-item.active .caption-content .btn-group-custom {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

/* Carousel Kontrolleri */
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 25px;
    opacity: 0;
    transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: var(--danger-custom);
    border-color: var(--danger-custom);
    color: #ffffff;
}

/* 6. Kartlar ve Hover Efektleri */
.card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 6, 19, 0.15);
}

.card-premium-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-premium-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover .card-premium-img img {
    transform: scale(1.08);
}

/* 7. Referanslar Sonsuz Kayan Band (Marquee) */
.references-marquee {
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-height: 55px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: var(--transition);
}

.marquee-item img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 8. Sayfa Alt Bilgi (Footer) */
.footer {
    background-color: var(--primary);
    color: #ffffff;
    border-top: 3px solid var(--danger-custom);
}

.footer-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-section-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--danger-custom);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.social-icons-footer a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: none !important;
}

.social-icons-footer a:hover {
    background-color: var(--danger-custom);
    color: #ffffff;
    transform: translateY(-3px);
    text-decoration: none !important;
}

/* 9. Yüzen WhatsApp Düğmesi */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.floating-whatsapp-btn:hover {
    color: #ffffff;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.pulse-ring {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPulse 1.8s ease-out infinite;
    pointer-events: none;
}

@keyframes waPulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* 10. Alt Sayfa Kahraman Alanları (Subpage Banner) */
.subpage-banner {
    position: relative;
    padding: 80px 0;
    background-color: var(--primary);
    overflow: hidden;
}

.subpage-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(227, 6, 19, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.subpage-banner-content {
    position: relative;
    z-index: 2;
}

.breadcrumb-custom .breadcrumb-item {
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--danger-custom);
}

/* 11. Mobil Menü ve Uyum Düzeltmeleri */
@media (max-width: 991px) {
    .navbar {
        background-color: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 12px 0;
    }
    
    .navbar-collapse {
        background-color: rgba(15, 23, 42, 0.98);
        border-radius: 16px;
        margin-top: 15px;
        padding: 15px 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        padding: 10px 0;
        text-align: center;
        gap: 6px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 20px !important;
        display: block;
        width: 100%;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-caption-custom h2 {
        font-size: 1.8rem !important;
    }
    
    .carousel-caption-custom p {
        font-size: 0.9rem !important;
    }
    
    .floating-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* 10. Modern Premium Form Elemanları */
.modern-form-wrapper {
    background-color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04) !important;
}

.modern-form-wrapper .form-floating > .form-control {
    border-radius: 12px;
    border: 1.5px solid rgba(15, 23, 42, 0.08);
    background-color: #f8fafc;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.modern-form-wrapper .form-floating > .form-control:focus {
    background-color: #ffffff;
    border-color: var(--danger-custom);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.12);
    color: var(--text-dark);
}

/* Floating Label Renklendirmeleri */
.modern-form-wrapper .form-floating > label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding-left: 16px;
    transition: all 0.3s ease-in-out;
}

.modern-form-wrapper .form-floating > .form-control:focus ~ label,
.modern-form-wrapper .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--danger-custom);
    font-weight: 700;
    transform: scale(0.85) translateY(-0.6rem) translateX(0.15rem);
}

/* 11. Modern Premium Checkbox */
.modern-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.modern-checkbox .form-check-input {
    border-radius: 4px !important;
    border: 1.5px solid rgba(15, 23, 42, 0.18) !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.modern-checkbox .form-check-input:checked {
    background-color: var(--danger-custom) !important;
    border-color: var(--danger-custom) !important;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.15) !important;
}

.modern-checkbox .form-check-label {
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.modern-checkbox .form-check-label a:hover {
    text-decoration: underline !important;
}

.hover-danger {
    transition: var(--transition);
}
.hover-danger:hover {
    color: var(--danger-custom) !important;
}
