/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header and Navigation */
header {
    background-image: url('jiujitsuJourney/assets/Feature Graphic.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.barkr-page header {
    background-image: url('barkr/assets/FeatureGraphic.png');
}

/* Home page - split background with both feature graphics */
body.home-page header {
    background-image: 
        url('jiujitsuJourney/assets/Feature Graphic.png'),
        url('barkr/assets/FeatureGraphic.png');
    background-size: 50% 100%, 50% 100%;
    background-position: left center, right center;
    background-repeat: no-repeat;
}

nav {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.nav-tabs {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-tabs li {
    margin: 0;
}

.nav-tabs a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-tabs a:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-tabs a.active {
    color: #007AFF;
    background-color: rgba(240, 247, 255, 1);
    font-weight: 600;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0.5rem 0 1.5rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* App Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.app-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-card img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.app-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.app-card p {
    color: #666;
    margin-bottom: 0;
    min-height: 60px;
}

.app-card a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.app-card a:hover {
    text-decoration: underline;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.app-card .download-buttons {
    margin-top: 0;
}

.download-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2E7D32;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    min-width: 140px;
    text-align: center;
}

.download-btn:hover {
    background-color: #124b15;
}

.download-btn.ios {
    background-color: #124b15;
}

.download-btn.android {
    background-color: #124b15;
}

/* Ensure Jiu Jitsu buttons have white text */
.download-btn:not(.barkr-btn) {
    color: #fff;
}

.download-btn:not(.barkr-btn):hover {
    color: #fff;
}

/* Barkr-specific button colors */
.download-btn.barkr-btn {
    background-color: #ecd885;
    color: #333;
}

.download-btn.barkr-btn:hover {
    background-color: #ecd885;
    color: #333;
}

.download-btn.barkr-btn.ios {
    background-color: #ecd885;
    color: #333;
}

.download-btn.barkr-btn.android {
    background-color: #ecd885;
    color: #333;
}

/* Barkr buttons on Barkr page - black text */
body.barkr-page .download-btn.barkr-btn {
    color: #000;
}

body.barkr-page .download-btn.barkr-btn:hover {
    color: #000;
}

/* App Showcase Page */
.app-showcase {
    padding: 0.5rem 0 1rem 0;
}

.app-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.app-logo img {
    max-width: 200px;
    height: auto;
}

.showcase-section {
    margin-bottom: 4rem;
}

.showcase-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #000;
}

.showcase-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-images img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.showcase-images img:hover {
    transform: scale(1.02);
}

/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.contact-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-section a {
    color: #007AFF;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-section a {
    color: #007AFF;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #d32f2f;
}

.form-submit-btn {
    background-color: #000;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.form-submit-btn:hover {
    background-color: #333;
}

.form-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-success-message {
    display: none;
    background-color: #4caf50;
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.form-success-message.show {
    display: block;
}

.form-error-message {
    display: none;
    background-color: #f44336;
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.form-error-message.show {
    display: block;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

footer p {
    color: #666;
    margin-bottom: 0.5rem;
}

footer a {
    color: #007AFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        min-height: 200px;
        padding-bottom: 0.75rem;
    }

    .nav-tabs {
        flex-direction: row;
        gap: 1rem;
    }

    .nav-tabs a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .showcase-images {
        grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
        gap: 0.75rem;
    }

    main {
        padding: 1rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .app-card {
        padding: 1.5rem;
    }

    .showcase-section h2 {
        font-size: 1.5rem;
    }

    .showcase-images {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

