*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
}

.container{
    width:100%;
}

#backToTop{
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 80px;
    height: 80px;
    padding: 10px 15px;
    background: linear-gradient(135deg, purple, gold);
    outline: 2px solid rgb(163, 2, 163);
    font-size: 30px;
    color: gold;
    border-radius: 50%;
    border: none;
    display: none;
    cursor: pointer;
    z-index: 10;
}
#backToTop:hover{
    background-color: rgb(163, 2, 163);
    outline: 2px solid rgb(225, 6, 225);
    box-shadow: 2px -4px 8px rgb(243, 46, 243), -2px 4px 8px rgb(243, 46, 243);
}

#backToTop{
    transition: all 0.3s ease;
}

#backToTop:hover{
    transform: scale(1.1) rotate(5deg);
}

/* NAV CLEAN */
.over-lay{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    background: linear-gradient(
        135deg,
        rgba(5, 0, 20, 0.95),
        rgba(20, 0, 40, 0.95)
    );

    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 2000;
}

.over-lay::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(160, 0, 255, 0.6),
        transparent
    );
}

.logo-first-sec{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo-txt p{
    font-size:28px;
    font-weight:bold;
    color:brown;
}


/* NAV WRAPPER */
.main-nav{
    position: relative;
    z-index: 2000;
}

/* MAIN NAV */
.navigation{
    display: flex;
    gap: 40px;
    list-style: none;
}

/* NAV ITEMS */
.navigation > li{
    position: relative;
}

/* LINKS */
.navigation a{
    display: inline-block;
    padding: 10px 16px;
    border-radius: 30px;
    color: gold;
    text-decoration: none;
    background: linear-gradient(180deg, #6b3f1d, #4a2b13);
    transition: 0.3s ease;
}

.navigation a:hover{
    background: linear-gradient(135deg, purple, gold);
    color: white;
    box-shadow: 0 0 10px rgba(255,215,0,0.6);
}


/* DROPDOWN BASE */
.dropdown{
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 260px;

    background: white;
    list-style: none;
    border-radius: 12px;
    padding: 15px;

    display: grid;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: 0.3s ease;
    z-index: 3000;
}

/* DROPDOWN LINKS */
.dropdown a{
    background: none;
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
}

.dropdown a:hover{
    background: #f0f0f0;
    color: purple;
}

/* SHOW DROPDOWN */
.has-dropdown:hover .dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown > a::after{
    content: " ▾";
    font-size: 12px;
}

.hamburger{
    display: none;
}

.mobile-overlay{
    display: none;
}

.mobile-nav{
    display: none;
}

.hero{
    width: 100%;
    height: 400px;
    background-image: url(../media/ourCurriculum.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.introText{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 80px 40px;
}

.intro-header h1{
    font-size: 52px;
    font-weight: 500;
    color: purple;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.intro-header p{
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 750px;
}

/* SERVICES GRID */
.services-grid{
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* SERVICE BLOCK */
.service-block{
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.service-block:hover{
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-block h2{
    color: purple;
    font-size: 20px;
    margin-bottom: 15px;
}

/* LINKS */
.service-block a{
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.service-block a:hover{
    color: purple;
    padding-left: 8px;
}


/* FOOTER FIX */
.footer{
    background: linear-gradient(135deg, #0f2027, #203a43);
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer img{
    filter: brightness(1.2);
}

.txt p{
    color: #ccc;
    margin-bottom: 10px;
}

.bottom a{
    color: gold;
}

.right_sec{
    display:flex;
    gap:20px;
    font-size:30px;
}

.right_sec a{
    color: white;
    transition: 0.3s;
}

.right_sec a:hover{
    color: gold;
    transform: scale(1.2);
}




@media (max-width: 520px){

    .introText{
        padding: 30px 15px;
    }

    .service-block{
        padding: 20px;
    }

    .service-block h2{
        font-size: 18px;
    }

    .service-block a{
        font-size: 14px;
    }

    .intro-header h1{
        font-size: 30px;
    }

    .intro-header p{
        font-size: 15px;
    }
}



/* MOBILE */
@media(max-width:768px){

    .navigation{
        height: 110em;
        width: 80%;
        padding-top: 230px;      
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        opacity: 0;
        transition: all 0.4s ease;
    }

    .navigation{
        display: none;
    }
    .hamburger{
        display:flex;
        flex-direction:column;
        gap:5px;
        cursor:pointer;
    }

    .hamburger span{
        width:25px;
        height:3px;
        background:#8B5A2B;
    }

    /* MOBILE NAV (SAME AS HOME) */
    .mobile-nav{
        display: block;
        position:fixed;
        top:0;
        left:-100%;
        width:80%;
        height:100%;
        background:linear-gradient(180deg,#6b3f1d,#4a2b13);
        z-index:4000;
        padding:20px;
        transition:0.4s ease;
    }

    .mobile-nav.active{
        left:0;
    }

    .mobile-overlay{
        display: block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,0.5);
        opacity:0;
        visibility:hidden;
        transition:0.3s;
        z-index:3500;
    }

    .mobile-overlay.active{
        opacity:1;
        visibility:visible;
    }

    .mobile-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .menu_logo{
        width:100px;
    }

    .close-btn{
        font-size:40px;
        color:gold;
        cursor:pointer;
    }

    .mobile-menu{
        list-style:none;
        margin-top:40px;
        display:flex;
        flex-direction:column;
        gap:25px;
    }

    .mobile-nav li{
        opacity: 0;
        transform: translateX(-20px);
        animation: slideIn 0.5s forwards;
    }

    .mobile-nav.active li:nth-of-type(1){ animation-delay: 0.1s; }
    .mobile-nav.active li:nth-of-type(2){ animation-delay: 0.2s; }
    .mobile-nav.active li:nth-of-type(3){ animation-delay: 0.3s; }
    .mobile-nav.active li:nth-of-type(4){ animation-delay: 0.4s; }

    @keyframes slideIn{
        to{
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-menu a{
        color:gold;
        font-size:22px;
        text-decoration:none;
    }

    .introText{
        padding: 40px 20px;
    }

    .services-grid{
        grid-template-columns: 1fr;
    }

    .intro-header h1{
        font-size: 36px;
    }
}


@media (max-width: 1024px){
    .navigation{
        height: 110em;
        width: 80%;
        padding-top: 230px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        opacity: 0;
        transition: all 0.4s ease;
    }

    .navigation{
        display: none;
    }
    .hamburger{
        display:flex;
        flex-direction:column;
        gap:5px;
        cursor:pointer;
    }

    .hamburger span{
        width:25px;
        height:3px;
        background:#8B5A2B;
    }

    /* MOBILE NAV (SAME AS HOME) */
    .mobile-nav{
        display: block;
        position:fixed;
        top:0;
        left:-100%;
        width:80%;
        height:100%;
        background:linear-gradient(180deg,#6b3f1d,#4a2b13);
        z-index:4000;
        padding:20px;
        transition:0.4s ease;
    }

    .mobile-nav.active{
        left:0;
    }

    .mobile-overlay{
        display: block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,0.5);
        opacity:0;
        visibility:hidden;
        transition:0.3s;
        z-index:3500;
    }

    .mobile-overlay.active{
        opacity:1;
        visibility:visible;
    }

    .mobile-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .menu_logo{
        width:100px;
    }

    .close-btn{
        font-size:40px;
        color:gold;
        cursor:pointer;
    }

    .mobile-menu{
        list-style:none;
        margin-top:40px;
        display:flex;
        flex-direction:column;
        gap:25px;
    }

    .mobile-nav li{
        opacity: 0;
        transform: translateX(-20px);
        animation: slideIn 0.5s forwards;
    }

    .mobile-nav.active li:nth-of-type(1){ animation-delay: 0.1s; }
    .mobile-nav.active li:nth-of-type(2){ animation-delay: 0.2s; }
    .mobile-nav.active li:nth-of-type(3){ animation-delay: 0.3s; }
    .mobile-nav.active li:nth-of-type(4){ animation-delay: 0.4s; }

    @keyframes slideIn{
        to{
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-menu a{
        color:gold;
        font-size:22px;
        text-decoration:none;
    }

    .introText{
        padding: 40px 20px;
    }

    .services-grid{
        grid-template-columns: 1fr;
    }

    .intro-header h1{
        font-size: 36px;
    }
}