/* Custom Styles for Azran Boru */
html {
    scroll-behavior: smooth;
}

/* Global Primary Color Override (Petrol Blue / Navy) */
:root {
    --bs-primary: #0a192f;
    --bs-primary-rgb: 10, 25, 47;
}

.text-primary {
    color: #0a192f !important;
}

.bg-primary {
    background-color: #0a192f !important;
}

.btn-primary {
    background-color: #0a192f !important;
    border-color: #0a192f !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #06101d !important;
    border-color: #06101d !important;
}

.btn-outline-primary {
    color: #0a192f !important;
    border-color: #0a192f !important;
}

.btn-outline-primary:hover {
    background-color: #0a192f !important;
    color: #ffffff !important;
}

/* Page Fade In Animation */
@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    animation: fadeInOpacity 0.3s ease-in forwards;
}

/* Navbar Enhancements */
.navbar-brand {
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #0a192f !important;
    border-bottom: 2px solid #0a192f;
}

/* Base style resets */
section {
    position: relative;
}

#hero-video {
    top: 0;
    left: 0;
}

/* --- Products & Swiper --- */

/* Utility class to space out letter */
.tracking-wide {
    letter-spacing: 2px;
}

/* Product Card Interactions */
.transition-all {
    transition: all 0.3s ease;
}

.product-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-card img {
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Footer Enhancements */
.hover-primary:hover {
    color: #0a192f !important;
    padding-left: 5px;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Swiper specific spacing */
.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #0a192f;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 25px;
    border-radius: 5px;
    opacity: 1;
}

.top-bar {
    font-size: 0.9rem;
}

/* Glassmorphism for Form */
.bg-glass {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Button & Link Animations */
a,
button,
.btn {
    transition: all 0.3s ease-in-out !important;
}

/* ============================================= */
/* Navbar Logo Responsive */
/* ============================================= */
.navbar-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* ============================================= */
/* WhatsApp Floating Button */
/* ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease !important;
}

.whatsapp-float:hover {
    background-color: #1DA851;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ============================================= */
/* Mobile Responsive Styles */
/* ============================================= */

/* Tablet (≤991px) */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 80px;
    }

    .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .navbar-brand {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .navbar-collapse {
        padding: 0.5rem 0;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0.75rem !important;
        border-bottom: none;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom: none;
        background-color: rgba(10, 25, 47, 0.05);
        border-radius: 8px;
    }

    /* Hero section */
    .hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .hero h1.display-4 {
        font-size: 1.75rem !important;
    }

    .hero .lead {
        font-size: 0.95rem !important;
    }

    .hero .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem !important;
    }

    /* "Başarı Tablomuz" box */
    .hero .p-5 {
        padding: 1.25rem !important;
    }

    .hero .p-5 h3 {
        font-size: 1.1rem !important;
    }

    .hero .p-5 h4 {
        font-size: 0.95rem !important;
    }

    .hero .p-5 .fs-3 {
        font-size: 1.1rem !important;
    }

    .hero .p-5 p {
        font-size: 0.85rem !important;
    }

    .hero .p-5 .fa-2x {
        font-size: 1.25rem !important;
    }

    .hero .p-5 i[style*="width: 60px"] {
        width: 44px !important;
        height: 44px !important;
        padding: 0.5rem !important;
    }

    /* Page headers (hakkımızda, ürünler, iletişim) */
    section.text-white.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    section.text-white.py-4 .container {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    section.text-white.py-4 h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Products section */
    #urunler {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #urunler .container {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .product-card img {
        height: 160px;
    }

    .product-card .card-body {
        padding: 1rem !important;
    }

    .product-card .card-body h5 {
        font-size: 1rem !important;
    }

    .product-card .card-body p {
        font-size: 0.85rem !important;
    }

    /* "Neden Bizi Seçmelisiniz" section */
    #hizmetler {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #hizmetler .container {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    #hizmetler .fa-3x {
        font-size: 2rem !important;
    }

    #hizmetler h4 {
        font-size: 1rem !important;
    }

    #hizmetler .card .p-4 {
        padding: 1rem !important;
    }

    /* Contact form */
    .col-lg-7 .bg-white.p-5 {
        padding: 1.25rem !important;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 28px;
        bottom: 20px;
        right: 16px;
    }

    /* Footer */
    footer {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    footer .row > div {
        margin-top: 1rem !important;
    }

    footer h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem !important;
    }

    footer p, footer a {
        font-size: 0.9rem;
    }
}

/* Phone (≤575px) */
@media (max-width: 575.98px) {
    .navbar-logo {
        height: 70px;
    }

    .navbar {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .hero .container {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .hero h1.display-4 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .hero .lead {
        font-size: 0.88rem !important;
        margin-bottom: 1rem !important;
    }

    .hero .btn-lg {
        font-size: 0.85rem;
        padding: 0.45rem 1rem !important;
    }

    .hero .p-5 {
        padding: 1rem !important;
    }

    .hero .p-5 h3 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .hero .p-5 h4 {
        font-size: 0.9rem !important;
    }

    .hero .p-5 .fs-3 {
        font-size: 1rem !important;
    }

    .hero .p-5 p {
        font-size: 0.8rem !important;
    }

    .hero .p-5 .me-4 {
        margin-right: 0.75rem !important;
    }

    .hero .p-5 i[style*="width: 60px"] {
        width: 40px !important;
        height: 40px !important;
        padding: 0.4rem !important;
        font-size: 1rem !important;
    }

    /* General display headings */
    .display-4 {
        font-size: 1.5rem !important;
    }

    .display-5 {
        font-size: 1.3rem !important;
    }

    .display-6 {
        font-size: 1.1rem !important;
    }

    /* Section headings */
    h2.fw-bold {
        font-size: 1.25rem !important;
    }

    /* Products section */
    #urunler {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    #urunler .container {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    #urunler .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .product-card .position-relative {
        height: 180px !important;
    }

    .product-card img {
        height: 140px;
        max-height: 140px !important;
    }

    /* Features section */
    #hizmetler {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    #hizmetler .container {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    #hizmetler .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    #hizmetler .fa-3x {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    #hizmetler h4 {
        font-size: 0.95rem !important;
    }

    #hizmetler .card-text {
        font-size: 0.85rem !important;
    }

    #hizmetler .card .p-4 {
        padding: 0.75rem !important;
    }

    /* Contact page */
    .col-lg-5 h2 {
        font-size: 1.25rem !important;
    }

    .col-lg-5 .d-flex div h5 {
        font-size: 1rem !important;
    }

    .col-lg-7 .bg-white.p-5 h3 {
        font-size: 1.15rem !important;
    }

    .form-control-lg {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* About page */
    .col-lg-6 .position-relative [style*="height: 400px"] {
        height: 250px !important;
    }

    .col-lg-6 .position-absolute .display-4 {
        font-size: 1.75rem !important;
    }

    .col-lg-6 [style*="width: 60px"] {
        width: 44px !important;
        height: 44px !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Footer */
    footer {
        padding-top: 1.5rem !important;
    }

    footer img[alt*="Logo"] {
        height: 50px !important;
    }

    footer .row > div {
        margin-top: 0.75rem !important;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 26px;
        bottom: 16px;
        right: 14px;
    }
}