/* TinyTriumph Promo Website - Creative & Playful Theme */
/* Framework: Bulma CSS with custom overrides */

:root {
    --primary-color: #5DADE2;
    --primary-dark: #3498DB;
    --secondary-color: #58D68D;
    --accent-color: #F7DC6F;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background-light: #F8FBFE;
    --white: #FFFFFF;
    --gradient-start: #5DADE2;
    --gradient-end: #85C1E9;
    --card-shadow: 0 4px 15px rgba(93, 173, 226, 0.15);
    --card-hover-shadow: 0 8px 25px rgba(93, 173, 226, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand .navbar-item {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-menu {
    background: transparent !important;
}

.navbar-item {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar-item:hover {
    background-color: var(--background-light) !important;
    color: var(--primary-color) !important;
}

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

.navbar-burger span {
    background-color: var(--text-dark) !important;
    height: 2px;
}

/* Mobile navigation fix */
@media (max-width: 1023px) {
    .navbar-menu {
        background: var(--white) !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
        border-radius: 0 0 12px 12px;
    }

    .navbar-item {
        padding: 0.75rem 1.5rem;
    }

    .navbar-brand {
        min-width: 0;
        flex-shrink: 1;
    }

    .navbar-brand .navbar-item {
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

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

.hero-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Buttons */
.btn-primary {
    background: var(--white);
    color: var(--primary-color) !important;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    min-height: 52px;
}

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

.btn-secondary {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    min-height: 52px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color) !important;
}

.btn-download {
    background: var(--secondary-color);
    color: var(--white) !important;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 214, 141, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    min-height: 56px;
}

.btn-download:hover {
    background: #48C78E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 214, 141, 0.4);
    color: var(--white) !important;
}

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.1);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0a0a15;
    border-radius: 12px;
    z-index: 10;
}

.device-screen {
    border-radius: 26px;
    overflow: hidden;
    background: var(--white);
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .device-mockup {
        max-width: 220px;
        margin-top: 2rem;
    }
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--white);
}

.section-alt {
    background: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Features Section */
.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Time Slots Section */
.time-slot {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: all 0.3s ease;
}

.time-slot:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

.slot-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-morning { background: #FDEBD0; color: #D68910; }
.slot-afternoon { background: #D5F5E3; color: #1E8449; }
.slot-evening { background: #E8DAEF; color: #7D3C98; }

/* Screenshot Carousel */
.screenshot-section {
    max-height: 500px;
    padding: 60px 0;
    background: var(--background-light);
    overflow: hidden;
}

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

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    align-items: center;
}

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

.screenshot-mockup {
    max-width: 240px;
    position: relative;
}

.screenshot-frame {
    background: linear-gradient(145deg, #2d2d3a, #1a1a2e);
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.screenshot-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #0a0a15;
    border-radius: 10px;
    z-index: 10;
}

.screenshot-frame img {
    border-radius: 24px;
    width: 100%;
    height: auto;
    display: block;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

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

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

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

.carousel-dot.active {
    opacity: 1;
    background: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .screenshot-section {
        max-height: 400px;
        padding: 40px 0;
    }

    .carousel-container {
        height: 300px;
    }

    .screenshot-mockup {
        max-width: 180px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Privacy Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.9);
}

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

.content-section h2 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-section h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.content-section p {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    text-align: left;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-section {
    background: var(--white);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

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

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white) !important;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #D5F5E3;
    border-radius: 12px;
    margin-top: 1rem;
}

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

.form-success h3 {
    color: #1E8449;
    margin-bottom: 0.5rem;
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
}

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

.btn-accept-privacy {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--white) !important;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 214, 141, 0.4);
    min-height: 60px;
}

.btn-accept-privacy:hover {
    background: #48C78E;
    transform: translateY(-2px);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-section {
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

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

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

    .footer-content {
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Ensure all buttons have centered text */
button,
.button,
[class*="btn-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
