/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    /* Prevent horizontal overflow from animations */
}

/* Hero background removed - using global body background */

.hero .container {
    position: relative;
    z-index: 2;
}

/* Hero Content Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    width: 100%;
}

/* Hero Text */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin-bottom: var(--spacing-md);
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(255, 107, 53, 0.4));
}

/* Hero Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Phone Container */
.phone-container {
    position: relative;
    max-width: 300px;
    width: 100%;
    will-change: transform;
    margin: 0 auto;
    z-index: 10;
    /* Ensure it stays above other elements */
}

/* Titanium iPhone 15 Pro Mockup */
.iphone-15-pro {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background: #000;
    border-radius: 55px;
    /* Titanium Frame Gradient */
    box-shadow:
        inset 0 0 0 2px #555555,
        /* Inner bezel edge */
        inset 0 0 0 6px #2a2a2a,
        /* Frame inner */
        0 0 0 2px #4a4a4a,
        /* Frame outer edge */
        0 0 0 5px #252525,
        /* Frame body */
        0 20px 50px rgba(0, 0, 0, 0.6),
        /* Deep drop shadow */
        0 50px 100px rgba(0, 0, 0, 0.3);
    /* Ambient shadow */
    padding: 14px;
    box-sizing: border-box;
}

/* Screen Bezel */
.iphone-bezel {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    border: 3px solid #000;
    /* Black border between screen and frame */
    box-sizing: border-box;
    z-index: 2;
}

/* Screen Content */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screen Reflection/Glare */
.iphone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Camera Lens inside Dynamic Island */
.dynamic-island::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
}

/* Side Buttons - Strictly Positioned */
.iphone-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Button Common Styles */
.btn-volume-up,
.btn-volume-down,
.btn-silent,
.btn-power {
    position: absolute;
    background: #252525;
    /* Match frame color */
    border-radius: 2px;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.5);
}

/* Left Side Buttons */
.btn-silent {
    left: -7px;
    top: 100px;
    width: 3px;
    height: 30px;
    border-radius: 4px 0 0 4px;
}

.btn-volume-up {
    left: -7px;
    top: 150px;
    width: 3px;
    height: 60px;
    border-radius: 4px 0 0 4px;
}

.btn-volume-down {
    left: -7px;
    top: 225px;
    width: 3px;
    height: 60px;
    border-radius: 4px 0 0 4px;
}

/* Right Side Button */
.btn-power {
    right: -7px;
    top: 180px;
    width: 3px;
    height: 90px;
    border-radius: 0 4px 4px 0;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.5);
}

/* Floating Animation */
.phone-container.floating {
    animation: floating 6s ease-in-out infinite;
}

/* App Buttons Container */
.hero .app-buttons {
    margin-top: var(--spacing-md);
}

/* Parallax Effect (will be controlled by JS) */
.hero-text.parallax {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

.hero-mockup.parallax {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

/* Gradient Glow Effect on Hover for Buttons */
.hero .btn-app-store:hover,
.hero .btn-google-play:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .hero-mockup {
        display: none;
    }

    .hero-text {
        align-items: center;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
        filter: drop-shadow(0 6px 16px rgba(255, 107, 53, 0.3));
    }

    .subtitle {
        max-width: 100%;
    }

    .app-buttons {
        justify-content: center;
    }

    .phone-container {
        max-width: 240px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
        filter: drop-shadow(0 6px 16px rgba(255, 107, 53, 0.3));
    }

    .phone-container {
        max-width: 200px;
    }

    .app-buttons {
        flex-direction: row;
        gap: var(--spacing-xs);
        width: 100%;
        justify-content: center;
    }

    .btn-app-store,
    .btn-google-play {
        min-width: 150px;
        height: 48px;
        padding: 6px 12px;
    }

    .store-icon {
        width: 26px;
        height: 26px;
    }

    .store-subtitle {
        font-size: 9px;
    }

    .store-title {
        font-size: 15px;
    }
}

/* Extra small mobile */
@media (max-width: 375px) {
    .hero-logo {
        width: 90px;
        height: 90px;
        filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
    }

    .app-buttons {
        flex-direction: row;
        gap: var(--spacing-xs);
        width: 100%;
        justify-content: center;
    }

    .btn-app-store,
    .btn-google-play {
        flex: 1;
        max-width: 160px;
        height: 56px;
        padding: 10px 14px;
        justify-content: center;
    }

    .store-icon {
        width: 32px;
        height: 32px;
    }

    .store-subtitle {
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    .store-title {
        font-size: 14px;
        font-weight: 700;
    }
}

/* Extra small screens - Stack buttons vertically */
@media (max-width: 380px) {
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-app-store,
    .btn-google-play {
        width: 100%;
        max-width: 200px;
        height: 60px;
        padding: 12px 16px;
    }

    .store-icon {
        width: 36px;
        height: 36px;
    }

    .store-subtitle {
        font-size: 9px;
    }

    .store-title {
        font-size: 16px;
    }
}