@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-title-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
b {
    font-weight: 650;
    /* color: var(--color-title-primary); */
}
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg-secondary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.logo-icon {
    color: var(--color-accent);
    font-size: var(--font-size-xl);
}

.logo-text {
    color: var(--color-title-primary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-title-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-accent);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: var(--spacing-2xl) 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.8;
    max-width: 500px;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--color-title-primary);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-subtitle i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.hero-tech-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: default;
}

.hero-tech-icon:hover {
    border-color: var(--color-accent);
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.hero-tech-icon i {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-base);
}

.hero-tech-icon:hover i {
    transform: scale(1.1);
}

.hero-tech-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-title-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-title-primary);
    border-radius: var(--radius-sm);
    max-width: 200px;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-title-primary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.skill-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all var(--transition-base);
}

.skill-card:hover .skill-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.3));
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.skill-icon {
    font-size: 32px;
    color: var(--color-accent);
    line-height: 1;
    transition: transform var(--transition-base);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    color: var(--color-title-primary);
    font-weight: 700;
    font-size: var(--font-size-xl);
    margin: 0;
    flex: 1;
}

.skill-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.skill-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-title-primary);
    font-size: var(--font-size-xs);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

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

.project-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}
.project-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.project-tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-title-primary);
    font-size: var(--font-size-xs);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.project-tech-tag:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-title-primary);
}

.project-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    flex-grow: 1;
}

.project-btn {
    background-color: var(--color-accent);
    color: var(--color-title-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    display: inline-block;
}

.project-btn:hover {
    background-color: var(--color-accent-hover);
}

/* Contact Section */
.contact-intro {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(45, 45, 45, 0.8) 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg); /* var(--spacing-2xl) */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact-card.clickable {
    cursor: pointer;
}

.contact-card.clickable:hover {
    border-color: var(--color-accent);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, var(--color-bg-card) 100%);
}

.contact-card.clickable:hover::before {
    opacity: 1;
}

.contact-card-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.25));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.contact-card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(15px);
    transition: opacity var(--transition-base);
    z-index: 1;
}

.contact-card.clickable:hover .contact-card-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.4));
    border-color: var(--color-accent);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.contact-card.clickable:hover .contact-card-glow {
    opacity: 0.6;
}

.contact-card-icon i {
    font-size: 48px;
    color: var(--color-accent);
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.contact-card.clickable:hover .contact-card-icon i {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.6));
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    width: 100%;
}

.contact-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-title-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-base);
}

.contact-card.clickable:hover .contact-card-title {
    color: var(--color-accent);
}

.contact-card-value {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin: 0;
    word-break: break-all; /* para que el texto se corte y se vea el texto completo */
    transition: color var(--transition-base);
}

.contact-card.clickable:hover .contact-card-value {
    color: var(--color-title-primary);
}

/* Footer */
.footer {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-title-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

.footer-column-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-title-primary);
    margin: 0 0 var(--spacing-xs) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-nav-link:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-social-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.3));
    border-color: var(--color-accent);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.footer-social-link i {
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    /* padding-top: var(--spacing-md); */
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .nav-list {
        gap: var(--spacing-sm);
    }

    .nav-link {
        font-size: var(--font-size-xs);
    }

    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: var(--spacing-lg);
    }

    .contact-card {
        padding: var(--spacing-xl);
    }

    .contact-card-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .contact-card-icon {
        width: 80px;
        height: 80px;
    }

    .contact-card-glow {
        width: 100px;
        height: 100px;
    }

    .contact-card-icon i {
        font-size: 36px;
    }

    .contact-card-title {
        font-size: var(--font-size-lg);
    }

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

    .skill-card {
        padding: var(--spacing-lg);
    }

    .skill-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .skill-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .skill-icon {
        font-size: 28px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-nav-list {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}