/* Dark and Light theme */
html[data-theme='dark'] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #2196F3;
    --card-bg: #1e1e1e;
    --card-border: #333333;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    --hover-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

/* Base styles */
.sect {
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-primary);
    padding: 4rem 0;
}

.s2 {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.s2 .head {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* Modern card styles */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

/* Education section */
.edSection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.head {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
}

.head:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Education Cards */
.education-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.education-card-content {
    padding: 2.5rem;
}

.education-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.education-card:hover .education-logo {
    transform: scale(1.05);
}

.education-details {
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.education-details h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.qual {
    margin-bottom: 1.5rem;
}

.qual h6 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.qual h6.fw-bold {
    color: var(--accent-color);
    font-weight: 600;
}

.education-details p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .education-details {
        margin-top: 2rem;
        padding-left: 1rem;
    }
    
    .education-logo {
        max-height: 100px;
    }
    
    .education-details h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .education-card-content {
        padding: 1.5rem;
    }
    
    .education-details {
        padding-left: 0.75rem;
    }
    
    .education-details h4 {
        font-size: 1.3rem;
    }
    
    .qual h6 {
        font-size: 1rem;
    }
}

/* MOOC Cards */
.mooc-card {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.mooc-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.mooc-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mooc-card:hover .mooc-image img {
    transform: scale(1.05);
}

.mooc-content {
    padding: 1.5rem;
    text-align: center;
}

/* Certificate Carousel */
#myCarousel {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.carousel-inner {
    border-radius: 24px;
}

.carousel-control {
    background: none;
    opacity: 0.8;
}

.carousel-indicators li {
    background-color: var(--text-primary);
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Certificate Cards */
.certificate-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 300px;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.1);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-details {
    padding: 2rem;
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-details {
    transform: translateY(0);
}

.certificate-details h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.certificate-details p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.view-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: white;
    color: var(--accent-color);
    transform: scale(1.05);
    text-decoration: none;
}

.view-btn i {
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certificate-card {
        height: 250px;
    }

    .certificate-details h5 {
        font-size: 1.25rem;
    }

    .certificate-details p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .view-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Awards and Prizes Section */
.awards-section {
    background-color: var(--bg-primary);
    padding: 4rem 0;
}

.award-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.award-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.award-card:hover img {
    transform: scale(1.1);
}

.award-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.award-card:hover .award-overlay {
    transform: translateY(0);
}

.award-overlay h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 10px;
}

.view-full {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-full:hover {
    background: white;
    color: var(--accent-color);
}

/* Full View Modal */
.full-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.full-view-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.full-view-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .award-card {
        aspect-ratio: 3/2;
    }

    .award-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    }

    .award-overlay h3 {
        font-size: 1rem;
    }

    .view-full {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
