* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #2F3273 0%, #2F3273 30%, #192340 60%, #101626 90%);
    color: white;
    overflow-x: hidden;
    cursor: url(img/contact-icon.png), auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(47, 50, 115, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

.logo {
    width: 200px;
    height: 100px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00D9FF;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-family: 'Michroma', monospace;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00D9FF;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    font-family: 'Michroma', monospace;
    background: transparent;
    border: 2px solid #00D9FF;
    color: #00D9FF;
    padding: 12px 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #00D9FF;
    color: #2F3273;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    object-fit: cover;
}

/* About */
.about {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    background-image: url(/img/Fondo-jupiter.png);
    background-size: cover;
    background-position: center;            
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about h2 {
    font-family: 'Michroma', monospace;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #00D9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.world-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Skills*/
.skills {
    padding: 100px 0;
    position: relative;
    background-image: url(/img/Fondo-Tierra.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.skills-content {
    position: relative;
    z-index: 1;
}

.skills h2 {
    font-family: 'Michroma', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #00D9FF;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-10px);
    background: rgba(0, 217, 255, 0.2);
    border-color: #00D9FF;
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

.skill-item h3 {
    font-family: 'Michroma', monospace;
    color: #00D9FF;
    margin-bottom: 10px;
}

/* Portfolio */
.portfolio {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.portfolio-content {
    position: relative;
    z-index: 1;
}

.galaxy-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.portfolio h2 {
    font-family: 'Michroma', monospace;
    font-size: 2.5rem;
    text-align: center;
    padding: 50px 0;
    color: #00D9FF;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.portfolio-slider {
    height: 100vh;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-top: 120px;
}

/* Mobile Portfolio*/
.portfolio-mobile {
    display: none;
    padding: 120px 0 50px;
}

.portfolio-mobile .portfolio-item {
    margin-bottom: 80px;
    padding: 0 20px;
}

.portfolio-mobile .portfolio-item .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.portfolio-mobile .slide-content {
    flex: 1;
}

.portfolio-mobile .slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-mobile .project-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
}

/* Desktop Portfolio Slider */
.portfolio-slider {
    overflow: visible;
}

.portfolio-slide {
    min-width: 100%;
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.portfolio-slide .container {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.slide-content {
    flex: 1;
    max-width: 500px;
}

.slide-content h3 {
    font-family: 'Michroma', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00D9FF;
}

.slide-content p {
    line-height: 1.6;
    margin-bottom: 30px;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image .project-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

/* Contact */
.contact {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    background-image: url(/img/Fondo-superficie.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-family: 'Michroma', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #00D9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Michroma', monospace;
    color: #00D9FF;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00D9FF;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: center;
}

/* Footer */
footer {
    background: rgba(16, 22, 38, 0.9);
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(47, 50, 115, 0.95);
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.nav-links.active {
    display: flex;
}

.mobile-menu-toggle {
    display: flex;
}

.hero .container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.hero {
    padding: 100px 0 50px;
}

.hero h1 {
    font-size: 2rem;
}

/* Portfolio Mobile Changes */
.portfolio {
    height: auto;
    overflow: visible;
}

.portfolio-slider {
    display: none !important;
}

.portfolio-mobile {
    display: block !important;
}

.portfolio-mobile .portfolio-item .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.portfolio-mobile .slide-content {
    order: 2;
}

.portfolio-mobile .slide-image {
    order: 1;
}

.skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-content {
    flex-direction: column;
    gap: 20px;
}

.about h2,
.skills h2,
.contact h2 {
    font-size: 2rem;
}
}

/* Desktop styles */
@media (min-width: 769px) {
    .portfolio {
        height: 100vh;
        overflow: hidden;
    }

    .portfolio-slider {
        display: flex !important;
    }

    .portfolio-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-slide {
        padding: 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

