/* ============================================
   BALLIE WEBSITE - MOBILE FIRST DESIGN
   Brand Colors:
   Primary: #1A5F7A (Deep Teal)
   Secondary: #F8B500 (Gold)
   Font: Lato
   ============================================ */

/* CSS Variables for Theme */
:root {
    --primary-color: #1A5F7A;
    --primary-light: #2A8FB8;
    --primary-dark: #0F3D4F;
    --secondary-color: #F8B500;
    --secondary-light: #FFD54F;
    --secondary-dark: #F57F17;
    --text-primary: #1A1D1F;
    --text-secondary: #6F767E;
    --text-tertiary: #9CA4AB;
    --background: #FAFBFC;
    --surface: #FFFFFF;
    --surface-variant: #F5F7FA;
    --border-color: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-s: 1rem;
    --spacing-m: 1.5rem;
    --spacing-l: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-s: 0.5rem;
    --radius-m: 0.75rem;
    --radius-l: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

/* Scroll padding for sections to account for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-m);
}

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

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    height: 80px;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-m);
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-s);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand .logo {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

.nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    padding: var(--spacing-l);
    box-shadow: 0 4px 20px var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    list-style: none;
    margin: 0;
    display: flex;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu li {
    margin-bottom: var(--spacing-m);
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    display: block;
    padding: var(--spacing-xs) 0;
    position: relative;
}

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

.nav-menu li:last-child {
    margin-bottom: 0;
    margin-top: var(--spacing-s);
}

.lang-toggle {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-xs) var(--spacing-m);
    border-radius: var(--radius-m);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    font-size: 0.875rem;
    min-width: 50px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 95, 122, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-m) var(--spacing-xl);
    border-radius: var(--radius-m);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: var(--spacing-xxl);
    margin-top: 80px;
    overflow: visible;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(248, 181, 0, 0.1) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl) 0;
    width: 100%;
}

.hero-text {
    text-align: center;
    color: white;
}

.hero-title {
    color: white;
    margin-top: 0;
    margin-bottom: var(--spacing-m);
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding-top: 0;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: var(--spacing-l);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
    margin-bottom: var(--spacing-l);
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-m);
    margin-top: var(--spacing-l);
}

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

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    display: none;
}

.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background-color: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    margin-bottom: var(--spacing-m);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-l);
}

.feature-card {
    background-color: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-m);
}

.feature-title {
    margin-bottom: var(--spacing-s);
    color: var(--primary-color);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, var(--background), var(--surface-variant));
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto var(--spacing-m);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.step-title {
    margin-bottom: var(--spacing-s);
    color: var(--primary-color);
}

.step-description {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Download Section */
.download {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.download-text {
    text-align: center;
}

.download .section-title {
    color: white;
    margin-bottom: var(--spacing-m);
}

.download-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
    align-items: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-m) var(--spacing-xl);
    border-radius: var(--radius-l);
    text-decoration: none;
    color: white;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.download-btn.btn-webapp {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.download-btn.btn-webapp:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.4);
}

.download-btn svg {
    width: 32px;
    height: 32px;
}

.download-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.download-platform {
    font-weight: 700;
    font-size: 1.25rem;
}

.download-image {
    display: none;
}

/* Contact Section */
.contact {
    padding: var(--spacing-xxl) 0;
    background-color: var(--surface);
}

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

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.contact-item {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--surface-variant);
    border-radius: var(--radius-xl);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-m);
}

.contact-item h3 {
    margin-bottom: var(--spacing-s);
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-m);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-l);
    text-align: center;
    margin-bottom: var(--spacing-l);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-s);
}

.footer-logo {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
}

.footer .brand-text {
    color: white;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-m);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-m);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .nav-brand .logo {
        width: 65px;
        height: 65px;
        max-width: 65px;
        max-height: 65px;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        transform: translateX(0);
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        background: transparent;
        gap: 0;
        align-items: center;
        list-style: none;
        margin: 0;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .nav-menu li {
        margin-bottom: 0;
        margin-right: 0;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .nav-link {
        padding: var(--spacing-xs) var(--spacing-m);
        font-size: 1rem;
        white-space: nowrap;
        display: inline-block;
    }
    
    .nav-menu li:last-child {
        margin-top: 0;
        margin-left: var(--spacing-m);
        padding-left: var(--spacing-m);
        border-left: 1px solid var(--border-color);
    }
    
    .lang-toggle {
        margin-left: 0;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    
    .footer-brand {
        justify-content: flex-start;
    }
    
    .footer-logo {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .nav-brand .logo {
        width: 70px;
        height: 70px;
        max-width: 70px;
        max-height: 70px;
    }
    
    .nav-link {
        font-size: 1.0625rem;
        padding: var(--spacing-xs) var(--spacing-m);
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-menu li:last-child {
        margin-left: var(--spacing-l);
    }
    
    .hero {
        min-height: calc(100vh - 80px);
        padding-top: 40px;
        padding-bottom: var(--spacing-xxl);
        margin-top: 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: var(--spacing-xxl);
        padding: var(--spacing-xxl) 0;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-image {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .download-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .download-text {
        text-align: left;
    }
    
    .download-buttons {
        justify-content: flex-start;
    }
    
    .download-image {
        display: block;
    }
    
    .footer-logo {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

