/* Landing Page: Van Idee tot Bouwklaar Ontwerp */
/* Stijl gebaseerd op originele Imagine IT website */

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

:root {
    --vh: 1vh;
    --color-bg: radial-gradient(ellipse at center, rgba(15, 65, 90, 1) 0%, rgba(12, 50, 70, 1) 40%, rgba(8, 35, 50, 1) 70%, rgba(5, 25, 35, 1) 100%);
    --color-primary: #2d8bba;
    --color-primary-light: #41b8d5;
    --color-accent: #24a5de;
    --color-text: #ffffff;
    --color-text-soft: rgba(255, 255, 255, 0.7);
    --color-glass-bg: rgba(255, 255, 255, 0.1);
    --color-glass-border: rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
    background-color: #0a2d41;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--color-bg);
    background-attachment: fixed;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: hidden;
    line-height: 1.6;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* iOS Safari viewport fix */
@supports (-webkit-touch-callout: none) {
    body {
        height: -webkit-fill-available;
    }
}

/* Main scroll container */
.page-container {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide the HTML glow elements - using body background instead */
.overscroll-glow-top,
.overscroll-glow-bottom {
    display: none;
}

/* Overscroll glow elements */
.glow-top,
.glow-bottom {
    position: fixed;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.glow-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(10, 45, 65, 1) 0%, rgba(15, 65, 90, 0.8) 80px, transparent 100%);
}

.glow-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 45, 65, 1) 0%, rgba(15, 65, 90, 0.8) 80px, transparent 100%);
}

.glow-top.active,
.glow-bottom.active {
    opacity: 1;
}

@supports (-webkit-touch-callout: none) {
    .page-container {
        height: -webkit-fill-available;
    }
}

.serif {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* Logo in hero */
.hero-logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    height: 40px;
    width: auto;
    opacity: 1;
}

/* Section framework - Full page sections */
section {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8vw;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    --glow-color: rgba(255, 255, 255, 0.08);
}


@supports (-webkit-touch-callout: none) {
    section {
        min-height: -webkit-fill-available;
        height: -webkit-fill-available;
    }
}

.content {
    max-width: 980px;
    width: 100%;
}

/* Typography scale */
h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--color-text);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--color-text);
}

p {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.5;
    font-weight: 300;
    color: var(--color-text-soft);
}

/* Hero */
.hero {
    background: linear-gradient(180deg,
        rgba(47, 95, 152, 0.08) 0%,
        rgba(47, 95, 152, 0.12) 50%,
        rgba(47, 95, 152, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hero h1 {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

/* Reveal section */
.reveal-section {
    background: linear-gradient(0deg,
        rgba(47, 95, 152, 0.08) 0%,
        rgba(47, 95, 152, 0.12) 50%,
        rgba(47, 95, 152, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.reveal-section .content {
    max-width: 700px;
    text-align: center;
}

.reveal-accent {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 2.5rem auto 0;
    opacity: 0.6;
}

.reveal-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 300;
}

/* Process */
.process {
    background: radial-gradient(ellipse at center,
        rgba(47, 95, 152, 0.12) 0%,
        rgba(47, 95, 152, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: stretch;
}

.process .content {
    position: relative;
    max-width: 980px;
}

.process h2 {
    position: absolute;
    top: 20px;
    left: 0;
    color: var(--color-text);
    margin: 0;
}

.process-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    gap: 2rem;
    padding-top: 3rem;
}

.process-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-number {
    font-size: 3rem;
    font-weight: 200;
    color: var(--color-accent);
    line-height: 1;
}

.process-text h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: var(--color-text);
    line-height: 1;
}

.process-text p {
    font-size: 1.125rem;
    color: var(--color-text-soft);
}

/* Difference */
.difference {
    background: linear-gradient(135deg,
        rgba(47, 95, 152, 0.08) 0%,
        rgba(47, 95, 152, 0.12) 50%,
        rgba(47, 95, 152, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.difference .content {
    max-width: 800px;
    text-align: center;
}

.difference h2 {
    margin-bottom: 4rem;
}

.comparison {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.comp-item {
    text-align: center;
}

.comp-label {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    color: var(--color-text-soft);
}

.comp-item:last-child .comp-label {
    color: var(--color-accent);
}

.comp-item p {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-text);
    line-height: 1.4;
    font-weight: 300;
}

.comp-divider {
    width: 60px;
    height: 1px;
    background: var(--color-text-soft);
    margin: 0 auto;
    opacity: 0.3;
}

/* Quote */
.quote {
    background: linear-gradient(225deg,
        rgba(47, 95, 152, 0.08) 0%,
        rgba(47, 95, 152, 0.12) 50%,
        rgba(47, 95, 152, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.quote .content {
    max-width: 800px;
    text-align: center;
}

.quote-block {
    margin: 0;
    padding: 0;
    border: none;
}

.quote-text {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.35;
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* Result */
.result {
    background: linear-gradient(90deg,
        rgba(47, 95, 152, 0.08) 0%,
        rgba(47, 95, 152, 0.12) 50%,
        rgba(47, 95, 152, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.result .content {
    max-width: 800px;
    text-align: center;
}

.result-intro {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-soft);
    margin-bottom: 2rem;
    font-weight: 400;
}

.result-statement {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.15;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.result-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    font-weight: 400;
}

/* CTA */
.cta {
    background: linear-gradient(270deg,
        rgba(47, 95, 152, 0.08) 0%,
        rgba(47, 95, 152, 0.12) 50%,
        rgba(47, 95, 152, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.cta h2 {
    color: var(--color-text);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--color-text);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-button::after {
    content: '\2192';
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover::after {
    transform: translateX(4px);
}

.cta-logo {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100px;
    height: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.cta-logo:hover {
    opacity: 0.6;
}

/* Footer - integrated in last section */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 8vw;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-soft);
    background: transparent;
}

footer p {
    font-size: 0.875rem;
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary-light);
}

/* Scroll hint - zelfde als hoofdsite */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.scroll-hint:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) translateY(-2px);
}

.scroll-arrow-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem auto 0;
    display: block;
    transition: all 0.3s ease;
}

.scroll-hint:hover .scroll-arrow-icon {
    color: rgba(255, 255, 255, 1);
    transform: translateY(2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 0 6vw;
    }

    .process-item {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }

    .process-number {
        font-size: 1.75rem;
    }

    .process-list {
        gap: 2rem;
    }

    .comp-item {
        padding: 2rem;
    }

    .comparison {
        margin-top: 3rem;
    }

    footer {
        padding: 1rem 6vw;
    }

    .result-item {
        font-size: 1.25rem;
    }

    .result-grid {
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 0 5vw;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .process-list {
        gap: 1.5rem;
    }

    .process-item {
        grid-template-columns: 40px 1fr;
        gap: 0.75rem;
    }

    .process-number {
        font-size: 1.5rem;
    }

    .process-text h3 {
        font-size: 1.1rem;
    }

    .process-text p {
        font-size: 0.9rem;
    }

    .comparison {
        margin-top: 2rem;
    }

    .comp-item {
        padding: 1.5rem;
    }

    .comp-item p {
        font-size: 1.125rem;
    }

    .result-grid {
        margin-top: 1.5rem;
        gap: 1rem;
    }

    .result-item {
        font-size: 1.1rem;
        padding-left: 2rem;
    }

    .result-item::before {
        width: 6px;
        height: 6px;
    }

    .scroll-indicator {
        bottom: 2rem;
        height: 40px;
    }

    footer {
        padding: 0.75rem 5vw;
        font-size: 0.75rem;
    }
}

/* Intersection observer reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page exit fade */
body.fade-out .page-container {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Page enter fade (back navigation) */
body.fade-in .page-container {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}
