* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 10px;
    /* filter: brightness(0) invert(1); */
}

.school-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.login-btn {
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background-color: #f0c040;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 179, 37, 0.3);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: 0 0 0 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 111, 92, 0.1) 0%, rgba(40, 150, 114, 0.05) 100%);
    z-index: 2;
    border-radius: 0 0 0 100px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 40px 0;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--gray);
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(30, 111, 92, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 111, 92, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: rgba(30, 111, 92, 0.05);
    transform: translateY(-3px);
}

/* Decorative Elements */
.dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 2px, transparent 3px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
}

.dots-1 {
    top: 10%;
    left: 5%;
}

.dots-2 {
    bottom: 15%;
    left: 15%;
}

.line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    z-index: 0;
}

.line-1 {
    width: 150px;
    top: 25%;
    left: 10%;
    transform: rotate(45deg);
}

.line-2 {
    width: 100px;
    bottom: 20%;
    left: 20%;
    transform: rotate(-30deg);
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    opacity: 0.1;
    z-index: 0;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 60%;
}

.circle-2 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 55%;
}

/* Quick Stats */
.quick-stats {
    background-color: var(--light);
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

/* Mission & Vision */
.mission-vision {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f7f5 0%, #e8f4f1 100%);
}

.mv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mv-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.mv-card:hover {
    transform: translateY(-10px);
}

.mv-icon {
    background-color: rgba(30, 111, 92, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.mv-card p {
    color: var(--gray);
}

/* Portal CTA */
.portal-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portal-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}
.portal-cta .btn-primary {
    position: relative;
    z-index: 10;
    /* cursor: pointer; */
}

.portal-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.portal-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo h3 {
    font-size: 1.3rem;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    opacity: 0.8;
}

.powered-by {
    opacity: 0.8;
    font-size: 0.9rem;
}

.powered-by a {
    color: var(--secondary);
    text-decoration: none;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.stat-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-bg, .hero-overlay {
        width: 45%;
    }
}

        /* Enhanced Mobile Decorative Elements */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        min-height: 70vh;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .hero-bg, .hero-overlay {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        position: relative;
        z-index: 3;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin: 0 auto 40px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about, .mission-vision {
        padding: 60px 0;
    }
    
    .portal-cta h2 {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Enhanced Mobile Decorative Elements */
    .dots {
        display: block !important;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, var(--primary-light) 2px, transparent 3px);
        background-size: 15px 15px;
        opacity: 0.15;
        animation: float 6s ease-in-out infinite;
    }
    
    .dots-1 {
        top: 5%;
        left: -30px;
        animation-delay: 0s;
    }
    
    .dots-2 {
        bottom: 10%;
        right: -20px;
        animation-delay: 2s;
    }
    
    .dots-3 {
        top: 40%;
        right: 10%;
        width: 80px;
        height: 80px;
        background-size: 12px 12px;
        animation-delay: 4s;
    }
    
    .line {
        display: block !important;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
        animation: pulse 4s ease-in-out infinite;
    }
    
    .line-1 {
        width: 80px;
        top: 20%;
        left: 10%;
        transform: rotate(30deg);
    }
    
    .line-2 {
        width: 60px;
        bottom: 25%;
        right: 15%;
        transform: rotate(-15deg);
    }
    
    .line-3 {
        width: 40px;
        top: 60%;
        left: 5%;
        transform: rotate(60deg);
        animation-delay: 1s;
    }
    
    .circle {
        display: block !important;
        border-radius: 50%;
        border: 2px solid var(--secondary);
        opacity: 0.1;
        animation: breathe 5s ease-in-out infinite;
    }
    
    .circle-1 {
        width: 60px;
        height: 60px;
        top: 15%;
        right: 20%;
        animation-delay: 0.5s;
    }
    
    .circle-2 {
        width: 40px;
        height: 40px;
        bottom: 20%;
        left: 10%;
        animation-delay: 1.5s;
    }
    
    .circle-3 {
        width: 30px;
        height: 30px;
        top: 70%;
        right: 5%;
        animation-delay: 2.5s;
    }
    
    /* Enhanced Portal CTA Animation for Mobile */
    .portal-cta::before {
        background: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
        background-size: 20px 20px;
        animation: float-mobile 15s linear infinite;
    }
    
    @keyframes float-mobile {
        0% { transform: translate(0, 0) rotate(0deg); }
        100% { transform: translate(-30px, -30px) rotate(180deg); }
    }
    
    /* Additional decorative elements for mobile */
    .triangle {
        display: block;
        position: absolute;
        width: 0;
        height: 0;
        border-style: solid;
        opacity: 0.08;
        z-index: 0;
        animation: spin 8s linear infinite;
    }
    
    .triangle-1 {
        border-width: 0 25px 43.3px 25px;
        border-color: transparent transparent var(--primary) transparent;
        top: 10%;
        right: 15%;
    }
    
    .triangle-2 {
        border-width: 43.3px 25px 0 25px;
        border-color: var(--secondary) transparent transparent transparent;
        bottom: 15%;
        left: 5%;
        animation-delay: 4s;
    }
    #portalLoginNav{
        display: none;
    }
}

/* Additional Animations for Mobile */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional decorative elements for all screens */
.dots-3 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-light) 2px, transparent 3px);
    background-size: 18px 18px;
    opacity: 0.2;
    z-index: 0;
    display: none;
}

.line-3 {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    z-index: 0;
    display: none;
}

.circle-3 {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    opacity: 0.1;
    z-index: 0;
    display: none;
}

.triangle {
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.08;
    z-index: 0;
}

/* Show additional decorative elements on mobile */
@media (max-width: 768px) {
    .dots-3, .line-3, .circle-3, .triangle {
        display: block;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .mv-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    #portalLoginNav{
        display: none;
    }
}