/* VGTech - Projects Page Styles (Updated Version) */
/* Thiết kế hiện đại với màu sắc hài hòa dựa trên bảng màu gốc */

/* Use global variables from site theme for color consistency */
/* Fallbacks in case globals are missing */
:root {
    --primary-gradient: linear-gradient(135deg, var(--primary-color, #0891b2) 0%, var(--primary-dark, #0e7490) 100%);
}

/* ========== PROJECTS HERO SECTION ========== */
.projects-hero {
    background: var(--primary-gradient);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.8;
}

.projects-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.projects-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.projects-hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

/* ========== PROJECTS FILTER SECTION ========== */
.projects-filter {
    padding: 2.5rem 0;
    background: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-light, #e2e8f0);
    background: var(--bg-white, #ffffff);
    color: var(--text-secondary, #64748b);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left var(--transition-normal);
    z-index: -1;
}

.filter-tab:hover::before,
.filter-tab.active::before {
    left: 0;
}

.filter-tab:hover,
.filter-tab.active {
    color: white;
    border-color: var(--primary-color, #0891b2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.filter-tab svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.filter-tab:hover svg {
    transform: scale(1.1);
}

/* ========== PROJECTS SECTION ========== */
.projects-section {
    padding: 4rem 0;
    background: var(--bg-secondary, #f8fafc);
    min-height: 60vh;
}

/* Updated Grid Layout - 4 columns on desktop, 2 on mobile */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* ========== PROJECT CARD - Made smaller ========== */
.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light, #e2e8f0);
    transition: all var(--transition-normal);
    position: relative;
    height: fit-content;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light, #06b6d4);
}

.project-card:hover::before {
    opacity: 0.02;
}

/* Project Card Image - Smaller */
.project-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--primary-gradient);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}

.project-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color, #0891b2);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.project-card-category svg {
    width: 14px;
    height: 14px;
}

/* Status Badges - Smaller */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.status-badge.in-progress {
    background: rgba(245, 158, 11, 0.95);
    color: white;
}

.status-badge.planning {
    background: rgba(59, 130, 246, 0.95);
    color: white;
}

.status-badge svg {
    width: 12px;
    height: 12px;
}

/* Project Card Content - Compact */
.project-card-content {
    padding: 1.5rem;
}

.project-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

.project-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color, #0891b2);
}

.project-card-title {
    margin-bottom: 0.75rem;
}

.project-card-title a {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-title a:hover {
    color: var(--primary-color, #0891b2);
}

.project-card-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Features - Compact */
.project-card-features {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.feature-tag:hover {
    background: var(--primary-color, #0891b2);
    color: white;
    border-color: var(--primary-color, #0891b2);
}

.feature-tag.more {
    background: var(--primary-color, #0891b2);
    color: white;
    border-color: var(--primary-color, #0891b2);
}

/* Project Card Footer - Compact */
.project-card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.project-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color, #0891b2);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    position: relative;
}

.project-card-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color, #0891b2);
    transition: width var(--transition-normal);
}

.project-card-btn:hover::after {
    width: 100%;
}

.project-card-btn:hover {
    color: var(--primary-dark, #0e7490);
    transform: translateX(4px);
}

.project-card-btn svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-normal);
}

.project-card-btn:hover svg {
    transform: translateX(4px);
}

/* ========== EMPTY STATE ========== */
.projects-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    grid-column: 1 / -1;
}

.projects-empty-icon {
    margin-bottom: 2rem;
}

.projects-empty-icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-light);
}

.projects-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.projects-empty p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.125rem;
}

/* ========== PAGINATION ========== */
.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.pagination-number:hover,
.pagination-number.pagination-current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== PROJECT DETAIL PAGE ========== */

/* Breadcrumb */
.project-detail-hero {
    background: var(--primary-gradient);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.project-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.project-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.project-detail-breadcrumb a:hover {
    color: white;
}

.project-detail-breadcrumb svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.project-detail-breadcrumb span {
    color: white;
    font-weight: 600;
}

/* Project Detail Section */
.project-detail-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Main Content */
.project-detail-main {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.project-detail-card {
    height: 100%;
}

.project-detail-header {
    padding: 2.5rem 2.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.project-detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-detail-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.project-detail-status {
    margin-bottom: 0;
}

/* Project Image */
.project-detail-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.project-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Description & Content */
.project-detail-description,
.project-detail-content {
    padding: 2.5rem;
}

.project-detail-description {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2rem;
}

.project-detail-description p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.project-detail-content h2,
.project-detail-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.project-detail-content h2:first-child,
.project-detail-content h3:first-child {
    margin-top: 0;
}

.project-detail-content p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-detail-content ul,
.project-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.project-detail-content li {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Project Gallery */
.project-detail-gallery {
    padding: 2.5rem;
    border-top: 1px solid var(--border-light);
}

.project-detail-gallery h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Project Footer */
.project-detail-footer {
    padding: 2.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.project-detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ========== SIDEBAR ========== */
.project-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
}

/* Sidebar Cards */
.project-info-card,
.project-features-card,
.project-technologies-card,
.project-contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition-normal);
}

.project-info-card:hover,
.project-features-card:hover,
.project-technologies-card:hover,
.project-contact-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-info-card h3,
.project-features-card h3,
.project-technologies-card h3,
.project-contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* Project Info List */
.project-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

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

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    min-width: 100px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.feature-item svg {
    width: 16px;
    height: 16px;
    color: var(--success-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9375rem;
}

/* Technologies */
.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Contact Card */
.project-contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* ========== CTA SECTION ========== */
.projects-cta {
    padding: 5rem 0;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.projects-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.btn:hover svg {
    transform: scale(1.1);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Desktop (1200px+) - 4 columns */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Desktop (992px - 1199px) - 3 columns */
@media (max-width: 1199px) and (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (768px - 991px) - 2 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-detail-sidebar {
        position: static;
        grid-row: 2;
    }
}

/* Mobile Large (576px - 767px) - 2 columns */
@media (max-width: 767px) and (min-width: 576px) {
    .projects-hero {
        padding: 4rem 0;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .project-card-content {
        padding: 1.25rem;
    }
    
    .project-card-image {
        height: 160px;
    }
    
    .project-detail-header,
    .project-detail-description,
    .project-detail-content,
    .project-detail-gallery,
    .project-detail-footer {
        padding: 1.5rem;
    }
    
    .project-detail-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Mobile Small (up to 575px) - 1 column */
@media (max-width: 575px) {
    .projects-hero {
        padding: 3rem 0;
    }
    
    .projects-section {
        padding: 3rem 0;
    }
    
    .projects-cta {
        padding: 4rem 0;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card-overlay {
        padding: 0.75rem;
    }
    
    .project-card-category {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .status-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .project-card-content {
        padding: 1rem;
    }
    
    .project-card-image {
        height: 140px;
    }
    
    .project-card-meta {
        gap: 0.75rem;
    }
    
    .project-detail-meta {
        gap: 1rem;
    }
    
    .project-detail-image {
        height: 250px;
    }
    
    .project-info-card,
    .project-features-card,
    .project-technologies-card,
    .project-contact-card {
        padding: 1.5rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.filter-tab:focus,
.project-card-btn:focus,
.btn:focus,
.pagination-btn:focus,
.pagination-number:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .projects-filter,
    .projects-pagination,
    .projects-cta,
    .project-detail-sidebar {
        display: none;
    }
    
    .project-card,
    .project-detail-main {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}