/* Modified from verbatim: Extracted from agent-ag/webgl-card-distortion-demo/index.html <style> section */
:root {
    --bg-color: #08090d;
    --text-primary: #faf5f0;
    --text-secondary: #8e92a2;
    --accent: #d4af37; /* Gold accent */
    --font-outfit: 'Outfit', sans-serif;
    --font-playfair: 'Playfair Display', serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto; /* Allow natural scrolling for multiple cards */
    position: relative;
    padding-bottom: 80px;
}

/* Ambient background glow */
.glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, rgba(8, 9, 13, 0) 70%);
    top: 400px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* WebGL Canvas Container */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

header {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

header h1 {
    font-family: var(--font-playfair);
    font-size: 42px;
    font-weight: 400;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* Responsive grid layout for cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

/* Standalone Premium Card Containers (Different Sizes) */
.card-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    overflow: visible; /* Allow WebGL deformation to bleed outside */
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Card 1: Vertical */
.card-vertical {
    width: 310px;
    height: 470px;
}

/* Card 2: Horizontal */
.card-horizontal {
    width: 460px;
    height: 310px;
}

/* Card 3: Large */
.card-large {
    width: 360px;
    height: 530px;
}

.card-wrapper:hover {
    transform: translateY(-8px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: visible;
    background: transparent; /* WebGL handles card background to prevent straight borders */
}

/* curtains.js binding target plane */
.plane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hide raw images (they are used as WebGL textures) */
.plane img {
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Text and layout content inside the card */
.card-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 3;
    pointer-events: none;
}

.category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.title {
    font-family: var(--font-playfair);
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.description {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover animations for details */
.card-wrapper:hover .category {
    transform: translateY(-5px);
}

.card-wrapper:hover .title {
    transform: translateY(-5px);
}

.card-wrapper:hover .description {
    transform: translateY(0);
    opacity: 1;
}

footer {
    margin-top: 60px;
    z-index: 2;
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}
