/* 
    DREAM DECOR — PREMIUM BRAND IDENTITY (RED & CHARCOAL)
    Aesthetic: Modern, Attractive, High-Contrast
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@100..900&family=Inter:wght@100..900&display=swap');

:root {
    --dd-red: #E31E24;
    --dd-dark: #231F20;
    --dd-cream: #FFFFFF;
    --dd-accent: #F2F2F2;
    --dd-text: #333333;
    --dd-light-text: #666;
    --dd-white: #FFFFFF;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.4s ease;
}

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

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

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transition: var(--transition-smooth);
}

.reveal.up { transform: translateY(60px); }
.reveal.down { transform: translateY(-60px); }
.reveal.left { transform: translateX(-60px); }
.reveal.right { transform: translateX(60px); }
.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── HERO SECTION ── */
.dd-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--dd-dark);
    overflow: hidden;
    padding: 0 5%;
}

.dd-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(35, 31, 32, 0.75), rgba(35, 31, 32, 0.75)),
                url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&q=80&w=2000') center/cover;
    transform: scale(1.1);
    animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.dd-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.dd-hero-tagline {
    font-family: 'Outfit', sans-serif;
    color: var(--dd-red);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
    animation: fadeSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dd-hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: var(--dd-white);
    line-height: 1;
    margin-bottom: 2rem;
    animation: fadeSlideIn 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dd-hero h1 span {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--dd-red);
}

.dd-hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin-bottom: 3rem;
    animation: fadeSlideIn 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dd-hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeSlideIn 1.2s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-dd-primary {
    padding: 1.2rem 2.8rem;
    background: var(--dd-red);
    color: var(--dd-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-dd-outline {
    padding: 1.2rem 2.8rem;
    background: transparent;
    color: var(--dd-white);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-dd-outline:hover {
    border-color: var(--dd-red);
    color: var(--dd-red);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── SECTION COMMONS ── */
.dd-section {
    padding: 8rem 5%;
}

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

.dd-section-header {
    margin-bottom: 5rem;
}

.dd-section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.dd-section-subtitle {
    color: var(--dd-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* ── PRODUCT CATEGORIES ── */
.dd-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.dd-category-card {
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.dd-category-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dd-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition-fast);
}

.dd-category-card:hover .dd-category-overlay {
    background: linear-gradient(transparent, rgba(227, 30, 36, 0.45), rgba(0,0,0,0.95));
}

.dd-category-content h3 {
    color: var(--dd-white);
    font-size: 1.35rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.dd-category-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.dd-category-card:hover .dd-category-content p {
    transform: translateY(0);
    opacity: 1;
}

/* ── FABRIC & TEXTURES ── */
.dd-fabric-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dd-fabric-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dd-sample {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.dd-sample::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--dd-red);
    opacity: 0;
    transition: var(--transition-fast);
}

.dd-sample:hover { transform: scale(1.05); z-index: 2; }
.dd-sample:hover::after { opacity: 1; }

.dd-fabric-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.dd-fabric-text p {
    font-size: 1.1rem;
    color: var(--dd-light-text);
    margin-bottom: 2rem;
}

/* ── FOAM & MATERIALS ── */
.dd-materials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.dd-material-item {
    padding: 3rem;
    background: var(--dd-white);
    border: 1px solid #eee;
    transition: var(--transition-fast);
}

.dd-material-item:hover {
    border-color: var(--dd-red);
    box-shadow: var(--shadow-premium);
}

.dd-m-icon {
    font-size: 2.5rem;
    color: var(--dd-red);
    margin-bottom: 2rem;
}

.dd-material-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dd-dark);
}

.dd-material-item p {
    font-size: 0.9rem;
    color: var(--dd-light-text);
}

/* ── CTA ── */
.dd-cta {
    text-align: center;
    background: var(--dd-dark);
    color: var(--dd-white);
    padding: 10rem 5%;
    position: relative;
    overflow: hidden;
}

.dd-cta::before {
    content: 'DREAM DECOR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(227, 30, 36, 0.05);
    pointer-events: none;
    letter-spacing: 30px;
    white-space: nowrap;
}

.dd-cta-content {
    position: relative;
    z-index: 2;
}

.dd-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 3rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .dd-hero { padding: 0 8%; text-align: center; justify-content: center; }
    .dd-hero h1 { font-size: 4rem; }
    .dd-hero-desc { margin: 0 auto 3rem; }
    .dd-hero-btns { justify-content: center; }
    .dd-fabric-visual { grid-template-columns: 1fr; }
    .dd-fabric-text { order: -1; text-align: center; }
}

@media (max-width: 1024px) {
    .dd-categories-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.25rem;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .dd-categories-grid::-webkit-scrollbar {
        height: 6px;
    }
    .dd-categories-grid::-webkit-scrollbar-track {
        background: rgba(35, 31, 32, 0.05);
        border-radius: 10px;
    }
    .dd-categories-grid::-webkit-scrollbar-thumb {
        background: var(--dd-red);
        border-radius: 10px;
    }
    
    .dd-category-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        height: 420px;
    }
    
    .dd-category-overlay {
        padding: 2rem;
    }
    
    .dd-category-content h3 {
        font-size: 1.6rem;
    }
    
    .dd-category-content p {
        transform: translateY(0);
        opacity: 1;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .dd-section { padding: 5rem 8%; }
    .dd-hero h1 { font-size: 3rem; }
}