/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #003772;
    line-height: 1.6;
    background: #ffffff;
}

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

/* Colores UPO */
:root {
    --upo-blue: #003772;
    --upo-yellow: #FCC100;
    --light-blue: #e8f4f8;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --border-gray: #e0e0e0;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
}

.language-flags {
    display: flex;
    gap: 8px;
}

.flag-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.flag-btn:hover {
    background: rgba(0, 55, 114, 0.1);
    transform: scale(1.1);
    opacity: 1;
}

.flag-btn.active {
    background: var(--upo-blue);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 55, 114, 0.3);
}

.flag-btn.active img {
    filter: brightness(1.2);
}

.flag-btn img {
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 80px;
}

.logo-personal img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-personal img:hover {
    transform: scale(1.05);
}

/* Navegación */
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li {
    margin: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--upo-blue);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--upo-blue);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--upo-blue);
    cursor: pointer;
}

/* Logo UPO */
.logo-uni {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--upo-blue);
    margin-left: auto;
}

.logo-uni span {
    font-weight: 600;
}

.logo-uni img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-uni img:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--upo-blue) 0%, #0056b3 100%);
    color: var(--white);
    padding: 150px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-photo {
    flex: 0 0 225px;
}

.profile-photo {
    width: 225px;
    height: 225px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--upo-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23FCC100" opacity="0.1"><polygon points="0,0 0,100 1000,80 1000,0"/></svg>');
    background-size: cover;
}

.hero-container {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    margin-bottom: 40px;
}

.btn-cv {
    display: inline-block;
    background: var(--upo-yellow);
    color: var(--upo-blue);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 193, 0, 0.3);
}

.btn-cv:hover {
    background: #e6ad00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(252, 193, 0, 0.4);
}

.btn-cv.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: none;
}

.btn-cv.secondary:hover {
    background: var(--white);
    color: var(--upo-blue);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--upo-yellow);
    color: var(--upo-blue);
    transform: translateY(-3px) scale(1.1);
}

/* Secciones generales */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--upo-blue);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--upo-yellow);
    margin: 20px auto 0;
    border-radius: 2px;
}

.subsection {
    margin-bottom: 60px;
}

.subsection-title {
    font-size: 2rem;
    color: var(--upo-blue);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Publicaciones */
.pub-list {
    display: grid;
    gap: 25px;
}

.publication {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--upo-yellow);
}

.publication:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.publication h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.publication h4 a {
    color: var(--upo-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication h4 a:hover {
    color: var(--upo-yellow);
}

.pub-details {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.pub-summary {
    color: #555;
    line-height: 1.6;
}

/* Noticias */
.news-list {
    display: grid;
    gap: 25px;
}

.news-item {
    display: flex;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 25px;
    flex-shrink: 0;
}

.news-content h4 a {
    color: var(--upo-blue);
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h4 a:hover {
    color: var(--upo-yellow);
}

.news-date {
    color: var(--upo-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Miniaturas temáticas */
.ai-brain { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.startup-rocket { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.education-book { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.upo-tech { background: linear-gradient(135deg, var(--upo-blue), #0056b3); }
.blockchain { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.web-dev { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.data-analysis { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }

.project-title {
    color: var(--upo-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
}

.project-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
    text-align: center;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--upo-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--upo-yellow);
    color: var(--upo-blue);
    transform: translateY(-2px);
}

/* Nuevos estilos para miniaturas de proyectos */
.project-miniatura {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.miniatura-upo-tech {
    background: linear-gradient(135deg, var(--upo-blue), #0056b3);
}

.miniatura-upo {
    background: linear-gradient(135deg, var(--upo-yellow), #e6ad00);
    color: var(--upo-blue);
}

.miniatura-us {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
}

.miniatura-scholar {
    background: linear-gradient(135deg, #4285F4, #357AE8);
}

.miniatura-default {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.project-card:hover .project-miniatura {
    transform: scale(1.05);
}

/* Estilos para iconos de noticias */
.news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--upo-yellow);
    color: var(--upo-blue);
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.5rem;
}

/* Estilos para timeline links */
.timeline-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 15px;
    background: var(--upo-blue);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-link:hover {
    background: var(--upo-yellow);
    color: var(--upo-blue);
}

/* Timeline de Docencia */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--upo-yellow);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    transition: all 0.3s ease;
    opacity: 1;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

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

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    position: absolute;
    top: 25px;
    background: var(--upo-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -120px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -120px;
}

/* Marcador central del timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--upo-yellow);
    border: 4px solid var(--upo-blue);
    border-radius: 50%;
    z-index: 5;
}

.timeline-item:nth-child(odd)::before {
    right: -58px;
}

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

.timeline-content h3 {
    color: var(--upo-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Filtros del Timeline */
.timeline-filters {
    text-align: center;
    margin: 40px 0;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--upo-blue);
    color: var(--upo-blue);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--upo-blue);
    color: var(--white);
}

/* Próximos Artículos */
.upcoming-list {
    display: grid;
    gap: 25px;
}

.upcoming-item {
    display: flex;
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border-left: 5px solid var(--upo-yellow);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.upcoming-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.upcoming-icon {
    background: var(--upo-yellow);
    color: var(--upo-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.upcoming-content h4 {
    color: var(--upo-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.upcoming-content p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.csv-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(252, 193, 0, 0.1);
    border-radius: 10px;
    color: var(--text-light);
}

.csv-info a {
    color: var(--upo-blue);
    text-decoration: none;
    font-weight: 600;
}

.csv-info a:hover {
    color: var(--upo-yellow);
}

/* Proyectos en Curso */
.current-projects {
    display: grid;
    gap: 25px;
}

.current-project {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--upo-blue);
}

.current-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.project-title {
    color: var(--upo-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.project-status {
    background: var(--upo-yellow);
    color: var(--upo-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-period {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-details {
    display: grid;
    gap: 15px;
}

.collaborators {
    color: var(--text-light);
    font-size: 0.95rem;
}

.progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    flex: 1;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--upo-yellow), #e6ad00);
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--upo-blue);
    font-weight: 600;
    min-width: 40px;
}

/* Loading messages */
.loading-message {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.loading-message i {
    margin-right: 10px;
    color: var(--upo-yellow);
}

/* LinkedIn Posts */
.linkedin-posts {
    display: grid;
    gap: 30px;
}

.linkedin-post {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.linkedin-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid var(--border-gray);
}

.post-header h3 {
    color: var(--upo-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.post-header p {
    color: var(--text-light);
    line-height: 1.5;
}

.post-embed {
    padding: 20px;
    text-align: center;
}

.post-embed iframe {
    max-width: 100%;
    border-radius: 10px;
}

/* Preview translúcido para enlaces */
.link-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.preview-container {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--upo-blue);
}

.preview-title {
    color: var(--upo-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.preview-close {
    background: var(--upo-blue);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.preview-close:hover {
    background: var(--upo-yellow);
    color: var(--upo-blue);
    transform: rotate(90deg);
}

.preview-iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 10px;
    background: #f9f9f9;
}

.preview-loading {
    text-align: center;
    padding: 50px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.preview-loading i {
    font-size: 2rem;
    color: var(--upo-blue);
    margin-bottom: 10px;
    display: block;
    animation: spin 1s linear infinite;
}

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


/* Footer */
.footer {
    background: var(--upo-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--upo-yellow);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--upo-yellow);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--upo-yellow);
    color: var(--upo-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .flag-btn {
        padding: 2px 4px;
    }
    
    .flag-btn img {
        width: 16px;
        height: 12px;
    }
    
    .header .container {
        padding: 10px 15px;
        height: 70px;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .logo-uni {
        display: none;
    }
    
    .hero {
        padding: 120px 20px 80px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-photo {
        flex: none;
        order: -1;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        position: relative;
        left: 0 !important;
        right: auto !important;
        top: 0;
        display: inline-block;
        margin-bottom: 10px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: -32px !important;
        right: auto !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .btn-cv {
        display: block;
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin: 0;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
}