/* ============================================================
   haskeller.net - Complete Design System
   ============================================================ */

/* Font Import References
   Fonts: Barlow Condensed, IBM Plex Mono, IBM Plex Sans, Bebas Neue
   All imported from Google Fonts via <link> tags in HTML
*/

/* Color Palette */
:root {
    --color-parchment: #F5EDE3;
    --color-vellum: #E8D5C0;
    --color-ochre: #D4B896;
    --color-cedar: #8B6F5E;
    --color-umber: #5C3D2E;
    --color-sienna: #3E2A1A;
    --color-espresso: #2C1A0E;
    --color-coffee: #1A0D06;
    --color-amber: #C49A6C;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-coffee);
    background: linear-gradient(to bottom, var(--color-parchment), var(--color-vellum));
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Grain Overlay Canvas */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.04;
}

/* Menu Button */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(44, 26, 14, 0.8);
    border: 1px solid var(--color-amber);
    color: var(--color-parchment);
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease-out;
}

.menu-button:hover {
    background: rgba(44, 26, 14, 0.95);
    transform: scale(1.1);
}

/* Radial Menu */
.radial-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-menu.hidden {
    pointer-events: none;
}

.menu-item {
    position: absolute;
    width: 120px;
    padding: 8px 12px;
    background: rgba(44, 26, 14, 0.9);
    border: 1px solid var(--color-amber);
    color: var(--color-parchment);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.08em;
}

.radial-menu.hidden .menu-item {
    pointer-events: none;
}

.radial-menu:not(.hidden) .menu-item {
    opacity: 1;
    pointer-events: auto;
}

.menu-item:nth-child(1) { transform: rotate(0deg) translateY(-140px) scale(1); }
.menu-item:nth-child(2) { transform: rotate(72deg) translateY(-140px) scale(1); }
.menu-item:nth-child(3) { transform: rotate(144deg) translateY(-140px) scale(1); }
.menu-item:nth-child(4) { transform: rotate(216deg) translateY(-140px) scale(1); }
.menu-item:nth-child(5) { transform: rotate(288deg) translateY(-140px) scale(1); }

.radial-menu.hidden .menu-item:nth-child(1) { transform: rotate(0deg) translateY(0) scale(0); }
.radial-menu.hidden .menu-item:nth-child(2) { transform: rotate(72deg) translateY(0) scale(0); }
.radial-menu.hidden .menu-item:nth-child(3) { transform: rotate(144deg) translateY(0) scale(0); }
.radial-menu.hidden .menu-item:nth-child(4) { transform: rotate(216deg) translateY(0) scale(0); }
.radial-menu.hidden .menu-item:nth-child(5) { transform: rotate(288deg) translateY(0) scale(0); }

.menu-item:hover {
    background: rgba(44, 26, 14, 1);
    border-color: var(--color-ochre);
    transform-origin: center;
}

/* Main Content */
main {
    position: relative;
    z-index: 2;
}

/* Diagonal Section Base */
.diagonal-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.diagonal-section:nth-child(odd) {
    background: var(--color-parchment);
    clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
}

.diagonal-section:nth-child(even) {
    background: var(--color-vellum);
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.section-inner {
    position: relative;
    padding: 80px 40px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flowing Curves SVG Background */
.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cpath d='M0,200 Q300,100 600,200 T1200,200' stroke='%23D4B896' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Cpath d='M0,150 Q300,50 600,150 T1200,150' stroke='%23D4B896' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Cpath d='M0,250 Q300,350 600,250 T1200,250' stroke='%23D4B896' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 100% 400px;
    pointer-events: none;
    opacity: 0.5;
}

/* Gutter Bands */
.gutter-band {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--color-umber) 0%, var(--color-cedar) 100%);
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
    opacity: 0.15;
}

/* Hero Trapezoid */
.hero-trapezoid {
    min-height: 110vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #F5EDE3 0%, #E8D5C0 100%);
}

.hero-content {
    text-align: center;
    animation: fadeInUp 800ms ease-out;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 96px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-espresso);
    margin-bottom: 20px;
    line-height: 1;
}

.hero-descriptor {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    color: var(--color-sienna);
    letter-spacing: 0.02em;
}

/* Feature Parallelogram */
.feature-parallelogram {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    animation: cardReveal 600ms 200ms ease-out forwards;
}

.feature-card:nth-of-type(2) {
    animation-delay: 320ms;
}

.feature-card:nth-of-type(3) {
    animation-delay: 440ms;
}

.card-lottie {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -30px;
    right: -30px;
    background: transparent;
}

.card-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--color-umber);
    margin-bottom: 16px;
    text-transform: capitalize;
}

.card-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-coffee);
}

/* Glassmorphic Cards */
.glassmorphic-card {
    background: rgba(244, 232, 216, 0.45);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(196, 154, 108, 0.35);
    border-radius: 2px;
    padding: 40px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(26, 13, 6, 0.12);
    transition: all 200ms ease-out;
}

.glassmorphic-card:hover {
    box-shadow: 0 8px 48px rgba(26, 13, 6, 0.18);
    border-color: rgba(196, 154, 108, 0.6);
    transform: translateY(-2px);
}

.glassmorphic-card:hover .card-lottie svg {
    animation-play-state: running;
}

/* Gallery Chevron */
.gallery-chevron {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    perspective: 1000px;
}

.gallery-image {
    flex: 1;
    position: relative;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    overflow: hidden;
    transition: all 300ms ease-out;
    opacity: 0;
    animation: galleryEnter 600ms ease-out forwards;
}

.gallery-image:nth-child(1) {
    animation-delay: 200ms;
}

.gallery-image:nth-child(2) {
    animation-delay: 320ms;
}

.gallery-image:nth-child(3) {
    animation-delay: 440ms;
}

.gallery-image:hover {
    transform: translateX(4px);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statement Band */
.statement-band {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-espresso) 0%, var(--color-umber) 100%);
}

.statement-container {
    position: relative;
    width: 100%;
    text-align: center;
    transform: skewY(-7deg);
}

.statement-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-parchment);
    line-height: 1;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: statementReveal 800ms 200ms ease-out forwards;
}

.statement-text::before,
.statement-text::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 1px;
    background: var(--color-amber);
    left: -25%;
}

.statement-text::before {
    top: -20px;
}

.statement-text::after {
    bottom: -20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* IntersectionObserver Reveal Triggers */
.diagonal-section.reveal {
    animation: sectionReveal 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionReveal {
    from {
        opacity: 0;
        clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
    }
    to {
        opacity: 1;
    }
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-espresso);
}

p {
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 56px;
    }

    .statement-text {
        font-size: 56px;
    }

    .section-inner {
        padding: 40px 20px;
    }

    .gallery-container {
        flex-direction: column;
        height: auto;
    }

    .gallery-image {
        height: 300px;
    }

    .menu-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .menu-item {
        width: 100px;
        font-size: 10px;
    }

    .menu-item:nth-child(1) { transform: rotate(0deg) translateY(-110px) scale(1); }
    .menu-item:nth-child(2) { transform: rotate(72deg) translateY(-110px) scale(1); }
    .menu-item:nth-child(3) { transform: rotate(144deg) translateY(-110px) scale(1); }
    .menu-item:nth-child(4) { transform: rotate(216deg) translateY(-110px) scale(1); }
    .menu-item:nth-child(5) { transform: rotate(288deg) translateY(-110px) scale(1); }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .statement-text {
        font-size: 36px;
    }

    .section-inner {
        padding: 30px 16px;
        min-height: 50vh;
    }

    .card-heading {
        font-size: 24px;
    }

    .card-text {
        font-size: 14px;
    }

    .glassmorphic-card {
        padding: 24px;
        max-width: 100%;
    }
}
