/* Project Page Standard Template - Clean Design with White, Red, Black */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
}

body {
    background: #ffffff;
    color: #000;
    overflow-x: hidden;
}

/* Navigation Bar */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-logo {
    height: 50px;
}

.logo-img {
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: #cc0000;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    height: 24px;
    width: 30px;
    position: relative;
    z-index: 200;
}

.menu-toggle-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ff0000;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle-label span:nth-child(1) {
    top: 0px;
}

.menu-toggle-label span:nth-child(2) {
    top: 10px;
}

.menu-toggle-label span:nth-child(3) {
    top: 20px;
}

/* Mobile Menu Animation */
.menu-toggle:checked + .menu-toggle-label span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle:checked + .menu-toggle-label span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle:checked + .menu-toggle-label span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10%;
}

/* Project Hero Section */
.project-hero {
    margin-top: 100px;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.hero-img-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Project Title */
.project-title {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Source Code Pro', monospace;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff0000;
}

.project-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Project Overview Section */
.project-overview {
    padding: 60px 0 100px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ff0000;
    transition: width 0.8s ease;
}

.section-title.animate::after {
    width: 100%;
}

.overview-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.overview-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.overview-text {
    width: 100%;
}

.overview-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    font-family: 'Source Code Pro', monospace;
}

.overview-text p:last-of-type {
    margin-bottom: 2rem;
}

/* View Project Button */
.project-cta {
    margin-top: 2rem;
}

.view-project-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Source Code Pro', monospace;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.view-project-btn:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Project Objectives Section */
.project-objectives {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.objective-card {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    border-top: 3px solid #ff0000;
}

.objective-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.objective-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ff0000;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.objective-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #000;
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
}

.objective-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    font-family: 'Source Code Pro', monospace;
}

/* Screenshots Section */
.project-screenshots {
    padding: 100px 0;
    background-color: #ffffff;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.screenshot-item.visible {
    opacity: 1;
    transform: scale(1);
}

.screenshot-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
    font-size: 1rem;
    font-family: 'Source Code Pro', monospace;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-caption {
    transform: translateY(0);
}

/* Software Used Section */
.software-used {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
}

.software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.software-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.software-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.software-item:hover .software-icon {
    transform: scale(1.1);
}

.software-name {
    font-size: 1rem;
    color: #000;
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
}

/* Next Project Section */
.next-project {
    padding: 80px 0;
    background-color: #000000;
    color: white;
    text-align: center;
}

.next-project-label {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.next-project-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.75rem 2rem;
    background-color: rgba(255, 0, 0, 0.2);
    border-radius: 30px;
}

.next-project-link:hover {
    transform: translateX(10px);
    background-color: rgba(255, 0, 0, 0.3);
}

.next-project-title {
    font-size: 2.5rem;
    margin-right: 1rem;
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
}

.next-project-arrow {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.next-project-link:hover .next-project-arrow {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 2rem 10%;
    text-align: center;
    background: #f5f5f5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer .social-icon {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.footer .social-link:hover .social-icon {
    transform: scale(1.2);
    opacity: 1;
}

.copyright {
    font-size: 1rem;
    color: #000;
}

.version {
    color: #ff0000;
}

/* Animation for section titles */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .project-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Menu Toggle */
    .menu-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Navigation Links */
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-100%);
        transition: all 0.5s ease;
    }
    
    /* Show mobile menu when checkbox is checked */
    .menu-toggle:checked ~ .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    /* Adjust nav button styling for mobile */
    .nav-btn {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        background-color: transparent;
        color: #000;
        position: relative;
    }
    
    .nav-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #ff0000;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-btn:hover {
        background-color: transparent;
        color: #ff0000;
    }
    
    .nav-btn:hover::after {
        width: 80%;
    }
    
    .nav {
        padding: 1rem 5%;
    }
    
    .container {
        padding: 0 5%;
    }
    
    .project-hero {
        margin-top: 80px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-overview, 
    .project-objectives, 
    .project-screenshots, 
    .software-used {
        padding: 70px 0;
    }
    
    .next-project {
        padding: 60px 0;
    }
    
    .next-project-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .project-title {
        font-size: 1.8rem;
    }
    
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}