/* ========================================
   TECH PORTFOLIO - MODERN DESIGN SYSTEM
   ======================================== */

/* Variables CSS */
:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --card-bg: rgba(30, 30, 30, 0.6);
    --card-border: #2a2a2a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent-purple: #5e5ce6;
    --accent-blue: #0071e3;
    --accent-gradient: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));

    --border-color: #2a2a2a;
    --shadow-color: rgba(94, 92, 230, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

strong {
    color: var(--accent-purple);
    font-weight: 600;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.navbar a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

.navbar a:hover {
    color: var(--text-primary);
}

.navbar a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-icon span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    margin-top: 60px;
    background:
        radial-gradient(circle at 20% 30%, rgba(94, 92, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 113, 227, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-purple);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-info {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-age {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.hero-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 20px rgba(94, 92, 230, 0.3);
    margin-bottom: var(--spacing-md);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(94, 92, 230, 0.5);
}

.hero-btn:active {
    transform: translateY(0);
}

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

.biografia h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 25px;
}

.biografia p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: -30px auto 60px;
    max-width: 600px;
}

/* ========================================
   TECHNOLOGIES GRID
   ======================================== */

#tecnologias {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 40px;
}

#tecnologias h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
    justify-items: center;
}
.tech-card{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-category {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.tech-category:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 40px rgba(94, 92, 230, 0.25);
}

.tech-category:hover::before {
    opacity: 1;
}

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.tech-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-purple);
    flex-shrink: 0;
    margin: 30px;
}

.tech-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.tech-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li:hover {
    padding-left: 10px;
}

.tech-name {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-name::before {
    content: '▹';
    color: var(--accent-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Business Category Special Style */
.business-category {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(94, 92, 230, 0.08) 100%);
}

.business-category .tech-icon {
    color: var(--accent-blue);
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */

#experiencia {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
}

#experiencia h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.experience-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 2.5vh;
}

.experience-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.experience-card:hover::after {
    transform: scaleY(1);
}

.experience-header {
    margin-bottom: 20px;
}

.experience-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.company {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
    padding: 6px 16px;
    background: rgba(0, 113, 227, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(0, 113, 227, 0.3);
}

.experience-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   PROJECTS / GITHUB SECTION
   ======================================== */

#proyectos {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#proyectos h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.github-section {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.github-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 60px 50px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.github-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.github-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 60px rgba(94, 92, 230, 0.3);
}

.github-card:hover::before {
    opacity: 1;
}

.github-icon-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.github-icon-large {
    width: 100px;
    height: 100px;
    color: var(--text-primary);
    filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.1));
    animation: float 4s ease-in-out infinite;
}

.github-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.github-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.github-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 1;
}

.github-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.github-button svg {
    transition: transform 0.3s ease;
}

.github-button:hover svg {
    transform: translateX(5px);
}

/* ========================================
   CONTACT SECTION UPDATES
   ======================================== */

#contactame {
    max-width: 1200px;
    margin: 100px auto 80px;
    padding: 0 40px;
}

#contactame h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.contacto-list {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contacto:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.logo-contacts {
    width: 60px;
    height: 60px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.contacto:hover .logo-contacts {
    transform: scale(1.15) rotate(5deg);
}

.contacto a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    text-align: center;
}

.contacto:hover a {
    color: var(--accent-blue);
}

.contact-grid{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.contact-grid span{
font-size: clamp(1rem, 4vw, 2.5rem);}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media screen and (max-width: 1024px) {
    .business-category {
        grid-column: span 1;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 3rem;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--border-color);
    }

    .navbar.active {
        transform: translateX(0);
    }

    .menu-icon {
        display: flex;
    }

    .menu-icon.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    #inicio,
    #tecnologias,
    #experiencia,
    #proyectos,
    #contactame {
        padding: 0 20px;
        margin: 60px auto;
    }

    #inicio {
        padding-top: 120px;
    }

    

    .tech-category {
        padding: 25px;
    }

    .experience-container,
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .experience-card {
        padding: 30px 25px;
    }

    .github-card {
        padding: 40px 30px;
    }

    .contacto-list,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .biografia h2 {
        font-size: 1.8rem;
    }

    #tecnologias h2,
    #experiencia h2,
    #proyectos h2,
    #contactame h2 {
        font-size: 2rem;
    }

    .tech-category-header h3 {
        font-size: 1.3rem;
    }

    .experience-header h3 {
        font-size: 1.5rem;
    }

    .github-icon-large {
        width: 80px;
        height: 80px;
    }

    .github-card h3 {
        font-size: 1.6rem;
    }

    .contacto-list {
        grid-template-columns: 1fr;
    }
}


