@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Satisfy&display=swap');

:root {
    --bg-dark: #0f0f0f;
    --bg-card: #161616;
    --gold-primary: #D4AF37;
    --gold-secondary: #B8860B;
    --gold-light: #F5E050;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #F5E050 50%, #B8860B 100%);
    --shadow-gold: 0 10px 40px rgba(0, 0, 0, 0.7);
    --border-gold: 1px solid rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Luxury Header - Open Layout (No Box) */
.luxury-header {
    position: relative;
    padding: 6rem 0;
    margin-bottom: 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: transparent;
    box-shadow: none;
}

.header-overlay {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.profile-main {
    display: flex;
    gap: 4rem;
    align-items: center;
    flex: 1;
}

.avatar-box {
    width: 220px;
    height: 220px;
    border-radius: 15px;
    /* Modern square with rounded corners */
    padding: 3px;
    background: var(--accent-gradient);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #141414;
}

.profile-info h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.gold-text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-tag {
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.bio-text {
    color: var(--text-gray);
    max-width: 650px;
    font-size: 1.1rem;
}

.signature-container {
    flex-shrink: 0;
}

.signature-img {
    height: 140px;
    filter: brightness(1.2);
}

/* Vertical Layout */
.vertical-layout {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.section-title {
    font-size: 2.22rem;
    text-transform: uppercase;
    color: var(--gold-primary);
    letter-spacing: 5px;
    margin-bottom: 5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold-primary);
    margin: 20px auto 0;
}

/* Skills Vertical Stack */
.skills-grid-vertical {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
}

.skill-item-row {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-item-row:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.skill-percent {
    color: var(--gold-primary);
}

.progress-bar-bg {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Experience Stack */
.experience-stack {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.subgroup-title {
    font-size: 1.5rem;
    color: var(--gold-secondary);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 4rem;
    border-left: 3px solid rgba(212, 175, 55, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
}

.timeline-dot {
    position: absolute;
    left: -4.55rem;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--gold-primary);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--gold-primary);
}

.timeline-date {
    color: var(--gold-secondary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--gold-primary);
}

.timeline-content .company {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Education Grid with Lightbox Support */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.cert-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.cert-card:hover {
    transform: translateY(-15px);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.cert-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-overlay span {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.cert-card:hover .view-overlay {
    opacity: 1;
}

.cert-card:hover .cert-image img {
    transform: scale(1.1);
}

.cert-content {
    padding: 2rem;
}

.cert-year {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.8rem;
}

.cert-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--text-white);
}

.cert-content .institution {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

#lightbox-caption {
    margin-top: 2rem;
    color: var(--gold-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer & Other */
.luxury-footer {
    margin-top: 10rem;
    padding: 8rem 0;
    border-top: var(--border-gold);
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 3.5rem;
}

.contact-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    color: var(--gold-primary);
    transform: translateY(-5px);
}

.signature-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.01;
    background-image: url('../assets/images/firma.png');
    background-repeat: repeat;
    background-size: 500px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1024px) {
    .profile-main {
        flex-direction: column;
        text-align: center;
    }

    .luxury-header {
        flex-direction: column;
        padding: 4rem 2rem;
    }

    .signature-container {
        margin-top: 4rem;
    }

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

@media (max-width: 768px) {
    .profile-info h1 {
        font-size: 2.8rem;
    }

    .avatar-box {
        width: 180px;
        height: 180px;
    }

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