* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font: #5c0c0e normal Colonna MT;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #EEEEEE;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 400'%3E%3Cdefs%3E%3CradialGradient id='a' cx='396' cy='281' r='514' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23C28868'/%3E%3Cstop offset='1' stop-color='%23EEEEEE'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='400' y1='148' x2='400' y2='333'%3E%3Cstop offset='0' stop-color='%2347402A' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%2347402A' stop-opacity='0.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='800' height='400'/%3E%3Cg fill-opacity='0.24'%3E%3Ccircle fill='url(%23b)' cx='267.5' cy='61' r='300'/%3E%3Ccircle fill='url(%23b)' cx='532.5' cy='61' r='300'/%3E%3Ccircle fill='url(%23b)' cx='400' cy='30' r='300'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
    padding: 0px;
    margin: 0px;
}

.education-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.education-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.education-card {
    display: flex;
    background: rgba(255, 255, 255, 0.336);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: -1;
    border-radius: 16px;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.651);
}

.education-card.incomplete {
    opacity: 0.85;
}

.education-logo {
    width: 150px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(149, 80, 46, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #95502E;
    text-align: center;
    padding: 15px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.education-logo img {
    max-width: 150px;
    max-height: 300px;
    padding: inherit;
}

.education-card.incomplete .education-logo {
    background: rgba(70, 64, 42, 0.1);
}

.education-card.highschool .education-logo {
    background: rgba(194, 136, 104, 0.1);
}

.education-card.middle-school .education-logo {
    background: rgba(70, 64, 42, 0.1);
}

.logo-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: #462B22;
}

.education-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.institution-name {
    font-size: 1.5rem;
    color: #462B22;
    margin-bottom: 5px;
}

.faculty-name {
    font-size: 1rem;
    color: #95502E;
    font-style: italic;
    margin-bottom: 5px;
}

.degree {
    font-size: 1.2rem;
    color: #462B22;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-card.incomplete .degree {
    color: #95502E;
    font-style: italic;
}

.duration {
    color: #95502E;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.completion-status {
    display: inline-block;
    background: rgba(149, 80, 46, 0.2);
    color: #95502E;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 8px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

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

.experience-highlight {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-left: 4px solid rgba(149, 80, 46, 0.3);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.excellence-highlight {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-left: 4px solid rgba(149, 80, 46, 0.3);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.experience-title {
    font-weight: 600;
    color: #462B22;
    margin-bottom: 8px;
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.timeline-item {
    flex: 1;
    min-width: 180px;
}

.timeline-period {
    font-weight: 600;
    color: #462B22;
}

.timeline-role {
    font-size: 0.9rem;
    color: #95502E;
}

.strategic-decision {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border-left: 4px solid rgba(149, 80, 46, 0.4);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.achievements {
    margin-top: 15px;
}

.achievements-title {
    font-weight: 600;
    color: #462B22;
    margin-bottom: 8px;
}

.achievements-list {
    list-style-type: none;
}

.achievements-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #555;
}

.achievements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #95502E;
    font-weight: bold;
}

.baccalaureat-results {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-left: 4px solid rgba(149, 80, 46, 0.3);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.middle-school-performance {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-left: 4px solid rgba(149, 80, 46, 0.3);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.results-title {
    font-weight: 600;
    color: #462B22;
    margin-bottom: 15px;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    font-size: 0.95rem;
}

.performance-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(149, 80, 46, 0.2);
    color: #555;
}

.performance-value {
    font-weight: 600;
    color: #462B22;
    text-align: right;
}

.excellent-performance {
    color: #95502E;
}

.final-average {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(149, 80, 46, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
}

.average-value {
    color: #462B22;
}

.diploma-highlight {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border-left: 4px solid rgba(149, 80, 46, 0.4);
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
}

.project-highlight {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-left: 4px solid rgba(149, 80, 46, 0.3);
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
}

.project-title {
    font-weight: 600;
    color: #462B22;
    margin-bottom: 5px;
}

.project-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag {
    background: rgba(149, 80, 46, 0.15);
    color: #95502E;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(149, 80, 46, 0.2);
}

@media screen and (max-width: 1000px) {
    .education-card {
        flex-direction: column;
        max-width: 500px;
    }

    .education-logo {
        width: 100%;
        height: 100px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        flex-direction: row;
        justify-content: space-evenly;
    }

    .education-logo img{
        width: auto;
        height: 90px;
    }

    .timeline {
        flex-direction: column;
        gap: 10px;
    }

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

    .education-details {
        padding: 20px;
        font-size: 14px;
    }

    .institution-name {
        font-size: 18px;
    }

    .degree {
        font-size: 17px;
    }

    .performance-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .performance-value {
        text-align: left;
    }

}