/* ========================================
   VPES SIMS - Modern Landing Page CSS
   Fully Responsive & Clean Design
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Icon Colors */
    --icon-edit: #8B5CF6;
    --icon-list: #3B82F6;
    --icon-bolt: #F59E0B;
    --icon-mobile: #EC4899;
    --icon-file: #06B6D4;
    --icon-graduation: #3B82F6;
    --icon-teacher: #F97316;
    --icon-flask: #10B981;
    --icon-football: #EF4444;
    --icon-mail: #3B82F6;
    --icon-phone: #10B981;
    --icon-map: #EF4444;
    --icon-facebook: #1877F2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER & NAVIGATION === */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #000000;
    justify-self: start;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-self: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Auth Navigation */
.enroll-btn-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

.login-btn {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.enroll-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: end;
    max-width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
    max-width: 250px;
    min-width: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.user-info span:first-child {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    font-size: 0.75rem;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#logoutBtn {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#logoutBtn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.mobile-nav-menu {
    list-style: none;
    flex: 1;
    padding-bottom: 200px;
}

.mobile-nav-menu li {
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-enroll-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.mobile-logout-btn {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
}

/* === MOBILE AUTHENTICATED NAVIGATION (PROFESSIONAL CARD) === */
.mobile-auth-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
    animation: slideUpFade 0.4s ease;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-auth-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-auth-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.mobile-auth-badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.mobile-user-name {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user-email {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-auth-card .mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-auth-card .mobile-logout-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-auth-card .mobile-logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-auth-card .mobile-logout-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* === MAIN CONTENT === */
main {
    background: linear-gradient(135deg, #f0f4ff 0%, #e5e7eb 100%);
    padding: 4rem 0;
}

.main-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.main-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === CTA BUTTONS (FIXED) === */
.cta-buttons {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* CTA Button Icons - Colorful and Visible with glow */
/* CTA Button Icons - Bright yellow with shadow for visibility */
.btn-primary .fa-edit {
    color: #FDE047;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    margin-right: 4px;
}

.btn-secondary .fa-list-alt {
    color: #3B82F6;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    margin-right: 4px;
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #5b6470;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* === FEATURES === */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 20px;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Colorful Feature Icons */
.feature-icon .fa-bolt { color: var(--icon-bolt); }
.feature-icon .fa-mobile-alt { color: var(--icon-mobile); }
.feature-icon .fa-file-alt { color: var(--icon-file); }

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray);
    line-height: 1.6;
}

/* === ABOUT SECTION === */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

/* Colorful About Feature Icons */
.about-feature .fa-graduation-cap { color: var(--icon-graduation); font-size: 1.3rem; }
.about-feature .fa-chalkboard-teacher { color: var(--icon-teacher); font-size: 1.3rem; }
.about-feature .fa-flask { color: var(--icon-flask); font-size: 1.3rem; }
.about-feature .fa-futbol { color: var(--icon-football); font-size: 1.3rem; }

/* === REQUIREMENTS === */
.requirements-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.requirements-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.requirements-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.requirements-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 1.5rem 1rem;
    gap: 1rem;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    padding: 1.5rem 1rem;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: var(--light-gray);
}

.level-cell {
    font-weight: 700;
    color: var(--primary-color);
}

.eligibility-cell,
.documents-cell {
    color: var(--gray);
    line-height: 1.6;
}

.documents-cell ul {
    padding-left: 1.25rem;
}

.highlight-text {
    color: var(--error);
    font-weight: 700;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    width: 50px;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-item a {
    color: #d1d5db;
    text-decoration: none;
}

.contact-icon {
    font-size: 1.2rem;
}

/* Colorful Contact Icons */
.contact-icon .fa-envelope { color: var(--icon-mail); }
.contact-icon .fa-phone { color: var(--icon-phone); }
.contact-icon .fa-map-marker-alt { color: var(--icon-map); }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Colorful Social Icons */
.social-link .fa-facebook,
.social-link .fa-facebook-f { color: var(--icon-facebook); }
.social-link .fa-envelope { color: var(--icon-mail); }
.social-link .fa-phone { color: var(--icon-phone); }

.social-link {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* === MESSAGES === */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    max-width: 350px;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.3s ease;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--error);
}

.success-message {
    background: #f0fdf4;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.loading {
    background: var(--white);
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .user-profile {
        max-width: 200px;
        padding: 0.4rem 0.6rem;
    }

    .user-info span:first-child {
        font-size: 0.85rem;
    }

    .user-email {
        font-size: 0.7rem;
    }

    #logoutBtn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Medium screens - tighter spacing */
@media (max-width: 900px) {
    .nav-container {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .user-profile {
        max-width: 180px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .nav-menu,
    .enroll-btn-container,
    .auth-nav {
        display: none !important;
    }

    .main-title {
        font-size: 2rem;
    }

    /* Keep buttons HORIZONTAL on tablet */
    .cta-buttons {
        flex-direction: row !important;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 180px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .level-cell,
    .eligibility-cell,
    .documents-cell {
        padding: 0.5rem 0;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile - Only here buttons stack vertically */
@media (max-width: 500px) {
    .cta-buttons {
        flex-direction: column !important;
        align-items: stretch;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: unset;
        max-width: 350px;
        margin: 0 auto;
    }

    .features {
        grid-template-columns: 1fr;
    }
}