@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;700&display=swap');

:root {
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --gradient-1: linear-gradient(135deg, #6a11cb, #2575fc);
    --gradient-2: linear-gradient(135deg, #f093fb, #f5576c);
    --gradient-3: linear-gradient(135deg, #4facfe, #00f2fe);
    --gradient-4: linear-gradient(135deg, #43e97b, #38f9d7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Background Container */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #121212, #1a2a3a);
}

/* Floating Educational Objects */
.floating-object {
    position: absolute;
    opacity: 0.7;
    animation: float 15s infinite ease-in-out;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) rotate(-5deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) translateX(15px) rotate(3deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.4;
    }
}

/* Anime Character Styles */
.anime-character {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-body {
    width: 100%;
    height: 100%;
    background-color: #ff9eaa;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.character-face {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
}

.character-eyes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.eye {
    width: 12px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
    position: relative;
}

.eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
}

.character-mouth {
    width: 20px;
    height: 10px;
    border-bottom: 3px solid #000;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
}

.character-arms {
    position: absolute;
    top: 40%;
    width: 100%;
    height: 20%;
}

.arm {
    position: absolute;
    width: 25px;
    height: 8px;
    background-color: #ff9eaa;
    border-radius: 10px;
}

.arm-left {
    left: -10px;
    transform: rotate(-30deg);
    animation: wave-left 2s infinite alternate;
}

.arm-right {
    right: -10px;
    transform: rotate(30deg);
    animation: wave-right 2s infinite alternate;
}

@keyframes wave-left {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(-50deg); }
}

@keyframes wave-right {
    0% { transform: rotate(30deg); }
    100% { transform: rotate(50deg); }
}

.character-message {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.character-message::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.anime-character:hover .character-message {
    opacity: 1;
    transform: translateY(0);
}

/* Character movement animation */
.moving-character {
    animation: move-around 20s infinite alternate ease-in-out;
}

@keyframes move-around {
    0% {
        bottom: 20px;
        right: 20px;
        transform: scale(1);
    }
    25% {
        bottom: 100px;
        right: 50%;
        transform: scale(1.1);
    }
    50% {
        bottom: 300px;
        right: 30%;
        transform: scale(0.9);
    }
    75% {
        bottom: 150px;
        right: 70%;
        transform: scale(1.05);
    }
    100% {
        bottom: 20px;
        right: 20px;
        transform: scale(1);
    }
}

header {
    text-align: center;
    padding: 40px 20px 30px;
    background: var(--gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 15s infinite linear;
}

@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header p {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.practical-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.practical {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.practical:nth-child(1) { animation-delay: 0.1s; }
.practical:nth-child(2) { animation-delay: 0.2s; }
.practical:nth-child(3) { animation-delay: 0.3s; }
.practical:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.practical:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.practical-header {
    padding: 20px;
    position: relative;
}

.practical-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.practical-1 .practical-header {
    background: var(--gradient-1);
}

.practical-2 .practical-header {
    background: var(--gradient-2);
}

.practical-3 .practical-header {
    background: var(--gradient-3);
}

.practical-4 .practical-header {
    background: var(--gradient-4);
}

.practical-5 .practical-header {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.practical-6 .practical-header {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.practical-7 .practical-header {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.practical-8 .practical-header {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

.practical-9 .practical-header {
    background: linear-gradient(135deg, #fccb90, #d57eeb);
}


h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.practical-content {
    background-color: var(--card-bg);
    padding: 20px;
}

.pdf-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.4);
    background-color: #a67dff;
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn::before {
    content: "⬇️";
    font-size: 1.2rem;
}

.download-btn.downloading {
    pointer-events: none;
    opacity: 0.7;
}

.download-links {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.download-links.show {
    display: block;
}

.download-links a {
    display: block;
    color: var(--accent-color);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.download-links a:last-child {
    border-bottom: none;
}

.download-links a:hover {
    padding-left: 10px;
    color: #a67dff;
}

/* Footer Styles */
footer {
    background-color: #0d95b8;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

footer a {
    color: #f4a261;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e76f51;
}

/* Mobile responsiveness */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .practical-list {
        padding: 40px 20px;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .pdf-container {
        height: 500px;
    }
}

@media screen and (max-width: 768px) {
    /* Adjust anime character size for mobile */
    .anime-character {
        width: 60px;
        height: 60px;
    }
}


        .back-button {
            position: absolute;
            top: 20px;
            left: 20px;
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 30px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .back-button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }