/* ===================================
   SALMAN AGHA PORTFOLIO - NEW COLOR SCHEME
   Warm beige/cream design with blog functionality
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f5f1eb;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.logo-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    position: relative;
    z-index: 10001;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    pointer-events: auto; /* Ensure pointer events work */
    display: block; /* Make sure it's a block element */
    z-index: 10000; /* Add z-index to individual links */
}


.nav-link:hover,
.nav-link.active {
    color: #e67e22;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e67e22;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-download {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e67e22;
    color: #e67e22;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}



/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    background: #f5f1eb;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-greeting {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #2c3e50;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #7f8c8d;
}

.highlight {
    color: #e67e22;
    font-weight: 600;
}

.btn-cv {
    background: #e67e22;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cv:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


/* Fixed Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(44, 62, 80, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: #e67e22;
    transform: scale(1.1);
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    background: #ffffff;
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: #e67e22;
    font-weight: 600;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services-section {
    background: #f5f1eb;
    padding: 100px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.skills-column {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.skills-category {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.skill-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #e67e22;
    color: #ffffff;
    transform: translateX(10px);
}

/* ===================================
   PORTFOLIO SECTION
   =================================== */

.portfolio-section {
    background: #ffffff;
    padding: 100px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0 80px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #bdc3c7;
    color: #7f8c8d;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #e67e22;
    border-color: #e67e22;
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: #ffffff;
}

.view-project-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.portfolio-content p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */

.experience-section {
    background: #ffffff;
    padding: 100px 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.experience-column {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.experience-category {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.experience-item {
    margin-bottom: 30px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.company-name {
    font-size: 16px;
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-duration {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.job-location {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.job-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Certifications */
.certifications-section {
    margin-top: 60px;
    text-align: center;
}

.certifications-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cert-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: #e67e22;
    color: #ffffff;
    transform: translateY(-2px);
}

.cert-item i {
    font-size: 24px;
    color: #e67e22;
}

.cert-item:hover i {
    color: #ffffff;
}

.cert-item span {
    font-weight: 600;
    color: #2c3e50;
}

.cert-item:hover span {
    color: #ffffff;
}

/* ===================================
   BLOG SECTION
   =================================== */

.blog-section {
    background: #f5f1eb;
    padding: 100px 0;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.btn-add-blog {
    background: #e67e22;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-blog:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e67e22;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-excerpt {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12px;
}

.blog-author {
    color: #95a5a6;
}

.blog-category {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 10px;
    border-radius: 4px;
}

.btn-read-more {
    color: #e67e22;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: #d35400;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    background: #ffffff;
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e67e22;
    margin-bottom: 30px;
}

.contact-greeting {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-social-link {
    width: 45px;
    height: 45px;
    background: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: #e67e22;
    color: #ffffff;
    transform: scale(1.1);
}

.form-title {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e67e22;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bdc3c7;
}

.btn-submit {
    background: #e67e22;
    color: #ffffff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* ===================================
   BLOG MODAL
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #ecf0f1;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    color: #95a5a6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e67e22;
}

.blog-form {
    padding: 25px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-cancel {
    background: #95a5a6;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

.btn-publish {
    background: #e67e22;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-publish:hover {
    background: #d35400;
}

/* ===================================
   PROJECT MODAL - SIMPLIFIED
   =================================== */

.project-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.project-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #7f8c8d;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    color: #e67e22;
}

.project-modal-body {
    padding: 0;
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 30px;
    text-align: center;
}

.project-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.project-modal-description {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .project-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-modal-title {
        font-size: 24px;
    }
    
    .project-modal-description {
        font-size: 14px;
    }
}

/* ===================================
   RESPONSIVE DESIGN UPDATES
   =================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #2c3e50;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-greeting {
        font-size: 32px;
    }

    .hero-title {
        font-size: 40px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Categories Sidebar */
    .categories-sidebar {
        display: none;
    }

    /* General */
    .section-title {
        font-size: 32px;
    }

    .form-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-greeting {
        font-size: 28px;
    }

    .hero-title {
        font-size: 32px;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ecf0f1;
}

::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* Selection */
::selection {
    background: #e67e22;
    color: #ffffff;
}

/* Focus styles */
*:focus {
    outline: 2px solid #e67e22;
    outline-offset: 2px;
}


