* {
    border: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    background-color: #ffa114;
}

/* --- NAVBAR (kept as before, with animation) --- */
.navbar {
    z-index: 1000;
    display: flex;
    height: 60px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    align-items: center;
    position: fixed;
    opacity: .95;
    box-shadow: 0px .1px 3px;
    top: 0;
    left: 0;
    animation: navFadeIn 1.1s;
}
@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}
.navlogo {
    height: 45px;
    width: 90px;
    margin-left: 30px;
}
.navlogo img {
    height: 45px;
    width: 90px;
    animation: logoPop 1.5s;
}
@keyframes logoPop {
    from { transform: scale(0.7) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}
.navtext ol {
    display: flex;
    gap: 40px;
    margin-left: 25px;
    font-family: cursive;
    color: rgb(75, 84, 81);
    font-weight: bold;
}
.navtext .hov-home a:hover,
.navtext .hov-courses:hover,
.navtext .hov-roadmap:hover,
.navtext .hov-compiler:hover,
.navtext .hov-competitive:hover,
.navtext .hov-aiassiatant:hover,
.navtext .hov-profile:hover {
    color: orange;
    transition: color .3s ease;
    animation: navItemPulse 0.4s;
}
@keyframes navItemPulse {
    0% { color: orange; }
    50% { color: #f6a933; }
    100% { color: orange; }
}
.navtext ol li { list-style: none; }
.navtext ol li a {
    text-decoration: none;
    color: black;
    position: relative;
    transition: color .3s ease;
}
.navtext ol li a:hover {
    color: orange;
    transition: color .3s ease;
}
.navtext ol li a::after {
    display: none !important;
}
.navtext ol li a {
    text-decoration: none !important;
}

/* Responsive Navbar */
@media (max-width: 1100px) {
    .navtext ol { gap: 20px; font-size: 1rem; }
    .navlogo { margin-left: 10px; }
}
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding-bottom: 7px;
    }
    .navlogo {
        margin: 10px 0 0 10px;
    }
    .navtext ol {
        margin-left: 10px;
        gap: 10px;
        font-size: 0.97em;
        flex-wrap: wrap;
    }
}

/* --- GRADIENT ANIMATED BACKGROUND --- */
.body {
    min-height: 100vh;
    width: 100%;
    /* Animated orangish gradient background */
    background: linear-gradient(120deg, #23232b 0%, #ff9800 50%, #ffd180 100%);
    background-size: 200% 200%;
    animation: gradientBG 8s ease-in-out infinite;
    padding-top: 60px;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- TOP BANNER --- */
.top {
    padding-top: 0px;
    height: 240px;
    width: 100%;
    overflow: hidden;
    animation: fadeUp 1.1s;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
.top img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0 0 0 0;
    box-shadow: 0px 5px 30px 0px #0002;
    animation: bannerIn 1.5s;
}
@keyframes bannerIn {
    from { opacity: 0; transform: scale(1.08);}
    to { opacity: 1; transform: scale(1);}
}

/* --- GORGEOUS ANIMATED SECTION (Main Content Card) --- */
.box {
    background: linear-gradient(135deg, #fffbe7 60%, #ffe0b2 100%);
    margin: 80px 65px;
    border-radius: 18px;
    padding: 40px 50px 75px;
    box-shadow: 0px 5px 24px 2px #ff980088, 0px 2px 12px #23232b55;
    padding-top: 1px;
    line-height: 27px;
    color: #2d261d;
    font-family: monospace;
    min-width: 0;
    max-width: 100vw;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    animation: boxPopIn 1.1s;
    transition: box-shadow 0.4s, transform 0.4s;
}
@keyframes boxPopIn {
    from { opacity: 0; transform: scale(0.97) translateY(90px);}
    80% { opacity: 1; transform: scale(1.02) translateY(-10px);}
    to { opacity: 1; transform: scale(1) translateY(0);}
}
.box::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: -30%;
    top: -40%;
    width: 150%;
    height: 160%;
    background: radial-gradient(circle at 20% 40%, #ffd18066 0%, #ff9800cc 60%, transparent 100%);
    opacity: 0.3;
    animation: shineAnim 7s linear infinite;
}
@keyframes shineAnim {
    0% { left: -30%; top: -40%; }
    60% { left: 30%; top: 40%; }
    100% { left: 100%; top: 90%; }
}
.box:hover {
    box-shadow: 0 9px 32px #ffb30070, 0px 10px 35px #ff6f0088;
    transform: scale(1.018) rotate(-0.5deg);
    background: linear-gradient(125deg, #fff3e0 75%, #ffcc80 100%);
    transition: box-shadow 0.4s, transform 0.3s, background 0.4s;
}

/* --- BUTTON --- */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 29px;
    width: 79px;
    background: linear-gradient(90deg, #ff9800 60%, #ffb74d 100%);
    color: #fffbe7;
    font-size: 18px;
    border-radius: 5px;
    margin: 12px 0;
    box-shadow: 0px 2px 7px #ff980077;
    cursor: pointer;
    animation: buttonPop 1.2s;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s, color 0.2s;
    border: none;
    font-family: inherit;
}
@keyframes buttonPop {
    0% {transform: scale(0.7);}
    80% {transform: scale(1.08);}
    100% {transform: scale(1);}
}
.button:hover {
    box-shadow: 0px 0px 14px 2px #ff910088;
    background: linear-gradient(96deg, #fdc858 70%, #f96d00 100%);
    color: #2b2b2b;
    transform: scale(1.12);
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 1200px) {
    .box {
        margin: 60px 12px;
        padding: 25px 12px 50px 12px;
        font-size: 0.98rem;
    }
    .top {
        height: 160px;
        padding-top: 62px;
    }
    .top img {
        height: 160px;
    }
}
@media (max-width: 900px) {
    .box {
        margin: 30px 2vw;
        padding: 13px 2vw 24px 2vw;
        font-size: 0.97rem;
    }
    .top {
        height: 80px;
        padding-top: 62px;
    }
    .top img {
        height: 80px;
        border-radius: 0 0 18px 0;
    }
}
@media (max-width: 600px) {
    .navbar { box-shadow: 0 0 .7px #000; }
    .box {
        margin: 10px 0vw;
        padding: 5px 2vw 10px 2vw;
        border-radius: 7px;
        font-size: 0.96em;
    }
    .top {
        height: 38px;
        padding-top: 61px;
    }
    .top img {
        height: 38px;
        border-radius: 0 0 7px 0;
    }
}
@media (max-width: 400px) {
    .box {
        margin: 4px 0vw;
        padding: 2px 1vw 6px 1vw;
        border-radius: 5px;
        font-size: 0.93em;
    }
}