/* MatchMind Promo Website - Creative & Playful with Bulma */
/* Energetic colors + Generous spacing + Pill borders + Subtle animations + Friendly typography */

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

:root {
    --primary-dark: #1B2838;
    --primary: #2C3E56;
    --accent: #F07B3F;
    --accent-light: #FFB088;
    --accent-dark: #D4612A;
    --secondary: #3B82F6;
    --success: #34D399;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-medium: #6B7280;
    --text-light: #9CA3AF;
    --card-shadow: 0 4px 24px rgba(27, 40, 56, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(27, 40, 56, 0.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 50px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Quicksand', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-weight: 700;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--bg-white) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 3.5rem;
}

.navbar-brand .navbar-item {
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-dark) !important;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

.navbar-brand .logo-icon {
    font-size: 1.4rem;
}

.navbar-menu .navbar-item {
    color: var(--text-dark) !important;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.navbar-menu .navbar-item:hover,
.navbar-menu .navbar-item.is-active {
    background: var(--bg-light) !important;
    color: var(--accent) !important;
}

.navbar-burger {
    color: var(--primary-dark);
    height: 3.5rem;
    width: 3.5rem;
}

.navbar-burger span {
    background-color: var(--primary-dark) !important;
    height: 2px !important;
    left: calc(50% - 10px);
    width: 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4365 50%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 123, 63, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-columns {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    color: #fff;
    padding-right: 1rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-content h1 .accent { color: var(--accent); }

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-mockup {
    flex: 0 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(240, 123, 63, 0.35);
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

.btn-primary:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 123, 63, 0.45);
    color: #fff !important;
}

.btn-secondary-hero {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    transition: all 0.3s ease !important;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

.btn-secondary-hero:hover {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.7) !important;
    color: #fff !important;
}

.btn-cta-white {
    background: #fff !important;
    color: var(--accent) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 14px 36px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    cursor: pointer;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--accent-dark) !important;
}

/* ===== DEVICE MOCKUP ===== */
.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: #111;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255,255,255,0.08);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: #222;
    border-radius: 10px;
    z-index: 2;
}

.device-frame img {
    width: 100%;
    border-radius: 24px;
    display: block;
}

.device-glow {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: radial-gradient(ellipse at center, rgba(240, 123, 63, 0.18) 0%, transparent 70%);
    border-radius: 50px;
    z-index: -1;
    pointer-events: none;
}

/* ===== SECTION STYLES ===== */
.section-padding { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }

.section-dark {
    background: var(--primary-dark);
    color: #fff;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.section-dark .section-title { color: #fff; }

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* ===== SCREENSHOTS CAROUSEL ===== */
.screenshots-section {
    padding: 60px 0;
    background: var(--bg-white);
    overflow: hidden;
}

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

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    position: relative;
}

.carousel-slide {
    position: absolute;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.device-mockup-sm {
    max-width: 190px;
    margin: 0 auto;
    position: relative;
}

.device-frame-sm {
    background: #1a1a1a;
    border-radius: 26px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
}

.device-frame-sm::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #333;
    border-radius: 10px;
    z-index: 2;
}

.device-frame-sm img {
    width: 100%;
    border-radius: 18px;
    display: block;
    max-height: 310px;
    object-fit: cover;
    cursor: pointer;
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.device-frame-sm img.loaded { filter: blur(0); }

.carousel-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

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

.carousel-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

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

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

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

/* ===== FEATURES ALTERNATING ===== */
.feature-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.feature-row.reverse { flex-direction: row-reverse; }
.feature-row:last-child { margin-bottom: 0; }

.feature-icon-wrap {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #fff;
    box-shadow: 0 10px 35px rgba(240, 123, 63, 0.2);
    transition: transform 0.4s ease;
}

.feature-icon-circle:hover { transform: scale(1.06); }

.feature-icon-circle.orange { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); }
.feature-icon-circle.blue { background: linear-gradient(135deg, #3B82F6 0%, #93C5FD 100%); }
.feature-icon-circle.teal { background: linear-gradient(135deg, #14B8A6 0%, #5EEAD4 100%); }
.feature-icon-circle.purple { background: linear-gradient(135deg, #8B5CF6 0%, #C4B5FD 100%); }
.feature-icon-circle.green { background: linear-gradient(135deg, #22C55E 0%, #86EFAC 100%); }
.feature-icon-circle.rose { background: linear-gradient(135deg, #F43F5E 0%, #FDA4AF 100%); }

.feature-text {
    flex: 1;
    text-align: left;
}

.feature-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
}

.feature-text p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1.02rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.25rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #E85D26 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer-section {
    background: var(--primary-dark);
    color: #fff;
    padding: 50px 0 25px;
}

.footer-col h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    padding: 3px 0;
    transition: color 0.3s ease;
    font-size: 0.93rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.88rem;
}

/* ===== CONTENT PAGES (Privacy/Terms) ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4365 100%);
    padding: 50px 0 65px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 55px;
    background: var(--bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 800;
}

.page-header p {
    color: rgba(255,255,255,0.65);
    margin-top: 0.4rem;
    font-size: 1rem;
}

.content-page {
    padding: 50px 0 80px;
    min-height: 55vh;
}

.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.content-card h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.content-card .last-updated {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 2rem;
    display: block;
}

.content-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    padding-top: 0.5rem;
}

.content-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.content-card p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 0.9rem;
    text-align: left;
}

.content-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.content-card ul li {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 0.35rem;
    text-align: left;
}

.content-card a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.content-card a:hover { color: var(--accent-dark); }

/* ===== CONTACT FORM ===== */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem 3rem;
    max-width: 620px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.contact-card h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 0.3rem;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    font-size: 0.93rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 123, 63, 0.12);
    background: #fff;
}

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

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

.form-submit { text-align: center; margin-top: 1.5rem; }

.form-success {
    display: none;
    background: #D1FAE5;
    color: #065F46;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 600;
    margin-top: 1.5rem;
}

.form-success.show { display: block; }

/* ===== PRIVACY ACCEPT BUTTON (FLUTTER) ===== */
.privacy-accept-container {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(27, 40, 56, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.privacy-accept-container.visible { display: block; }

.privacy-accept-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 123, 63, 0.4);
}

.privacy-accept-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.show { display: flex; }

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
    line-height: 1;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1023px) {
    .hero-section { padding: 60px 0 80px; }

    .hero-columns {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

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

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

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

    .device-mockup { max-width: 220px; }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-icon-wrap { flex: none; }
    .feature-text { text-align: left; }

    .footer-section .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media screen and (max-width: 768px) {
    .hero-content h1 { font-size: 1.75rem; }
    .hero-content p { font-size: 1rem; }
    .section-title { font-size: 1.65rem; }
    .section-subtitle { font-size: 0.95rem; }

    .content-card {
        padding: 1.75rem 1.25rem;
        margin: 0 auto;
        max-width: calc(100% - 1.5rem);
        border-radius: var(--radius-sm);
    }

    .contact-card {
        padding: 1.75rem 1.25rem;
        margin: 0 auto;
        max-width: calc(100% - 1.5rem);
        border-radius: var(--radius-sm);
    }

    .carousel-container { height: 330px; }
    .carousel-track { height: 290px; }
    .device-mockup-sm { max-width: 160px; }

    .device-frame-sm img { max-height: 270px; }

    .feature-icon-circle {
        width: 110px;
        height: 110px;
        font-size: 2.6rem;
    }

    .stats-bar { gap: 1.5rem; }
    .stat-number { font-size: 2rem; }

    .footer-section .columns .column { margin-bottom: 1.5rem; }
    .footer-section .container { padding-left: 1.5rem; padding-right: 1.5rem; }

    .page-header h1 { font-size: 1.7rem; }
}

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

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

    .btn-primary, .btn-secondary-hero { width: 100%; max-width: 280px; }

    .device-mockup { max-width: 170px; }

    .section-title { font-size: 1.35rem; }

    .content-card h1,
    .contact-card h1 { font-size: 1.45rem; }

    .content-card h2 { font-size: 1.2rem; }

    .carousel-container { height: 310px; }
    .carousel-track { height: 270px; }
    .device-mockup-sm { max-width: 165px; }
    .device-frame-sm img { max-height: 250px; }
    .device-frame-sm { border-radius: 22px; padding: 6px; }
    .device-frame-sm::before { width: 40px; height: 3px; top: 8px; }

    .stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-section .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Orientation change handling */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section { padding: 30px 0 50px; }
    .hero-content h1 { font-size: 1.5rem; }
    .device-mockup { max-width: 150px; }
    .section-padding { padding: 40px 0; }
    .carousel-container { height: 260px; }
    .carousel-track { height: 230px; }
    .device-mockup-sm { max-width: 120px; }
    .device-frame-sm img { max-height: 200px; }
}
