@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --secondary: #0f172a;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(79, 70, 229, 0.1), 0 8px 10px -6px rgba(79, 70, 229, 0.1);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: var(--bg-white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(79, 70, 229, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: var(--bg-white);
    padding: 1rem 2.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    padding: 1rem 2.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* About / Vision Mission */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-info h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: justify;
}

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vm-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

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

.vm-card h4 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vm-card p, .vm-card ul {
    color: var(--text-muted);
    font-size: 1rem;
}

.vm-card ul {
    padding-left: 1.25rem;
}

.vm-card li {
    margin-bottom: 0.5rem;
}

/* Announcements */
.announcement-section {
    background-color: var(--bg-white);
}

.announcement-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.announcement-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

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

.announcement-card .date {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.announcement-card h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.announcement-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

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

.contact-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Login Portal */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2rem;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(79, 70, 229, 0.7));
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 70px;
}

.login-logo h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}

.login-logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid #cbd5e1;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-top: 1.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(79, 70, 229, 0.4);
}

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

.back-home {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
}

.back-home:hover {
    color: var(--primary-hover);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.footer-about h3 {
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4, .footer-contact h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple hidden menu for simplicity, or we can make a mobile menu */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
