/* ===== SkyCast Weather App — Promo Website Styles ===== */
/* Theme extracted from Flutter app source */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Extracted from app theme */
    --color-primary: #2C508A;
    --color-primary-light: #90ACD1;
    --color-secondary: #DAF0FB;
    --color-secondary-dark: #BDD8EF;
    --color-accent-cyan: #30DBFB;
    --color-accent-yellow: #FFD51A;
    --color-accent-yellow-dark: #EC9E00;
    --color-bg-start: #90ACD1;
    --color-bg-end: #2C508A;
    --color-surface: rgba(218, 240, 251, 0.15);
    --color-surface-solid: #F0F7FC;
    --color-text-primary: #11192C;
    --color-text-light: #FFFFFF;
    --color-text-muted: #5A7A9A;
    --border-radius: 10px;
    --font-family: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-primary);
    line-height: 1.6;
    background: #F8FBFE;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-cyan);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 80, 138, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
    box-shadow: 0 2px 20px rgba(44, 80, 138, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    white-space: nowrap;
}

.nav-logo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-primary);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(48, 219, 251, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    color: var(--color-text-light);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-accent-yellow), var(--color-accent-yellow-dark));
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 213, 26, 0.35);
    color: var(--color-text-primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-text-light);
}

/* Hero Device Mockup */
.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-frame {
    position: relative;
    width: 280px;
    max-width: 100%;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 0;
}

.device-frame::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    z-index: 2;
}

.device-frame img {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* ===== Features Section ===== */
.features {
    padding: 100px 24px;
    background: #FFFFFF;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--color-surface-solid);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(44, 80, 138, 0.06);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(44, 80, 138, 0.1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    color: white;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: left;
    line-height: 1.6;
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: 80px 24px;
    background: linear-gradient(180deg, #FFFFFF, var(--color-surface-solid));
    overflow: hidden;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--border-radius);
    max-height: 400px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.carousel-device {
    position: relative;
    width: 180px;
}

.carousel-device::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(145deg, #e8f2fa, #ffffff);
    border-radius: 28px;
    border: 2px solid rgba(44, 80, 138, 0.08);
    z-index: 0;
    box-shadow: 0 8px 30px rgba(44, 80, 138, 0.12);
}

.carousel-device img {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    width: 100%;
    height: auto;
    display: block;
    max-height: 360px;
    object-fit: cover;
    object-position: top;
    cursor: pointer;
    transition: filter 0.4s ease;
}

.carousel-device img.loading {
    filter: blur(5px);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: white;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-secondary-dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

/* ===== CTA Section ===== */
.cta {
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--color-bg-end), var(--color-primary));
    text-align: center;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(48, 219, 251, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta .btn-primary {
    position: relative;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 24px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-accent-cyan);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ===== Content Pages (Privacy, Terms, Contact) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    padding: 120px 24px 60px;
    text-align: center;
    color: var(--color-text-light);
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.85;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 16px;
    text-align: left;
}

.content-section ul, .content-section ol {
    text-align: left;
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-section li {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 8px;
}

.content-section a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(44, 80, 138, 0.3);
}

.content-section a:hover {
    color: var(--color-accent-cyan);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    display: block;
}

/* ===== Contact Form ===== */
.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 4px 30px rgba(44, 80, 138, 0.08);
    border: 1px solid rgba(44, 80, 138, 0.06);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5EDF5;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    background: #FAFCFE;
    color: var(--color-text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-cyan);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input[type="file"] {
    padding: 10px 16px;
    cursor: pointer;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 32px;
    background: var(--color-primary);
    color: white;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 80, 138, 0.25);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-text-muted);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

/* ===== Privacy Accept Button ===== */
.privacy-accept-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 16px 24px 24px;
    background: linear-gradient(to top, var(--color-text-primary) 60%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-accept-btn.hidden {
    display: none;
}

.accept-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-accent-yellow), var(--color-accent-yellow-dark));
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 213, 26, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px 24px;
        gap: 0;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .device-frame {
        width: 220px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .carousel-device {
        width: 150px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 24px;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-container > div {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-container > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .btn-secondary {
        width: auto;
        padding: 10px 24px;
        font-size: 0.9rem;
        justify-content: center;
    }

    .device-frame {
        width: 180px;
    }

    .carousel-device {
        width: 130px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Orientation Change ===== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .device-frame {
        width: 160px;
    }

    .page-hero {
        padding: 80px 24px 40px;
    }
}

/* ===== Utility ===== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}
