/* sections.css */

/* Courses Section Enhancements */
.courses-section {
    padding: 100px 0;
    background: var(--bg-color);
    /* You can add a subtle background pattern or texture here if desired */
}

.courses-grid {
    /* display: flex;
    flex-wrap: wrap;
    gap: 2.5rem; 
    justify-content: center;
    align-items: stretch; */
    margin-top: 3rem;
}

.course-card {
    /* width: 320px; */
    height: 550px; /* Reduced height to move button up */
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%); /* Darker, thematic background */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8); /* Stronger shadow */
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    padding: 4.5rem 2.5rem; /* Adjusted top padding */
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(113, 201, 206, 0.2); /* Subtle thematic border */
    margin: 0 15px; /* Added margin for spacing between cards */
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(113, 201, 206, 0.1) 0%, transparent 70%); /* Subtle thematic glow */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    border-radius: 25px;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); /* Light sweep effect */
    transition: transform 0.8s ease-in-out; /* Smooth transition for the sweep */
    transform: skewX(-31deg); /* Create a slanted light effect */
    z-index: 1; /* Above the radial glow, below content */
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover::after {
    transform: translateX(200%) skewX(-31deg); /* Move across the card on hover */
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.6); /* More prominent glow on hover */
}

.course-card .company-logo {
    position: relative;
    top: auto;
    left: auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00BFFF, #71C9CE); /* Vibrant thematic gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 255, 255, 1); /* Stronger glow */
    margin-bottom: 25px;
    flex-shrink: 0;
    z-index: 10;
    border: none;
    visibility: visible;
}

.course-card .company-logo i {
    font-size: 0.3em;
    color: #000; /* Ensure icon is black for contrast */
    text-shadow: none;
    display: block;
    visibility: visible;
}

.course-card .company-logo.excel-logo {
    background-color: #00BFFF; /* Solid blue for Excel */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7); /* Consistent glow */
}

.course-card .company-logo.excel-logo i {
    display: none; /* Hide icon */
}

.course-card h3 {
    color: #00BFFF; /* Thematic color for titles */
    margin-bottom: 1rem;
    font-size: 1.6rem;
    margin-top: 0;
    font-weight: 700;
}

.course-card p {
    color: rgba(255, 255, 255, 0.85); /* Slightly brighter text */
    margin-bottom: 1.2rem; /* Revert to original margin-bottom */
    line-height: 1.7;
    font-size: 1em;
}

.course-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensure content aligns to the top */
    margin-bottom: 1rem; /* Space between content and button */
    height: 100%; /* Ensure content fills available vertical space */
}

.course-card .issuer {
    color: #ffb144;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem; /* Space below issuer */
}

.course-card .completion-date {
    color: rgba(255, 255, 255, 0.5); /* More subtle date */
    font-size: 0.8em;
    margin-bottom: 1.5rem; /* Revert to original margin-bottom */
}

.course-card .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem; /* Slightly larger gap for tags */
    margin-top: 0.8rem;
    margin-bottom: 2rem; /* More space before button */
}

.course-card .skill-tag {
    background: rgba(0, 191, 255, 0.2); /* Thematic tinted background */
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #E0FFFF;
    border: 1px solid rgba(0, 191, 255, 0.4); /* Thematic subtle border */
}

.course-card .certificate-btn {
    position: relative;
    margin-top: auto; /* Push button to the bottom */
    padding: 0.9rem 1.8rem;
    background: linear-gradient(45deg, #00BFFF, #71C9CE); /* Vibrant thematic gradient */
    color: #000; /* Black text for contrast */
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: bold;
    width: 100%;
    text-align: center;
    display: block;
    z-index: 2;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.6); /* Stronger initial glow */
    border: none;
    visibility: visible;
    margin-bottom: 0; /* Ensure button is at the bottom */
}

.course-card .certificate-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.9); /* Even stronger glow on hover */
    background: linear-gradient(45deg, #71C9CE, #00BFFF); /* Inverted gradient on hover */
}

/* Certification Section Enhancements */
#certifications-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.certification-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Ensure cards have equal height */
    flex-wrap: wrap;
    gap: 2.5rem; /* Increased gap for better spacing */
}

.glass {
    position: relative;
    width: 220px;
    min-height: 250px;
    background: rgba(255, 255, 255, 0.05); /* Lighter transparent background for glass effect */
    border: 1px solid rgba(113, 201, 206, 0.2); /* Thematic border */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); /* Deeper shadow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in-out;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(15px); /* Stronger blur effect for glass */
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(0, 191, 255, 0.1) 0%, transparent 70%); /* Thematic radial glow */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    border-radius: 15px;
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); /* Light sweep effect */
    transition: transform 0.8s ease-in-out; /* Smooth transition for the sweep */
    transform: skewX(-31deg); /* Create a slanted light effect */
    z-index: 1; /* Above the radial glow, below content */
}

.glass:hover::before {
    opacity: 1;
}

.glass:hover::after {
    transform: translateX(200%) skewX(-31deg); /* Move across the card on hover */
}

.glass:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 35px rgba(0, 255, 255, 0.8); /* Stronger glowing shadow on hover */
    background: rgba(255, 255, 255, 0.1); /* Slightly more opaque on hover */
}

.glass svg {
    font-size: 0.3em; /* Smaller icons for certifications */
    color: #00BFFF; /* Thematic color for icons */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.7)); /* Subtle glow for icons */
    transition: all 0.3s ease-in-out;
    visibility: visible;
}

.glass:hover svg {
    fill: #00BFFF; /* Change icon color on hover */
}

.glass .certification-title {
    color: #00BFFF; /* Thematic color for titles */
    font-weight: bold;
    margin-bottom: 8px;
}

.glass .certification-institution {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    margin-bottom: 8px;
}

.glass .certification-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin-bottom: 20px;
}

.glass .view-certificate-btn {
    background-color: #00BFFF; /* Thematic button background */
    border: none;
    color: #000; /* Black text for contrast */
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 255, 255, 0.5); /* Stronger subtle glow */
    z-index: 2;
    visibility: visible;
    display: block;
}

.glass .view-certificate-btn:hover {
    background-color: #71C9CE; /* Thematic hover background */
    transform: translateY(-2px);
}

/* Responsive adjustments for sections.css */
@media (max-width: 991.98px) {
    .courses-grid,
    .certification-container {
        gap: 1.5rem; /* Smaller gap on tablets */
    }

    .course-card {
        width: calc(50% - 1.5rem); /* Two cards per row on tablets */
        min-width: 280px;
        padding: 2rem;
    }

    .glass {
        width: calc(50% - 1.5rem); /* Two cards per row on tablets */
        min-width: 180px;
        padding: 20px;
    }

    .course-card .company-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .course-card .company-logo i {
        font-size: 3em;
    }

    .course-card h3 {
        font-size: 1.4rem;
    }

    .glass svg {
        font-size: 3em;
    }

    .glass .certification-title {
        font-size: 1.1em;
    }
}

@media (max-width: 767.98px) {
    .courses-grid,
    .certification-container {
        flex-direction: column; /* Stack cards vertically on phones */
        gap: 1.5rem;
    }

    .course-card {
        width: 90%; /* Full width on phones, with some padding */
        max-width: 350px; /* Limit max width for readability */
        margin: 0 auto; /* Center the cards */
        min-height: auto; /* Allow height to adjust */
        padding: 1.5rem;
    }

    .glass {
        width: 90%; /* Full width on phones */
        max-width: 300px; /* Limit max width */
        margin: 0 auto; /* Center the cards */
        min-height: auto; /* Allow height to adjust */
        padding: 15px;
    }

    .course-card .company-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .course-card .company-logo i {
        font-size: 2.5em;
    }

    .course-card h3 {
        font-size: 1.3rem;
    }

    .course-card p {
        font-size: 0.9em;
    }

    .glass svg {
        font-size: 2.5em;
    }

    .glass .certification-title {
        font-size: 1em;
    }

    .glass .view-certificate-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
} 