/*
Theme Name: portfolio-v3
Description: A modern, responsive portfolio WordPress theme based on Bootstrap. Perfect for designers, developers, freelancers, and creative professionals.
Author: Ali Cheaib
Version: 1.0.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iportfolio
Tags: portfolio, responsive, bootstrap, one-page, custom-header, custom-menu, featured-images, threaded-comments

iPortfolio WordPress Theme
Based on the iPortfolio Bootstrap template by BootstrapMade.com
*/

/* Import the main CSS file */
@import url('assets/css/main.css');

/* WordPress specific styles */
.wp-block-image {
    margin-bottom: 1rem;
}

.alignwide {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.comment-content {
    margin-bottom: 1rem;
}

.reply {
    margin-top: 1rem;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    text-decoration: underline;
}

.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 7px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

/* Additional responsive enhancements */
@media (max-width: 575px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .portfolio-info h4 {
        font-size: 1rem;
    }
    
    .stats-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .service-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact .info-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about .content {
        margin-top: 2rem;
    }
    
    .skills .progress {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-filters {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .portfolio-filters li {
        margin: 0.25rem;
    }
}

/* Improved mobile navigation */
@media (max-width: 1199px) {
    #header {
        left: -300px;
        width: 300px;
        position: fixed;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        transition: all 0.5s ease;
        z-index: 9997;
        padding: 0 15px;
        background: #040b14;
        border-right: 1px solid #2c2f3f;
    }
    
    #header.header-show {
        left: 0;
    }
    
    .header-toggle {
        cursor: pointer;
        position: fixed;
        top: 15px;
        right: 15px;
        font-size: 24px;
        transition: all 0.5s;
        z-index: 9998;
        color: #fff;
    }
    
    .main {
        margin-left: 0;
    }
}

/* Print styles */
@media print {
    .header-toggle,
    #scroll-top,
    #preloader,
    .social-links {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
