/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff41;
    --bg-dark: #0a0e27;
    --bg-card: #1a1f3a;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
header {
    background-color: var(--bg-card);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(10, 14, 39, 0) 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 255, 65, 0.3); }
    to { text-shadow: 0 0 30px rgba(0, 255, 65, 0.6), 0 0 40px rgba(0, 255, 65, 0.4); }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Intro Section */
.intro {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.1);
    margin-bottom: 2rem;
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* About Section */
.about {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.1);
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 255, 65, 0.3);
}

.about-content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-content ul {
    list-style: none;
    margin-left: 0;
    margin-top: 1.5rem;
}

.about-content ul li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 1.05rem;
}

.about-content ul li:hover {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.2) 0%, rgba(0, 255, 65, 0.05) 100%);
    transform: translateX(10px);
    border-left-width: 5px;
}

.about-content ul li::before {
    content: '▹ ';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.2);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.project-card p strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Lists */
ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #00cc34;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 2rem auto;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-info {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info ul {
    margin-left: 0;
    list-style: none;
}

.contact-info li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    padding: 0.8rem;
    background-color: rgba(0, 255, 65, 0.05);
    border-radius: 6px;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-info li:hover {
    background-color: rgba(0, 255, 65, 0.1);
    transform: translateX(5px);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.contact-info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-info a:hover {
    color: #00ff41;
    filter: brightness(1.2);
}

.contact-info a:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--bg-card);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: var(--text-muted);
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 6rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow:
        0 0 10px rgba(0, 255, 65, 0.5),
        0 0 20px rgba(0, 255, 65, 0.3),
        0 0 30px rgba(0, 255, 65, 0.2);
    animation: glitch 1s infinite;
    font-weight: bold;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.error-page p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.error-page .btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
    transition: all 0.3s;
}

.error-page .btn:hover {
    box-shadow: 0 6px 30px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .intro {
        padding: 2rem;
    }

    .about-content {
        padding: 2rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-content ul li {
        font-size: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-info li {
        font-size: 1rem;
    }

    .error-page h1 {
        font-size: 4rem;
    }

    .error-page p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}