body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #f8f9fa;
}

/* Header and Navbar */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    padding-top: 4px;
    padding-bottom: 4px;
    z-index: 1000;
}

.navbar {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    margin: 0 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
}

.login-btns .btn {
    margin-left: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
}

.btn-school {
    background-color: #3498db;
    color: white;
}

.btn-student {
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
}

.btn-staff {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    margin-left: 10px;
}

.btn-staff:hover {
    background-color: #218838;
    color: white;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    .navbar-collapse.collapse.show {
        display: block !important;
    }

    .login-btns {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
    }

    .login-btns .btn {
        margin: 5px 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .main-header {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .navbar {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    .main-header .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-image {
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.icon-bg {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.trust-icons {
    display: flex;
    align-items: center;
    color: #2c3e50;
    font-weight: 500;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Hero */
@media (max-width: 991px) {
    .hero-section {
        padding: 70px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Features Section */
.features-section {
    position: relative;
    overflow: hidden;
}

.section-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 30px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.feature-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    text-align: center;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-benefits li {
    margin-bottom: 8px;
    color: #34495e;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
        margin-bottom: 20px;
    }
}

/* Animated CTA Buttons */
.btn-cta-animated {
    position: relative;
    overflow: hidden;
    padding-right: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-cta-animated:hover {
    padding-right: 65px;
}

.btn-cta-animated:hover .btn-cta-text {
    transform: translateX(-10px);
}

.btn-cta-animated:hover .btn-cta-icon {
    opacity: 1;
    right: 20px;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.btn-float-animated {
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-float-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Apps Download Section */
.apps-download {
    background-color: #f8f9fa;
}

.app-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.app-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.app-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.google-play-badge {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.btn-download {
    padding: 0;
    border: none;
    background: transparent;
}

.btn-download:hover .google-play-badge {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .app-card {
        margin-bottom: 20px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

    .google-play-badge {
        height: 40px;
    }
}
