@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #2e1a4a 50%, #4a2e6d 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    color: #c084fc;
    transform: translateX(-5px);
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-mini-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.profile-name {
    font-weight: 500;
    color: #e0e0e0;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Project Hero */
.project-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.project-header {
    max-width: 800px;
    margin: 0 auto;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(168, 85, 247, 0.3);
}

.project-subtitle {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    color: #a855f7;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Project Details */
.project-details {
    margin-top: 4rem;
}

.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Gallery Section */
.gallery-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.vertical-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    color: #a855f7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 1rem;
}

.image-caption {
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #a855f7;
}

.modal-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80vh;
}

.modal-image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    margin-top: 1rem;
    text-align: center;
}

.modal-caption p {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 600px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.5);
    color: #a855f7;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-nav:hover {
    background: rgba(168, 85, 247, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: -80px;
}

.modal-nav.next {
    right: -80px;
}

.modal-dots {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-dot.active,
.modal-dot:hover {
    background: #a855f7;
    transform: scale(1.3);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 1rem;
}

.info-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    color: #e0e0e0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #a855f7;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-nav.prev {
        left: -60px;
    }
    
    .modal-nav.next {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .nav-section {
        padding: 0 1rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .tech-tags {
        gap: 0.5rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .gallery-section,
    .info-card {
        padding: 1rem;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .modal-nav {
        position: relative;
        margin: 1rem;
    }
    
    .modal-nav.prev,
    .modal-nav.next {
        left: auto;
        right: auto;
    }
    
    .modal-gallery {
        flex-direction: column;
        height: auto;
    }
    
    .modal-image {
        max-height: 60vh;
    }
    
    .close-btn {
        top: -40px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .project-hero {
        padding: 2rem 0;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .profile-mini {
        gap: 0.5rem;
    }
    
    .profile-mini-img {
        width: 35px;
        height: 35px;
    }
    
    .profile-name {
        font-size: 0.9rem;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .modal-content {
        max-width: 95vw;
        padding: 1rem;
    }
    
    .modal-image {
        max-height: 50vh;
    }
    
    .zoom-icon {
        font-size: 1.5rem;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
