:root {
    --primary: #000000;
    --accent: #C5A059;
    --white: #ffffff;
    --text-dark: #111111;
    --text-light: #666666;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --header-height: 100px;
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Arapey', serif;
    font-weight: 400;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.preloader-logo {
    height: 80px; /* Reduced from 100px for better fit */
    max-width: 80%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    animation: pulseLogo 2s infinite ease-in-out;
}

@media (max-width: 480px) {
    .preloader-logo {
        height: 50px;
    }
}

@keyframes pulseLogo {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Sticky Header - Symmetrical Layout */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

header.main-header.scrolled {
    height: 80px;
    background: url('assets/ivory_header_bg.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-left ul, .nav-right ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-left { justify-self: start; }
.nav-right { justify-self: end; }

.nav-left a, .nav-right a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

header.main-header.scrolled .nav-left a,
header.main-header.scrolled .nav-right a {
    color: var(--primary);
}

.nav-left a:hover, .nav-right a:hover {
    color: var(--accent);
}

.header-logo {
    justify-self: center;
}

.logo-img {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

header.main-header.scrolled .logo-img {
    filter: brightness(0);
    height: 50px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-subtext {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-5px);
}

/* Sections */
section {
    padding: 120px 0;
}

.section-tag {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 15px;
}

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

.section-title.centered {
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.about-text-col p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: justify;
}

.main-story-img {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 2s ease;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.img-accent-border {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent);
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.stat-num {
    display: block;
    font-family: 'Arapey', serif;
    font-size: 3rem;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Gallery Exclusive Styles */
.gallery-hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

.gallery-hero h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 10px 25px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.marble-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.gallery-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .item-info {
    transform: translateY(0);
    opacity: 1;
}

.item-info h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.item-info span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

/* Collections */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.collection-card {
    background: #fdfdfd;
    padding: 15px;
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.card-img {
    height: 400px;
    overflow: hidden;
    margin-bottom: 25px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
}

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

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-text {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Stone Showcase Supreme */
.stone-showcase-supreme {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.showcase-slider-wrapper {
    position: relative;
    width: 100%;
    height: 80vh;
}

.showcase-container {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: all 0.5s ease;
}

.showcase-container::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    scroll-snap-align: center;
    overflow: hidden;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 3s ease;
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
}

.showcase-title {
    font-family: 'Arapey', serif;
    font-size: 6rem;
    color: var(--white);
    line-height: 1;
    letter-spacing: -2px;
    opacity: 0.9;
    text-shadow: 0 5px 40px rgba(0,0,0,0.8);
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 80px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: var(--white);
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 25px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Social Media - Left Side */
.sticky-social {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.sticky-social a {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.sticky-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateX(8px);
}

/* Mobile Menu Trigger */
.mobile-menu-trigger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-trigger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

header.scrolled .mobile-menu-trigger span {
    background: var(--primary);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 2000;
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-overlay.active {
    transform: translateY(0);
}

.mobile-overlay-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    overflow: hidden;
    max-height: 40px;
}

.mobile-overlay-logo img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
    object-position: top;
}

.overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav a {
    font-family: 'Arapey', serif;
    font-size: 3rem;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

/* Performance Optimizations */
.reveal {
    will-change: transform, opacity;
}

/* Responsive */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    .hero-title { font-size: 4rem; }
    .hero-subtext { font-size: 1.1rem; max-width: 700px; }
    .section-title { font-size: 2.8rem; }
    .collections-grid { gap: 25px; }
    .card-img { height: 340px; }
    .showcase-title { font-size: 5rem; }
    .header-inner { padding: 0 30px; }
    .nav-left ul, .nav-right ul { gap: 30px; }
    .sticky-social { left: 20px; }
}

@media (max-width: 992px) {
    .collections-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 80px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .sticky-social { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 25px; }
    header.main-header { height: 80px; }
    .header-inner { 
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }
    .nav-left, .nav-right { display: none; }
    .mobile-menu-trigger { display: flex; }
    .mobile-overlay { display: flex; }
    .header-logo { transform: translateX(-50%) scale(0.85); position: absolute; left: 50%; }
    .hero-title { font-size: 2.5rem; line-height: 1.2; }
    .hero-subtext { font-size: 1rem; }
    .section-title { font-size: 2.2rem; }
    .collections-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-img { height: 350px; }
    .img-accent-border { top: 15px; left: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
    .showcase-title { font-size: 2.5rem; }
    .marble-gallery { grid-template-columns: 1fr; gap: 15px; }
    .gallery-filter { 
        justify-content: flex-start; 
        overflow-x: auto; 
        padding-bottom: 20px; 
        gap: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gallery-filter::-webkit-scrollbar { display: none; }
    .filter-btn { white-space: nowrap; font-size: 0.7rem; }
    .gallery-hero h1 { font-size: 1.5rem; }
    .gallery-item { height: 350px; }
    .contact-grid-main { grid-template-columns: 1fr; gap: 40px; }
}
