* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #38bdf8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

/* Animated background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
    animation: float-bg 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float-bg {
    0%, 100% { transform: translate(-20px, -10px) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(1deg); }
    50% { transform: translate(-10px, 20px) rotate(-1deg); }
    75% { transform: translate(10px, 10px) rotate(0.5deg); }
}

/* Floating code snippets */
.code-float {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(56, 189, 248, 0.3);
    pointer-events: none;
    z-index: 1;
}

.code-float:nth-child(1) {
    top: 20%;
    left: 15%;
    animation: float-code 15s ease-in-out infinite;
}

.code-float:nth-child(2) {
    top: 70%;
    right: 20%;
    animation: float-code 18s ease-in-out infinite reverse;
}

.code-float:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation: float-code 12s ease-in-out infinite;
    animation-delay: -5s;
}

.code-float:nth-child(4) {
    top: 40%;
    right: 15%;
    animation: float-code 20s ease-in-out infinite reverse;
    animation-delay: -8s;
}

@keyframes float-code {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.2;
    }
    25% { 
        transform: translateY(-20px) translateX(10px);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-40px) translateX(-5px);
        opacity: 0.1;
    }
    75% { 
        transform: translateY(-20px) translateX(15px);
        opacity: 0.3;
    }
}

/* Tech icons floating */
.tech-float {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.tech-float:nth-child(5) {
    top: 25%;
    right: 25%;
    animation: tech-bounce 8s ease-in-out infinite;
}

.tech-float:nth-child(6) {
    bottom: 35%;
    right: 30%;
    animation: tech-bounce 10s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.tech-float:nth-child(7) {
    top: 60%;
    left: 25%;
    animation: tech-bounce 7s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes tech-bounce {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.05;
    }
    50% { 
        transform: translateY(-30px) scale(1.1);
        opacity: 0.15;
    }
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-greeting {
    color: #38bdf8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    animation: fade-in-up 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
    line-height: 1.1;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-subtext {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5;
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease-out 0.6s both;
}

/* Fade in up animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced CTA button hover effects */
.cta-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: #38bdf8;
    border: 2px solid #38bdf8;
}

.cta-button.secondary:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #1e293b;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-card {
    background: #334155;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #475569;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    background: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    background-image: url('alvaromiranda.jpg');
    background-size: cover;
    background-position: center;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #38bdf8, #8b5cf6, #f59e0b, #38bdf8);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-image: url('alvaromiranda.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    z-index: 2;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.quick-facts {
    text-align: left;
    margin-top: 1.5rem;
}

.quick-facts h4 {
    color: #38bdf8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.fact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #475569;
    font-size: 0.9rem;
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-label {
    color: #94a3b8;
    font-size: 0.8rem;
}

.fact-value {
    color: #f1f5f9;
    font-weight: 500;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #94a3b8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: #38bdf8;
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: #0f172a;
}

.skills h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #f1f5f9;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-icon {
    font-size: 2rem;
}

.skill-card h3 {
    color: #f1f5f9;
    font-size: 1.2rem;
}

.skill-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #334155;
    color: #38bdf8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #475569;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: #1e293b;
}

.projects h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.projects-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #334155;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.project-content {
    padding: 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f1f5f9;
}

.project-status {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #475569;
    color: #38bdf8;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid #64748b;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.6rem 1.2rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-link:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.project-link.secondary {
    background: transparent;
    color: #38bdf8;
    border: 1px solid #38bdf8;
}

.project-link.secondary:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #0f172a;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.contact-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.contact-method:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-method h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.contact-method a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

/* Footer */
footer {
    background: #020617;
    padding: 3rem 0;
    border-top: 1px solid #1e293b;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link:hover {
    color: #38bdf8;
    transform: translateY(-3px);
    background: rgba(56, 189, 248, 0.1);
}

.footer-text {
    color: #475569;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .nav-links {
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}