/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    overflow-x: hidden;
    background-color: #0a0a14;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Video de fondo */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.45);
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

/* HEADER */
header {
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 18px 36px;
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

header.scrolled {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.header-logo a {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.hl-1 {
    color: #a8ff00;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.header-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #a8ff00;
}

/* MAIN CONTENT */
main.content-page {
    flex: 1;
    padding: 80px 20px;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fff, #a8ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out;
}

.project-card {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(168, 255, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
    border-color: #a8ff00;
    box-shadow: 0 0 30px rgba(168, 255, 0, 0.2);
    transform: translateY(-5px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 255, 0, 0.1), transparent);
    transition: left 0.3s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.tech-stack {
    color: #a8ff00;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.project-card p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
}

.project-link {
    color: #a8ff00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.project-link:hover {
    color: #fff;
}

/* FOOTER */
footer {
    background: rgba(10, 10, 20, 0.95);
    color: #e0e0e0;
    padding: 36px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

footer.scrolled {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-section h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #a8ff00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 8px;
}

.social-links a,
.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.18s ease;
}

.social-links a:hover,
.footer-section a:hover {
    color: #a8ff00;
}

.footer-bottom {
    max-width: 1200px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 880px) {
    .page-content h1 { font-size: 36px; }
    header { flex-direction: column; gap: 20px; }
    .header-nav ul { gap: 18px; }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 18px; }
}