/* ============================================
   quirk.bar - Zen Urban Glassmorphism
   Colors: #1a1a2e #4a90d9 #f5f0e8 #e8b84b #6c757d
   Fonts: Georgia, Inter
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1a1a2e;
    background-color: #1a1a2e;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: normal;
    line-height: 1.2;
}

/* Section Base */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-heading {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: #f5f0e8;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-description {
    text-align: center;
    color: #6c757d;
    font-size: 1.15rem;
    max-width: 600px;
    margin: -30px auto 50px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-description.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.section--hero {
    background: linear-gradient(160deg, #1a1a2e 0%, #2a2a4e 30%, #1a1a2e 60%, #252545 100%);
    align-items: center;
    text-align: center;
    padding-bottom: 140px;
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(74, 144, 217, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(232, 184, 75, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 20%, rgba(245, 240, 232, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

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

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    color: #f5f0e8;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.2s ease 0.3s forwards;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #6c757d;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease 0.6s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   GLASS CARD (Core)
   ============================================ */
.glass-card {
    position: relative;
    background: rgba(245, 240, 232, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 240, 232, 0.1);
    border-radius: 16px;
    padding: 40px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.glass-card__border {
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.glass-card:hover .glass-card__border {
    border-color: rgba(232, 184, 75, 0.4);
}

/* Animated border draw effect */
.glass-card[data-animate='border'] .glass-card__border {
    border: none;
    background: transparent;
}

.glass-card[data-animate='border']::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 2px;
    background: conic-gradient(from var(--border-angle, 0deg),
        transparent 0%,
        transparent 25%,
        rgba(232, 184, 75, 0.6) 50%,
        rgba(74, 144, 217, 0.6) 75%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card[data-animate='border']:hover::before,
.glass-card[data-animate='border'].border-active::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    to {
        --border-angle: 360deg;
    }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.glass-card__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.4rem;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.glass-card__text {
    color: rgba(245, 240, 232, 0.7);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

.glass-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: #e8b84b;
}

.glass-card__icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   HERO GLASS CARD
   ============================================ */
.glass-card--hero {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 44px;
    background: rgba(245, 240, 232, 0.05);
    border-color: rgba(74, 144, 217, 0.15);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease 0.9s forwards;
}

.glass-card--hero .glass-card__text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section--about {
    background: linear-gradient(180deg, #1a1a2e 0%, #1e1e3a 50%, #1a1a2e 100%);
    padding-bottom: 140px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card--feature {
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s ease;
}

.glass-card--feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card--feature:nth-child(2) {
    transition-delay: 0.15s;
}

.glass-card--feature:nth-child(3) {
    transition-delay: 0.3s;
}

/* ============================================
   SHOWCASE SECTION
   ============================================ */
.section--showcase {
    background: linear-gradient(180deg, #1a1a2e 0%, #222240 50%, #1a1a2e 100%);
    padding-bottom: 140px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.glass-card--showcase {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s ease;
}

.glass-card--showcase.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card--showcase:nth-child(2) {
    transition-delay: 0.15s;
}

.glass-card--showcase:nth-child(3) {
    transition-delay: 0.3s;
}

.glass-card--large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 590px;
}

.glass-card__overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, transparent 100%);
}

/* Window patterns (geometric city motifs) */
.window-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    z-index: 1;
}

.window-pattern--1 {
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 28px,
            rgba(232, 184, 75, 0.3) 28px,
            rgba(232, 184, 75, 0.3) 30px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 36px,
            rgba(74, 144, 217, 0.2) 36px,
            rgba(74, 144, 217, 0.2) 38px
        );
    background-size: 30px 38px;
}

.window-pattern--2 {
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 18px,
            rgba(74, 144, 217, 0.4) 18px,
            rgba(74, 144, 217, 0.4) 20px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(245, 240, 232, 0.15) 24px,
            rgba(245, 240, 232, 0.15) 26px
        );
    background-size: 20px 26px;
}

.window-pattern--3 {
    background:
        radial-gradient(circle 3px at 15px 15px, rgba(232, 184, 75, 0.4) 100%, transparent 100%),
        radial-gradient(circle 2px at 35px 35px, rgba(74, 144, 217, 0.3) 100%, transparent 100%);
    background-size: 50px 50px;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.section--philosophy {
    background: linear-gradient(180deg, #1a1a2e 0%, #1c1c36 50%, #1a1a2e 100%);
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card--philosophy {
    text-align: center;
    padding: 50px 36px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s ease;
}

.glass-card--philosophy.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card--philosophy:nth-child(2) {
    transition-delay: 0.15s;
}

.glass-card--philosophy:nth-child(3) {
    transition-delay: 0.3s;
}

.philosophy-number {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    color: rgba(232, 184, 75, 0.25);
    margin-bottom: 16px;
    line-height: 1;
}

.glass-card--philosophy .glass-card__title {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/* ============================================
   SKYLINE DIVIDERS
   ============================================ */
.skyline-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    color: rgba(74, 144, 217, 0.08);
    z-index: 1;
    pointer-events: none;
}

.skyline-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

#skyline-divider-2 {
    color: rgba(232, 184, 75, 0.06);
}

#skyline-divider-3 {
    color: rgba(245, 240, 232, 0.05);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    background: #1a1a2e;
    padding: 60px 40px 40px;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-border-animate {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74, 144, 217, 0.5) 25%,
        rgba(232, 184, 75, 0.5) 50%,
        rgba(74, 144, 217, 0.5) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: footerBorderSlide 6s linear infinite;
    opacity: 0.6;
}

@keyframes footerBorderSlide {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    color: #f5f0e8;
    display: block;
    margin-bottom: 6px;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8b84b;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #f5f0e8;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copy p {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .cards-grid,
    .philosophy-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .glass-card--large {
        grid-column: 1;
        grid-row: auto;
        min-height: 360px;
    }

    .section {
        padding: 80px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .glass-card--feature:nth-child(2),
    .glass-card--feature:nth-child(3),
    .glass-card--showcase:nth-child(2),
    .glass-card--showcase:nth-child(3),
    .glass-card--philosophy:nth-child(2),
    .glass-card--philosophy:nth-child(3) {
        transition-delay: 0s;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 16px;
    }

    .glass-card {
        padding: 28px;
    }

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