:root {
    --bg-color: #050505;
    --text-color: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent-color: #D4AF37;
    /* Elegant Gold */
    --accent-hover: #b59228;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.02);
    --font-heading: 'Amiri', serif;
    --font-body: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.9)), url('../luxury-bg-8k.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3%;
}

.logo img {
    height: 45px;
    filter: invert(1) brightness(1.5);
    transition: transform 0.3s;
}

.navbar.scrolled .logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.cart-trigger {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cart-trigger:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.cart-count {
    background-color: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    background-color: transparent;
}

.hero-logo-large {
    height: 180px;
    margin-bottom: 2rem;
    filter: invert(1) brightness(1.5);
    opacity: 0.8;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    background: linear-gradient(to bottom, #FFFFFF, #A0A0A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    animation: fadeUp 1s ease-out 0.4s both;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    animation: fadeUp 1s ease-out 0.6s both;
}

.btn-primary:hover {
    background-color: var(--text-color);
    color: #000;
    border-color: var(--text-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 2s ease-out 1s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: block;
    position: relative;
}

.wheel {
    width: 2px;
    height: 4px;
    background: #fff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* Philosophy Section */
.philosophy {
    padding: 150px 0;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
}

.philosophy-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.philosophy-text {
    max-width: 800px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.philosophy-text p {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Collection Section */
.collection {
    padding: 120px 0;
}

.collection-header {
    text-align: center;
    margin-bottom: 80px;
}

.collection-header p {
    margin-top: 20px;
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: all 0.5s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-10px);
}

.product-img-wrapper {
    position: relative;
    height: 380px;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

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

/* Top Bar Marquee */
.top-bar {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 700;
    padding: 8px 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    z-index: 1001;
    position: relative;
}

.home-body {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(350px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.product-overlay {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: bottom 0.4s ease;
    padding-bottom: 20px;
    gap: 10px;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.btn-add-cart {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 80%;
}

.btn-view-details {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
    backdrop-filter: blur(5px);
}

.btn-view-details:hover {
    background-color: #fff;
    color: #000;
}

.btn-add-cart:hover {
    background-color: var(--accent-hover);
}

/* Modal Details */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 1000px;
    background: #0a0a0a;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    z-index: 2001;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.product-modal.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #fff;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.modal-image {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 0 10px 10px 0;
}

.modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-details {
    padding: 40px 40px 40px 20px;
}

#modal-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.modal-feeling {
    font-size: 1.2rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
    border-right: 3px solid var(--accent-color);
    padding-right: 15px;
}

.pyramid-wrapper {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pyramid-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pyramid-list {
    list-style: none;
}

.pyramid-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.pyramid-head {
    color: var(--accent-color);
    font-weight: 700;
    display: inline-block;
    width: 120px;
}

.footer {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 60px;
    filter: invert(1) brightness(1.5);
    opacity: 0.6;
    margin-bottom: 20px;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.cart-sidebar.active {
    left: 0;
}

.cart-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #fff;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.cart-item-info p {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    width: fit-content;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.item-remove {
    background: transparent;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 10px;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: var(--accent-hover);
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        left: -100%;
    }

    .section-title {
        font-size: 2.2rem;
    }
}