/* =====================================================
   GLOBAL RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F8F6F2;
    color: #222;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, a {
    transition: .3s ease;
}

p, span, a, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =====================================================
   SCROLLBAR
===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #00e5ff;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: white;
}

/* =====================================================
   PAGE WRAPPER
===================================================== */
.page-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =====================================================
   HEADER
===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: .4s;
}

.navbar {
    background: #F8F6F2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    padding: 8px 15px;
}

.header.sticky .navbar {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

/* =====================================================
   ANIMATED LOGO
===================================================== */
.sps-logo-link {
    text-decoration: none !important;
    display: inline-block;
}

.sps-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sps-logo-svg {
    width: 42px;
    height: 42px;
    overflow: visible;
    filter: drop-shadow(0 4px 8px rgba(13, 110, 253, 0.25));
    transition: transform .4s;
}

.sps-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sps-brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #222222;
    letter-spacing: .5px;
}

.sps-brand-title .sps-highlight {
    color: #0d6efd;
}

.sps-brand-sub {
    font-size: .6rem;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.sps-logo-wrapper:hover .sps-logo-svg {
    transform: translateY(-2px) scale(1.05);
}

.sps-bar {
    transform-origin: bottom;
    animation: barPulse 2.5s infinite ease-in-out alternate;
}

.bar-1 {
    animation-delay: 0s;
}

.bar-2 {
    animation-delay: .3s;
}

.bar-3 {
    animation-delay: .6s;
}

@keyframes barPulse {
    0% {
        transform: scaleY(.85);
        opacity: .7;
    }
    100% {
        transform: scaleY(1.05);
        opacity: 1;
    }
}

.sps-sparkle {
    animation: sparkleTwinkle 1.8s infinite ease-in-out;
    transform-origin: 140px 51px;
}

@keyframes sparkleTwinkle {
    0%, 100% {
        transform: scale(.6) rotate(0deg);
        opacity: .4;
    }
    50% {
        transform: scale(1.2) rotate(45deg);
        opacity: 1;
    }
}

.sps-trend-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 3s ease-out infinite;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 100;
    }
    50%, 100% {
        stroke-dashoffset: 0;
    }
}

/* =====================================================
   NAVIGATION
===================================================== */
.navbar .nav-link {
    position: relative;
    color: #222 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    margin: 0 8px;
    padding: 6px 0;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: #0d6efd !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #ff3b3b;
    border-radius: 30px;
    transition: .35s ease;
}

.navbar .nav-link:hover::after, .navbar .nav-link.active::after {
    width: 100%;
}

.login-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.login-btn:hover {
    transform: translateY(-1px);
}

/* =====================================================
   DROPDOWN
===================================================== */
.navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 10px;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    margin-top: 8px;
}

.navbar .dropdown-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    padding: 4px 10px 8px;
}

.navbar .dropdown-item {
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar .dropdown-item:hover {
    background-color: #f0f4ff;
    transform: translateX(4px);
}

.dropdown-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

.dropdown-desc {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}

/* =====================================================
   MAIN
===================================================== */
.main {
    margin-top: 80px;
}

section {
    margin-bottom: 50px;
}

/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    border-radius: 25px;
    overflow: hidden;
    padding: 60px 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(.9rem, 2vw, 1.125rem);
    color: #f1f1f1;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 620px;
}

.hero .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

.hero .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .25);
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

/* =====================================================
   FEATURES
===================================================== */
.features {
    padding: 40px 0;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: all .35s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .15);
}

.feature-card i {
    font-size: 50px;
    color: #0d6efd;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: #222;
    margin-bottom: 40px;
}

/* =====================================================
   CONTENT SECTIONS
===================================================== */
.content-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.content-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.375rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.content-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-list li {
    padding: 12px 0;
    font-size: 16px;
    color: #444;
    border-bottom: 1px solid #eee;
}

.service-list li i {
    color: #0d6efd;
    margin-right: 10px;
}

/* =====================================================
   WHY CHOOSE US
===================================================== */
.why-us-logo-container {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-radius: 24px;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-us-svg-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 15px 25px rgba(13, 110, 253, .25));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* =====================================================
   STATISTICS
===================================================== */
.statistics-section {
    padding: 60px 30px;
    background: #111;
    border-radius: 20px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 30px 15px;
    background: #1e1e1e;
    text-align: center;
    border-radius: 20px;
    transition: .4s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h2 {
    font-size: 38px;
    color: #00e5ff;
    margin-bottom: 10px;
}

.stat-card p {
    color: white;
    font-size: 16px;
    margin-bottom: 0;
}

/* =====================================================
   WORKFLOW
===================================================== */
.education-section {
    padding: 60px 30px;
    background: #111;
    border-radius: 20px;
}

.education-section .section-title {
    color: white;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 100%;
    background: #00e5ff;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    width: 50%;
    padding: 20px 30px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 25px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #00e5ff;
    border-radius: 50%;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: #222;
    padding: 25px;
    border-radius: 15px;
    color: white;
    transition: .3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: #00e5ff;
    font-size: 18px;
}

.timeline-content h4 {
    font-size: 15px;
}

.timeline-content span {
    color: #aaa;
    font-size: 13px;
}

/* =====================================================
   CONTACT
===================================================== */
.contact-section {
    padding: 60px 30px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
}

.contact-section .section-title {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.contact-info h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #00e5ff;
}

.contact-info p {
    color: #ccc;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 20px 0;
    color: white;
}

.contact-item i {
    color: #00e5ff;
    font-size: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 50%;
    color: white;
    font-size: 18px;
}

.social-links a:hover {
    background: #00e5ff;
    color: black;
    transform: translateY(-5px);
}

.contact-form {
    background: #1c1c1c;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #111;
    border: 1px solid #333;
    outline: none;
    border-radius: 10px;
    color: white;
    box-sizing: border-box;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #00e5ff;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: #00e5ff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    margin-top: 50px;
    background: #050505;
    border-radius: 20px;
    padding: 50px 30px 20px;
    color: white;
}

.footer h3 {
    color: #00e5ff;
    margin-bottom: 18px;
    font-size: 20px;
}

.footer p {
    color: #ccc;
    line-height: 26px;
    font-size: 14px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer a:hover {
    color: #00e5ff;
    padding-left: 6px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #aaa;
    font-size: 13px;
}

/* =====================================================
   SCROLL TOP
===================================================== */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #00e5ff;
    color: #000;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 9999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   LOADER
===================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: .5s;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e5e5e5;
    border-top: 6px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* =====================================================
   SCROLL REVEAL
===================================================== */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: 1s ease;
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* =====================================================
   TEACHER REQUEST MODAL
===================================================== */
.teacher-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10000;
    overflow-y: auto;
}

.teacher-modal-overlay.show {
    display: flex;
}

.teacher-modal {
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, .98);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .45);
    position: relative;
    animation: teacherModalShow .35s ease;
}

@keyframes teacherModalShow {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.teacher-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    color: #555;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.teacher-modal-close:hover {
    background: #dc3545;
    color: white;
}

.teacher-modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-right: 30px;
}

.teacher-modal-header .teacher-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #00c6ff);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 27px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, .3);
}

.teacher-modal-header h2 {
    font-size: 25px;
    font-weight: 700;
    color: #222;
    margin-bottom: 7px;
}

.teacher-modal-header p {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
}

.teacher-request-form .form-group {
    margin-bottom: 16px;
}

.teacher-request-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.teacher-request-form label span {
    color: #dc3545;
}

.teacher-request-form input, .teacher-request-form select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d8dce3;
    border-radius: 9px;
    background: #f8f9fa;
    color: #222;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.teacher-request-form input:focus, .teacher-request-form select:focus {
    background: white;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.teacher-request-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd, #0062cc);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .25);
}

.teacher-request-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 110, 253, .35);
}

.teacher-request-info {
    margin-top: 15px;
    padding: 11px 13px;
    background: #eef5ff;
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
    color: #555;
    font-size: 11px;
    line-height: 1.5;
}

/* =====================================================
   RESPONSIVE (UPDATED FIXED MEDIA QUERIES)
===================================================== */
@media (max-width: 992px) {
    .navbar .nav-link {
        display: inline-block;
        width: max-content;
    }
    .hero {
        padding: 40px 25px;
        min-height: 55vh;
    }
    .content-section {
        padding: 35px 25px;
    }
    .contact-container, .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 10px;
    }
    .main {
        margin-top: 70px;
    }
    .hero {
        padding: 35px 20px;
        border-radius: 15px;
    }
    .content-section {
        padding: 25px 18px;
        border-radius: 15px;
    }
    .statistics-section, .education-section, .contact-section, .footer {
        padding: 30px 15px;
        border-radius: 15px;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-form {
        padding: 20px 15px;
    }
    .stat-card {
        max-width: 100%;
        width: 100%;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 15px 0 15px 35px;
    }
    .timeline-dot {
        left: 5px !important;
        top: 25px;
    }
    .scroll-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .teacher-modal {
        padding: 25px 18px;
        border-radius: 17px;
    }
    .teacher-modal-header h2 {
        font-size: 21px;
    }
    .teacher-modal-header p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero .btn {
        width: 100%;
        text-align: center;
    }
    .feature-card {
        padding: 20px 15px;
    }
    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .sps-brand-title {
        font-size: 1rem;
    }
    .sps-brand-sub {
        font-size: .5rem;
    }
}