/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    color: #000;
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background: transparent;
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-link {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8), transparent);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: rgba(0, 0, 0, 1);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== NEW LANDING SECTION ===== */
.new-lander-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
}

.logo-reveal-container {
    position: fixed;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    will-change: transform;
    z-index: 5;
}

.logo-layer {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    opacity: 0;
    transform: scale(1);
    transition: none;
}

.logo-layer:first-child {
    opacity: 1;
    transform: scale(1);
}

.logo-text {
    position: fixed;
    bottom: 20vh;
    right: 15%;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #000;
    opacity: 1;
    transform: translateY(0);
    transition: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 0.9;
    z-index: 10;
}

.text-stern,
.text-blende {
    display: inline-block;
    transition: none;
}

.text-stern {
    clip-path: inset(0 100% 0 0);
}

.text-blende {
    clip-path: inset(0 100% 0 0);
}

.scroll-indicator-white {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    z-index: 3;
}

.scroll-indicator-white span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000;
}

.scroll-arrow-white {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #000, transparent);
    position: relative;
}

.scroll-arrow-white::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #000;
    border-radius: 50%;
    animation: scrollDotWhite 2s ease-in-out infinite;
}

@keyframes scrollDotWhite {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) translateY(20px);
        opacity: 1;
    }
}

/* ===== SECTION 2: TEXT ANIMATION ===== */
.text-animation-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
}

.text-animation-section .text-container {
    width: 90%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(0);
    will-change: opacity, transform;
}

.text-animation-section .hero-text {
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #000;
}

.text-animation-section .line {
    display: block;
    margin-bottom: 0.3em;
    white-space: nowrap;
    overflow: visible;
}

.word-cycler {
    display: inline-grid;
    vertical-align: bottom;
    height: 1.2em;
    overflow: visible;
    position: relative;
}

.word-cycler .word {
    grid-area: 1 / 1 / 2 / 2;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    transform-origin: bottom center;
    white-space: nowrap;
    will-change: transform, opacity;
}

.word-cycler .word.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.buzzword {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

#buzz-elsewhere {
    white-space: nowrap;
    display: inline-block;
    transform-origin: left center;
}

/* ===== SECTION 3: EMBLA CAROUSEL (NATIVE STYLE) ===== */
.carousel-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    padding: 0;
    padding-bottom: 250px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.section-title {
    display: none;
}

.embla {
    max-width: 90%;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.embla__viewport {
    overflow: visible;
    flex: 1;
}

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
    margin-left: -1rem;
}

.embla__slide {
    flex: 0 0 85%;
    min-width: 0;
    height: 100%;
    padding-left: 1rem;
}

.embla__slide__inner {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: calc(100% + 200px);
    display: flex;
    flex-direction: column;
}

.embla__slide__inner:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.embla__slide__img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
    display: block;
    background: #fafafa;
}

.embla__slide__content {
    padding: 2rem;
    background: #fff;
    flex-shrink: 0;
}

.embla__slide__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.embla__slide__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.embla__slide__details {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #888;
}

/* Embla Controls */
.embla__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.embla__buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.embla__button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: inset 0 0 0 0.2rem rgba(0, 0, 0, 0.6);
    width: 3.6rem;
    height: 3.6rem;
    z-index: 1;
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.embla__button:disabled {
    color: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 0 0.2rem rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.embla__button:not(:disabled):hover {
    color: #000;
    box-shadow: inset 0 0 0 0.2rem #000;
}

.embla__button__svg {
    width: 35%;
    height: 35%;
}

/* ===== SECTION 4: PHONE / SOCIAL ===== */
.phone-section-wrapper {
    min-height: 100vh;
    background: #ffffff;
    padding: 80px 0;
}

.phone-container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.phone-viewer {
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#phone-canvas {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    z-index: 10;
}

.phone-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px 60px 20px;
    background: #ffffff;
    color: #1a1a1a;
}

.phone-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.phone-content .description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 3rem;
    max-width: 500px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 500px;
}

.photo-box {
    aspect-ratio: 1;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.additional-content {
    margin-top: 4rem;
    max-width: 500px;
}

.additional-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.additional-content h2:first-child {
    margin-top: 0;
}

.additional-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

/* Parallax Effect */
@media (min-width: 969px) {
    .phone-viewer {
        position: sticky;
        top: 0;
        height: 100vh;
        align-self: start;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .embla {
        max-width: 95%;
    }
}

@media (max-width: 968px) {
    .embla__slide {
        flex: 0 0 90%;
    }
    
    .phone-container {
        grid-template-columns: 1fr;
        grid-template-rows: 50vh auto;
    }
}

@media (max-width: 768px) {
    .embla__slide {
        flex: 0 0 95%;
    }
    
    .embla__slide__content {
        padding: 1.5rem;
    }
    
    .embla__button {
        width: 3rem;
        height: 3rem;
    }
}

