/* MoonBIM Website Styles */

/* CSS Custom Properties */
:root {
    --hero-logo-size: 400px;
    --hero-logo-opacity: 0.08;
    --hero-logo-size-mobile: 250px;
    --hero-logo-opacity-mobile: 0.04;
}

/* Bootstrap-like utility classes for responsive design */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a2332;
    margin: 0;
    padding-top: 70px; /* Account for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4, .col-md-6, .col-md-8 {
    padding: 0 15px;
    flex: 1;
}

.col-md-4 { flex: 0 0 33.333333%; }
.col-md-6 { flex: 0 0 50%; }
.col-md-8 { flex: 0 0 66.666667%; }

/* Responsive breakpoints */
@media (max-width: 768px) {
    .col-md-4, .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    body {
        padding-top: 60px;
    }
}

/* Header/Navigation */
.navbar {
    background-color: #1a2332 !important;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(126, 231, 199, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #7ee7c7 !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.moonbim-logo-img {
    width: 280px;
    height: auto;
    display: block;
}

.navbar-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin-left: 1rem;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(126, 231, 199, 0.1);
    color: #7ee7c7 !important;
}

.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a2332;
        padding: 1rem;
        border-top: 1px solid rgba(126, 231, 199, 0.1);
    }
    
    .navbar-nav.show {
        display: block;
    }
    
    .navbar-nav ul {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
}

/* Main content */
.content {
    min-height: calc(100vh - 200px);
    background-color: #1a2332;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(126, 231, 199, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: var(--hero-logo-size);
    height: var(--hero-logo-size);
    background-image: url('../images/moonbim-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: var(--hero-logo-opacity);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Reusable background logo for any section */
.section-with-background-logo {
    position: relative;
    overflow: hidden;
}

.section-with-background-logo::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: var(--hero-logo-size);
    height: var(--hero-logo-size);
    background-image: url('../images/moonbim-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: var(--hero-logo-opacity);
    pointer-events: none;
    z-index: 0;
}

.section-with-background-logo .container,
.section-with-background-logo > div {
    position: relative;
    z-index: 1;
}

/* Centered variant for pages with minimal content */
.section-with-background-logo-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--hero-logo-size);
    height: var(--hero-logo-size);
    background-image: url('../images/moonbim-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: var(--hero-logo-opacity);
    pointer-events: none;
    z-index: 0;
}

.section-with-background-logo-center {
    position: relative;
    overflow: hidden;
}

.section-with-background-logo-center .container,
.section-with-background-logo-center > div {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(126, 231, 199, 0.1);
    border: 1px solid rgba(126, 231, 199, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #7ee7c7;
}

.hero-badge-icon {
    font-size: 1.2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: #7ee7c7;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #b0bac9;
}

.cta-button {
    display: inline-block;
    background-color: #7ee7c7;
    color: #1a2332;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(126, 231, 199, 0.3);
}

.cta-button:hover {
    background-color: #6dd4b4;
    transform: translateY(-2px);
    color: #1a2332;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(126, 231, 199, 0.4);
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.cta-button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

/* Features section */
.features {
    padding: 5rem 0;
    background-color: #1a2332;
}

.feature h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.feature .subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #b0bac9;
    margin-bottom: 4rem;
}

.feature-card {
    background: #243447;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(126, 231, 199, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(126, 231, 199, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    color: #7ee7c7;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #b0bac9;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary {
    background-color: #7ee7c7;
    color: #1a2332;
}

.btn-primary:hover {
    background-color: #6dd4b4;
    color: #1a2332;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #7ee7c7;
    color: #1a2332;
}

.btn-success:hover {
    background-color: #6dd4b4;
    color: #1a2332;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    background: transparent;
    padding: 0.625rem 1.5rem;
}

.btn-outline-light:hover {
    background-color: rgba(126, 231, 199, 0.1);
    border-color: #7ee7c7;
    color: #7ee7c7;
}

.btn-outline-primary {
    border: 2px solid #7ee7c7;
    color: #7ee7c7;
    background: transparent;
    padding: 0.625rem 1.5rem;
}

.btn-outline-primary:hover {
    background-color: #7ee7c7;
    color: #1a2332;
    border-color: #7ee7c7;
    text-decoration: none;
}

/* Screenshots section */
.screenshots-section {
    padding: 5rem 0;
    background-color: #1a2332;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 3600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.screenshot-item {
    background: #243447;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(126, 231, 199, 0.1);
    transition: all 0.3s;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    border-color: rgba(126, 231, 199, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.screenshot-content {
    padding: 0.5rem 2rem 1.5rem 2rem;
}

.screenshot-title {
    color: #7ee7c7;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.screenshot-description {
    color: #b0bac9;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
}

/* Tutorials section */
.tutorials {
    padding: 5rem 0;
    background-color: #243447;
}

.tutorials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.tutorials .subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #b0bac9;
    margin-bottom: 4rem;
}

.tutorial-card {
    background: #1a2332;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(126, 231, 199, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(126, 231, 199, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tutorial-icon {
    font-size: 2.5rem;
    color: #7ee7c7;
    margin-bottom: 1.5rem;
    display: block;
}

.tutorial-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tutorial-card p {
    color: #b0bac9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-tutorial {
    background-color: transparent;
    color: #7ee7c7;
    border: 2px solid #7ee7c7;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-tutorial:hover {
    background-color: #7ee7c7;
    color: #1a2332;
    transform: translateY(-1px);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(126, 231, 199, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #1a2332;
    color: #e0e0e0;
}

.form-control:focus {
    outline: none;
    border-color: #7ee7c7;
    box-shadow: 0 0 0 3px rgba(126, 231, 199, 0.15);
    background-color: #243447;
}

.form-control::placeholder {
    color: #6b7885;
}

.form-control.error {
    border-color: #dc3545;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: #1a2332;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.contact-section .subtitle {
    font-size: 1.05rem;
    color: #b0bac9;
    margin-bottom: 3rem;
}

.contact-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 2rem auto 0;
}

@media (max-width: 968px) {
    .contact-container {
        padding: 0 1rem;
    }
}

.contact-info {
    background: #243447;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(126, 231, 199, 0.1);
    height: fit-content;
}

.contact-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(126, 231, 199, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.contact-info-content p {
    color: #b0bac9;
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    background: #243447;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(126, 231, 199, 0.1);
    max-width: 800px;
    width: 100%;
}

.contact-info-tile {
    background: #243447;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(126, 231, 199, 0.1);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.info-tile-content h3 {
    color: #7ee7c7;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-tile-content p {
    color: #b0bac9;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.email-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(126, 231, 199, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(126, 231, 199, 0.2);
    transition: all 0.3s;
}

.email-container:hover {
    background: rgba(126, 231, 199, 0.1);
    border-color: rgba(126, 231, 199, 0.4);
    transform: translateY(-2px);
}

.email-container svg {
    color: #7ee7c7;
    flex-shrink: 0;
}

.email-link {
    color: #7ee7c7;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    user-select: none;
}

.email-link:hover {
    color: #6dd4b4;
}

@media (max-width: 768px) {
    .contact-info-tile {
        padding: 2rem;
    }
    
    .info-tile-content h3 {
        font-size: 1.5rem;
    }
    
    .email-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .email-link {
        font-size: 1rem;
        word-break: break-all;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.btn-send {
    width: 100%;
    background-color: #7ee7c7;
    color: #1a2332;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-send:hover {
    background-color: #6dd4b4;
    transform: translateY(-1px);
}

.privacy-notice {
    text-align: center;
    color: #6b7885;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #7ee7c7;
    background-color: rgba(126, 231, 199, 0.15);
    border-color: rgba(126, 231, 199, 0.3);
}

.alert-danger {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

/* Grid utilities */
.d-grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

/* Footer */
footer {
    background-color: #0f1823;
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(126, 231, 199, 0.1);
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: #b0bac9;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #7ee7c7;
}

.list-unstyled {
    list-style: none;
    padding: 0;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0f1823;
    color: white;
    padding: 1rem 0;
    z-index: 1001;
    border-top: 1px solid rgba(126, 231, 199, 0.2);
}

/* Utility classes */
.text-center { text-align: center; }
.text-end { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.py-4 { padding: 1.5rem 0; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-auto { margin-left: auto; }
.my-3 { margin: 1rem 0; }

.bg-primary { background-color: #7ee7c7 !important; }
.bg-dark { background-color: #0f1823 !important; }
.text-white { color: white !important; }
.text-white-50 { color: #b0bac9 !important; }

.d-none { display: none; }
.d-block { display: block; }

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
*:focus {
    outline: 2px solid #7ee7c7;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .feature-card {
        border: 2px solid #7ee7c7;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero::after,
    .section-with-background-logo::after {
        width: var(--hero-logo-size-mobile);
        height: var(--hero-logo-size-mobile);
        top: 5%;
        right: 2%;
        opacity: var(--hero-logo-opacity-mobile);
    }
    
    .section-with-background-logo-center::after {
        width: var(--hero-logo-size-mobile);
        height: var(--hero-logo-size-mobile);
        opacity: var(--hero-logo-opacity-mobile);
    }
    
    .features h2,
    .tutorials h2,
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .cta-button,
    .cta-button-outline {
        display: block;
        margin: 0.5rem auto;
        text-align: center;
    }
}