/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #00ffff;
    background-color: #000;
    height: 100vh;
    overflow: hidden;
}

/* Animated Background Container */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: -1;
    overflow: hidden;
}

/* Grid Lines Animation - Subtle Background Grid */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(-40px, -40px); }
    100% { transform: translate(0, 0); }
}

/* Floating Particles - Nexus Style */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 50%;
    box-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
    animation: nexusFloat 12s ease-in-out infinite;
}

.particles::before {
    top: 10%;
    left: 10%;
    background: #ff6b6b;
    animation-delay: 0s;
}

.particles::after {
    top: 70%;
    right: 20%;
    background: #4ecdc4;
    animation-delay: 6s;
}

@keyframes nexusFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(0.5);
        opacity: 0.3;
    }
    25% { 
        transform: translate(100px, -50px) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-50px, -100px) scale(0.8);
        opacity: 0.7;
    }
    75% { 
        transform: translate(150px, 50px) scale(1.2);
        opacity: 0.9;
    }
}

/* Pulse Rings - Colorful Nexus Style */
.pulse-rings {
    position: absolute;
    top: 30%;
    left: 70%;
    transform: translate(-50%, -50%);
}

.pulse-rings::before,
.pulse-rings::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-radius: 50%;
    animation: nexusPulse 8s ease-out infinite;
}

.pulse-rings::before {
    width: 150px;
    height: 150px;
    border-color: #ff6b6b;
    animation-delay: 0s;
}

.pulse-rings::after {
    width: 250px;
    height: 250px;
    border-color: #4ecdc4;
    animation-delay: 4s;
}

@keyframes nexusPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        border-width: 3px;
    }
    50% {
        opacity: 0.6;
        border-width: 1px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        border-width: 0px;
    }
}

/* Content Styling */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    overflow-y: auto;
}

/* Projects Section */
.projects {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.projects__title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #ff6b6b;
    text-shadow: 
        0 0 10px #ff6b6b,
        0 0 20px #ff6b6b;
    position: relative;
}

.projects__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    box-shadow: 0 0 10px #ff6b6b;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Project Cards */
.project-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 
        0 10px 30px rgba(255, 107, 107, 0.2),
        0 0 20px rgba(255, 107, 107, 0.1);
}

.project-card:nth-child(2) {
    border-color: rgba(78, 205, 196, 0.3);
}

.project-card:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
}

.project-card:nth-child(2):hover {
    border-color: rgba(78, 205, 196, 0.6);
    box-shadow: 
        0 10px 30px rgba(78, 205, 196, 0.2),
        0 0 20px rgba(78, 205, 196, 0.1);
}

.project-card:nth-child(3) {
    border-color: rgba(69, 183, 209, 0.3);
}

.project-card:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, rgba(69, 183, 209, 0.1), transparent);
}

.project-card:nth-child(3):hover {
    border-color: rgba(69, 183, 209, 0.6);
    box-shadow: 
        0 10px 30px rgba(69, 183, 209, 0.2),
        0 0 20px rgba(69, 183, 209, 0.1);
}

.project-card__image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.project-card:hover .project-card__image img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2) saturate(1.4);
}

.project-card__content {
    padding: 1.5rem;
    text-align: left;
}

.project-card__title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.project-card:nth-child(2) .project-card__title {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.project-card:nth-child(3) .project-card__title {
    color: #45b7d1;
    text-shadow: 0 0 10px rgba(69, 183, 209, 0.5);
}

.project-card__description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #00ffff;
    }
    to {
        text-shadow: 
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            0 0 40px #00ffff;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 2rem 1rem;
    }
    
    .content h1 {
        font-size: 2.5rem;
    }
    
    .content p {
        font-size: 1.2rem;
    }
    
    .projects__title {
        font-size: 2rem;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-lines {
        background-size: 30px 30px;
    }
}
