@font-face{
    font-family: 'Keania';
    src: url('KeaniaOne-Regular.ttf') format('truetype');
    font-display: swap;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-color: linear-gradient(45deg, black, rgba(6, 2, 99, 0.973), rgb(10, 10, 143));
    --text-color: rgb(87, 173, 169);
    --main-font: 'Keania', 'Arial', sans-serif;
    --page-bg-color: linear-gradient(45deg, transparent, rgba(37, 37, 163, 0.865), rgb(12, 72, 128));
    --accent-blue: rgb(55, 119, 255);
    --accent-cyan: rgb(45, 178, 205);
    --shadow-color: rgba(71, 243, 255, 0.5);
}

body{
    text-overflow: ellipsis;
    background: var(--bg-color);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    color: var(--text-color);
    font-family: var(--main-font);
    line-height: 1.6;
    overflow-x: hidden;
}
::selection{
    background-color: white;
    color: blue;
}
header{
    top: 0;
    left: 0;
    justify-content: center;
    width: 100vw;
    height: 99px;
    background: linear-gradient(45deg, transparent);
    position: relative;
    position: sticky;
    z-index: 69;
}

.navbar{
    position: absolute;
    display: flex;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 30vw;
    text-wrap: wrap;
    padding: 1rem;
    padding-inline: 25px;
    padding-bottom: 25px;
    border-radius: 45px;
    border: 1px solid rgb(55, 119, 255);
    transition: 0.5s all ease-in-out;
    backdrop-filter: blur(7px) brightness(1.1069) contrast(1.2) url(#liquidFilter);
}

.navbar:hover{
    box-shadow: 0 0 15px 12px rgb(10, 1, 107), 
    -0.5px 1px 7px 5px rgba(7, 7, 156, 0.765),
    0.5px 1px 7px 5px rgb(6, 63, 117);
    border: 1.69px solid rgb(45, 178, 205);
    z-index: 70;
}

.logo{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    margin-left: 10px;
    justify-content: center;
    text-shadow: 0 0 10px rgb(83, 95, 255);
    flex-direction: column;
}

.logo:hover{
    scale: 1.069;
    box-shadow: 0 0 20px 8px rgb(9, 94, 147), 0 0 18px 4px rgb(140, 241, 236) inset;
    border-radius: 50%;
    transition: 0.5s all ease;
}

.logo img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--page-bg-color);
}

.logo span{
    position: absolute;
    top: 40px;
    text-align: center;
    width: 90px;
    font-size: .69rem;
    transition: 0.69s all ease;
}

.logo span:hover{
    text-shadow: 0 0 10px rgb(136, 210, 255),
    0 -2px 10px rgb(37, 222, 255);
}

.navbar ul{
    display: flex;
    text-align: justify;
    justify-content: space-around;
    gap: 10vw;
}

.navbar ul li{
    list-style-type: none;
    padding: 10px;
    position: relative;
}

.navbar ul li a{
    text-decoration: none;
    text-overflow: ellipsis;
    font-size: large;
    color: var(--text-color);
}

.navbar ul li a:hover{
    color: white;
    text-shadow: 0 0 10px blue;
    transition: 0.5s all ease;
}

.navbar ul li:nth-child(2){
    background: var(--page-bg-color);
    border: 1.69px solid rgb(17, 163, 117);
    border-radius: 25px;
    padding-inline: 20px;
}

.navbar ul li:nth-child(2) a{
    color: #faffff;
    text-shadow: 1px 1px 10px rgb(17, 219, 255),
    0 0 8px rgb(20, 153, 163);
}

.navbar ul li:nth-child(2) a:hover{
    color: #0cf7f7;
    text-shadow: 1px 1px 10px rgb(17, 57, 255),
    0 0 8px rgb(20, 25, 163);
}

.navbar ul li::after{
    width: 100%;
    content: "";
    position: absolute;
    height: 2px;
    bottom: 0;
    left: 0;
    transition: all 0.5s ease;
    background: rgb(0, 255, 247);
}

.navbar ul li:nth-child(2)::before{
    content: "";
    height: 100%;
    width: 100%;
    transform: translate(-20%, -25%);
    border-radius: 25px;
    padding: 1px;
    z-index: -10;
    background: conic-gradient(from var(--angle), rgb(0, 42, 255), rgb(0, 140, 255), rgb(0, 242, 255), transparent 90%);
    position: absolute;
    animation: rotation 1.2s linear infinite;
}

.navbar ul li:nth-child(2)::after{
    content: "";
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 25px;
    z-index: -9;
    background: linear-gradient(rgb(24, 62, 160), rgb(4, 101, 118), rgb(2, 14, 84));
    box-shadow: 0 0 15px 3px rgba(24, 62, 160, 0.676),
    1px 1px 15px 3px rgba(4, 101, 118, 0.55),
    -1px 1px 15px 3px rgba(2, 14, 84, 0.58);
    position: absolute;
}

@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotation{
    from{ --angle: 0deg; }
    to{ --angle: 360deg; }
}

.page-title{
    width: 100%;
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-title h1{
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--shadow-color);
    background: linear-gradient(45deg, var(--text-color), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p{
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.syllabus-container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.year-section{
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(37, 37, 163, 0.2), rgba(12, 72, 128, 0.2));
    border: 1px solid rgba(55, 119, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.year-section::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 20px 20px 0 0;
}

.year-title{
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: #faffff;
    text-shadow: 0 0 15px var(--shadow-color);
    text-align: center;
}

.semester-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.semester{
    background: linear-gradient(135deg, rgba(24, 62, 160, 0.2), rgba(4, 101, 118, 0.2));
    border: 1px solid rgba(55, 119, 255, 0.4);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.semester:hover{
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(45, 178, 205, 0.3);
}

.semester-title{
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.course-list{
    list-style: none;
}

.course-item{
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.course-item:hover{
    background: rgba(0, 0, 0, 0.4);
    border-left-color: var(--accent-cyan);
    transform: translateX(5px);
}

.course-name{
    font-size: 1.1rem;
    font-weight: bold;
    color: #faffff;
    margin-bottom: 0.3rem;
}

.course-code{
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-color);
}

.course-description{
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.prerequisites{
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(163, 37, 37, 0.2), rgba(128, 12, 72, 0.2));
    border: 1px solid rgba(255, 55, 119, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.prerequisites h3{
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgb(255, 100, 150);
    text-shadow: 0 0 10px rgb(255, 100, 150);
}

.prereq-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.prereq-item{
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 55, 119, 0.2);
}

.prereq-item h4{
    color: rgb(255, 150, 180);
    margin-bottom: 0.5rem;
}

.study-tips{
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 163, 37, 0.2), rgba(72, 128, 12, 0.2));
    border: 1px solid rgba(119, 255, 55, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.study-tips h3{
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgb(150, 255, 100);
    text-shadow: 0 0 10px rgb(150, 255, 100);
}

.tips-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.tip-item{
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid rgb(150, 255, 100);
    transition: all 0.3s ease;
}

.tip-item:hover{
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.5);
}

.tip-item h4{
    color: rgb(180, 255, 150);
    margin-bottom: 0.5rem;
}

footer{
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(6, 2, 99, 0.9));
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--accent-blue);
}

.heads{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.heads .logo{
    width: 60px;
    height: 60px;
    background: var(--page-bg-color);
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
}

.heads ul{
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.heads ul li a{
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.heads ul li a:hover{
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.social-icons{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 37, 163, 0.3), rgba(12, 72, 128, 0.3));
    border: 1px solid rgba(55, 119, 255, 0.5);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover{
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 178, 205, 0.4);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.social-link.github:hover{
    background: linear-gradient(135deg, rgba(88, 88, 88, 0.3), rgba(40, 40, 40, 0.3));
}

.social-link.linkedin:hover{
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.3), rgba(0, 84, 138, 0.3));
}

.social-link svg{
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-link:hover svg{
    transform: scale(1.1);
}

.lanc{
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(55, 119, 255, 0.3);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.lanc p{
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.lanc span{
    color: var(--accent-cyan);
    font-weight: bold;
}

.lanc span:hover{
    color: rgb(63, 159, 255);
    text-shadow: 0 0 10px rgb(13, 35, 132), 0 0 12px rgb(154, 226, 248);
    font-size: larger;
    transition: 0.5s all ease;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .navbar{
        gap: 20vw;
        width: 95%;
    }
    
    .semester-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header{
        height: auto;
        padding: 1rem 0;
    }
    
    .navbar{
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        gap: 2rem;
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }
    
    .navbar ul{
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .syllabus-container{
        width: 95%;
    }
    
    .year-section{
        padding: 1.5rem;
    }
    
    .semester{
        padding: 1rem;
    }
    
    .prereq-grid,
    .tips-grid{
        grid-template-columns: 1fr;
    }
    
    .heads{
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons{
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar{
        padding: 1rem;
    }
    
    .navbar ul{
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar ul li{
        padding: 8px 15px;
    }
    
    .page-title{
        padding: 2rem 0 1rem;
    }
    
    .year-section{
        padding: 1rem;
    }
    
    .semester{
        padding: 1rem;
    }
    
    .prerequisites,
    .study-tips{
        padding: 1rem;
    }

}


