@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #030027;
    color: #ffffff;
    line-height: 1.6;
}

/* Projects Hero Section */
.projects-hero {
    padding: 120px 5% 50px;
    text-align: center;
    position: relative;
}

.projects-heading {
    position: relative;
    display: inline-block;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.projects-heading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #030027;   
    animation: Animation 1s ease forwards;
    animation-delay: .6s; 
}

.projects-heading span {
    color: #69a0b8;
}

.projects-subheading {
    position: relative;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.projects-subheading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #030027;   
    animation: Animation 1s ease forwards;
    animation-delay: .8s; 
}

/* Projects Filter */
.projects-filter {
    padding: 0 5% 30px;
    position: relative;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.filter-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #030027;   
    animation: Animation 1s ease forwards;
    animation-delay: 1s; 
    z-index: 1;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid #69a0b8;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.filter-btn:hover, .filter-btn.active {
    background: #69a0b8;
    color: #030027;
}

/* Projects Grid */
.projects-grid {
    padding: 20px 5% 50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.projects-grid::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #030027;   
    animation: Animation 1s ease forwards;
    animation-delay: 1.2s; 
    z-index: 1;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 0, 39, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #69a0b8;
    color: #030027;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #fff;
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-tech {
    color: #69a0b8;
    font-size: 14px;
    font-weight: 500;
}

/* Project Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show-modal {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #030027;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    border: 2px solid #69a0b8;
    box-shadow: 0 0 20px rgba(105, 160, 184, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #69a0b8;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #69a0b8;
}

.modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-content > p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.modal-detail h4 {
    color: #69a0b8;
    margin-bottom: 10px;
    font-size: 18px;
}

.modal-detail ul {
    padding-left: 20px;
}

.modal-detail li {
    margin-bottom: 5px;
}

.modal-cta {
    text-align: center;
}

.modal-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #69a0b8;
    color: #030027;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #69a0b8;
}

.modal-btn:hover {
    background: transparent;
    color: #69a0b8;
}

/* CTA Section */
.cta {
    padding: 80px 5%;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #030027;   
    animation: Animation 1s ease forwards;
    animation-delay: 1.4s; 
    z-index: 1;
}

.cta-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-content p {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 2;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 150px;
    border: 2px solid #69a0b8;
    background: #69a0b8;
    border-radius: 8px;
    font-size: 19px;
    color: #030027;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box a:hover {
    color: #69a0b8;
}

.btn-box a:nth-child(2) {
    background: transparent;
    color: #69a0b8;
}

.btn-box a:nth-child(2):hover {
    color: #030027;
}

.btn-box a:nth-child(2)::before {
    background: #69a0b8;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #030027;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before {
    width: 100%;
}

/* Animations */
@keyframes Animation {
    100% {
        width: 0;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-heading {
        font-size: 40px;
    }
    
    .btn-box {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .projects-heading {
        font-size: 32px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}