/* Projects Page Styles */

.projects-page {
    padding-top: 0;
}

/* ==================== HERO SECTION ==================== */
.projects-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-deco {
    position: absolute;
}

.hero-deco.deco-1 {
    width: 80px;
    height: 80px;
    background: #00c8ff;
    top: 120px;
    right: 15%;
}

.hero-deco.deco-2 {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    top: 200px;
    right: 10%;
}

.hero-deco.deco-3 {
    width: 40px;
    height: 40px;
    background: var(--primary-dark);
    bottom: 100px;
    left: 5%;
}

.projects-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-left h1 {
    font-family: 'VL Allround Gothic', 'Inter', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dark);
    margin: 20px 0 24px;
}

.hero-left h1 .highlight {
    color: var(--primary-green);
}

.hero-desc {
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 500px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-family: 'VL Allround Gothic', 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Section */
.filter-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* ==================== PROJECTS GRID ==================== */
.projects-grid-section {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.project-item {
    position: relative;
}

.project-item.featured {
    grid-column: span 2;
}

/* Project Card */
.project-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    transition: all 0.4s ease;
}

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

.project-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.project-item.featured .project-image {
    height: 400px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.view-project .arrow {
    transition: transform 0.3s ease;
}

.view-project:hover .arrow {
    transform: translate(3px, -3px);
}

/* Project Info */
.project-info {
    padding: 24px;
    background: white;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--bg-light);
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.tag.light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tag.dark {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.project-info h3 {
    font-family: 'VL Allround Gothic', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.project-info p {
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Colored Cards */
.blue-card .project-image.geometric {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blue-card .project-info {
    background: var(--primary-blue);
}

.blue-card .project-info h3,
.blue-card .project-info p {
    color: white;
}

.geo-shapes {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-cube {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: float 4s ease-in-out infinite;
}

.geo-lines {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

/* Yellow Card */
.yellow-card .project-image.brand-showcase {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    font-family: 'VL Allround Gothic', 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--text-dark);
}

.yellow-card .project-info {
    background: #fbbf24;
}

/* Gradient Card */
.gradient-card .project-image.gradient-bg {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #00c8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-pattern {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gradient-card .project-info {
    background: var(--primary-dark);
}

.gradient-card .project-info h3,
.gradient-card .project-info p {
    color: white;
}

/* Dark Card */
.dark-card .project-image.dark-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-pattern {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.dark-pattern::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-card .project-info {
    background: #0f172a;
}

.dark-card .project-info h3,
.dark-card .project-info p {
    color: white;
}

/* Quote Block */
.quote-block {
    grid-column: span 1;
    display: flex;
    align-items: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 16px;
}

.quote-content {
    text-align: center;
}

.quote-icon {
    margin-bottom: 20px;
}

.quote-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
}

.quote-block h2 {
    font-family: 'VL Allround Gothic', 'Inter', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Load More */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    background: transparent;
    border: 2px solid var(--primary-blue);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: translateY(4px);
}

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

.projects-cta .cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.projects-cta .cta-deco {
    position: absolute;
}

.projects-cta .cta-deco.deco-left {
    width: 100px;
    height: 100px;
    top: 20px;
    left: 10%;
    background: #00c8ff;
}

.projects-cta .cta-deco.deco-center-1 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 40%;
    background: var(--primary-blue);
    opacity: 0.5;
}

.projects-cta .cta-deco.deco-center-2 {
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 50%;
    background: #00c8ff;
    opacity: 0.3;
}

.projects-cta .cta-deco.deco-right {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    opacity: 0.4;
}

.cta-content-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    font-family: 'VL Allround Gothic', 'Inter', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    color: white;
    margin: 20px 0 24px;
}

.cta-text p {
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    transition: var(--transition);
    text-align: center;
}

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

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn.primary .btn-arrow {
    transition: transform 0.3s ease;
}

.cta-btn.primary:hover .btn-arrow {
    transform: translate(3px, -3px);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cta-btn.secondary svg {
    width: 20px;
    height: 20px;
}

/* Section Label (sync with homepage) */
.section-label-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.label-icon {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
}

.label-icon.white {
    background: white;
}

.section-label {
    font-family: 'SF Compact Text', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-blue);
}

.section-label.white {
    color: white;
}

/* Active nav link */
.nav-list a.active {
    color: var(--primary-blue);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .projects-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item.featured {
        grid-column: span 2;
    }
    
    .quote-block {
        grid-column: span 2;
    }
    
    .cta-content-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-text p {
        margin: 0 auto 30px;
    }
    
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .projects-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-deco.deco-1,
    .hero-deco.deco-2 {
        display: none;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 120px 0 60px;
    }
    
    .projects-masonry {
        grid-template-columns: 1fr;
    }
    
    .project-item,
    .project-item.featured,
    .quote-block {
        grid-column: span 1;
    }
    
    .project-item.featured .project-image {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
    }
    
    .projects-cta .cta-deco {
        display: none;
    }
    
    .projects-cta .cta-deco.deco-left {
        display: block;
        width: 60px;
        height: 60px;
        top: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .project-image {
        height: 250px;
    }
    
    .brand-logo {
        font-size: 42px;
    }
    
    .quote-block {
        padding: 30px 20px;
    }
    
    .projects-cta {
        padding: 60px 0;
    }
    
    .cta-text h2 {
        font-size: 28px;
    }
}
