/* === BASIC TYPOGRAPHY === */
h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1rem;
}



/* === SECTION TITLE === */
.section-title {
    margin-top:6rem;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* === CV DOWNLOAD SECTION === */
.cv-download-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.cv-download-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 2px solid var(--navbar-border);
    border-radius: 25px;
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cv-download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.cv-download-card:hover::before {
    left: 100%;
}

.cv-download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.cv-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.cv-download-card:hover .cv-icon {
    transform: rotate(360deg) scale(1.1);
}

.cv-info h3 {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.cv-info p {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.cv-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cv-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.cv-button:hover::before {
    width: 300px;
    height: 300px;
}

.cv-button svg {
    position: relative;
    z-index: 1;
}

.cv-button span,
.cv-button svg + * {
    position: relative;
    z-index: 1;
}

.cv-button.download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cv-button.download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.cv-button.view {
    background: transparent;
    border: 2px solid var(--navbar-border);
    color: var(--text-color);
}

.cv-button.view:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, rgba(102, 126, 234, 0.3) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.timeline-content {
    width: 42%;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

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

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

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    transform: rotate(45deg);
    box-shadow: 0 5px 20px var(--shadow);
}

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

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

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5%;
    margin-top: -20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
    z-index: 10;
    border: 4px solid var(--bg-color);
}

.timeline-content h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
}

.timeline-content p {
    color: var(--light-text);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* === CARDS GRID === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
    border-color: var(--navbar-border);
}

.card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card p {
    color: var(--light-text);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

/* === MARGIN UTILITIES === */
.margin-top-4rem {
    margin-top: 4rem;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .cv-download-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem 2rem;
    }
    
    .cv-icon {
        margin: 0 auto;
        width: 80px;
        height: 80px;
    }
    
    .cv-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .timeline {
        padding: 2rem 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
        padding-left: 80px;
        min-height: auto;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
    }
    
    .timeline-date {
        left: 19px;
        top: 20px;
        margin-top: 0;
        transform: none;
    }
    
    .cards-grid {
        padding: 0 1rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        top:-20%;
        left:0%
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .cv-download-section {
        padding: 0 1rem;
    }
    
    .cv-download-card {
        padding: 2rem 1.5rem;
    }
    
    .cv-info h3 {
        font-size: 1.3rem;
    }
    
    .cv-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cv-button {
        justify-content: center;
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 2rem 1.5rem;
    }
    
    .timeline-item {
        margin-bottom: 3rem;
        padding-left: 60px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        top:-20%;
        left:0%
    }
}

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

    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        top:-20%;
        left:0%
    }
}

@media (max-width: 480px) {
    .cv-section {
        padding: 1.25rem;
    }

    .cv-section h2 {
        font-size: 1.5rem;
    }

    .section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .timeline-item h3,
    .skill-item h3 {
        font-size: 1.1rem;
    }

    .timeline-item p,
    .skill-item p {
        font-size: 0.9rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        top:-20%;
        left:0%
    }
}

@media (max-width: 360px) {
    .cv-section {
        padding: 1rem;
    }

    .cv-section h2 {
        font-size: 1.3rem;
    }

    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .timeline-item,
    .skill-item {
        padding: 1rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        top:-20%;
        left:0%
    }
}

@media (max-width: 300px) {
    .cv-section {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .cv-section h2 {
        font-size: 1.1rem;
    }

    .section-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .timeline-item,
    .skill-item {
        padding: 0.75rem;
    }

    .timeline-item h3,
    .skill-item h3 {
        font-size: 0.95rem;
    }

    .timeline-item p,
    .skill-item p {
        font-size: 0.75rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        top:-20%;
        left:0%
    }

    .skill-level {
        font-size: 0.7rem;
    }
}