/* ======================== PROJECTS PAGE STYLES ======================== */

/* ACTIVE NAV LINK */
.nav-link.active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link.active i {
    color: #00d4ff;
}

/* BACK BUTTON */
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(131, 56, 236, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: auto;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-button:hover {
    background: linear-gradient(135deg, #00d4ff, #8338ec);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    border-color: transparent;
}

.back-button i {
    font-size: 16px;
}

/* HERO SECTION */
.projects-hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.projects-hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite;
}

.projects-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(131, 56, 236, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.projects-title {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.title-word {
    background: linear-gradient(135deg, #00d4ff, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.8s ease-out;
    display: inline-block;
}

.title-word:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-subtitle {
    font-size: 20px;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #8338ec);
    margin: 0 auto;
    border-radius: 2px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* PROJECTS CONTAINER */
.projects-container {
    padding: 120px 0;
    background: linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 100%);
    position: relative;
}

.projects-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 200px;
    left: -200px;
    pointer-events: none;
}

.projects-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 300px;
    right: -100px;
    pointer-events: none;
}

/* PROJECT SECTION */
.project-section {
    margin-bottom: 120px;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 50px;
    padding-left: 20px;
    border-left: 3px solid #00d4ff;
}

.section-title {
    font-size: 36px;
    color: #e0e0e0;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    max-width: 600px;
}

/* PROJECT IMAGES GRID */
.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
    cursor: pointer;
    group: true;
}

.project-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.7) saturate(0.8);
}

.project-image-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1) saturate(1);
}

/* Image Border/Frame Effect */
.project-image-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.project-image-item:hover::before {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Shadow Background */
.project-image-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(131, 56, 236, 0.1));
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.project-image-item:hover::after {
    opacity: 1;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.project-image-item:hover .image-overlay {
    opacity: 1;
}

.image-overlay h4 {
    font-size: 18px;
    color: #00d4ff;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.project-image-item:hover .image-overlay h4 {
    transform: translateY(0);
}

.image-overlay p {
    font-size: 13px;
    color: #ccc;
    margin: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
    opacity: 0;
}

.project-image-item:hover .image-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* PROJECT DETAILS */
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(131, 56, 236, 0.08));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 12px;
    color: #00d4ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 600;
}

/* FOOTER CTA */
.projects-footer-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(131, 56, 236, 0.05));
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    position: relative;
}

.projects-footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.projects-footer-cta h2 {
    font-size: 48px;
    color: #e0e0e0;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -1px;
}

.projects-footer-cta p {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-footer-cta .btn {
    position: relative;
    z-index: 1;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .projects-title {
        font-size: 60px;
    }

    .projects-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .project-images-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-details {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .projects-footer-cta h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 80px 0;
        min-height: 500px;
    }

    .projects-title {
        font-size: 48px;
        gap: 10px;
    }

    .projects-subtitle {
        font-size: 16px;
    }

    .projects-container {
        padding: 80px 0;
    }

    .project-section {
        margin-bottom: 80px;
    }

    .section-header {
        margin-bottom: 35px;
        padding-left: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 14px;
    }

    .image-overlay h4 {
        font-size: 16px;
    }

    .image-overlay p {
        font-size: 12px;
    }

    .detail-label {
        font-size: 11px;
    }

    .detail-value {
        font-size: 14px;
    }

    .projects-footer-cta {
        padding: 60px 0;
    }

    .projects-footer-cta h2 {
        font-size: 32px;
    }

    .projects-footer-cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-button {
        flex-direction: column;
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .projects-hero {
        padding: 60px 0;
        min-height: 400px;
    }

    .projects-title {
        font-size: 36px;
        gap: 8px;
    }

    .projects-subtitle {
        font-size: 14px;
    }

    .projects-container {
        padding: 60px 0;
    }

    .project-section {
        margin-bottom: 60px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-desc {
        font-size: 13px;
    }

    .project-images-grid {
        gap: 15px;
    }

    .project-details {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }

    .image-overlay {
        padding: 15px;
    }

    .image-overlay h4 {
        font-size: 14px;
    }

    .image-overlay p {
        font-size: 11px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 13px;
    }

    .projects-footer-cta {
        padding: 40px 0;
    }

    .projects-footer-cta h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .projects-footer-cta p {
        font-size: 14px;
        margin-bottom: 25px;
    }
}
