@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap');
@import url("global.css");

* {
    font-family: "Heebo", sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Animation classes */
.fadeInUp-animation {
    animation: fadeInUp 1s ease-out;
}

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

/* Header styles */
header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header li {
    margin-left: 20px;
}

header a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: .3s all;
    padding: 8px 12px;
    border-radius: 5px;
}

header a:hover {
    color: #ff6363;
    background-color: rgba(255, 99, 99, 0.1);
}

header a.active {
    color: #ff6363;
    background-color: rgba(255, 99, 99, 0.1);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #21243D;
    color: white;
    border-radius: 30px 30px 0 0;
    margin-top: 50px;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer .social-links a {
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
}

.social-icon i {
    color: #21243D;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-5px);
    background-color: #ff6363;
}

footer .social-links a:hover i {
    color: white;
}

footer p {
    font-size: 14px;
    color: #e0e0e0;
    margin-top: 10px;
}

/* Portfolio header */
.portfolio-header {
    text-align: center;
    padding: 50px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 44px;
    color: #21243D;
    margin-bottom: 15px;
    font-weight: 800;
}

.highlight {
    color: #ff6363;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 99, 99, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #555;
}

.filter-btn:hover {
    background-color: rgba(255, 99, 99, 0.1);
    color: #ff6363;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #ff6363;
    color: white;
}

/* Featured works */
.featured-works {
    padding: 20px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.works {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.work-card {
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.work {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.work:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.work-link {
    text-decoration: none;
    color: inherit;
}

.work-img {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.work-img img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.work:hover .work-img img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.work:hover .overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.view-project i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.work:hover .view-project {
    background-color: #ff6363;
    border-color: #ff6363;
}

.work:hover .view-project i {
    transform: translateX(5px);
}

.work-text {
    flex: 1;
}

.work-text h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #21243D;
    transition: color 0.3s ease;
}

.work:hover .work-text h3 {
    color: #ff6363;
}

.work-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.year {
    color: white;
    font-weight: bold;
    background-color: #142850;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.work:hover .year {
    background-color: #ff6363;
}

.category {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category i {
    color: #ff6363;
}

.work-text p {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech {
    background-color: #f0f4f8;
    color: #21243D;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.work:hover .tech {
    background-color: rgba(255, 99, 99, 0.1);
    color: #ff6363;
}

/* Work detail page styles */
main {
    padding: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.work-detail h1 {
    font-size: 36px;
    color: #21243D;
}

.tags {
    color: #8695A4;
    margin: 10px 0;
}

.year {
    background-color: #ff6363;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.tag {
    background-color: #e2ffeb;
    color: #14532D;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 5px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.image-container img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.text-section {
    margin: 40px 0;
}

.text-section h2,
.text-section h3 {
    color: #21243D;
    margin-bottom: 15px;
}

.text-section h2 {
    font-size: 28px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.text-section h2::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #ff6363;
    bottom: -8px;
    left: 0;
    border-radius: 3px;
}

.text-section h3 {
    font-size: 22px;
    margin-top: 30px;
}

.text-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .work {
        flex-direction: column;
        align-items: center;
    }
    
    .work-img img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .work-text {
        text-align: center;
    }
    
    .work-tags {
        justify-content: center;
    }
    
    .tech-stack {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    header {
        justify-content: center;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .featured-works {
        padding: 20px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .work {
        padding: 15px;
    }
    
    .work-text h3 {
        font-size: 22px;
    }
    
    .work-text p {
        font-size: 14px;
    }
    
    main {
        padding: 20px;
    }
    
    .image-container img {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .filters {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .work {
        padding: 10px;
    }
}

/* Animation for elements on scroll */
.animate__fadeInUp {
    animation-duration: 0.8s;
    animation-delay: 0.1s;
}
