/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Slider */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
    backdrop-filter: blur(3px);
}

/* Main Layout */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    background: transparent;
    padding: 0;
    display: inline-block;
    margin-bottom: 1rem;
    width: auto;
    height: auto;
    max-width: 180px;
}

.logo {
    width: 100%;
    height: auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Module Grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    perspective: 1000px;
}

/* Glass Card */
.module-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Staggered Animation Delays */
.module-card:nth-child(1) {
    animation-delay: 0.1s;
}

.module-card:nth-child(2) {
    animation-delay: 0.2s;
}

.module-card:nth-child(3) {
    animation-delay: 0.3s;
}

.module-card:nth-child(4) {
    animation-delay: 0.4s;
}

.module-card:nth-child(5) {
    animation-delay: 0.5s;
}

.module-card:nth-child(6) {
    animation-delay: 0.6s;
}

.module-card:nth-child(7) {
    animation-delay: 0.7s;
}

.module-card:nth-child(8) {
    animation-delay: 0.8s;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.card-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make icons white */
}

.module-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-content p {
    font-size: 0.95rem;
    /* Increased readability */
    opacity: 0.8;
    line-height: 1.4;
    font-weight: 300;
    /* Lighter weight for modern look */
}

/* Footer */
.footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 1s ease-out 1s backwards;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: #4facfe;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsiveness */
/* Responsiveness */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .page-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .module-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1rem;
    }

    .card-content p {
        display: block;
        font-size: 0.85rem;
    }

    .module-card {
        padding: 1.25rem;
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1rem;
        min-height: auto;
    }

    .card-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .card-icon img {
        width: 25px;
        height: 25px;
    }
}