* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #c5dcef 0%, #01182a 100%);
    min-height: 100vh;
}

/* Landing Page Styles */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.login-card h1 {
    color: #1a202c;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 40px;
}

.login-btn {
    background: #013c64;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(81, 150, 217, 0.4);
}

.login-btn:hover {
    background: #c5dcef;
    color: #01182a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 150, 217, 0.5);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:hover svg path {
    stroke: #01182a !important;
}

.footer-text {
    margin-top: 30px;
    color: #a0aec0;
    font-size: 14px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}

.logout-btn {
    background: transparent;
    color: #013c64;
    border: 2px solid #013c64;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #013c64;
    color: white;
}

/* Portal Page */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.welcome-section h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-section p {
    font-size: 20px;
    opacity: 0.9;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portal-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.download-icon {
    background: linear-gradient(135deg, #5196d9 0%, #013c64 100%);
}

.notes-icon {
    background: linear-gradient(135deg, #5196d9 0%, #013c64 100%);
}

.contact-icon {
    background: linear-gradient(135deg, #5196d9 0%, #013c64 100%);
}

.portal-card h2 {
    color: #1a202c;
    font-size: 24px;
    margin-bottom: 12px;
}

.portal-card p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn {
    background: #013c64;
    color: white;
    box-shadow: 0 4px 15px rgba(1, 60, 100, 0.4);
}

.download-btn:hover {
    background: #5196d9;
    transform: scale(1.05);
}

.notes-btn {
    background: #013c64;
    color: white;
    box-shadow: 0 4px 15px rgba(1, 60, 100, 0.4);
}

.notes-btn:hover {
    background: #5196d9;
    transform: scale(1.05);
}

.contact-btn {
    background: #013c64;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(1, 60, 100, 0.4);
}

.contact-btn:hover {
    background: #5196d9;
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #1a202c;
    font-size: 28px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 36px;
    color: #718096;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f7fafc;
    color: #1a202c;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.release-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.release-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.release-item h3 {
    color: #1a202c;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.release-date {
    font-size: 14px;
    color: #718096;
    font-weight: normal;
}

.release-item ul {
    list-style-position: inside;
    color: #4a5568;
    line-height: 2;
}

.release-item li {
    padding-left: 10px;
}

/* Download Items */
.download-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.download-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.download-item h3 {
    color: #1a202c;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-container {
        padding: 40px 20px;
    }

    .welcome-section h1 {
        font-size: 36px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 20px;
    }

    .login-card {
        padding: 40px 30px;
    }

    .modal-content {
        width: 95%;
    }
}
