/* ============================================
   PROJECTS PAGE STYLES
   ============================================ */

/* Projects Hero */
.projects-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.fade-in {
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Cards */
.projects-grid {
    background-color: #181a1b;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.project-card {
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e1e1e 0%, #2a2a2a 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.project-card:hover .project-card-inner {
    transform: translateY(-10px);
    border-color: #00bfff;
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.3);
}

/* Animated Code Lines */
.code-lines {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    opacity: 0.15;
}

.code-line {
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
    margin-bottom: 8px;
    border-radius: 2px;
    animation: codePulse 3s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 60%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 80%;
    animation-delay: 0.3s;
}

.code-line:nth-child(3) {
    width: 45%;
    animation-delay: 0.6s;
}

.code-line:nth-child(4) {
    width: 70%;
    animation-delay: 0.9s;
}

.code-line:nth-child(5) {
    width: 55%;
    animation-delay: 1.2s;
}

@keyframes codePulse {

    0%,
    100% {
        opacity: 0.15;
        transform: translateX(0);
    }

    50% {
        opacity: 0.4;
        transform: translateX(5px);
    }
}

.project-card:hover .code-line {
    animation: codeScroll 2s ease-in-out infinite;
}

@keyframes codeScroll {

    0%,
    100% {
        opacity: 0.2;
        transform: translateX(0);
    }

    50% {
        opacity: 0.6;
        transform: translateX(20px);
    }
}

/* Project Content */
.project-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.project-number {
    font-size: 4rem;
    font-weight: bold;
    opacity: 0.1;
    position: absolute;
    top: -20px;
    right: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.project-card:hover .project-number {
    opacity: 0.3;
    transform: scale(1.1);
}

.project-description {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #00bfff;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.5);
}

/* Hover Effect Overlay */
.project-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover .project-hover-effect {
    opacity: 1;
}

/* Decorative Animated Lines */
.decorative-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.3), transparent);
    height: 1px;
}

.line-1 {
    top: 20%;
    left: -100%;
    width: 100%;
    animation: slideLine 15s linear infinite;
}

.line-2 {
    top: 50%;
    left: -100%;
    width: 100%;
    animation: slideLine 20s linear infinite;
    animation-delay: 5s;
}

.line-3 {
    top: 80%;
    left: -100%;
    width: 100%;
    animation: slideLine 18s linear infinite;
    animation-delay: 10s;
}

@keyframes slideLine {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Scroll Reveal Animation */
.project-card {
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.visible:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card.visible:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card.visible:nth-child(3) {
    transition-delay: 0.3s;
}

.project-card.visible:nth-child(4) {
    transition-delay: 0.4s;
}

.project-card.visible:nth-child(5) {
    transition-delay: 0.5s;
}

.project-card.visible:nth-child(6) {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    .project-card {
        height: 350px;
    }

    .project-number {
        font-size: 3rem;
    }
}