@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700;900&display=swap');

/* --- Google Material Design 3 & Tailwind Tokens --- */
:root {
    --md-primary: #1a73e8;            /* Google Blue */
    --md-primary-hover: #1557b0;
    --md-primary-container: #d3e3fd;  /* Tonal container */
    --md-on-primary-container: #041e49;
    
    --md-surface: #ffffff;
    --md-surface-dim: #f8fafd;
    --md-surface-container: #f0f4f9;  /* Google Workspace Light Canvas */
    --md-surface-container-high: #e9eef6;
    
    --md-text-main: #1f1f1f;          /* Google Charcoal */
    --md-text-muted: #444746;         /* Secondary Text */
    --md-text-subtle: #74777f;
    
    --md-border: #dadce0;             /* Clean Google Border */
    --md-border-light: #e8eaed;
    
    --md-gold: #e37400;               /* Google Amber / Gold */
    --md-gold-hover: #b06000;
    
    --md-success: #137333;            /* Google Green */
    --md-error: #c5221f;

    /* Material 3 Elevations */
    --elevation-1: 0 1px 3px 0 rgba(60, 64, 67, 0.12), 0 1px 2px 0 rgba(60, 64, 67, 0.24);
    --elevation-2: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 1px 2px 0 rgba(60, 64, 67, 0.3);
    --elevation-3: 0 4px 12px 3px rgba(60, 64, 67, 0.15), 0 1px 3px 0 rgba(60, 64, 67, 0.3);
}

body {
    font-family: 'Roboto', 'Google Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--md-surface-container);
    color: var(--md-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 3D Visual Stacks */
.hero-stack img, .collection-stack img {
    position: absolute; width: 220px; border-radius: 16px;
    box-shadow: 0 16px 32px -8px rgba(60, 64, 67, 0.25), 0 4px 8px -2px rgba(60, 64, 67, 0.15);
    border: 3px solid #ffffff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.hero-stack img:nth-child(1) { transform: translateX(-120px) rotate(-7deg); z-index: 1; }
.hero-stack img:nth-child(2) { transform: translateX(-40px) rotate(-2deg); z-index: 2; }
.hero-stack img:nth-child(3) { transform: translateX(40px) rotate(3deg); z-index: 3; }
.hero-stack img:nth-child(4) { transform: translateX(120px) rotate(8deg); z-index: 4; }
.hero-stack:hover img:nth-child(1) { transform: translateX(-145px) rotate(-10deg); }
.hero-stack:hover img:nth-child(2) { transform: translateX(-50px) rotate(-3deg); }
.hero-stack:hover img:nth-child(3) { transform: translateX(50px) rotate(4deg); }
.hero-stack:hover img:nth-child(4) { transform: translateX(145px) rotate(11deg); }

.hero-grid-covers img {
    width: 100%; border-radius: 16px; box-shadow: var(--elevation-2);
    border: 2px solid #ffffff; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-grid-covers img:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--elevation-3); }


.mini-covers img { height: 100px; width: auto; border-radius: 6px; box-shadow: 0 6px 10px rgba(0,0,0,0.12); border: 2px solid #fff; margin-left: -18px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.mini-covers img:nth-child(1) { margin-left: 0; height: 115px; z-index: 5;}
.mini-covers img:nth-child(2) { z-index: 4; }
.mini-covers img:nth-child(3) { z-index: 3; }
.mini-covers img:nth-child(4) { z-index: 2; }
.mini-covers img:nth-child(5) { z-index: 1; }
.group:hover .mini-covers img { transform: translateY(-5px); }

/* ANIMATION (Smooth Scroll Fade-in) */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVE STACK ADJUSTMENTS */
@media (max-width: 768px) {
    .hero-stack img { width: 160px; }
    .hero-stack img:nth-child(1) { transform: translateX(-80px) rotate(-6deg); }
    .hero-stack img:nth-child(4) { transform: translateX(80px) rotate(7deg); }
    .hero-grid-covers img:nth-child(4), .hero-grid-covers img:nth-child(5) { display: none; }
}
