/* 
  Perde Ofisi - Custom Stylesheet
  Theme Colors:
  - Primary Red (Lüks Kırmızı): #8B0000 (Dark Red / Crimson)
  - Luxury Cream (Lüks Krem): #FDFBF7, #F5EFEB
  - Accent Gold: #D4AF37
*/

:root {
    --primary-red: #7E0505;
    /* Deep luxury velvet red */
    --primary-red-hover: #5A0202;
    --light-cream: #FDFBF7;
    --dark-cream: #F5EFEB;
    --accent-gold: #D4AF37;
    --text-dark: #2B2B2B;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-cream);
    overflow-x: hidden;
    line-height: 1.7;
    /* Modern airy line height */
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.theme-heading {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Color & Utility Classes */
.bg-primary-red {
    background-color: var(--primary-red) !important;
    color: var(--light-cream) !important;
}

.text-primary-red {
    color: var(--primary-red) !important;
}

.bg-light-cream {
    background-color: var(--light-cream) !important;
}

.text-light-cream {
    color: var(--light-cream) !important;
}

.bg-dark-cream {
    background-color: var(--dark-cream) !important;
}

/* Enhanced Spacing for Sections (Modern Luxury uses a lot of whitespace) */
.py-5 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* Navbar - Glassmorphic Luxury Style */
.navbar {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    transition: all 0.4s ease;
    background-color: rgba(126, 5, 5, 0.92) !important;
    /* Semi-transparent Red */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    /* Subtle Gold border */
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(253, 251, 247, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

/* Beautiful hover underline effect */
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 50%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-gold);
}

/* Dropdown styling - Modern */
@media (max-width: 991.98px) {
    .dropdown-menu {
        border: none;
        background-color: transparent !important;
        box-shadow: none !important;
        padding-left: 15px;
        margin-top: 0;
        position: static;
        padding-bottom: 0px;
    }

    .dropdown-item {
        color: rgba(253, 251, 247, 0.8) !important;
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .dropdown-item:hover {
        background-color: transparent !important;
        color: var(--accent-gold) !important;
    }
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 5px;
    }
}

.dropdown-menu {
    background-color: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.dropdown-item {
    color: var(--primary-red);
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    /* Gold tint on hover */
    color: var(--primary-red);
    transform: translateX(5px);
    /* Slide slightly */
}

/* Rounded, Pill-Shaped Buttons (iOS/Modern style) */
.btn {
    border-radius: 50px !important;
    padding: 0.75rem 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-cream {
    background-color: var(--light-cream);
    color: var(--primary-red);
    border: 1px solid var(--light-cream);
    font-weight: 600;
}

.btn-cream:hover {
    background-color: transparent;
    color: var(--light-cream);
    border-color: var(--light-cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary-red {
    background-color: var(--primary-red);
    color: var(--light-cream);
    border: 1px solid var(--primary-red);
}

.btn-primary-red:hover {
    background-color: var(--primary-red-hover);
    color: var(--light-cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(126, 5, 5, 0.3);
}

.btn-outline-cream {
    background-color: transparent;
    color: var(--light-cream);
    border: 1px solid rgba(253, 251, 247, 0.6);
}

.btn-outline-cream:hover {
    background-color: var(--light-cream);
    color: var(--primary-red);
    border-color: var(--light-cream);
}

/* Hero Carousel */
.hero-img {
    height: 85vh;
    object-fit: cover;
    filter: brightness(0.65);
}

.bg-glass {
    background: rgba(43, 8, 8, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold trim */
    border-radius: 20px !important;
    padding: 3rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-caption {
    bottom: 20%;
    max-width: 700px;
    margin: 0 auto;
}

/* Extramely smooth hover states for Feature & Product Cards */
.feature-card,
.product-card {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff, var(--dark-cream)) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04) !important;
}

.product-card {
    background-color: var(--light-cream);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04) !important;
}

.feature-card:hover,
.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(126, 5, 5, 0.08) !important;
    /* Very soft red shadow */
}

.icon-wrapper {
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(126, 5, 5, 0.2);
}

.feature-card:hover .icon-wrapper {
    background-color: var(--accent-gold) !important;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

/* Better Images inside Product Cards */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: 20px 20px 0 0;
}

.product-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* extremely smooth luxury zoom */
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
    /* subtle zoom */
}

/* Typography elements */
.separator-line {
    height: 2px;
    width: 80px;
    border-radius: 2px;
    background-color: var(--accent-gold) !important;
    /* Gold looks better for separator */
}

.ls-1 {
    letter-spacing: 1px;
}

.footer-link {
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--accent-gold) !important;
    padding-left: 5px;
    /* Slide right a bit on hover */
}

/* Page Headers */
.page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 120px 0;
    color: var(--light-cream);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(40, 40, 40, 0.5), rgba(126, 5, 5, 0.7));
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion Customization - Softer */
.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.accordion-button {
    background-color: #fff !important;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.5rem;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--light-cream);
    background-color: var(--primary-red) !important;
    box-shadow: 0 10px 20px rgba(126, 5, 5, 0.2) !important;
}

.accordion-button::after {
    filter: invert(0);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1) brightness(100);
}

.accordion-body {
    background-color: #fff;
    padding: 1.5rem;
    line-height: 1.8;
}

/* WhatsApp Floating Button - Bouncy */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--light-cream) !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* bouncy */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* Input Fields overrides for luxury forms */
.form-control {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}