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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #0A0A0A;
    color: #F5F0E1;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    font-size: clamp(0.875rem, 2vw, 1rem);
    background-image: linear-gradient(45deg, #1A1614 0%, #0A0A0A 25%, #1A1614 50%, #0A0A0A 75%, #1A1614 100%);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1A1614 0%, #0A0A0A 50%, #1A1614 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 900;
    color: #C9A94E;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(201, 169, 78, 0.3);
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: #E8D48B;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bubble-svg {
    position: absolute;
    opacity: 0.6;
    filter: blur(0.5px);
}

.bubble-svg:nth-child(1) {
    animation: bubble-rise 8s ease-in infinite;
    top: 80%;
    left: 20%;
    animation-delay: 0s;
}

.bubble-svg:nth-child(2) {
    animation: bubble-rise 10s ease-in infinite;
    top: 90%;
    left: 60%;
    animation-delay: 1s;
}

.bubble-svg:nth-child(3) {
    animation: bubble-rise 9s ease-in infinite;
    top: 85%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-120vh) translateX(20px) scale(0.8);
        opacity: 0;
    }
}

/* Cards Grid */
.cards-grid {
    width: 100%;
    padding: 3rem 2rem;
    background-color: #0A0A0A;
}

.grid-section {
    margin-bottom: 4rem;
}

.grid-section:nth-child(1) {
    --accent-color: #C9A94E;
}

.grid-section:nth-child(2) {
    --accent-color: #E8D48B;
}

.grid-section:nth-child(3) {
    --accent-color: #B8723A;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--accent-color, #C9A94E);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.01em;
    text-shadow: 0 0 15px rgba(201, 169, 78, 0.2);
}

.grid-section:nth-child(1) .section-heading {
    color: #E8D48B;
}

.grid-section:nth-child(2) .section-heading {
    color: #C9A94E;
}

.grid-section:nth-child(3) .section-heading {
    color: #F2E6C9;
}

/* Dynamic Grid Layout */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
    background: linear-gradient(90deg, #C9A94E 0%, transparent 50%, #C9A94E 100%);
    background-size: 100% 2px;
    background-repeat: repeat;
    padding: 2px;
}

.card {
    background: linear-gradient(135deg, #1A1614 0%, #0A0A0A 50%, #1A1614 100%);
    border: 1px solid rgba(201, 169, 78, 0.2);
    padding: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.grid-section:nth-child(1) .card {
    border-color: rgba(232, 212, 139, 0.2);
}

.grid-section:nth-child(2) .card {
    border-color: rgba(184, 114, 58, 0.2);
}

.grid-section:nth-child(3) .card {
    border-color: rgba(242, 230, 201, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(201, 169, 78, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card:hover {
    border-color: rgba(201, 169, 78, 0.4);
    box-shadow: 0 0 30px rgba(201, 169, 78, 0.15),
                inset 0 0 30px rgba(201, 169, 78, 0.05);
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: auto;
}

.card-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.card-small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #E8D48B;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.grid-section:nth-child(1) .card h3 {
    color: #F2E6C9;
}

.grid-section:nth-child(2) .card h3 {
    color: #E8D48B;
}

.grid-section:nth-child(3) .card h3 {
    color: #C9A94E;
}

.card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    color: #F5F0E1;
    line-height: 1.8;
    opacity: 0.9;
}

.card-small p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #C9A94E;
    letter-spacing: -0.01em;
}

.grid-section:nth-child(1) .card-small p {
    color: #B8723A;
}

.grid-section:nth-child(2) .card-small p {
    color: #F2E6C9;
}

.grid-section:nth-child(3) .card-small p {
    color: #8A7D5A;
}

.card-bubble {
    position: relative;
    z-index: 2;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(201, 169, 78, 0.2));
    animation: bubble-float 3s ease-in-out infinite;
}

.card:nth-child(odd) .card-bubble {
    animation-delay: 0s;
}

.card:nth-child(even) .card-bubble {
    animation-delay: 0.5s;
}

.card:nth-child(3n) .card-bubble {
    animation-delay: 1s;
}

@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        gap: 2rem;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: clamp(4rem, 12vw, 8rem);
    }

    .cards-grid {
        padding: 2rem 1rem;
    }

    .grid-section {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2px;
    }

    .card-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .card {
        padding: 1.5rem;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }

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

    .card {
        padding: 1.25rem;
        min-height: 220px;
    }

    .card-large {
        grid-column: span 1;
    }

    .section-heading {
        font-size: clamp(1.4rem, 3vw, 2rem);
    }
}

/* Animation for page load */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fade-in 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Gold divider lines between grid items - create visual separation */
.grid-section {
    background: repeating-linear-gradient(
        90deg,
        #C9A94E 0px,
        #C9A94E 2px,
        transparent 2px,
        transparent calc(100% / var(--grid-cols, 3) - 2px)
    );
    background-size: 100% 2px;
}

/* Micro-interactions on cards */
.card {
    cursor: pointer;
}

.card {
    backdrop-filter: blur(10px);
}

/* Typography refinements */
h1, h2, h3 {
    font-kerning: auto;
}

/* Ensure bubbles animate smoothly */
@supports (animation-timeline: scroll()) {
    .card-bubble {
        animation: bubble-float 3s ease-in-out infinite;
    }
}
