/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #141414;
    /* Deep Black/Gray */
    color: #fff;
    line-height: 1.6;
}

p {
    text-align: justify;
}

/* Header & Nav */
/* header {
    background-color: #000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}
*/
header {
    background-color: #000;
    padding: 15px 40px;
    display: flex;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #E50914;
    text-decoration: none;
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #fff;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero_bg.jpg');
    /* Placeholder BG */
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    background-color: #E50914;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #f40612;
}

/* Content Sections */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

/* Screenshot Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.text-col h2 {
    color: #E50914;
    margin-bottom: 15px;
}

.text-col p {
    margin-bottom: 20px;
    color: #ddd;
}

.img-col {
    text-align: center;
}

.phone-frame {
    border: 8px solid #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: inline-block;
    position: relative;
    background-color: transparent;
    isolation: isolate;
}

.phone-frame::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #E50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: -1;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.phone-frame img {
    display: block;
    max-width: 100%;
    height: auto;
}

.placeholder-box {
    width: 280px;
    height: 500px;
    background: #222;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 2px dashed #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #000;
    color: #555;
    font-size: 0.85rem;
    margin-top: 50px;
    border-top: 1px solid #333;
}

footer p {
    text-align: center;
}

footer a {
    color: #777;
    text-decoration: none;
}



/* Added custom styles */
.app-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 20px 40px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
}

.app-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    flex: 1;
}

.app-header nav a {
    margin-left: 0;
    font-size: 0.95rem;
}

.download-nav {
    font-weight: bold;
    color: #E50914 !important;
}

.download-nav:hover {
    color: #fff !important;
    text-decoration: underline;
}

.phone-frame img {
    max-height: 650px;
    object-fit: contain;
    width: auto;
    margin: 0 auto;
}

.phone-frame:hover {
    transform: scale(1.03);
}

.grid {
    align-items: flex-start;
}

/* Ensure hover text works properly in gallery */
a:hover p {
    color: #E50914;
}

/* Translate element styling */
.goog-te-gadget {
    color: transparent !important;
    /* Hides the "Powered by Google" text */
}

.goog-te-gadget .goog-te-combo {
    margin: 4px 0;
    padding: 4px 8px;
    border-radius: 4px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

/* Fix Google Translate dropdown height */
.goog-te-menu-frame,
.goog-te-menu2 {
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-header>div {
        flex-direction: column;
        align-items: center;
        gap: 5px !important;
    }

    .app-header nav {
        justify-content: center;
        margin-top: 15px;
    }

    .hero-container {
        flex-direction: column-reverse !important;
        text-align: center !important;
        gap: 30px !important;
    }

    .hero-img {
        text-align: center !important;
    }

    .hero-text h1 {
        font-size: 2.2rem !important;
    }
}