* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

.logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.loading-logo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding: 0;
}

.logo-gif {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

.header-logo {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 999;
    padding: 0;
    overflow: hidden;
}

.header-logo-gif {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    }
    100% {
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
    }
}

/* Header Logo */
.header-logo {
    position: fixed;
    top: 20px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 999;
}

.header-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

/* Main Header Navigation */
.main-header {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    padding: 20px 30px;
    z-index: 998;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-nav {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 8px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .main-header {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
    }
    
    .main-nav {
        padding: 6px 15px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    min-height: calc(100vh - 60px); /* Subtract footer height */
}

.content-wrapper {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.hero-section {
    margin-bottom: 60px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.7s both;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.app-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    border-color: #667eea;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
}

.app-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.app-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.app-button-container {
    margin-top: auto;
}

.app-resources {
    margin-top: 8px;
    margin-bottom: 20px; /* Adds space below the links */
}

.app-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: bgPulse 4s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer - Fixed to be at bottom of page content */
.footer-disclaimer-dark {
    width: 100%;
    padding: 15px 0;
    margin: 0;
    border-top: 1px solid rgba(102, 126, 234, 0.3);
    background: linear-gradient(45deg, #667eea, #764ba2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-disclaimer-dark .footer-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.footer-disclaimer-dark p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: white;
    font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-logo {
        top: 15px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .loading-logo {
        width: 150px;
        height: 150px;
        font-size: 24px;
    }

    .main-content {
        min-height: calc(100vh - 50px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .app-card {
        padding: 20px;
    }
}

/* Utility classes */
.hidden {
    display: none;
}

.fade-out {
    opacity: 0;
}

.main-header {
    z-index: 999;
}

.modal-active .main-header {
    z-index: 500;
}