:root {
    --primary-blue: #2E4A7C;
    --secondary-blue: #1A2A44;
    --accent-blue: #4A90E2;
    --light-blue: #F0F8FF;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E8F4FD;
    --shadow: 0 10px 40px rgba(46, 74, 124, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --yellow-accent: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FF8C00); /* Gold → Dark Orange */
    z-index: 9999;
    transition: width 0.1s ease;
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(46, 74, 124, 0.8), rgba(26, 42, 68, 0.9)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin: 40px 20px 60px 20px;
    box-shadow: 0 15px 40px rgba(46, 74, 124, 0.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Filter Section */
.filter-section {
    padding: 60px 0 40px;
    background: var(--light-blue);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 15px 35px;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

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

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 74, 124, 0.3);
}

/* Projects Grid */
.projects-section {
    padding: 40px 0 100px;
    background: var(--light-blue);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-item {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(46, 74, 124, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(46, 74, 124, 0.1);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
    border-radius: 25px;
}

.project-item:hover {
    transform: translateY(-20px) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 40px 80px rgba(46, 74, 124, 0.25);
}

.project-item:hover::before {
    opacity: 0.05;
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-image img {
    transform: scale(1.15) rotate(2deg);
}

.project-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.project-item:hover .project-content h3 {
    color: var(--accent-blue);
    transform: translateX(10px);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.location,
.year {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.location i,
.year i {
    color: var(--yellow-accent);
    font-size: 1.1rem;
}

.project-category {
    background: var(--gradient);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.project-category::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: all 0.6s ease;
}

.project-item:hover .project-category::before {
    left: 100%;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    background-attachment: fixed;
}

.testimonials-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.testimonials-highlight {
    color: var(--yellow-accent);
    background: linear-gradient(45deg, var(--yellow-accent), #FFE082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.testimonial-item {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.testimonial-item:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-item:hover::before {
    left: 100%;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--yellow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Load More Button */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    padding: 20px 60px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-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 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(46, 74, 124, 0.4);
}

/* Hidden/Animation Classes */
.project-item.hidden {
    display: none;
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        margin: 20px 10px 40px 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-content {
        padding: 30px;
    }

    .testimonials-section h2 {
        font-size: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonial-item {
        padding: 2rem;
    }

    .project-item:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-content {
        padding: 25px;
    }

    .load-more-btn {
        padding: 15px 40px;
        font-size: 1rem;
    }

    .project-content h3 {
        font-size: 1.4rem;
    }
}


.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}