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

body {
    background: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    font-family: "PT Sans Narrow", sans-serif;
    color: #6366f1;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #6366f1;
}

.nav-link.active {
    background: #6366f1;
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    width: 100%;
}

/* Animated Books Graphics */
.animated-books {
    position: relative;
    height: 200px;
    margin-bottom: 30px;
}

.book {
    position: absolute;
    font-size: 60px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.book1 {
    left: 20%;
    top: 20px;
    animation-delay: 0s;
}

.book2 {
    right: 20%;
    top: 40px;
    animation-delay: 0.5s;
}

.book3 {
    left: 35%;
    top: 80px;
    animation-delay: 1s;
}

.book4 {
    right: 35%;
    top: 60px;
    animation-delay: 1.5s;
}

.floating-sparkles {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

#welcome {
    font-size: 48px;
    font-weight: bold;
    font-family: "PT Sans Narrow", sans-serif;
    font-style: normal;
    position: relative;
    text-align: center;
    padding: 20px;
    animation: fadeInDown 1s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#about {
    font-family: "PT Sans Narrow", sans-serif;
    font-style: normal;
    font-size: 28px;
    text-align: center;
    color: #4b5563;
    padding: 10px 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

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

/* Features Section */
.features-section {
    padding: 60px 20px;
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 1s ease 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.features-title {
    text-align: center;
    font-size: 36px;
    font-family: "PT Sans Narrow", sans-serif;
    color: #6366f1;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.5s; }
.feature-card:nth-child(2) { animation-delay: 0.6s; }
.feature-card:nth-child(3) { animation-delay: 0.7s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 10px;
}

.feature-card p {
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 40px 20px 60px;
    text-align: center;
    width: 100%;
}

#clicktostart {
    font-family: "PT Sans Narrow", sans-serif;
    font-style: normal;
    font-size: 22px;
    text-align: center;
    font-weight: bold;
    color: #374151;
    margin-bottom: 30px;
}

#startit, #viewlib {
    font-size: 28px;
    border-radius: 15px;
    padding: 18px 40px;
    font-family: "PT Sans Narrow", sans-serif;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#startit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#startit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#startit:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 24px;
}

#viewlib {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

#viewlib:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

#viewlib:active {
    transform: translateY(0);
}

.divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.divider span {
    background: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
    padding: 0 15px;
    color: #9ca3af;
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 18px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d1d5db;
    z-index: -1;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

#f2 {
    font-family: "PT Sans Narrow", sans-serif;
    color: #4b5563;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-note {
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
    margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .nav-brand {
        font-size: 20px;
    }

    .animated-books {
        height: 150px;
    }

    .book {
        font-size: 40px;
    }

    #welcome {
        font-size: 32px;
    }

    #about {
        font-size: 20px;
    }

    .features-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #startit, #viewlib {
        font-size: 22px;
        padding: 14px 30px;
        width: 90%;
        max-width: 350px;
    }
}