:root {
    --graphite: #313133ff;
    --white: #ffffffff;
    --ocean-deep: #0f62acff;
    --primary-scarlet: #e22027ff;
    --black: #000000ff;
    --soft-gray: #f8f9fa;
    --blue-premium: #f0f7ff;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-blue-premium {
    background-color: var(--ocean-deep);
    color: var(--white) !important;
}

/* All text in blue sections should be white by default */
.bg-blue-premium h2,
.bg-blue-premium h3,
.bg-blue-premium h4,
.bg-blue-premium h5,
.bg-blue-premium h6,
.bg-blue-premium p,
.bg-blue-premium .lead,
.bg-blue-premium .section-title {
    color: var(--white) !important;
}

/* Cards inside bg-blue-premium keep dark graphite text on white card background */
.bg-blue-premium .premium-card {
    background: var(--white);
}

.bg-blue-premium .premium-card h5,
.bg-blue-premium .premium-card h6,
.bg-blue-premium .premium-card p,
.bg-blue-premium .premium-card .text-muted {
    color: var(--graphite) !important;
}

/* text-ocean spans swap to scarlet for contrast on blue background */
.bg-blue-premium .text-ocean {
    color: var(--primary-scarlet) !important;
}

/* bg-graphite section text */
.bg-graphite {
    color: var(--white);
}

.bg-graphite h2,
.bg-graphite h3,
.bg-graphite h5,
.bg-graphite p {
    color: var(--white) !important;
}

/* bg-ocean (CTA sections) text */
.bg-ocean {
    color: var(--white);
}

.bg-ocean h2,
.bg-ocean h3,
.bg-ocean p {
    color: var(--white) !important;
}

.section-white {
    background-color: var(--white);
}

.navbar-brand img {
    max-height: 70px;
    width: auto;
}

@font-face {
    font-family: 'Elmaris';
    src: url('../assets/Elmaris-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Lexend', sans-serif;
    color: var(--graphite);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.section-title {
    font-family: 'Elmaris', 'Cormorant Garamond', serif;
    font-weight: normal;
    letter-spacing: 0.03em;
}

/* Typography Helpers */
.text-ocean {
    color: var(--ocean-deep);
}

.text-scarlet {
    color: var(--primary-scarlet);
}

.bg-ocean {
    background-color: var(--ocean-deep);
}

.bg-scarlet {
    background-color: var(--primary-scarlet);
}

.bg-graphite {
    background-color: var(--graphite);
}

/* Buttons */
.btn-primary-scarlet {
    background-color: var(--primary-scarlet);
    color: var(--white);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary-scarlet:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-ocean {
    border: 2px solid var(--ocean-deep);
    color: var(--ocean-deep);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-ocean:hover {
    background-color: var(--ocean-deep);
    color: var(--white);
    transform: translateY(-3px);
}

/* Navbar Customization */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.navbar.sticky-top {
    z-index: 1000;
}

.nav-link {
    font-weight: 600;
    color: var(--graphite) !important;
    margin: 0 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--ocean-deep);
    transition: var(--transition-smooth);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link.active {
    color: var(--ocean-deep) !important;
}

/* Dropdown on Hover */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition-smooth);
        border: none;
        box-shadow: var(--shadow-medium);
        border-top: 3px solid var(--ocean-deep);
    }
}

/* Hero Sections */
.hero-section {
    position: relative;
    padding: 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-section h1,
.hero-section h2,
.hero-section p,
.hero-section .lead {
    color: var(--white) !important;
}

.hero-media-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    border-radius: 0 !important;
    overflow: hidden;
    margin: 0 !important;
    border: none !important;
}

.hero-video-container {
    width: 100%;
    height: 88%;
    object-fit: cover;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Cards & Components */
.premium-card {
    background: var(--white);
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.premium-card img {
    transition: var(--transition-smooth);
}

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

/* Masonry/Grid Showcase */
.showcase-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

@media (max-width: 991px) {
    .showcase-grid {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .showcase-grid {
        column-count: 1;
    }
}

/* Product Cards */
.product-card {
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 3px solid transparent;
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-card:hover {
    border-color: var(--primary-scarlet);
    transform: scale(1.02);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 98, 172, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--white);
    color: var(--black);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    max-height: 65px;
    width: auto;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--primary-scarlet);
    padding-left: 5px;
}

footer h5 {
    color: var(--black);
    margin-bottom: 25px;
    position: relative;
    font-family: 'Elmaris', serif;
}

footer h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary-scarlet);
    bottom: -10px;
    left: 0;
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(10deg);
    color: #FFF;
}

/* Branded Social Colors on Hover */
.social-icons a.facebook:hover {
    background-color: #1877F2 !important;
}

.social-icons a.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

.social-icons a.youtube:hover {
    background-color: #FF0000 !important;
}

.social-icons a.whatsapp-icon:hover {
    background-color: #25D366 !important;
}

/* Animated Border for cards */
.animate-border {
    position: relative;
}

.animate-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--ocean-deep), var(--primary-scarlet), var(--ocean-deep));
    background-size: 400%;
    z-index: -1;
    border-radius: 22px;
    animation: border-rotate 5s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animate-border:hover::before {
    opacity: 1;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Highlighted Section */
.highlighted-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

/* 3D Building Image Scene */
.building-3d-scene {
    perspective: 900px;
    perspective-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.building-3d-card {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(12deg) rotateX(5deg);
    animation: building-float 4s ease-in-out infinite;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.building-3d-card .highlighted-img {
    filter: drop-shadow(20px 30px 40px rgba(15, 98, 172, 0.4)) drop-shadow(0 60px 80px rgba(0, 0, 0, 0.25));
    display: block;
    transition: filter 0.3s ease;
}

.building-3d-card:hover .highlighted-img {
    filter: drop-shadow(30px 40px 60px rgba(15, 98, 172, 0.55)) drop-shadow(0 80px 100px rgba(0, 0, 0, 0.3));
}

/* Shine overlay for 3D glass effect */
.building-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.04) 40%,
            transparent 60%);
    pointer-events: none;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* Floating animation */
@keyframes building-float {

    0%,
    100% {
        transform: rotateY(12deg) rotateX(5deg) translateY(0px);
    }

    50% {
        transform: rotateY(8deg) rotateX(3deg) translateY(-14px);
    }
}

.highlighted-img {
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.2));
}

/* Instagram Section */
.instagram-carousel {
    padding: 20px 10px;
}

.instagram-carousel .owl-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

.reel-card {
    flex: 0 0 280px;
    min-width: 280px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    text-decoration: none !important;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.reel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(226, 32, 39, 0.3);
    border-color: rgba(226, 32, 39, 0.4);
}

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

.reel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Glass Header */
.reel-glass-header {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.reel-glass-header .handle {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.reel-glass-header .live-tag {
    color: var(--primary-scarlet);
    background: rgba(226, 32, 39, 0.15);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    border: 1px solid rgba(226, 32, 39, 0.3);
}

/* Center Play Button */
.reel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: var(--transition-smooth);
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.reel-play-btn i {
    color: var(--white);
    font-size: 1.25rem;
    margin-left: 4px;
    /* offset slightly to align play triangle */
    transition: var(--transition-smooth);
}

.reel-card:hover .reel-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    background: var(--primary-scarlet);
    border-color: var(--primary-scarlet);
    box-shadow: 0 0 20px rgba(226, 32, 39, 0.6);
}

.reel-card:hover .reel-play-btn i {
    transform: scale(1.1);
}

/* Glass Footer */
.reel-glass-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    transition: var(--transition-smooth);
}

.reel-caption {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.reel-stats {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

.reel-stats span i {
    color: var(--primary-scarlet);
    transition: var(--transition-smooth);
}

.reel-card:hover .reel-stats span i {
    transform: scale(1.2);
}

.social-icons a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

/* Luxurious Tabs */
.luxurious-tabs .nav-link {
    color: var(--graphite) !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: var(--transition-smooth);
    background: transparent;
    text-align: left;
}

.luxurious-tabs .nav-link:hover {
    background: var(--soft-gray);
    color: var(--primary-scarlet) !important;
}

.luxurious-tabs .nav-link.active {
    background: transparent;
    color: var(--primary-scarlet) !important;
    border-left: 3px solid var(--primary-scarlet);
}

.premium-tab-content .tab-pane {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Luxurious Category Card */
.lux-category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lux-category-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.lux-category-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--graphite);
    margin: 0;
    transition: color 0.3s ease;
}

.lux-category-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
    border-color: var(--primary-scarlet);
}

.lux-category-card:hover img {
    transform: scale(1.1);
}

.lux-category-card:hover h4 {
    color: var(--primary-scarlet);
}

/* Floor Brands Card Enhancement */
.brand-card {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 30px 15px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.brand-card h5 {
    transition: color 0.3s ease;
}

.brand-card:hover h5 {
    color: var(--primary-scarlet) !important;
}

/* Premium Dropdown Styling */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 15px;
    animation: fadeInDown 0.3s ease forwards;
}

.navbar .dropdown-item {
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .dropdown-item:hover {
    background-color: var(--soft-gray);
    color: var(--primary-scarlet);
    padding-left: 30px;
}

.navbar .nav-link i {
    margin-right: 6px;
    font-size: 0.9em;
    color: var(--primary-scarlet);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Premium Typography */
.navbar-nav .nav-link {
    font-family: 'Lexend', sans-serif;


    font-size: 16px;
    font-weight: 500;
}

.navbar .dropdown-toggle::after {
    display: none;
    /* Hide default bootstrap caret */
}

/* Optimize AOS animations on mobile */
@media (max-width: 768px) {
    body [data-aos],
    body [data-aos].aos-animate,
    body [data-aos][data-aos],
    body [data-aos-delay],
    body [data-aos-duration] {
        transition-duration: 200ms !important;
        transition-delay: 0ms !important;
        animation-duration: 200ms !important;
        animation-delay: 0ms !important;
    }
}