/* Custom Properties */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --background-primary: #bce9b3;
    --background-secondary: #86dae5;
    --card-background: #dfeee6;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --accent-color: #3498db;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --timeline-color: rgba(74, 144, 226, 0.2);
    --gradient-start: #4a90e2;
    --gradient-end: #3498db;
}

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

body {
    background: #f0f2f5;
    padding: 20px;
    min-height: 100vh;
    color: #333;
}

.back-button {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #2196F3;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #1976D2;
}

h1 {
    text-align: center;
    color: #1565C0;
    margin: 30px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.education-timeline {
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
    padding: 20px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #1565C0;
    border-radius: 2px;
}

.education-card {
    width: calc(50% - 40px);
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    position: relative;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.education-card:nth-child(odd) {
    margin-left: auto;
    animation-name: slideInRight;
}

.education-card:nth-child(even) {
    margin-right: auto;
    animation-name: slideInLeft;
}

.education-card::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #1565C0;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.education-card:nth-child(odd)::before {
    left: -50px;
}

.education-card:nth-child(even)::before {
    right: -50px;
}

.education-title {
    color: #1565C0;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.education-school {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.education-year {
    color: #666;
    font-size: 1rem;
    margin-bottom: 5px;
}

.education-grade {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 20px;
    }

    .education-card {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .education-card::before {
        left: -40px !important;
    }

    .education-card {
        animation-name: slideInRight !important;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .education-timeline {
        margin: 30px auto;
    }

    .education-card {
        padding: 15px;
    }

    .education-title {
        font-size: 1.2rem;
    }

    .education-school {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
        margin: 20px 0;
    }
}

/* Hover Effects */
.education-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Additional decoration */
.education-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: #1565C0;
    top: 50%;
    transform: translateY(-50%);
}

.education-card:nth-child(odd)::after {
    left: -30px;
}

.education-card:nth-child(even)::after {
    right: -30px;
}