/* Projects Archive Styles
--------------------------------- */
:root {
    --primary-color: #0066FF;
    --primary-dark: #0050c7;
    --secondary-color: #333;
    --background-light: #fff;
    --background-gray: #f8f9fa;
    --background-accent: #f0f7ff;
    --text-primary: #222;
    --text-secondary: #555;
    --text-light: #777;
    --accent-color: #0066FF;
    --accent-yellow: #FFB800;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --content-width: 1160px;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Wave Background */
.wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(135deg, #fdba373d 0%, #fdba3726 100%);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: -1;
    opacity: 0.8;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
}

/* Archive Header */
.projects-archive-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Search Bar */
.projects-search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.projects-search-form {
    display: flex;
    position: relative;
}

.projects-search-form .search-field {
    width: 100%;
    padding: 1rem 1.2rem;
    padding-right: 3.5rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #222222 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    transition: var(--transition);
    color: white;
}

.projects-search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(0, 102, 255, 0.15);
}

.projects-search-form .search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.projects-search-form .search-submit:hover {
    color: var(--primary-color);
}

.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Search Spinner */
.search-spinner {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 102, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Categories Filter */
.projects-categories {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.categories-wrapper {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.5rem;
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: white;
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.category-pill:hover {
    background-color: #fef5e3;
    color: #7d5c05;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.category-pill.active {
    background-color: #fdba37;
    color: black;
    border-color: #fdba37;
}

/* Enhanced Category Pill Animations */
.category-pill {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.category-pill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 80%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 30px;
}

.category-pill.clicked:after {
    animation: ripple 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.category-pill.active {
    background-color: #fdba37;
    color: black;
    border-color: #fdba37;
    animation: pulse-glow 2s infinite alternate;
    position: relative;
    z-index: 1;
    transform: translateY(-2px);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(249, 186, 55, 0.4); }
    100% { box-shadow: 0 0 8px 0 rgba(249, 186, 55, 0.6); }
}

/* Projects Archive Content */
.projects-archive-content {
    padding: 1rem 0 4rem;
}

/* Featured Project */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.featured-project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.featured-label {
    display: inline-block;
    background-color: #00000021;
    color: #000000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.project-category {
    display: inline-block;
    background-color: rgba(249, 186, 55, 0.15);
    color: #7a5900;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}


.featured-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item svg {
    margin-right: 0.5rem;
    color: var(--accent-yellow);
}

.read-more-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #fdba37;
    color: black;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(253, 186, 55, 0.2);
}

.featured-image {
    height: 100%;
    overflow: hidden;
}

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

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

/* Section Heading */
.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 2.5rem 0 2rem;
    color: var(--text-primary);
    position: relative;
}

.section-heading:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #fdba37;
    margin: 0.8rem auto 0;
    border-radius: 1.5px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

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

.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-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category-badge {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background-color: rgba(249, 186, 55, 0.15);
    color: #7a5900;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-category-badge:hover {
    background-color: #fdba37;
    color: black;
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.8rem 0 0.5rem;
    line-height: 1.4;
}

.project-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.project-title a:hover {
    color: var(--accent-yellow);
}

.project-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.meta-item svg {
    margin-right: 0.4rem;
    color: var(--accent-yellow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.view-project {
    padding: 0.6rem 1.2rem;
    background-color: #fdba37;
    color: black;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

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

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

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-numbers.current {
    background-color: #fdba37;
    color: black;
}

.page-numbers:not(.current):hover {
    background-color: #fef5e3;
    color: #7a5900;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-numbers.prev, .page-numbers.next {
    width: auto;
    padding: 0 1rem;
    border-radius: 20px;
}

.page-numbers svg {
    margin: 0 0.3rem;
    width: 16px;
    height: 16px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

.no-results svg {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.no-results h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.no-results p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.button-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: rgba(249, 186, 55, 0.15);
    color: #7a5900;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.button-secondary:hover {
    background-color: #fdba37;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Search Indicator */
.search-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: #fef8e8;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid #fdba37;
    animation: slideInDown 0.5s ease;
}

.search-indicator span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-indicator strong {
    color: var(--text-primary);
    font-weight: 600;
}

.reset-search {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.reset-search:hover:after {
    transform: scale(1);
    opacity: 1;
}

.reset-search:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.reset-search:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

/* CTA Section */
.archive-cta {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f9ba37 0%, #f9ba37 100%);
    color: black;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    max-width:1160px; 
    margin:auto;
    margin-bottom:250px;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"%3E%3Cpolygon fill="%23ffffff" points="0,100 100,0 100,100"%3E%3C/polygon%3E%3C/svg%3E');
    background-size: 100% 100%;
}

.archive-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.archive-cta p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    position: relative;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: black;
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-project {
        grid-template-columns: 1fr;
    }
    
    .featured-project-content {
        order: 1;
    }
    
    .featured-image {
        height: 300px;
        order: 0;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2.2rem;
    }
    
    .archive-description {
        font-size: 1rem;
    }
    
    .featured-title {
        font-size: 1.6rem;
    }
    
    .featured-project-content {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .projects-archive-header {
        padding: 2rem 0 1.5rem;
    }
    
    .category-pill {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.8rem;
    }
    
    .archive-description {
        font-size: 0.95rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .categories-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-pill {
        flex-shrink: 0;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .project-image {
        height: 180px;
    }
} 