@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-gold: #C9A227;
    --gold-hover: #D4AF37;
    --royal-crimson: #4A020D;
    --deep-black: #111111;
    --ivory-white: #F8F6F1;
    --bg-white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-muted: #757575;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --border-color: rgba(201, 162, 39, 0.2);
}

[data-theme="dark"] {
    --bg-white: #1A0105;
    --deep-black: #FFFFFF;
    --royal-crimson: #C9A227;
    --ivory-white: #2C050B;
    --text-dark: #F5F5F5;
    --text-muted: #D0B0B5;
    --border-color: rgba(201, 162, 39, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-white);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    transition: var(--transition-smooth);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23C9A227' fill-opacity='0.02'%3E%3Cpath d='M50 0 L55 20 L75 25 L55 30 L50 50 L45 30 L25 25 L45 20 Z'/%3E%3Cpath d='M0 50 L5 70 L25 75 L5 80 L0 100 L-5 80 L-25 75 L-5 70 Z'/%3E%3Cpath d='M100 50 L105 70 L125 75 L105 80 L100 100 L95 80 L75 75 L95 70 Z'/%3E%3C/g%3E%3C/svg%3E");
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4A020D;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader-logo {
    font-family: var(--font-heading);
    color: #C9A227;
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin-bottom: 20px;
    animation: fadeInOut 2s infinite ease-in-out;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-top: 2px solid #C9A227;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    display: none;
}
@media (min-width: 992px) {
    .custom-cursor { display: block; }
}
.custom-cursor-hover {
    width: 40px;
    height: 40px;
    background-color: rgba(201, 162, 39, 0.1);
    border-color: var(--primary-gold);
}

/* Luxury Layout Elements */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}
.section-title span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-gold);
    letter-spacing: 4px;
}
.separator-gold {
    width: 150px;
    height: 16px;
    margin: 15px auto 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' width='100' height='10'%3E%3Cpath d='M0 5 L45 5 L50 0 L55 5 L100 5' stroke='%23C9A227' stroke-width='1' fill='none'/%3E%3Ccircle cx='50' cy='5' r='2' fill='%23C9A227'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Navigation & Header */
.navbar-luxury {
    background-color: rgba(74, 2, 13, 0.95);
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    padding: 15px 0;
    transition: var(--transition-smooth);
    z-index: 1000;
}
.navbar-luxury.scrolled {
    padding: 8px 0;
    background-color: rgba(74, 2, 13, 0.98);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}
.navbar-luxury .navbar-brand {
    font-family: var(--font-heading);
    color: var(--primary-gold) !important;
    font-size: 1.8rem;
    letter-spacing: 4px;
    font-weight: 500;
}
.navbar-luxury .nav-link {
    color: #FFFFFF !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    padding: 10px 15px !important;
    transition: var(--transition-smooth);
}
.navbar-luxury .nav-link:hover, 
.navbar-luxury .nav-link.active {
    color: var(--primary-gold) !important;
}

/* Mega Menu */
.mega-menu {
    position: static !important;
}
.mega-menu-dropdown {
    width: 100%;
    left: 0;
    right: 0;
    background-color: rgba(74, 2, 13, 0.98) !important;
    border: none;
    border-bottom: 3px solid var(--primary-gold);
    border-radius: 0;
    padding: 30px 0;
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-item:hover .mega-menu-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.mega-menu-column h6 {
    color: var(--primary-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}
.mega-menu-column a {
    color: #CCCCCC;
    display: block;
    font-size: 0.85rem;
    padding: 6px 0;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.mega-menu-column a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

/* Luxury Buttons */
.btn-luxury-outline {
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    padding: 12px 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-luxury-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
    z-index: -1;
}
.btn-luxury-outline:hover {
    color: #4A020D !important;
}
.btn-luxury-outline:hover::before {
    left: 0;
}

.btn-luxury-solid {
    background: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    color: #4A020D;
    padding: 12px 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    border-radius: 0;
}
.btn-luxury-solid:hover {
    background: transparent;
    color: var(--primary-gold);
}

/* Hero Section */
.hero-slider-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(74, 2, 13, 0.85) 0%, rgba(74, 2, 13, 0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 5;
    color: #FFFFFF;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary-gold);
}
.hero-title {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 20px 0;
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
}

/* Floating Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #FFFFFF;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition-smooth);
}
.scroll-indicator:hover {
    opacity: 1;
    color: var(--primary-gold);
}
.scroll-indicator i {
    display: block;
    text-align: center;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Luxury Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-bottom: 30px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 2, 13, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition-smooth);
}
.category-card:hover .category-img {
    transform: scale(1.05);
}
.category-card:hover .category-overlay {
    background: rgba(74, 2, 13, 0.65);
}
.category-title {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.category-subtitle {
    color: var(--primary-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Product Cards */
.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 2, 13, 0.15);
}
.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-gold);
    color: #4A020D;
    font-size: 0.7rem;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}
.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(74, 2, 13, 0.85);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    z-index: 12;
}
.product-card:hover .product-actions {
    bottom: 0;
}
.product-action-btn {
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 50%;
    color: var(--royal-crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.product-action-btn:hover {
    background-color: var(--primary-gold);
    color: #FFFFFF;
}
.product-info {
    padding: 20px;
    text-align: center;
}
.product-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 400;
}
.product-name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.product-name a:hover {
    color: var(--primary-gold);
}
.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.product-price {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Glassmorphism Section */
.glass-section {
    background: rgba(74, 2, 13, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 39, 0.2);
    padding: 40px;
    border-radius: 4px;
}

/* Craftsmanship / Parallax Section */
.parallax-banner {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}
.parallax-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 2, 13, 0.75);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: var(--primary-gold);
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
}
.timeline-item {
    margin-bottom: 50px;
    position: relative;
}
.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-gold);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
    z-index: 10;
}
@media (max-width: 768px) {
    .timeline-dot {
        left: 20px;
    }
}
.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: var(--ivory-white);
    border: 1px solid var(--border-color);
    position: relative;
}
.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}
@media (max-width: 768px) {
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
}

/* Size Guide & Popup Modals */
.modal-luxury .modal-content {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-gold);
    border-radius: 0;
}
.modal-luxury .modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--royal-crimson);
    color: #FFFFFF;
}
.modal-luxury .modal-header .btn-close {
    filter: invert(1);
}
.modal-luxury .modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Floating CTA / Quick contact */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btn-floating {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}
.btn-floating:hover {
    transform: scale(1.1);
    color: #FFFFFF;
}
.btn-floating-whatsapp {
    background-color: #25D366;
}
.btn-floating-call {
    background-color: var(--primary-gold);
}
.btn-floating-top {
    background-color: var(--royal-crimson);
    border: 1px solid var(--primary-gold);
    display: none;
}

/* Footer */
footer {
    background-color: #2C050B;
    color: #E2C0C5;
    padding: 80px 0 30px;
    border-top: 3px solid var(--primary-gold);
    font-size: 0.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23C9A227' fill-opacity='0.015'%3E%3Ccircle cx='60' cy='60' r='40' stroke='%23C9A227' stroke-width='1' fill='none'/%3E%3Ccircle cx='60' cy='60' r='20' stroke='%23C9A227' stroke-width='1' fill='none'/%3E%3C/g%3E%3C/svg%3E");
}
footer h5 {
    color: #FFFFFF;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}
footer a {
    color: #E2C0C5;
    text-decoration: none;
    transition: var(--transition-smooth);
}
footer a:hover {
    color: var(--primary-gold);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 50px;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: var(--ivory-white);
    border: 1px solid var(--border-color);
    padding: 40px;
    text-align: center;
    position: relative;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--primary-gold);
}
.star-rating {
    color: var(--primary-gold);
    margin-bottom: 15px;
}

/* Blog Cards */
.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
}
.blog-card:hover {
    box-shadow: 0 10px 30px rgba(74, 2, 13, 0.05);
}
.blog-img-wrap {
    overflow: hidden;
}
.blog-img-wrap img {
    transition: var(--transition-smooth);
}
.blog-card:hover .blog-img-wrap img {
    transform: scale(1.05);
}

/* Video Background */
.video-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.video-bg-wrap video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Dark mode switches */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}
.theme-switch input {
    display:none;
}
.slider-toggle {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}
.slider-toggle:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}
input:checked + .slider-toggle {
    background-color: var(--primary-gold);
}
input:checked + .slider-toggle:before {
    transform: translateX(26px);
}
