/* GLOBAL STYLES */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background: linear-gradient(-45deg, #ffffff, #f9f6ff, #f0f4ff, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    color:#2e3a59; 
    overflow-x:hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* PRELOADER STYLES */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(-45deg, #ffffff, #f9f6ff, #f0f4ff, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    height: 90px;
    width: auto;
    animation: logoPulse 2s infinite ease-in-out;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(108, 76, 255, 0.1);
    border-top: 3px solid #6c4cff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes logoPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* NAVBAR */
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(15px);
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 4px 30px rgba(108, 76, 255, 0.03);
}

.logo img{
    height:55px;
}

nav{
    display:flex;
    align-items: center;
    gap:35px;
}

nav a{
    text-decoration:none;
    color:#4e5d78;
    font-weight:600;
    font-size: 0.95rem;
    transition:.3s;
}

nav a:hover{
    color:#6c4cff;
}

.btn-nav-cta {
    background: #6c4cff;
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(108,76,255,.25);
}

.btn-nav-cta:hover {
    background: #5636db;
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero{
    padding:100px 8% 80px 8%;
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items:center;
    gap:40px;
}

.highlight-purple {
    color: #6c4cff;
}

.badge{
    display:inline-block;
    background: rgba(108, 76, 255, 0.1);
    color: #6c4cff;
    padding:6px 18px;
    border-radius:50px;
    font-size: 0.8rem;
    font-weight:700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero h1{
    font-size:3.8rem;
    font-weight:800;
    line-height:1.2;
    color:#0a2540;
    margin-bottom: 20px;
}

.hero p{
    font-size:1.05rem;
    line-height:1.8;
    color:#627d98;
}

/* BUTTONS */
.buttons{
    margin:35px 0;
    display:flex;
    flex-wrap: wrap;
    gap:15px;
}

.btn-primary, .btn-secondary, .btn-install {
    padding:14px 28px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    font-size: 0.95rem;
    transition:.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-install {
    background: linear-gradient(135deg, #ff7b00, #ff9d00);
    color: white;
    box-shadow: 0 10px 25px rgba(255,123,0,.3);
}

.btn-install:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,123,0,.45);
}

.btn-primary {
    background: #6c4cff;
    color: white;
    box-shadow: 0 10px 25px rgba(108,76,255,.2);
}

.btn-primary:hover {
    background: #5636db;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid #e2e8f0;
    color: #6c4cff;
    background: white;
}

.btn-secondary:hover {
    border-color: #6c4cff;
    transform: translateY(-3px);
}

/* MINI HERO BADGES */
.hero-mini-badges {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
}

.mini-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mb-icon {
    font-size: 1.5rem;
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.mini-badge strong {
    font-size: 0.9rem;
    color: #0a2540;
}

.mini-badge p {
    font-size: 0.75rem;
    color: #829ab1;
}

/* HERO IMAGE WRAPPER */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    background: radial-gradient(circle, rgba(108,76,255,0.08) 0%, transparent 70%);
    padding: 40px;
}

.hero-image img {
    width: 100%;
    max-width: 440px;
    animation: float 6s ease-in-out infinite;
}

.floating-star {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 1.5rem;
    animation: float 4s ease-in-out infinite alternate;
}

@keyframes float{
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* SECTION HEADINGS */
.section-subtitle {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c4cff;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-main-title {
    text-align: center;
    font-size: 2.4rem;
    color: #0a2540;
    font-weight: 800;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.4rem;
    color: #9037d4;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
}

/* LOGOS / PARTNERS SECTION */
.logos {
    padding: 40px 8% 80px 8%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.logo-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.03);
    border: 1px solid rgba(108,76,255,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(108,76,255,0.07);
}

.card-img-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-card img {
    max-height: 80px;
    object-fit: contain;
}

.logo-card h3 {
    font-size: 1.15rem;
    color: #0a2540;
    margin-bottom: 10px;
}

.logo-card p {
    font-size: 0.88rem;
    color: #627d98;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c4cff;
    text-decoration: none;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: center;
}

.about-text-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #486581;
    margin-bottom: 20px;
}

.about-box {
    background: #7c5cff;
    color: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(108,76,255,0.25);
    position: relative;
    overflow: hidden;
}

.about-box-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.about-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.floating-heart {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.15;
}

/* FEATURES SECTION (PERFECT 5-COLUMN GRID Layout) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.01);
    transition: .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(108,76,255,0.06);
}

.f-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.purple-bg { background: #f3efff; color: #6c4cff; }
.orange-bg { background: #fff5eb; color: #ff7b00; }
.green-bg { background: #ebfaf0; color: #24b47e; }
.blue-bg { background: #edf5ff; color: #2684ff; }
.pink-bg { background: #ffeff4; color: #ff4b81; }

.feature-card h3 {
    font-size: 1rem;
    color: #0a2540;
    margin-bottom: 10px;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.8rem;
    color: #627d98;
    line-height: 1.6;
}

/* DEVELOPERS/TEAM SECTION */
.team {
    background: #6455aa;
    color: white;
}

.team .section-title h2 {
    color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.person {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s ease, 
                opacity 0.4s ease,
                box-shadow 0.4s ease;
}

.team-grid:hover .person {
    opacity: 0.6;
    transform: scale(0.95);
}

.team-grid .person:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.person:hover .team-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.person h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: font-size 0.4s ease;
}
.person:hover h3 {
    font-size: 1.35rem;
}

.person .email {
    font-size: 0.85rem;
    color: #e2d9ff;
    margin-bottom: 4px;
    transition: font-size 0.4s ease, color 0.4s ease;
}
.person:hover .email {
    font-size: 0.92rem;
    color: #ffffff;
}

.person .phone {
    font-size: 0.85rem;
    color: #ffffff;
    transition: font-size 0.4s ease;
}
.person:hover .phone {
    font-size: 0.92rem;
}

/* SCHOOL SECTION */
.school {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(26, 21, 62, 0.85)), url('assets/silaysped.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    padding: 120px 8% 80px 8%; 
    position: relative;
}

.school .section-title h2 {
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.school-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-width: 850px;
    margin: 0 auto 50px auto; 
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.school-logo-img {
    width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.school-info {
    flex-grow: 1;
}

.school-id {
    font-size: 0.95rem;
    color: #6c4cff;
    font-weight: 600;
    margin-bottom: 6px;
}

.address {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 10px;
}

.desc {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
}

/* MANDATES INFO BLOCKS (VISION, MISSION, VALUES) */
.school-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ff9d00; 
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.detail-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.95;
}

.detail-card ul {
    list-style-type: none;
    padding-left: 0;
}

.detail-card ul li {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    opacity: 0.95;
}

.detail-card ul li::before {
    content: "•";
    color: #ff9d00;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.value-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-align: center;
    transition: background 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* FOOTER & CTA BANNER */
footer {
    background: #0f172a;
    padding: 60px 8% 30px 8%;
}

.footer-cta-banner {
    background: linear-gradient(90deg, #6c4cff, #9175ff);
    padding: 40px 50px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(108,76,255,0.3);
}

.footer-cta-left {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 65%;
}

/* Styled clean crisp graphic wrapper for footer layout image tag */
.footer-logo-graphic {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.footer-cta-banner h2 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
}

.btn-footer-cta {
    background: #ff7b00;
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(255,123,0,0.3);
    transition: .3s;
}

.btn-footer-cta:hover {
    background: #e06c00;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    font-size: 0.85rem;
    color: #64748b;
}

/* SCROLL REVEAL FUNCTIONAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* SECTION PADDINGS CRITERIA */
section {
    padding: 80px 8%;
}

/* RESPONSIVE LAYOUTS (TABLETS & PHONES) */
@media(max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .school-details-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media(max-width: 992px){
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .buttons, .hero-mini-badges {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .logos, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-cta-banner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-cta-left {
        flex-direction: column;
        max-width: 100%;
    }
    .school-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 25px;
    }
}

@media(max-width: 768px){
    header {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .logos, .feature-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .hero-mini-badges {
        flex-direction: column;
        align-items: flex-start;
        display: inline-flex;
    }
    .buttons a {
        width: 100%;
        justify-content: center;
    }
}