/* ===================================
   Variables y Reset
   =================================== */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #FDB927;
    --accent-color: #FFD700;
    --yellow-bright: #FFC107;
    --yellow-dark: #F9A825;
    --text-dark: #1a1a1a;
    --text-light: #555;
    --bg-light: #FFFBEA;
    --bg-white: #ffffff;
    --bg-yellow: #FFF9E6;
    --shadow-sm: 0 3px 15px rgba(253, 185, 39, 0.15);
    --shadow-md: 0 5px 25px rgba(253, 185, 39, 0.25);
    --shadow-lg: 0 10px 40px rgba(253, 185, 39, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Loader
   =================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--bg-white);
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(232, 184, 109, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #FDB927 0%, #F9A825 100%);
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.3)"/></svg>');
    opacity: 0.4;
    animation: float 20s infinite linear;
}

@keyframes floatPattern {
    from {
        background-position: 0 0, 50px 50px, 100px 100px;
    }
    to {
        background-position: 100px 100px, 150px 150px, 200px 200px;
    }
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--primary-color);
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 50px;
}

.btn-scroll {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.btn-scroll:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, var(--bg-yellow) 0%, transparent 100%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-photo {
    display: flex;
    justify-content: center;
}

.photo-circle {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(253, 185, 39, 0.4);
    border: 6px solid var(--secondary-color);
    transition: var(--transition);
}

.photo-circle:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 50px rgba(253, 185, 39, 0.6);
    border-color: var(--yellow-dark);
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 18px;
    font-weight: 500;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

.section-title.centered {
    display: block;
    text-align: center;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: var(--shadow-md);
}

.contact-card:hover i {
    color: var(--primary-color);
    transform: scale(1.2);
}

.contact-card:hover h4,
.contact-card:hover p {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-card i {
    font-size: 24px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   Experience Section
   =================================== */
.experience-section {
    padding: 100px 0;
    background: var(--bg-yellow);
}

.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -46px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-content {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeline-header h3 {
    font-size: 22px;
    color: var(--primary-color);
}

.timeline-date {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Education & Languages Section
   =================================== */
.education-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.education-column {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    transition: var(--transition);
}

.education-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.education-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-subtitle i {
    color: var(--secondary-color);
    font-size: 28px;
}

.education-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.education-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.education-place,
.education-level {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.special-skills {
    background: var(--bg-yellow);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.special-skill-box {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.special-skill-box h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.special-skill-box p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.mobility-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
}

.mobility-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.mobility-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mobility-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Skills Section
   =================================== */
.skills-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.skill-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.skill-card:hover {
    background: var(--secondary-color);
    transform: translateY(-10px) rotate(3deg);
    box-shadow: var(--shadow-lg);
}

.skill-card:hover i {
    color: var(--primary-color);
    transform: scale(1.2) rotate(-10deg);
}

.skill-card:hover h3,
.skill-card:hover p {
    color: var(--primary-color);
}

.skill-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   Videos Section
   =================================== */
.videos-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.video-item {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(253, 185, 39, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* Aspect ratio 9:16 (vertical stories) */
    background: var(--bg-light);
    overflow: hidden;
    border-radius: 15px;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: var(--text-light);
}

.video-placeholder i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.video-placeholder p {
    font-size: 16px;
    font-weight: 500;
}

.video-placeholder small {
    font-size: 12px;
    margin-top: 5px;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.video-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-yellow);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-detail:hover {
    background: var(--secondary-color);
    transform: translateX(10px) rotate(-1deg);
}

.contact-detail:hover i {
    color: var(--primary-color);
    transform: scale(1.2);
}

.contact-detail:hover h4,
.contact-detail:hover p,
.contact-detail:hover a {
    color: var(--primary-color);
}

.contact-detail i {
    font-size: 28px;
    color: var(--secondary-color);
    transition: var(--transition);
    margin-top: 5px;
}

.contact-detail h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-detail p,
.contact-detail a {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--bg-white);
}

.social-links {
    text-align: center;
}

.social-links h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 24px;
    transition: var(--transition);
    margin: 0 auto;
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 40px 0;
    background: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-tagline {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-circle {
        width: 250px;
        height: 250px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .social-icons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        padding: 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

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

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

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .photo-circle {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-description {
        font-size: 16px;
    }
}