/* SEO Enhancement Styles */

/* Improve Core Web Vitals */
* {
    box-sizing: border-box;
}

/* Optimize image loading */
img {
    height: auto;
    max-width: 100%;
}

/* Improve text readability for SEO */
body {
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75em;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Structured data helpers */
.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;
}

/* Better CLS (Cumulative Layout Shift) prevention */
.portfolio-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optimize for mobile speed */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-1, .display-2, .display-3, .display-4, .display-5 {
        word-break: break-word;
    }
}