:root {
    --violet-50: #f5f3ff;
    --violet-100: #ede9fe;
    --violet-200: #ddd6fe;
    --violet-300: #c4b5fd;
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --violet-700: #6d28d9;
    --violet-800: #5b21b6;
    --violet-900: #4c1d95;
    --violet-950: #2e1065;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================
   Navbar Styles
============================ */
nav {
    background-color: #6d28d9;
    /* Solid purple header */
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-icon img {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-main {
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.logo-sub {
    font-size: 1rem;
    color: var(--violet-300);
    line-height: 1.15;
}

/* ============================
   Hero Section Styles - CLEAR BACKGROUND
============================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background:
        /* Very light gradient overlay for maximum background clarity */
        linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%),
        url('library.jpg') center/cover no-repeat fixed;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 80vh;
}

/* Remove the SVG pattern overlay to make background clearer */
.hero::before {
    display: none;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--violet-200);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: var(--violet-100);
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1.15rem;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   Button Styles
============================ */
.btn-primary,
.btn-secondary {
    min-width: 220px;
    min-height: 60px;
    padding: 1rem 2.2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(14px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-700) 100%);
    color: white;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 10px 0 rgba(76, 29, 149, 0.95),
        0 20px 30px rgba(109, 40, 217, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 12px 0 rgba(76, 29, 149, 0.95),
        0 24px 34px rgba(109, 40, 217, 0.42);
    background: linear-gradient(135deg, var(--violet-500) 0%, var(--violet-600) 100%);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 6px 0 rgba(76, 29, 149, 0.95),
        0 14px 22px rgba(109, 40, 217, 0.28);
}

.btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 255, 0.96));
    color: var(--violet-700);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 0 rgba(196, 181, 253, 0.95),
        0 20px 30px rgba(55, 20, 101, 0.18);
    border: 2px solid var(--violet-300);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 12px 0 rgba(196, 181, 253, 1),
        0 24px 34px rgba(109, 40, 217, 0.22);
    background: linear-gradient(180deg, #ffffff, var(--violet-50));
    border-color: var(--violet-500);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 6px 0 rgba(196, 181, 253, 0.95),
        0 14px 22px rgba(109, 40, 217, 0.14);
}

/* ============================
   Footer Styles
============================ */
footer {
    background-color: #5b21b6;
    /* Solid darker purple footer */
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer p:last-child {
    margin-bottom: 0;
    color: var(--violet-300);
    font-size: 0.9rem;
}

/* ============================
   Responsive Design
============================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        padding: 0.8rem 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    nav {
        padding: 1rem;
    }

    .hero {
        min-height: 70vh;
        padding: 3rem 1rem;
    }

    .hero-subtitle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        padding: 0.6rem 1rem;
    }

    .logo-main {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }

    .hero p {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Additional styles for better background clarity */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Ultra Clear Background Alternative - Minimal Overlay */
.hero-ultra-clear {
    background:
        /* Very minimal gradient overlay */
        linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%),
        url('library.jpg') center/cover no-repeat fixed;
}

/* No Overlay Version - Maximum Background Clarity */
.hero-no-overlay {
    background:
        url('library.jpg') center/cover no-repeat fixed;
}

/* Enhanced text containers for no-overlay version */
.hero-no-overlay .hero-subtitle,
.hero-no-overlay .hero h1,
.hero-no-overlay .hero p {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--violet-200, #e0c3ff);
    /* fallback color */
    border-radius: 50%;
    /* makes it a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Make the logo fit nicely inside the circle */
.logo-icon img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    /* makes image edges round */
}