/*
Theme Name: Portfolio Pro
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Professional portfolio theme for showcasing your work
Version: 2.0
License: GPL v2 or later
Text Domain: portfolio-pro
*/

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.site-header {
    background-color: #ebebeb;
    padding: 20px 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #000;
    font-size: 18px;
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
    background-color: #fff;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 44px;
    height: 44px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.social-links a:hover {
    background-color: #333;
    transform: scale(1.1);
}

.social-links svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* Cases Section */
.cases-section {
    padding: 40px 0 60px;
    background-color: transparent;
}

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

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.case-item {
    transition: transform 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.case-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.case-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Fallback for cases without wrapper */
a > .case-image:not(.case-image-wrapper .case-image) {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.case-content {
    padding: 0;
}

.case-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.case-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

/* Responsive Cases Grid */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 640px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cases-section {
        padding: 40px 0;
    }
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    max-width: 160px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-menu a {
    color: #fff;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    opacity: 0.7;
}

.footer-text {
    font-size: 14px;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: 0.3s;
}

/* Blog/Archive styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.blog-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.entry-meta {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.entry-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.entry-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #333;
    font-weight: 600;
}

.read-more:hover {
    color: #000;
}

/* Single Post styles */
.single-post .entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 100px;
}

.single-post .entry-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.single-post .entry-meta {
    font-size: 14px;
    color: #999;
}

.single-post .post-thumbnail {
    margin-bottom: 40px;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    margin: 30px 0;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    margin: 60px 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.pagination .current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
        position: relative;
        z-index: 1001;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ebebeb;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .main-navigation.is-active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 25px;
    }
    
    .main-navigation ul li a {
        font-size: 20px;
        font-weight: 500;
        display: block;
        padding: 5px;
    }
    
    /* Transform hamburger to X when active */
    .menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .partners-grid {
        gap: 30px;
    }
    
    .partner-logo {
        max-width: 120px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .case-title {
        font-size: 18px;
    }
}
