/* Import Geist fonts */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400&display=swap');

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

/* Root Variables */
:root {
    --bg-primary: #070407;
    --text-primary: #f1f0f1;   /* Grey/50 */
    --text-secondary: #a3a1a3; /* Grey/300 */
    --text-accent: #fbcdfb;    /* Pink/Primary */
    --border-color: #353435;   /* Grey/800 */
    --bg-dark: #111111;        /* Grey/900 */

    --font-sans: 'Geist', sans-serif;
    --font-mono: 'Geist Mono', monospace;

    --content-width: min(912px, calc(100% - 32px));
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Background Pattern */
.dot-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: radial-gradient(circle, rgba(254, 235, 253, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Header / Menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 100;
    transition: all 0.3s ease;
    margin: 0;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 22, 24, 0.72);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
}

.menu.scrolled::before {
    opacity: 1;
}

.menu-content {
    max-width: var(--content-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 0;
}

.photo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-name {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.08px;
    color: var(--text-primary);
}

.linkedin-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    text-decoration: none;
    height: 40px;
}

.linkedin-btn span {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.182px;
    color: var(--text-accent);
}

/* Hero Section */
.hero-section {
    position: relative;
    max-width: var(--content-width);
    padding-top: 188px; /* Use padding instead of margin to prevent collapse and set distance from top */
    margin: 0 auto;
    z-index: 1;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 33px;
    line-height: 40px;
    letter-spacing: -0.99px;
    color: var(--text-secondary);
}

.greeting-with-emoji {
    display: flex;
    align-items: center;
    gap: 12px;
}

.greeting-label {
    margin: 0;
    white-space: nowrap;
    color: var(--text-primary);
}

.greeting-expandable {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
}

@media (hover: hover) and (min-width: 1025px) {
    .hero-greeting:hover .greeting-expandable {
        background: #1E1D1E;
        border-color: rgba(251, 205, 251, 0.15);
        max-width: 600px;
        opacity: 1;
    }
}

.greeting-expanded {
    margin: 0;
    white-space: nowrap;
    font-size: 19px;
    line-height: 28px;
    letter-spacing: -0.38px;
    color: var(--text-secondary);
}

.emoji {
    width: 32px;
    height: 32px;
}

.hero-title {
    font-size: 64px;
    line-height: 72px;
    letter-spacing: -1.92px;
    color: var(--text-primary);
}

.statement {
    color: rgba(241, 240, 241, 0.5);
    transition: color 0.4s ease;
}

.statement.active {
    color: var(--text-primary);
}

.statement p {
    margin: 0;
}

/* Case Studies */
.case-studies {
    position: relative;
    max-width: var(--content-width);
    margin: 164px auto 0; /* Gap from Hero */
    display: flex;
    flex-direction: column;
    gap: 124px; /* Gap between cases */
    z-index: 1;
    padding-bottom: 164px; /* Space before footer */
}

.case {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.case-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-headline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company {
    display: flex;
    align-items: center;
    gap: 11px;
}

.company-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo.nda-bg {
    background-color: var(--bg-dark);
}

.company-logo.nda-bg img {
    width: 24px;
    height: 24px;
}

.company-name {
    font-size: 19px;
    line-height: 28px;
    letter-spacing: -0.38px;
    color: var(--text-primary);
}

.case-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.84px;
    color: var(--text-primary);
    font-weight: 400;
}

.divider {
    height: 1px;
    width: 100%;
    background-color: rgba(251, 205, 251, 0.15);
}

/* Images Grid */
.case-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-images.plarium-grid {
    align-items: flex-start;
}

.case-images.rork-grid {
    align-items: flex-end;
}

.case-images.nda-grid {
    align-items: flex-start;
}

.image-full {
    width: 100%;
    aspect-ratio: 912 / 608;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(251, 205, 251, 0.08);
}

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

.image-full.contain img {
    object-fit: contain;
}

.image-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.image-half {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(251, 205, 251, 0.08);
}

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

/* Case Details */
.case-details-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.case-description-row {
    display: flex;
    gap: 16px;
}

.description-text {
    flex: 1;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.08px;
    color: var(--text-primary);
}

.details-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    display: flex;
    gap: 12px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.08px;
}

.detail-label {
    width: 148px;
    text-align: right;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    flex: 1;
    color: var(--text-primary);
}

.metrics-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-value {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.84px;
    color: var(--text-primary);
}

.metric-label {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.08px;
    color: var(--text-primary);
    white-space: pre-wrap;
    max-width: 210px;
}

.metric-note {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.065px;
    color: var(--text-secondary);
}

/* Read Case Btn */
.read-case-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: fit-content;
    height: auto;
    padding: 12px 20px;
    align-self: center;
    background:
        linear-gradient(rgba(251, 205, 251, 0.08), rgba(251, 205, 251, 0.08)),
        var(--bg-primary);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.224px;
    color: var(--text-accent);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.read-case-btn:hover {
    background:
        linear-gradient(rgba(251, 205, 251, 0.15), rgba(251, 205, 251, 0.15)),
        var(--bg-primary);
}

/* Footer */
.footer {
    position: relative;
    width: var(--content-width);
    margin: 0 auto;
    padding: 48px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    z-index: 10;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 258px;
}

.footer-title {
    font-size: 33px;
    line-height: 40px;
    letter-spacing: -0.99px;
    color: var(--text-primary);
    font-weight: 400;
}

.footer-email {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.224px;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-email:hover {
    opacity: 0.8;
}

.footer-linkedin {
    padding: 13px 12px 13px 16px;
}

/* Responsive */
@media (max-width: 767px) {
    :root {
        --content-width: min(343px, calc(100% - 32px));
    }

    .hero-section {
        padding-top: 144px;
    }

    .hero-headline {
        gap: 6px;
    }

    .hero-greeting {
        font-size: 28px;
        line-height: 36px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }

    .greeting-expandable {
        padding: 6px 12px;
    }

    .greeting-expanded {
        font-size: 16px;
        line-height: 24px;
    }

    .hero-greeting.active .greeting-expandable {
        background: #1E1D1E;
        border-color: rgba(251, 205, 251, 0.15);
        max-width: 400px;
        opacity: 1;
    }
    
    .hero-title {
        font-size: 40px;
        line-height: 50px;
        letter-spacing: -1.2px;
    }

    .case-studies {
        margin-top: 64px;
        gap: 96px;
        padding-bottom: 140px;
    }

    .case-title {
        font-size: 23px;
        line-height: 32px;
        letter-spacing: -0.69px;
    }

    .case-description-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: auto;
        text-align: left;
        min-width: 148px;
    }

    .metrics-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .metric-label {
        max-width: none;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-bottom: 32px;
        width: 343px;
    }

    .footer-left {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
}