/* ===== Palette ===== */
:root {
    --primary-color: #235DFF;
    --primary-dark: #1a4acc;
    --primary-light: #4a7dff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

/* ===== Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.25;
    color: inherit;
}

/* ===== Navigation ===== */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.25rem;
}

.brand-text {
    color: var(--primary-color);
    font-weight: 800;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===== Viewport ===== */
.viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 80px; /* Height of the navbar */
}

.viewport_primary {
    background: var(--primary-color);
}

/* ===== Main Hero Section ===== */
.main-hero-section {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.main-hero-section h1,
.main-hero-section h2,
.main-hero-section p {
    color: white;
}

.main-hero-section .lead {
    font-size: 1.25rem;
}

/* ===== Carousel ===== */
#appCarousel {
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

#appCarousel .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
}

#appCarousel .carousel-item {
    border-radius: 20px;
    overflow: hidden;
}

#appCarousel .carousel-item img,
#appCarousel img,
.carousel-image {
    border-radius: 20px;
    display: block;
    width: 320px;
    max-width: 90%;
    margin: 20px auto;
}

.app-badge {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.app-badge:hover {
    transform: scale(1.05);
}

.app-store-link {
    display: inline-block;
    text-decoration: none;
}

.disabled-link {
    cursor: not-allowed;
    pointer-events: none;
}


/* ===== Legal Pages ===== */
.legal-section {
    padding-top: 70px;
    padding-bottom: 3rem;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.legal-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

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

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

/* ===== Footer ===== */
.footer {
    background: #1a1a1a !important;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light) !important;
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 93, 255, 0.3);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .main-hero-section h1 {
        font-size: 2.5rem;
    }

    .main-hero-section .lead {
        font-size: 1.1rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .app-badge {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .main-hero-section h1 {
        font-size: 2rem;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-padding-top: 60px;
}

/* ===== Additional Utilities ===== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 4px 20px rgba(35, 93, 255, 0.15) !important;
}
