/* Critical CSS - Above the fold styles for Lighthouse optimization */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap');

/* Base styles - Critical for FCP */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-section {
    height:250px !important;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-display: swap;
}

/* Header critical styles - Critical for LCP */
.main-header {
    background: linear-gradient(135deg, #ff6f61 0%, #c3002f 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav {
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
}

.header-nav-container {
    gap: 12px;
    overflow: hidden;
}

.header-nav-list {
    white-space: nowrap;
    overflow: hidden;
}

/* Hero section critical styles - Critical for LCP */
.hero-section,
.hero-section-modern,
.hero-section-analiz,
.hero-section-kampanya {
    background: linear-gradient(135deg, #ff6f61 0%, #c3002f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

/* Critical loading animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Critical image styles */
.hero-image-modern,
.hero-image-analiz,
.hero-image-kampanya {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* Critical button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-modern {
    background: linear-gradient(45deg, #ffb366, #ff8a50);
    color: #c3002f;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

/* Critical container styles */
.container-xl {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.5rem;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.5rem;
}

/* Critical typography */
.hero-title-modern,
.hero-title-analiz,
.hero-title-kampanya {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle,
.hero-subtitle-analiz,
.hero-subtitle-kampanya {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Critical responsive */
@media (max-width: 768px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .hero-title-modern,
    .hero-title-analiz,
    .hero-title-kampanya {
        font-size: 2.5rem;
    }
}

/* Critical preload styles */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6f61 0%, #c3002f 100%);
    z-index: -1;
}

/* Critical lazy loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Critical font loading */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2') format('woff2');
} 