*{
    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;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* HERO FIX */
.imgSec{
    min-height:70vh;
    background:url('../media/ks3.jpg') center/cover no-repeat;
    position:relative;
}



.imgSec::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}



.face{
    padding:60px 20px;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.face >p{
    font-size: 40px;
    color: purple;
    text-shadow: 1px 1px 5px gold;
}

@keyframes fadeInUp{
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

h1{
    color: gold;
    font-size: 70px;
    letter-spacing: 2px;
    animation: glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText{
    from{
        text-shadow: 0 0 10px gold;
    }
    to{
        text-shadow: 0 0 25px gold, 0 0 40px purple;
    }
}

.paragraph{
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 15px;
}

/* TEXT FIX */
.paragraph{
    max-width:500px;
    margin:40px auto;
}

.paragraph p{
    font-size:clamp(16px,3vw,24px);
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 8px gold;
}



.pg2, .pg4, .focus1{
    padding: 100px 40px;
}

/* .pg2, .focus1, .pg4{
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.pg2.show, .focus1.show, .pg4.show{
    opacity: 1;
    transform: translateY(0);
} */

/* SECTION FIX */
.pg2{
    padding:40px 20px;
    height:auto;
    position: relative;
    overflow: hidden;
}

.pg2::before{
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(128,0,128,0.3), transparent);
    top: -100px;
    left: -100px;
    filter: blur(80px);
}

.AnimationBox{
    display: flex;
    flex-wrap:wrap;
    gap:20px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.firstP{
    max-width:500px;
    margin:0 auto;
}

.firstP{
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.firstP:hover{
    transform: translateY(-10px);
}

/* INFO IMAGES */
.infoBox{
    margin-top: 100px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
}

.infoBox img{
    width:100%;
    max-width:300px;
    height:auto;
}

.infoBox div{
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
}

.infoBox div:hover{
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* BOOK SECTION FIX */
.focus1{
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    text-align: center;
    padding: 100px 40px;
}

.focus1 h2{
    color: gold;
    font-size: 40px;
}

.focus-grid{
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.focus-card{
    background: rgba(255,255,255,0.05);
    padding: 40px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: white;
    transition: 0.3s ease;
}

.focus-card:hover{
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.focus-card i{
    font-size: 40px;
    color: gold;
    margin-bottom: 20px;
}

/* FINAL SECTION */
.pg4{
    padding:40px 20px;
    height:auto;
}

.section p{
    font-size:clamp(18px,4vw,28px);
}


.pg4{
    background: #ffffff;
}

.section{
    max-width: 900px;
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    background: #f9fafc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.section h3{
    color: #16213e;
    margin-bottom: 20px;
}

.section p{
    font-size: 20px;
    line-height: 1.7;
    color: #333;
}

/* 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);
}


/* 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:3000;
        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:2500;
    }

    .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;
    }
}

@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:3000;
        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:2500;
    }

    .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;
    }
}