/* Custom Styles for Estai Landing Page */

/* Hero Section Background */
#hero {
    position: relative;
}

#hero .absolute.inset-0 img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Ensure phone mockup is above overlay */
#hero .phone-mockup {
    position: relative;
    z-index: 20;
}

/* Phone Mockup Styling */
.phone-mockup {
    width: 100%;
    max-width: 320px;
}

.phone-frame {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
    height: 24px;
    background: #0f172a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

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

/* Smooth Transitions */
* {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Feature Card Hover Effect */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Tablet Mockup Styling */
.tablet-mockup {
    width: 100%;
    max-width: 924px;
}

.tablet-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
}

.tablet-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

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

/* Screenshot Dot Active State */
.screenshot-dot.active {
    background-color: #0f172a;
    width: 24px;
}

/* Language Button Active State - Handled by header-specific styles above */

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
}

#mobile-menu.hidden {
    max-height: 0;
    overflow: hidden;
}

/* Header Styles - Transparent at top, colored when scrolled */
#header {
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
}

#header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    /* slate-900 with opacity */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header text colors - white when transparent, adjust when scrolled */
#header .header-logo-text {
    color: white;
}

#header .header-nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#header .header-nav-link:hover {
    color: white;
}

#header.scrolled .header-logo-text {
    color: white;
}

#header.scrolled .header-nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#header.scrolled .header-nav-link:hover {
    color: white;
}

/* Language toggle border */
#header .header-lang-border {
    border-left-color: rgba(255, 255, 255, 0.2);
}

#header.scrolled .header-lang-border {
    border-left-color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu button */
#header .header-menu-btn {
    color: white;
}

#header.scrolled .header-menu-btn {
    color: white;
}

/* Mobile menu border */
#header .header-mobile-menu {
    border-top-color: rgba(255, 255, 255, 0.2);
}

#header.scrolled .header-mobile-menu {
    border-top-color: rgba(255, 255, 255, 0.2);
}

#header .header-mobile-lang-border {
    border-top-color: rgba(255, 255, 255, 0.2);
}

#header.scrolled .header-mobile-lang-border {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Language buttons in header */
#header .lang-btn.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

#header .lang-btn:not(.active) {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
}

#header .lang-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

#header.scrolled .lang-btn.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

#header.scrolled .lang-btn:not(.active) {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
}

#header.scrolled .lang-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .phone-mockup {
        max-width: 280px;
    }

    .phone-frame {
        padding: 8px;
    }

    .phone-screen {
        border-radius: 2rem;
    }

    .tablet-mockup {
        max-width: 100%;
    }

    .tablet-frame {
        padding: 12px;
    }

    .tablet-screen {
        border-radius: 1rem;
    }
}

/* Ensure proper aspect ratio on all screens */
@media (min-width: 1024px) {
    .phone-mockup {
        max-width: 360px;
    }
}

/* Store Badge Styles - Consistent sizing */
.store-badge {
    height: 56px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.store-badge:hover {
    opacity: 0.9;
}

/* App Store Button Styles */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    background-color: #000000;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.app-store-btn:hover {
    opacity: 0.8;
}

.app-store-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 8px;
}

.app-store-btn-label {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.app-store-btn-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Google Play Button Styles */
.google-play-btn {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.google-play-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-play-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 8px;
}

.google-play-btn-label {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: #5f6368;
}

.google-play-btn-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #000000;
}