/* Projects Page Styles */
:root {
    --neon-primary: #00FFF0;
    --neon-secondary: #FF00E5;
    --neon-accent: #00FF94;
    --dark-glass: rgba(4, 9, 24, 0.85);
    --cyber-border: 1px solid rgba(0, 255, 240, 0.2);
}

/* Core Container */
.cyber-projects {
    position: relative;
    background: #040918;
    overflow: hidden;
    padding: 100px 0;
}

/* Futuristic Background Effects */
.cyber-projects-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Binary Rain Effect */
.binary-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

@keyframes binaryFall {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.binary-character {
    position: absolute;
    color: var(--neon-primary);
    font-family: monospace;
    font-size: 14px;
    animation: binaryFall 4s linear infinite;
}

/* Glitch Effect for Text */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Neon Grid */
.neon-grid {
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        linear-gradient(transparent 0%, var(--neon-primary) 1%, transparent 2%),
        linear-gradient(90deg, transparent 0%, var(--neon-primary) 1%, transparent 2%);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    opacity: 0.7;
}

@keyframes gridMove {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(200px); }
}

/* Project Cards Container */
.projects-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.projects-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.projects-title h2 {
    font-size: 2.5rem;
    color: var(--cyber-light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.projects-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 3px;
    background: linear-gradient(to right, #0056b3, #24abff);
    animation: expandWidth 1.5s ease-out forwards 0.5s;
}

@keyframes expandWidth {
    from { width: 10px; }
    to { width: 70px; }
}


/* Project Card */
.project-card {
    flex: 1;
    max-width: 600px;
    height: max-content;
    position: relative;
    background: var(--dark-glass);
    border-radius: 2px;
    backdrop-filter: blur(10px);
    border: var(--cyber-border);
    overflow: hidden;
    transition: all 0.1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover State Transform */
.project-card:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: var(--neon-primary);
}

/* Holographic Effect */
.project-hologram {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 255, 240, 0.5) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover .project-hologram {
    transform: translateX(100%);
}

/* Project Image with Glitch Effect */
.project-image {
    width: 100%;
    height: 60%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.3s ease;
}

.project-image::before,
.project-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    opacity: 0;
}

.project-card:hover .project-image::before {
    animation: glitchEffect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    opacity: 0.5;
}

@keyframes glitchEffect {
    0% { transform: translate(0); }
    25% { transform: translate(4px, 4px); }
    50% { transform: translate(-4px, -4px); }
    75% { transform: translate(-4px, 4px); }
    100% { transform: translate(4px, -4px); }
}

/* Project Content */
.project-content {
    padding: 25px;
    position: relative;
}

.project-title {
    font-size: 1.5rem;
    color: var(--neon-primary);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--neon-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.project-card:hover .project-title::after {
    transform: scaleX(1);
    transform-origin: left;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tech Stack Pills */
.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-pill {
    padding: 5px 12px;
    background: rgba(0, 255, 240, 0.1);
    border: 1px solid var(--neon-primary);
    border-radius: 20px;
    color: var(--neon-primary);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: var(--neon-primary);
    color: #040918;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 240, 0.1);
    border: 1px solid var(--neon-primary);
    border-radius: 50%;
    color: var(--neon-primary);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--neon-primary);
    color: #040918;
    transform: translateY(-3px);
}

/* Custom Scrollbar */
.cyber-projects::-webkit-scrollbar {
    width: 8px;
}

.cyber-projects::-webkit-scrollbar-track {
    background: #040918;
}

.cyber-projects::-webkit-scrollbar-thumb {
    background: var(--neon-primary);
    border-radius: 4px;
}

/* Featured Project, no styles yet */
.project-card.featured {
}

.featured .project-image {
    height: 70%;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
    .project-card {
        grid-column: span 6;
    }
    .project-card.featured {
        grid-column: span 12;
    }
}

@media screen and (max-width: 992px) {
    .project-card {
        grid-column: span 12;
        height: auto;
    }
    .project-card.featured {
        height: auto;
    }
    .project-image {
        height: 300px;
    }
    .featured .project-image {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .projects-container {
        padding: 0;
    }
}


.cyber-footer {
    border-top: 1px solid var(--neon-primary);
}