/* Critical CSS for above-the-fold content */
:root {
    --ocint-primary: #CF992D;
    --ocint-secondary: #FFD700;
    --ocint-dark: #2C2F33;
    --ocint-black: #000000;
    --ocint-white: #FFFFFF;
    --ocint-blue: #3498DB;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--ocint-dark);
    background-color: var(--ocint-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: var(--ocint-primary);
    border-color: var(--ocint-primary);
}

.btn-primary:hover {
    background-color: #b8860b;
    border-color: #b8860b;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--ocint-dark);
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--ocint-dark);
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Navbar critical styles */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ocint-dark);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--ocint-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.15s ease-in-out;
}

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

/* Footer critical styles */
footer {
    margin-top: auto;
    padding: 3rem 0;
    background-color: #f8f9fa;
    color: var(--ocint-dark);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Card styles */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* Row and column styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-lg-4, .col-lg-6, .col-lg-8, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Utility classes */
.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.h-100 {
    height: 100% !important;
}

.h5 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.text-success {
    color: #198754 !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

/* Dark theme support */
[data-bs-theme="dark"] {
    color: #fff;
    background-color: var(--ocint-dark);
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(44, 47, 51, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .nav-link {
    color: #fff;
}

[data-bs-theme="dark"] footer {
    background-color: #2c2f33;
    color: #fff;
}

[data-bs-theme="dark"] .card {
    background-color: #3a3f44;
    border-color: rgba(255, 255, 255, 0.125);
}

/* Responsive design */
@media (max-width: 991.98px) {
    .col-lg-4, .col-lg-6, .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Font loading optimization */
@font-face {
    font-family: 'Bootstrap Icons';
    src: url('/css/fonts/bootstrap-icons.woff2') format('woff2');
    font-display: swap;
}

/* Prevent layout shifts */
.content-wrapper-component {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
} 