body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

#main {
    width: 100%;
    max-width: 100%;
}

.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

#hero-component,
#sub-hero-component,
#portfolio-component,
#steps-component,
#pricing-component,
#footer-component {
    width: 100%;
    max-width: 100%;
}

/* Component Loading States */
.component-loading {
    min-height: 100px;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.component-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.component-error {
    padding: 20px;
    background-color: #fff1f0;
    color: #d85030;
    border: 1px solid #ffd7d7;
    border-radius: 4px;
    text-align: center;
}

#main {
    width: 100%;
    max-width: 100%;
}

.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

#hero-component,
#sub-hero-component,
#portfolio-component,
#steps-component,
#pricing-component,
#footer-component {
    width: 100%;
    max-width: 100%;
}