:root {
    --primary-color: #00ff88;
    --secondary-color: #00ccff;
    --background-color: #0a192f;
    --text-color: #e2e8f0;
    --accent-color: #64ffda;
}

/* Ajustes generales para responsividad */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Contenedores flexibles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mejoras para touch devices */
@media (hover: hover) {
    .nav-links a:hover,
    .tech-badge:hover,
    .skill-card:hover,
    .project-card:hover {
        transition: all 0.3s ease;
    }
}

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

/* Header Styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

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

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

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Image Styles */
.hero-image {
    flex: 0 0 40%;
    max-width: 500px;
    position: relative;
}

.image-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 50%;
}

.orbit:nth-child(1) { animation: orbit 8s linear infinite; }
.orbit:nth-child(2) { 
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    animation: orbit 12s linear infinite; 
}
.orbit:nth-child(3) { 
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    animation: orbit 15s linear infinite; 
}

/* Hero Content Layout */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.typing-container {
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    margin: 1.5rem 0;
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cta-button,
.cta-button-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button {
    background: var(--primary-color);
    color: var(--background-color);
}

.cta-button-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cta-button:hover,
.cta-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Sections General Styles */
section {
    padding: 5rem 5%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 0 2rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3, .project-card p {
    padding: 1rem;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    color: var(--text-color);
}

.cta-button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(15, 23, 42, 0.9);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Partículas de fondo */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Efectos de neón */
.glow-effect {
    box-shadow: 0 0 10px var(--primary-color),
                0 0 20px var(--primary-color),
                0 0 40px var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* Órbitas alrededor de la imagen */
.image-container {
    position: relative;
    display: inline-block;
}

.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(100, 255, 218, 0.1);
    border-radius: 50%;
}

.orbit:nth-child(1) { animation: orbit 8s linear infinite; }
.orbit:nth-child(2) { animation: orbit 12s linear infinite; width: 120%; height: 120%; }
.orbit:nth-child(3) { animation: orbit 15s linear infinite; width: 140%; height: 140%; }

/* Tech badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--accent-color);
    color: var(--background-color);
    transform: translateY(-3px);
}

/* Typing effect */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-image {
        flex: 0 0 35%;
    }
    
    .image-container {
        max-width: 300px;
    }
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.about-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-focus {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.about-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-text:hover {
    transform: translateY(-5px);
}


/* Contact Section Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.contact-info h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.skill-card p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.fa-file-word {
    color: #2b579a;
}

.fa-laptop-medical {
    color: #00c853;
}