/* Projects Page Styles - Matching Contact Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    padding-top: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Projects Hero */
.projects-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1629;
    position: relative;
    overflow: hidden;
}

.projects-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 209, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(0, 163, 255, 0.1) 0%, transparent 50%);
}

.projects-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: slideInDown 0.8s ease-out;
}

.projects-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}

.projects-hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Section */
.filter-section {
    padding: 60px 20px 40px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: #00D1FF;
    color: #00D1FF;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #00D1FF 0%, #00A3CC 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 209, 255, 0.3);
}

/* Projects Section */
.projects-section {
    padding: 80px 20px 100px;
    background: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.project-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: #00D1FF;
    box-shadow: 0 20px 50px rgba(0, 209, 255, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.9) 0%, rgba(0, 163, 204, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D1FF;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.2s;
}

.project-link:hover {
    background: #0a1629;
    color: white;
    transform: scale(1.1) translateY(0);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1629;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: #00D1FF;
}

.project-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 6px 14px;
    background: rgba(0, 209, 255, 0.1);
    color: #00A3CC;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card:hover .tech-badge {
    background: rgba(0, 209, 255, 0.2);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: #0a1629;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 209, 255, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #00D1FF 0%, #00A3CC 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 209, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 209, 255, 0.4);
}
