/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: black;
    overflow: hidden;
}

/* Background Video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7) contrast(1.2);
}

/* Fallback Background Image */
.fallback-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpg') no-repeat center center/cover;
    z-index: -2;
}

/* Hero Content */
.hero-content {
    z-index: 1;
    position: relative;
    animation: floatyMove 3s infinite ease-in-out;
}

/* Floating Animation */
@keyframes floatyMove {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Neon Glow Animation */
@keyframes neonGlow {
    0% { text-shadow: 0 0 5px #6a00ff, 0 0 10px #6a00ff, 0 0 15px #6a00ff; }
    50% { text-shadow: 0 0 10px #ffffff, 0 0 20px #6a00ff, 0 0 30px #6a00ff; }
    100% { text-shadow: 0 0 5px #6a00ff, 0 0 10px #6a00ff, 0 0 15px #6a00ff; }
}

.hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    animation: neonGlow 2s infinite alternate;
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.2rem;
    background: #6a00ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    box-shadow: 0px 0px 15px rgba(106, 0, 255, 0.9);
}

.btn:hover {
    background: #4a00cc;
    transform: scale(1.1);
}

/* Cyberpunk Moving Lines */
.neon-lines {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 0, 255, 0.7), transparent);
    animation: moveLines 5s infinite linear;
    opacity: 0.6;
}

@keyframes moveLines {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* Projects Section */
#projects {
    padding: 60px 10%;
    background: #121212;
    text-align: center;
}

#projects h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Grid Layout */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center;
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.4s ease-in-out;
    background: black;
}

/* Fix Image Display */
.project-card img {
    width: 100%;
    height: 270px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease-in-out;
}

/* Hover Zoom Effect */
.project-card:hover img {
    transform: scale(1.1);
}

/* Overlay Effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Glow Effect on Hover */
.project-card:hover .overlay {
    opacity: 1;
    box-shadow: 0px 0px 25px rgba(106, 0, 255, 1);
}

/* Fix Project Links */
.overlay h3 {
    color: white;
    font-size: 1.4rem;
    text-transform: uppercase;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
}
