/* ============================================
   PressBreak Landing Page V2
   Full-Viewport Hero Experience
   ============================================ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden; /* Prevent scroll on desktop */
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ============================================
   Background Layer (z-index: 1)
   ============================================ */
.background-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.background-image {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    position: absolute;
    top: -5%;
    left: -5%;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.7) 0%,
            rgba(30, 41, 59, 0.75) 50%,
            rgba(15, 23, 42, 0.85) 100%
        );
    /* Blue tint overlay for cinematic look */
}

/* ============================================
   Hero Container (Main Layout)
   ============================================ */
.hero-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    z-index: 2;
}

/* ============================================
   PRESSBREAK Text (z-index: 2)
   ============================================ */
.pressbreak-text-container {
    position: absolute;
    top: calc(50% + 8vw); /* Position to overlap iPhone bottom */
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1300px;
    overflow: visible;
}

.pressbreak-text {
    font-family: "Special Gothic Expanded One", sans-serif;
    font-size: clamp(12rem, 22vw, 18rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    text-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.6),
        0 2px 10px rgba(0, 0, 0, 0.4);
    user-select: none;
    margin: 0 auto;
    mix-blend-mode: multiply;
    width: 100%;
}

/* ============================================
   iPhone Mockup (z-index: 3)
   ============================================ */
.iphone-mockup {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5vh; /* Slight offset up from center */
}

.iphone-device {
    width: clamp(400px, 50vw, 700px);
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    will-change: transform;
}

/* Snap-back animation for parallax effect */
.snap-back {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Tagline & CTA (z-index: 4)
   ============================================ */
.tagline-section {
    position: absolute;
    top: clamp(4rem, 12vh, 8rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1300px;
    width: 100%;
}

.tagline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.app-store-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.95;
}

.app-store-link:hover {
    transform: scale(1.05);
    opacity: 1;
}

.app-store-link img {
    display: block;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .pressbreak-text-container {
        top: calc(50% + 10vw); /* Position to overlap iPhone bottom on tablet */
    }
    
    .pressbreak-text {
        font-size: clamp(10rem, 20vw, 18rem);
    }
    
    .iphone-device {
        width: clamp(350px, 65vw, 600px);
    }
    
    .tagline-section {
        top: clamp(1.5rem, 6vh, 4rem);
    }
    
    .tagline {
        font-size: clamp(1.25rem, 2.5vw, 2rem);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    body {
        overflow-y: auto; /* Allow scroll on mobile */
        height: auto;
        min-height: 100vh;
    }
    
    .background-layer {
        position: absolute; /* Change from fixed for mobile scroll */
        min-height: 100vh;
    }
    
    .hero-container {
        min-height: 100vh;
        height: auto;
        padding: 2rem 1rem;
    }
    
    .pressbreak-text-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-left: 0;
        margin-top: -25vw; /* Pull text up to overlap iPhone bottom on mobile */
    }
    
    .pressbreak-text {
        font-size: clamp(8rem, 18vw, 14rem);
    }
    
    .iphone-device {
        width: 85vw;
        max-width: 500px;
    }
    
    .tagline-section {
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        margin-bottom: 2rem;
    }
    
    .tagline {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
    
    .app-store-link img {
        width: 140px;
        height: auto;
    }
    
    .iphone-mockup {
        margin-bottom: 0;
    }
}

/* Very Small Mobile (< 480px) */
@media (max-width: 479px) {
    .pressbreak-text {
        font-size: clamp(6rem, 16vw, 12rem);
        letter-spacing: -0.03em;
    }
    
    .iphone-device {
        width: 90vw;
    }
    
    .tagline {
        font-size: 1.125rem;
    }
}

/* Large Desktop (> 1300px) - Cap sizes to fit within max-width container */
@media (min-width: 1300px) {
    .pressbreak-text {
        font-size: 18rem; /* Fixed size that fits within 1300px container */
    }
    
    .iphone-device {
        width: 600px; /* Fixed size for large screens */
    }
    
    .pressbreak-text-container {
        top: calc(50% + 120px); /* Position to overlap iPhone bottom on large screens */
    }
}

/* ============================================
   Burger Menu (All Screen Sizes)
   ============================================ */
.burger-menu {
    display: flex; /* Always visible at all screen sizes */
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.burger-line {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Burger to X animation */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: block; /* Always in DOM at all screen sizes */
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

/* Menu Items */
.menu-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 6px;
    height: 6px;
    background: #F97316;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right;
}

.menu-item:hover::before {
    transform: translateY(-50%) scaleX(1);
    transform-origin: left;
}

.menu-item:hover {
    color: #F97316;
    transform: translateX(8px);
}

.menu-copyright {
    font-size: 0.875rem;
    opacity: 0.5;
    margin-top: auto;
    cursor: default;
}

.menu-copyright::before {
    display: none;
}

.menu-copyright:hover {
    color: #ffffff;
    transform: none;
}

/* Staggered fade-in animation */
.mobile-menu-overlay.active .menu-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .menu-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .menu-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* ============================================
   Accessibility
   ============================================ */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #F97316;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Focus state for burger menu */
.burger-menu:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .app-store-link {
        display: none;
    }
    
    body {
        overflow: visible;
    }
}
