/* Custom variables for futuristic styling */
:root {
    --bg-base: #06070d;
    --text-primary: #ffffff;
    --text-secondary: #a3abbf;
    --primary: #ffaa00; /* Cyber Gold */
    --secondary: #00f0ff; /* Cyber Cyan */
    --glass-bg: rgba(6, 7, 13, 0.75);
    --glass-border: rgba(255, 170, 0, 0.15);
    --glass-border-cyan: rgba(0, 240, 255, 0.2);
    --glow-shadow: 0 0 20px rgba(255, 170, 0, 0.25);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: url('../assets/fotos/fondo-futurista.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    color: var(--text-primary);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(6, 7, 13, 0.65), rgba(3, 4, 8, 0.95));
    z-index: 0;
    pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030408;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

header,
section,
footer {
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5em;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.6), 0 0 30px rgba(255, 170, 0, 0.3);
    margin: 0 0 10px;
    text-transform: uppercase;
}

header p {
    font-size: 1.2em;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

section {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 170, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

section:hover {
    border-color: rgba(255, 170, 0, 0.35);
    box-shadow: 0 12px 40px rgba(255, 170, 0, 0.15), inset 0 0 20px rgba(255, 170, 0, 0.08);
    transform: translateY(-2px);
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 2px dashed rgba(0, 240, 255, 0.3);
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    display: inline-block;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-secondary);
}

ul {
    padding-left: 20px;
}

li {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* Skills Custom List Layout */
#skills > ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

#skills > ul > li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

#skills > ul > li:hover {
    background: rgba(255, 170, 0, 0.03);
    border-color: rgba(255, 170, 0, 0.2);
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.05);
}

#skills > ul > li > strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
}

#skills > ul > li > ul {
    list-style: none;
    padding-left: 0;
}

#skills > ul > li > ul > li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.98em;
}

#skills > ul > li > ul > li::before {
    content: "❯";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.8em;
    top: 2px;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

/* Highlight section custom borders */
.highlight-section {
    border: 1px solid var(--primary);
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.15);
    background: radial-gradient(circle at 10% 10%, rgba(255, 170, 0, 0.05), transparent), var(--glass-bg);
}

.highlight-section:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

/* Project images layout */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.project-gallery img {
    max-width: 260px;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.15);
    cursor: zoom-in;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-gallery img:hover {
    transform: scale(1.08) rotate(-1deg);
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

/* Social links styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
}

.social-links a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary);
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.2);
    transition: all 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.social-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--secondary);
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--secondary);
}

.social-links a:hover {
    color: var(--secondary);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.social-links a:hover::after {
    width: 100%;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 170, 0, 0.4), transparent);
    margin: 40px 0;
}

footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(3, 4, 8, 0.95);
    border-top: 1px solid rgba(255, 170, 0, 0.1);
    margin-top: 60px;
}

footer p {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
}

/* Animations */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 20px rgba(255, 170, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 170, 0, 0.35);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 170, 0, 0.15);
    }
}

@media (max-width: 700px) {
    header h1 {
        font-size: 2.2em;
    }
    section {
        padding: 20px;
        margin: 20px;
    }
    .project-gallery img {
        max-width: 100%;
        height: auto;
    }
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}