/*
Theme Name: Hamza
Theme URI: https://github.com/willFreed1
Author: Hamza Benjeddi
Author URI: https://github.com/willFreed1
Description: High-performance, modern WordPress theme by Hamza Benjeddi, Senior Full Stack Engineer. Specializing in scalable web, blockchain, and AI-powered solutions for global clients.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamza
Tags: full-stack, web3, blockchain, ai, modern, responsive
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004080;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

/* Header & Navigation - Enhanced */
.site-header {
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    padding: 0.5rem 0;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: lowercase;
}

.site-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #0066cc;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    display: none; /* Hide description for cleaner header */
}

/* Navigation - Enhanced */
.site-nav {
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
}

#primary-menu.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu.primary-menu li {
    position: relative;
    margin: 0 0 0 1.5rem;
}

#primary-menu.primary-menu li a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

#primary-menu.primary-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

#primary-menu.primary-menu li a:hover {
    color: #0066cc;
}

#primary-menu.primary-menu li a:hover::after,
#primary-menu.primary-menu li.current-menu-item a::after {
    width: 100%;
}

#primary-menu.primary-menu li.current-menu-item a {
    color: #0066cc;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Dropdown menus */
#primary-menu.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 100;
}

#primary-menu.primary-menu li:hover > .sub-menu {
    display: block;
}

#primary-menu.primary-menu .sub-menu li {
    margin: 0;
}

#primary-menu.primary-menu .sub-menu a {
    padding: 0.5rem 1rem;
}

#primary-menu.primary-menu .sub-menu a::after {
    display: none;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.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: #0066cc;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

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

/* Main Content */
.site-content {
    padding: 2rem 0;
}

#primary.site-main {
    margin-bottom: 2rem;
}

/* Homepage - Hero Enhanced */
#hero.hero {
    text-align: left;
    padding: 6rem 0 4rem;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

#hero.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,102,204,0.05) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

#hero.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

#hero.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #222;
}

#hero.hero h2 {
    font-size: 1.8rem;
    color: #0066cc;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

#hero.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #444;
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
    border: 2px solid #0066cc;
}

.btn-primary:hover {
    background-color: #004d99;
    border-color: #004d99;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover {
    background-color: rgba(0,102,204,0.1);
    color: #0066cc;
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #222;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0066cc;
    margin: 1rem auto 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0066cc;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-list li::before {
    content: '•';
    color: #0066cc;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Experience Section */
.experience-section {
    padding: 5rem 0;
    background-color: #fff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 100px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 44px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #0066cc;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0066cc;
}

.timeline-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.timeline-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #444;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f7ff;
    color: #0066cc;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Education Section */
.education-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.education-item {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.education-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.education-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.education-date {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-description {
    color: #444;
}

/* Featured Projects Section */
.featured-projects-section {
    padding: 5rem 0;
    background-color: #fff;
}

/* Project Categories - Liquid Glass UI Effect */
.project-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    padding: 0.5rem;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-category {
    padding: 0.6rem 1.5rem;
    border: none;
    background-color: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.project-category:hover {
    color: #0066cc;
}

.project-category.active {
    color: #fff;
}

/* Liquid glass slider */
.liquid-slider {
    position: absolute;
    top: 10%;
    left: 0;
    height: 80%;
    width: 0;
    background: linear-gradient(150deg, #0066cc 0%, #00a1ff 100%);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 1rem;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-thumbnail.no-image {
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 80px;
    height: 80px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image span {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.project-content {
    padding: 1.75rem 2rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #0066cc;
}

.project-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    position: relative;
}

.project-excerpt p {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em; /* 3 lines x line-height */
}

.project-footer {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
}

.read-more {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.75px;
    color: #333;
    transition: color 0.3s ease;
    text-transform: uppercase;
    padding-bottom: 2px;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.read-more:hover {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.project-category-tag {
    margin-top: auto;
}

.project-category-tag a {
    display: inline-block;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6C9;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.project-category-tag a:hover {
    color: #4A7;
}

.project-category-tag a.category-personal {
    color: #0099ff;
    background-color: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.project-category-tag a.category-personal:hover {
    background-color: rgba(0, 153, 255, 0.2);
}

.project-category-tag a.category-company {
    color: #ff6600;
    background-color: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.project-category-tag a.category-company:hover {
    background-color: rgba(255, 102, 0, 0.2);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f7ff;
    color: #0066cc;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.projects-action {
    text-align: center;
    margin-top: 2rem;
}

.no-projects {
    text-align: center;
    padding: 3rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Global Reach Section */
.global-reach-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.region {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.region h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0066cc;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.region ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.region li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Contact CTA Section */
.contact-cta-section {
    padding: 5rem 0;
    background-color: #0066cc;
    color: #fff;
    text-align: center;
}

.contact-cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta-section .btn-primary {
    background-color: #fff;
    color: #0066cc;
    border-color: #fff;
}

.contact-cta-section .btn-primary:hover {
    background-color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9);
}

/* Responsive Styles for Homepage */
@media (max-width: 992px) {
    #hero.hero {
        padding: 4rem 0 3rem;
    }
    
    #hero.hero h1 {
        font-size: 2.8rem;
    }
    
    #hero.hero h2 {
        font-size: 1.5rem;
    }
    
    #hero.hero p {
        font-size: 1.1rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #hero.hero {
        text-align: center;
        padding: 3rem 0 2rem;
    }
    
    #hero.hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    #hero.hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    #hero.hero h1 {
        font-size: 2rem;
    }
    
    #hero.hero h2 {
        font-size: 1.3rem;
    }
    
    #hero.hero p {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-category {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .project-card .project-thumbnail {
        height: 180px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .site-branding {
        padding: 0.5rem 0;
    }
    
    .site-nav {
        width: 100%;
        justify-content: flex-end;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .navbar-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease;
    }
    
    .menu-toggle[aria-expanded="true"] + .navbar-container {
        max-height: 500px;
    }
    
    #primary-menu.primary-menu {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    #primary-menu.primary-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    #primary-menu.primary-menu li:last-child {
        border-bottom: none;
    }
    
    #primary-menu.primary-menu li a {
        padding: 1rem;
    }
    
    #primary-menu.primary-menu li a::after {
        display: none;
    }
    
    #primary-menu.primary-menu .sub-menu {
        position: static;
        box-shadow: none;
        display: block;
        width: 100%;
        padding: 0;
        background-color: #f5f5f5;
    }
    
    #primary-menu.primary-menu .sub-menu li a {
        padding-left: 2rem;
    }
    
    #hero.hero {
        text-align: center;
        padding: 3rem 0 2rem;
    }
    
    #hero.hero h1 {
        font-size: 2rem;
    }
    
    #hero.hero h2 {
        font-size: 1.2rem;
    }
    
    #contact-form-section.contact-form-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    #about-intro.about-intro,
    #contact-intro.contact-intro {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    #hero.hero h1 {
        font-size: 1.8rem;
    }
    
    #hero.hero h2 {
        font-size: 1.1rem;
    }
    
    .project-items {
        grid-template-columns: 1fr;
    }
    
    #posts-grid.posts-grid {
        grid-template-columns: 1fr;
    }
    
    #project-filters.project-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    #project-filters.project-filters select,
    #project-filters.project-filters button {
        width: 100%;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 4rem 0 2rem;
    color: #555;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0066cc;
}

.footer-widget p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links,
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li,
.quick-links li {
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-block;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding-left: 1.8rem;
    position: relative;
}

.social-links a:hover {
    color: #0066cc;
}

.social-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links a[href*="github"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23333" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>');
}

.social-links a[href*="linkedin"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%230077b5" d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>');
}

.social-links a[href*="twitter"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%231DA1F2" d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/></svg>');
}

.quick-links a {
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #0066cc;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Mobile styles for project categories */
@media (max-width: 576px) {
    .project-categories {
        flex-direction: column;
        padding: 0.5rem;
        border-radius: 20px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-category {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .liquid-slider {
        width: calc(100% - 1rem) !important;
        height: 40px;
        left: 0.5rem !important;
        top: 0;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
    }
}

/* About Page Styles */
.about-page {
    color: #333;
}

/* About Hero Section */
.about-hero {
    padding: 6rem 0 4rem;
    background-color: #fff;
    position: relative;
    border-bottom: 1px solid #eee;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,102,204,0.05) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #222;
}

.about-hero .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #444;
}

/* About Sections */
.about-section {
    padding: 5rem 0;
}

.about-section.bg-light {
    background-color: #f9f9f9;
}

.about-section .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #222;
    position: relative;
}

.about-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0066cc;
    margin: 1rem auto 0;
}

.about-section .section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section .section-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #444;
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 3rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0066cc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0066cc;
    top: 5px;
}

.timeline-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.timeline-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.timeline-company {
    font-weight: 500;
    color: #0066cc;
}

.timeline-date {
    color: #666;
    font-style: italic;
}

.timeline-description {
    margin-bottom: 1rem;
    color: #555;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f7ff;
    color: #0066cc;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Skills Container */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

/* Education Section */
.education-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.education-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.education-institution {
    font-weight: 500;
    color: #0066cc;
}

.education-date {
    color: #666;
    font-style: italic;
}

.education-description {
    color: #555;
    margin-bottom: 0;
}

/* Interests Section */
.interests-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.interest-item {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.interest-icon {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.interest-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #222;
}

.interest-item p {
    color: #555;
    margin-bottom: 0;
}

/* About Contact CTA */
.about-contact {
    padding: 5rem 0;
    background-color: #0066cc;
    color: #fff;
    text-align: center;
}

.about-contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.about-contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-contact .btn-primary {
    background-color: #fff;
    color: #0066cc;
    border-color: #fff;
}

.about-contact .btn-primary:hover {
    background-color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9);
}

/* Responsive Styles for About Page */
@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero .lead {
        font-size: 1.2rem;
    }
    
    .experience-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0 3rem;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-section {
        padding: 4rem 0;
    }
    
    .about-section .section-title {
        font-size: 1.8rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .interests-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-info {
        flex-direction: column;
    }
    
    .timeline-date {
        margin-top: 0.25rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 3rem 0 2rem;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-hero .lead {
        font-size: 1.1rem;
    }
    
    .about-section {
        padding: 3rem 0;
    }
    
    .skills-container,
    .interests-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: 1rem;
    }
}

/* Work Experience Section */
.work-experience-title {
    font-size: 1.6rem;
    margin: 3rem 0 0.5rem;
    color: #333;
}

.work-experience-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    font-style: italic;
}

/* Languages & Global Reach */
.languages-section,
.markets-section {
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0066cc;
}

.languages-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.language-item {
    background-color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.language-name {
    font-weight: 500;
    color: #0066cc;
}

.markets-description {
    margin-bottom: 1.5rem;
    color: #666;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.market-item {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 500;
    color: #444;
    transition: all 0.3s ease;
}

.market-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    color: #0066cc;
}

/* Responsive styles for Languages & Global Reach */
@media (max-width: 768px) {
    .markets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .languages-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .language-item {
        width: 100%;
        text-align: center;
    }
}

/* Projects Archive Page */
.projects-archive {
    color: #333;
    background-color: #fff;
}

.project-categories-section {
    padding: 4rem 0 2rem;
    background-color: #f8f9fa;
}

/* Filter container - redesigned to match site style */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 0.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

/* Liquid slider effect */
.liquid-slider {
    position: absolute;
    height: 80%;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Category buttons */
.project-category {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 30px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    margin: 0 0.25rem;
}

.project-category.active {
    color: #fff;
}

.project-category:focus {
    outline: none;
}

.project-category:hover:not(.active) {
    color: #0066cc;
}

/* Advanced filters removed */

/* Project Content Bottom */
.project-content-bottom {
    display: none;
}

/* Project Share Section */
.project-share {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .project-sidebar .project-info-item {
        padding-bottom: 1.5rem;
    }
    
    .sidebar-projects {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar-projects {
        flex-direction: row;
    }
    
    .sidebar-project {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 576px) {
    .sidebar-projects {
        flex-direction: column;
    }
    
    .sidebar-project {
        width: 100%;
    }
}

/* Pagination styling */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Mobile styles */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .filter-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
    }
    
    .project-category {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        margin: 0.25rem 0;
    }
    
    .liquid-slider {
        width: calc(100% - 1rem) !important;
        left: 0.5rem;
        height: 40px !important;
        transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Sidebar Projects Styling */
.sidebar-projects {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.sidebar-project {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-project-thumbnail {
    position: relative;
    height: 120px;
    overflow: hidden;
    display: block;
}

.sidebar-project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 1rem;
}

.sidebar-project:hover .sidebar-project-thumbnail img {
    transform: scale(1.05);
}

.sidebar-project h4 {
    padding: 0.75rem 0.75rem 0.25rem;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
}

.sidebar-project h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-project h4 a:hover {
    color: #0066cc;
}

.sidebar-project .project-category-tag {
    padding: 0 0.75rem 0.75rem;
    margin-top: auto;
}

.sidebar-project .project-category-tag a {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Project Overview */
.project-hero {
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.project-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: contain;
    padding: 2rem;
}

.project-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-overview {
    padding: 3rem 0;
    background-color: #fff;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.project-sidebar {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.project-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.project-info-item:last-child {
    border-bottom: none;
}

.project-info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.view-all-projects-section {
    text-align: center;
    margin: 3rem 0 2rem;
}

.project-navigation {
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.project-navigation .container {
    padding: 0;
}

.nav-links {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.nav-previous {
    flex: 1;
    text-align: left;
}

.nav-next {
    flex: 1;
    text-align: right;
}

@media (max-width: 600px) {
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .nav-previous, .nav-next {
        text-align: center;
    }
}

@media (max-width: 992px) {
    .project-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 2rem;
    }
}

/* Code block styling */
pre, pre code, code[class*="language-"] {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
    font-size: 1em;
    background: #f5f7fa;
    color: #222;
    border-radius: 8px;
    padding: 1.1em 1.5em;
    line-height: 1.6;
    overflow-x: auto;
    display: block;
    margin: 2em 0;
}

pre {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 1.1em 1.5em;
    overflow-x: auto;
    margin: 2em 0;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
    background: #f0f0f0;
    color: #c7254e;
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-size: 0.97em;
}

:not(pre) > code {
    background: #f0f0f0;
    color: #c7254e;
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-size: 0.97em;
}

/* Optional: highlight.js or prism.js compatibility */
code[class*="language-"] {
    background: #f5f7fa;
    color: #222;
    padding: 0;
    border-radius: 8px;
    font-size: 1em;
}

/* Project card title size */
.project-card .project-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Single project page title size */
.single-project .project-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .single-project .project-title {
        font-size: 2rem;
    }
}

/* Contact Page Styles */
.contact-page {
    background: #fff;
    color: #222;
}

.contact-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-intro h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#contact-form-section.contact-form-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button,
.send-message-btn {
    background-color: var(--primary-color, #0066cc);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 1rem;
    opacity: 1;
    visibility: visible;
}

.contact-form button:hover,
.send-message-btn:hover {
    background-color: var(--primary-color-dark, #0056b3);
}

.contact-details {
    flex: 1 1 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem;
    margin-top: 0;
}

.contact-details h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #222;
    font-weight: 700;
}

.contact-details p {
    margin-bottom: 1.1rem;
    color: #444;
    font-size: 1rem;
}

.contact-details a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
}

.contact-details a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    #contact-form-section.contact-form-section {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    .contact-details {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .contact-intro {
        margin-top: 2rem;
        margin-bottom: 1.2rem;
    }
    #contact-form-section.contact-form-section {
        padding: 1.2rem 0.5rem;
    }
    .contact-details {
        padding: 1.2rem 0.7rem;
    }
}

/* Form validation and messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.form-response {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Breadcrumbs */
.breadcrumbs-container {
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.breadcrumbs {
    font-size: 0.875rem;
    color: #666;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #ccc;
}

.breadcrumbs a {
    color: var(--primary-color, #0066cc);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Project Single Page - Enhanced Layout */
.project-details-card,
.project-tech-card,
.project-tags-card {
    margin-bottom: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

/* Project Details Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e9ecef;
    gap: 0.5rem;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-value {
    font-size: 1rem;
}

/* Tech stack styling */
.tech-stack-item .detail-label {
    color: #0066cc;
}

.tech-stack-item .detail-value {
    margin-top: 0.25rem;
}

/* Technologies Section */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-tag {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 500;
}

/* Tags Section */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-link {
    text-decoration: none;
}

.tag-link .project-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #555;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 400;
    transition: all 0.2s ease;
}

.tag-link:hover .project-tag {
    background-color: #dee2e6;
    color: #333;
}

@media (min-width: 768px) {
    .project-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Make project sidebar stick to top on scroll on larger screens */
@media (min-width: 992px) {
    .project-sidebar {
        position: sticky;
        top: 2rem;
    }
}

/* Fix for project-tag in existing code to ensure consistent styling */
.project-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #555;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 400;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Styling for tech stack item */
.tech-stack-item {
    background-color: #f0f7ff;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-bottom: none !important;
}

.tech-stack-item strong {
    color: #0066cc;
}

.tech-stack-item span {
    font-weight: 500;
}

/* WordPress Video Fix */
.wp-video {
    width: 100% !important;
}

/* Contact Form 7 Styling to match original design */
.wpcf7-form {
    width: 100%;
    max-width: 100%;
}

.wpcf7-form p {
    margin-bottom: 0;
}

.wpcf7-form br {
    display: none;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 10px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.wpcf7-form textarea {
    min-height: 150px;
}

.wpcf7-form input[type="submit"] {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #0052a3;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 15px 0 0 0 !important;
    padding: 10px !important;
    border-radius: 4px;
}

/* --- Responsive Fixes for Single Project --- */
.single-project .project-description,
.single-project .project-description * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.single-project pre,
.single-project code,
.single-project pre code,
.single-project code[class*="language-"] {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
    border-radius: 8px;
    font-family: 'Fira Mono', monospace;
    font-size: 0.95rem;
}

.single-project img,
.single-project .project-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.single-project table {
    width: 100%;
    display: block;
    overflow-x: auto;
    max-width: 100%;
    border-collapse: collapse;
}

.single-project iframe,
.single-project video {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 576px) {
    .timeline-item {
        padding-left: 0;
    }
}





