/* ============================================
   SOFÍA VALQUIRIA - LANDING PAGE
   Professional Portfolio Website
   ============================================ */

/* --------- CSS VARIABLES & ROOT --------- */
:root {
    --primary-color: #2d5a8c;
    --primary-dark: #1a3a5c;
    --accent-color: #00d4ff;
    --accent-light: #66e6ff;
    --sky-blue: #1e90ff;
    --cloud-white: #e8f4ff;
    --text-light: #e8e8e8;
    --text-lighter: #b0b0b0;
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --bg-card: #1a2847;
    --border-color: #2d4a7a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
}

/* --------- RESET & BASE STYLES --------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0f1a35 100%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--cloud-white);
}

strong {
    color: var(--accent-color);
}

p {
    color: var(--text-lighter);
    margin-bottom: 1rem;
}



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

a:hover,
a:focus {
    color: var(--accent-light);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------- NAVIGATION BAR --------- */
nav {
    background: linear-gradient(135deg, rgba(29, 90, 140, 0.95) 0%, rgba(45, 90, 140, 0.95) 50%, rgba(26, 58, 92, 0.95) 100%),
                url('../img/cielo.png') center/cover;
    background-attachment: fixed;
    color: var(--cloud-white);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--accent-color);
}

.little-prince {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    padding-bottom: 2rem;
}

.little-prince figure {
    width: 100%;
    border: 1px solid var(--accent-color);
}


.little-prince figure img{
    width: 100%;
}


.little-prince figcaption {
    background-color: var(--primary-dark);
    color: var(--accent-light);
    padding: 0.3rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.6rem;
}

.little-prince p {
    width: 70vw;
    padding-right: 2rem;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.navbar-brand h1 {
    color: var(--cloud-white);
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    color: var(--accent-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-links a {
    color: var(--cloud-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.navbar-links a:hover,
.navbar-links a:focus {
    background-color: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--accent-color);
    text-decoration: none;
}

/* --------- RESPONSIVE NAVBAR --------- */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem;
    }

    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .navbar-links {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-links a {
        display: block;
        padding: 0.75rem 1rem;
    }
}

/* --------- MAIN CONTENT --------- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

#title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-light);
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

/* --------- CAROUSEL SECTION --------- */
.carousel-section {
    margin-bottom: 4rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
}

.carousel-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem;
}

.carousel-wrapper img {
    flex: 0 0 auto;
    width: 100%;
    height: 400px;
    object-fit: contain;
    padding: 1rem;
    background-color: var(--bg-darker);
    border-radius: 6px;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(45, 90, 140, 0.9);
    color: var(--accent-light);
    border: 1px solid var(--accent-color);
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 10;
}

.carousel-nav:hover,
.carousel-nav:focus {
    background-color: var(--primary-dark);
    border: 2px solid var(--accent-light);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}


@media (max-width: 768px) {
    .carousel-wrapper img {
        height: 250px;
    }

    .carousel-nav {
        padding: 0.75rem;
        font-size: 1.2rem;
    }

    .carousel-nav.prev {
        left: 0.5rem;
    }

    .carousel-nav.next {
        right: 0.5rem;
    }
}

/* --------- PRESENTATION SECTION --------- */
.presentation-section {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.presentation-content {
    max-width: 900px;
    margin: 0 auto;
}

.presentation-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.presentation-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-info p {
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info a {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .presentation-section {
        padding: 2rem 1.5rem;
    }

    .presentation-content h2 {
        font-size: 1.5rem;
    }

    .presentation-content p {
        font-size: 1rem;
    }
}

/* --------- FEATURED IMAGE SECTION --------- */
.portrait {
    margin-bottom: 4rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.portrait figure {
    margin: 0;
    width: 100%;
    background-color: var(--bg-card);
}
.portrait-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.portrait figcaption {
    background-color: var(--primary-dark);
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    color: var(--accent-light);
    font-size: 3rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .little-prince {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --------- SKILLS SECTION --------- */
.skills-section {
    margin-bottom: 4rem;
}

.skills-section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--accent-light);
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-card:hover,
.skill-card:focus-within {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border: 1px solid var(--accent-color);
    background-color: rgba(45, 90, 140, 0.3);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    padding: 0.5rem 0;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-card li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .skills-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* --------- EXPERIENCE SECTION --------- */
.experience-section {
    margin-bottom: 4rem;
}

.experience-section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--accent-light);
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--border-color) 100%);
}

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

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    top: 0;
    right: -60px;
}

.timeline-item:nth-child(even)::before {
    left: -60px;
    right: auto;
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--cloud-white);
}

.timeline-content .company {
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-content .location {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 0;
        right: auto;
    }
}

/* --------- TEACHING SECTION --------- */
.teaching-section {
    margin-bottom: 4rem;
}

.teaching-section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--accent-light);
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.teaching-content {
    max-width: 900px;
    margin: 0 auto;
}

.teaching-item {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.teaching-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
}

.teaching-item .date {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.teaching-item .location {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --------- FOOTER --------- */
footer {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.95) 0%, rgba(45, 90, 140, 0.95) 50%, rgba(29, 90, 140, 0.95) 100%);
    color: var(--cloud-white);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-color);
    box-shadow: inset 0 2px 8px rgba(0, 212, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    color: var(--text-lighter);
    margin: 0.75rem 0;
}

footer a {
    color: var(--accent-light);
    font-weight: 500;
}

footer a:hover,
footer a:focus {
    color: var(--cloud-white);
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem 1rem;
    }

    footer p {
        font-size: 0.95rem;
    }
}

/* --------- ACCESSIBILITY --------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------- FOCUS VISIBLE --------- */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* --------- SKIP TO MAIN CONTENT (for accessibility) --------- */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--bg-dark);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}
