/* AWOTD Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    min-width: 0;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    min-width: 0;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Hamburger menu styles */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    z-index: 1100;
    position: relative;
}
.hamburger-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    html, body, .container {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .container {
        padding: 0 8px;
    }
    .nav-hamburger {
        display: flex;
    }
    .nav-links {
        display: none !important;
    }
    .mobile-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(30, 58, 138, 0.98);
        border-radius: 14px;
        box-shadow: 0 8px 32px rgba(30,41,59,0.18);
        flex-direction: column;
        min-width: 180px;
        z-index: 1200;
        padding: 18px 0;
        text-align: left;
    }
    .mobile-menu a {
        color: #fff;
        text-decoration: none;
        padding: 12px 24px;
        display: block;
        font-size: 1.1rem;
        font-weight: 500;
        border: none;
        background: none;
        transition: background 0.2s;
    }
    .mobile-menu a:hover,
    .mobile-menu a:focus {
        background: rgba(255,255,255,0.08);
        outline: none;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: white;
    padding: 140px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #d7e1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #000, #333);
    color: white;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid #007AFF;
    white-space: nowrap;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: #0056CC;
}

@media (max-width: 500px) {
    .cta-button {
        font-size: 1rem;
        padding: 1em 0.5em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .phone-mockup {
        max-width: 210px;
        min-width: 0;
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #2563eb, #3b82f6);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
}

/* App Preview Section */
.app-preview {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    color: white;
    text-align: center;
}

.phone-mockup {
    max-width: 300px;
    margin: 40px auto;
    position: relative;
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #f1f5f9;
    transform: translateY(-5px);
}

.benefit-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.benefit-text {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 500;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #1e3a8a, #1e40af, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title-white {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #d9def0, #a2bffd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 50%, #1e40af 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.app-store-button {
    display: inline-block;
    background: linear-gradient(45deg, #1e40af, #2563eb);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    border: 2px solid rgba(255,255,255,0.2);
}

.app-store-button:hover {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
}

/* Support and Privacy Pages */
.page-section {
    padding: 140px 0 60px 0;
    min-height: 100vh;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: #1e3a8a;
}

.page-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #1e40af;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.page-content li {
    margin: 0.5rem 0;
}

/* Hide pages by default */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hide floating words on support and privacy pages */
#support.active ~ .floating-words,
#privacy.active ~ .floating-words {
    display: none;
}

/* --- Support/Privacy Page Background --- */
#support.page-section,
#privacy.page-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body, .container {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .container {
        padding: 0 8px;
    }
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .feature-card,
    .benefit-item {
        padding: 18px !important;
        min-width: 0;
        box-sizing: border-box;
    }
    .app-preview {
        padding: 40px 0;
    }
    .phone-mockup {
        max-width: 98vw;
        min-width: 0;
    }
    .section-title,
    .section-title-white {
        font-size: 1.6rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-button {
        font-size: 0.95rem;
        padding-left: 1em;
        padding-right: 1em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }
    footer {
        padding: 30px 0;
    }
    .app-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Floating Elements */
.floating-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(30, 64, 175, 0.08);
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}
