body {
    background: linear-gradient(to right, #000000, #15001a, #00332a);
    background-attachment: fixed;
    min-height: 100vh;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
}

::selection {
    background: #555555;
    color: #ffffff;
}

.education-container {
    padding: 120px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d500f9;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(213, 0, 249, 0.6), 0 0 20px rgba(213, 0, 249, 0.4);
    animation: slideUp 1s ease-out both;
}

.floating-text {
    display: inline-block;
    animation: floatTitle 3s ease-in-out infinite 1s;
}

.page-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 100%;
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: justify;
    animation: slideUp 1s ease-out both;
    animation-delay: 0.5s;
}

@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.education-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 20px auto 0;
    padding-left: 50px;
    position: relative;
    align-items: stretch;
}

.education-cards::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: #00ffd5;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.6);
}

.edu-card {
    width: 100%;
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.edu-card-content {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00ffd5;
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.2);
}

.edu-card.show {
    opacity: 1;
    transform: translateY(0);
}

.edu-card::after {
    content: '';
    position: absolute;
    left: -54px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 4px solid #d500f9;
    box-shadow: 0 0 10px rgba(213, 0, 249, 0.5);
    transition: all 0.3s ease;
    z-index: 1;
    box-sizing: content-box;
}

.edu-card:hover::after {
    background: #d500f9;
    box-shadow: 0 0 20px rgba(213, 0, 249, 0.8);
    transform: translateY(-50%) scale(1.2);
}

.edu-card:hover .edu-card-content {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 213, 0.6);
    background: rgba(0, 255, 213, 0.1);
}

.edu-level {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #d500f9;
    margin-bottom: 15px;
    font-weight: 800;
}

.edu-level i {
    margin-right: 15px;
}

.edu-institution {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.edu-stream {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.edu-location {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 15px;
    font-style: italic;
}

.edu-duration {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.edu-duration i {
    margin-right: 10px;
}

.edu-marks {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #00ffd5;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media screen and (max-width: 1050px) {
    .page-description {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .edu-card {
        padding: 20px;
    }
    .edu-level {
        font-size: 1.5rem;
    }
    .edu-institution {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .education-cards {
        padding-left: 30px;
    }

    .edu-card::after {
        left: -34px;
    }
}