:root {
    --primary-blue: #2563eb;
    --primary-dark: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

::selection {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    text-shadow: none;
}

::-moz-selection {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    text-shadow: none;
}

body {
    font-family: 'Inter', 'Noto Sans Ethiopic', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Image with Overlay */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    transition: background-image 0.5s ease;
}

body.page-books-active .background-container {
    background-image: url('assets/laptop.jpeg');
}

.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,58,138,0.7) 100%);
    backdrop-filter: blur(5px);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4%;
    position: sticky;
    top: 1rem;
    z-index: 100;
    margin: 1rem 2rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(-3deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #fff 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Nav Menu Wrapper */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 101;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 0.8rem;
}

.nav-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn:hover {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.06);
}

.nav-btn:hover i {
    transform: translateY(-2px);
}

.nav-btn.active {
    color: white;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

/* Fullscreen Video Hero */
.video-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin-left: calc(-50vw + 50%);
    margin-top: -2rem;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* Dark overlay to make text readable */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-welcome {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00e676; /* Changed from gold to a vibrant green */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-style: italic;
}

/* Gallery Grids */
.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.gallery-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: 325px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.2);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
    border-color: var(--accent-cyan);
}

.full-width-gallery {
    display: flex;
    flex-direction: row;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 3rem;
    margin-bottom: 3rem;
    background: var(--bg-dark);
}

.full-width-img {
    width: 33.3333%;
    height: auto;
    display: block;
    object-fit: contain;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Footer Section */
.footer-section {
    margin-top: 4rem;
    padding: 3rem 5%;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.footer-section h3 {
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.useful-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.link-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.link-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: white;
    padding: 5px;
}

.link-card span {
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.categories-grid .card {
    flex: 1 1 250px;
    max-width: 280px;
}

.books-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    border-left: 4px solid var(--accent-cyan);
    padding-left: 1rem;
}

/* Cards */
.card {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Category Cards with Background Images */
.category-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: transparent !important;
}

.cat-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s ease;
}

.category-card:hover .cat-bg {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.category-card:hover .cat-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.cat-content {
    position: relative;
    z-index: 3;
}

.category-card h4 {
    font-size: 1.4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.book-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.book-card .author {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.book-card .tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* About Section */
#page-about {
    padding: 3rem;
}

#page-about h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

#page-about p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.about-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    max-width: 400px;
}

.detail-card h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(0,0,0,0.4);
}

.form-group select option {
    background: var(--bg-dark);
    color: white;
}

.hidden {
    display: none !important;
}

/* Utilities */
.text-center {
    text-align: center;
}

.center-grid {
    justify-content: center;
}

.book-cover {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Premium Login Modal */
.login-glass {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.login-glass::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.modal-header h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modern-input label {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modern-input input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid transparent !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.modern-input input:focus {
    border-bottom: 2px solid var(--accent-cyan) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3) !important;
}

.auth-btn {
    border-radius: 30px !important;
    font-size: 1.1rem !important;
    padding: 1rem !important;
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* Vertical Showcase */
.showcase-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 3px solid rgba(255,255,255,0.1);
}

.showcase-img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.5);
}

.shape-1 {
    max-width: 700px;
    border-radius: 40px;
}

.shape-2 {
    max-width: 595px;
    border-radius: 200px 200px 20px 20px;
}

.shape-3 {
    max-width: 665px;
    border-radius: 20px 100px 20px 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-details {
        flex-direction: column;
    }
    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }
    .gallery-img {
        height: 200px;
    }
}

/* Animations for icons */
.animated-icon {
    animation: floatUpDown 3s ease-in-out infinite;
    filter: drop-shadow(0 15px 20px rgba(6, 182, 212, 0.4));
    transition: transform 0.3s ease;
}

.animated-icon:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

@keyframes floatUpDown {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Dewey Decimal Classification Redesign */
.dewey-section {
    margin: 4rem 0;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.ddc-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.ddc-header-icon {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.5));
    animation: pulseGlow 3s ease-in-out infinite;
}

.ddc-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ddc-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.ddc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Base Card Styling */
.ddc-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.ddc-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    box-shadow: 0 0 25px var(--theme-color);
    z-index: -1;
}

.ddc-card:hover {
    transform: translateY(-8px);
    border-color: var(--theme-color);
}

.ddc-card:hover::after {
    opacity: 0.15;
}

/* Card Header */
.ddc-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.ddc-class-badge {
    background: var(--theme-color-soft);
    color: var(--theme-color-text);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    border: 1px solid var(--theme-color);
    box-shadow: 0 0 10px var(--theme-color-soft);
}

.ddc-card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ddc-card-header h4 i {
    color: var(--theme-color-text);
    filter: drop-shadow(0 0 5px var(--theme-color));
}

/* Card List & Items */
.ddc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ddc-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: default;
}

.ddc-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(6px);
}

.ddc-sub-badge {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 32px;
}

.ddc-item:hover .ddc-sub-badge {
    color: var(--theme-color-text);
}

.ddc-item-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.ddc-item:hover .ddc-item-label {
    color: white;
}

/* Theme Color variables definition */
.ddc-theme-computer {
    --theme-color: #06b6d4;
    --theme-color-soft: rgba(6, 182, 212, 0.15);
    --theme-color-text: #22d3ee;
}
.ddc-theme-philosophy {
    --theme-color: #a855f7;
    --theme-color-soft: rgba(168, 85, 247, 0.15);
    --theme-color-text: #c084fc;
}
.ddc-theme-religion {
    --theme-color: #eab308;
    --theme-color-soft: rgba(234, 179, 8, 0.15);
    --theme-color-text: #facc15;
}
.ddc-theme-social {
    --theme-color: #3b82f6;
    --theme-color-soft: rgba(59, 130, 246, 0.15);
    --theme-color-text: #60a5fa;
}
.ddc-theme-language {
    --theme-color: #ec4899;
    --theme-color-soft: rgba(236, 72, 153, 0.15);
    --theme-color-text: #f472b6;
}
.ddc-theme-science {
    --theme-color: #10b981;
    --theme-color-soft: rgba(16, 185, 129, 0.15);
    --theme-color-text: #34d399;
}
.ddc-theme-tech {
    --theme-color: #ef4444;
    --theme-color-soft: rgba(239, 68, 68, 0.15);
    --theme-color-text: #f87171;
}
.ddc-theme-arts {
    --theme-color: #f97316;
    --theme-color-soft: rgba(249, 115, 22, 0.15);
    --theme-color-text: #fb923c;
}
.ddc-theme-literature {
    --theme-color: #0ea5e9;
    --theme-color-soft: rgba(14, 165, 233, 0.15);
    --theme-color-text: #38bdf8;
}
.ddc-theme-history {
    --theme-color: #8b5cf6;
    --theme-color-soft: rgba(139, 92, 246, 0.15);
    --theme-color-text: #a78bfa;
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.5)); }
}

/* ==========================================================================
   Redesigned Showcase Section (Vision, Mission, Values)
   ========================================================================== */
.showcase-section {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 3rem 0;
    width: 100%;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.showcase-item.showcase-reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.showcase-item.showcase-reverse .showcase-text-card {
    order: 2;
}

.showcase-item.showcase-reverse .showcase-media-container {
    order: 1;
}

.showcase-text-card {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.showcase-text-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.15);
}

.showcase-badge-container {
    margin-bottom: 1.5rem;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-vision {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-mission {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-values {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.showcase-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.showcase-list li i {
    color: #10b981;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

.showcase-media-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.showcase-main-img:hover {
    transform: scale(1.02);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.25);
}

.showcase-overlay-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 5;
}

.showcase-item.showcase-reverse .showcase-overlay-badge {
    right: auto;
    left: -15px;
}

.showcase-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* ==========================================================================
   Redesigned About Us Page
   ========================================================================== */
.about-page-container {
    padding: 3rem 2.5rem !important;
}

.about-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.about-exec-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.about-exec-image-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.about-exec-image-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.15);
}

.about-exec-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.about-exec-caption {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.about-exec-caption strong {
    font-size: 1.25rem;
    color: white;
}

.about-exec-caption span {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-exec-message {
    padding: 3rem !important;
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-exec-message h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 1.8rem;
    line-height: 1.4;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 1rem;
}

.about-exec-message .quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.message-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}

/* Telegram Grid Section */
.telegram-section-container {
    margin: 5rem 0;
}

.telegram-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2.5rem;
}

.text-telegram {
    color: #24a1de;
}

.telegram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.telegram-card {
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s ease;
}

.telegram-card:hover {
    transform: translateY(-8px);
    border-color: #24a1de;
    box-shadow: 0 15px 30px rgba(36, 161, 222, 0.25);
}

.telegram-card-body {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.telegram-qr {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: white;
    padding: 5px;
}

.telegram-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.telegram-card-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.telegram-card-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-telegram {
    background: linear-gradient(135deg, #24a1de, #0088cc);
    color: white;
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.6);
}

/* Address Card Section */
.about-details-section {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.about-address-card {
    width: 100%;
    max-width: 600px;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-address-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.address-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.about-address-card h4 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1rem;
}

.address-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Elegant Image Gallery Grid */
.about-gallery-container {
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2.5rem;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-item .gallery-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1) rotate(1deg);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption span {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    display: block;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Responsive Overrides for Redesigned Sections
   ========================================================================== */
@media (max-width: 992px) {
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .showcase-item.showcase-reverse {
        grid-template-columns: 1fr;
    }
    
    .showcase-item.showcase-reverse .showcase-text-card {
        order: 1;
    }
    
    .showcase-item.showcase-reverse .showcase-media-container {
        order: 2;
    }
    
    .about-exec-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .telegram-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-exec-img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .showcase-text-card, .about-exec-message {
        padding: 2rem 1.5rem !important;
    }
    
    .showcase-title {
        font-size: 1.8rem;
    }
    
    .telegram-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .telegram-card-body {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .btn-telegram {
        width: 100%;
        justify-content: center;
    }
    
    .about-page-container {
        padding: 2rem 1rem !important;
    }
}

/* ==========================================================================
   Register & Donation Page Styles (Visually Appealing)
   ========================================================================== */
.register-page-container {
    padding: 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.register-section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.text-primary-cyan {
    color: var(--accent-cyan);
}

.register-card, .donation-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.register-card:hover, .donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.2), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.address-input-group {
    display: flex;
    gap: 1rem;
}

.address-input-group input {
    flex: 1;
}

.form-group-files {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.file-upload-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(6, 182, 212, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 0.5rem;
    height: 100%;
}

.custom-file-upload i {
    font-size: 2rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.custom-file-upload span {
    font-size: 0.9rem;
    color: var(--text-muted);
    word-break: break-all;
}

.custom-file-upload:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
}

.custom-file-upload:hover i {
    transform: translateY(-5px);
}

.file-upload-box input[type="file"] {
    display: none;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.5s ease;
}

.btn-glow:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.btn-donation {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.btn-donation:hover {
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
}

.donation-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    background: rgba(6, 182, 212, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-cyan);
}

.donated-list-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.donated-list-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donated-books-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.donated-books-grid::-webkit-scrollbar {
    width: 6px;
}
.donated-books-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.donated-books-grid::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

.donated-book-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.donated-book-card:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateX(5px);
}

.donated-cover {
    width: 60px;
    height: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Vision, Mission, Values Showcase (vvm)
   ========================================================================== */
.vvm-showcase-container {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.vvm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.vvm-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.vvm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.vvm-card:hover {
    transform: translateY(-15px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.vvm-card:hover::before {
    transform: scaleX(1);
}

.vvm-icon-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.vvm-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

.vvm-card:hover .vvm-icon {
    transform: scale(1.15) rotate(5deg);
}

.vvm-title {
    color: var(--accent-cyan);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.vvm-text {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    text-align-last: center;
}

.vvm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
}

.vvm-list li {
    color: #e2e8f0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.vvm-list li:hover {
    background: rgba(6, 182, 212, 0.15);
}

@media (max-width: 768px) {
    .vvm-grid {
        grid-template-columns: 1fr;
    }
    .vvm-list {
        grid-template-columns: 1fr;
    }
}

.donated-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.donated-details h4 {
    font-size: 1.05rem;
    color: white;
    margin: 0;
}

.donated-cat-badge {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.empty-donated-msg {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

@media (max-width: 992px) {
    .register-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    .address-input-group {
        flex-direction: column;
    }
    .form-group-files {
        flex-direction: column;
    }
    .register-page-container {
        padding: 1.5rem;
    }
}

/* About Page Developer Attribution Card */
.about-attribution-container {
    margin-top: 5rem;
    padding: 2.5rem 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-attribution-container:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25);
}

.attribution-icon i {
    display: inline-block;
    animation: pulseGlow 3s infinite;
}

/* Premium Re-styled Login Modal */
.login-glass {
    position: relative;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 28px !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 
                0 0 40px rgba(6, 182, 212, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
    padding: 3rem 2.5rem !important;
}

.login-glow-aura {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(10px);
}

.login-avatar-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.2rem;
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    animation: pulseAvatar 3s infinite ease-in-out;
}

@keyframes pulseAvatar {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(6, 182, 212, 0.4); border-color: rgba(6, 182, 212, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
}

#login-modal .close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 1.2rem !important;
    right: 1.2rem !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

#login-modal .close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444 !important;
    transform: rotate(90deg);
}

.modern-input-group label {
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-input-group label i {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem !important;
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    z-index: 1;
}

.input-with-icon input:focus {
    outline: none !important;
    border-color: var(--accent-cyan) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15), inset 0 0 0 1px rgba(6, 182, 212, 0.1) !important;
}

.input-with-icon input:focus + .input-icon {
    color: var(--accent-cyan);
}

.auth-glow-btn {
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    padding: 1rem !important;
    font-weight: 700;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.auth-glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5), 0 0 10px rgba(6, 182, 212, 0.2) !important;
    background: linear-gradient(135deg, #0891b2, #0e7490) !important;
}

.auth-glow-btn:active {
    transform: translateY(1px);
}

/* Custom refactored styles for layouts */
.category-detail-section {
    padding: 2rem;
}

.full-width-donated-section {
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 20px;
}

.donated-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-height: 500px;
    gap: 1rem;
}

.members-page-section {
    padding: 3rem;
}

.members-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.trending-shelf {
    display: flex !important;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.trending-shelf > div {
    flex: 0 0 150px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.trending-shelf > div:hover {
    transform: translateY(-5px);
}

.trending-shelf::-webkit-scrollbar {
    height: 6px;
}
.trending-shelf::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
.trending-shelf::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

.vvm-title-main {
    margin-bottom: 3rem;
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    text-align: center;
}

/* Responsive adjustments for new and existing components */
@media (max-width: 992px) {
    /* Mobile Navigation Drawer Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .navbar {
        margin: 0.5rem 1rem !important;
        top: 0.5rem !important;
        border-radius: 16px !important;
        padding: 0.8rem 1.2rem !important;
        position: sticky;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.6);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 1.2rem;
    }

    .auth-section {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.2rem;
        justify-content: center;
    }

    #user-info {
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }

    #login-btn {
        width: 100%;
    }
}

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

@media (max-width: 768px) {
    /* Hero section resizing */
    .video-hero {
        height: 60vh;
        margin-bottom: 2rem;
    }
    
    .hero-welcome {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .hero-sub {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .hero-quote {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }

    /* Grids & Cards */
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .category-detail-section {
        padding: 1rem;
    }

    .full-width-donated-section {
        padding: 1.5rem;
    }

    .members-page-section {
        padding: 1.5rem;
    }
    
    .ddc-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.2rem;
    }

    .ddc-card {
        padding: 1.2rem;
    }

    .vvm-title-main {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .vvm-card {
        padding: 2rem 1.2rem;
    }

    /* Modal dialog overrides */
    .modal-content {
        width: 92% !important;
        padding: 1.8rem 1.2rem !important;
    }
    
    .login-glass {
        padding: 2.2rem 1.5rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    /* Collapsing inline layout to vertical for member edits */
    #edit-member-form .form-group div {
        flex-direction: column;
        gap: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    /* Logo scaling to prevent header line-breaks */
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    .logo-img {
        height: 38px;
    }

    /* Cards spacing adjustments */
    .book-card {
        padding: 1rem !important;
    }
    
    .book-card .btn {
        padding: 0.5rem 0.2rem !important;
        font-size: 0.85rem;
    }

    .donated-books-grid {
        grid-template-columns: 1fr;
    }

    .donated-book-card {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .donated-cover {
        width: 50px;
        height: 66px;
    }
}

/* ==========================================================
   PREMIUM MOBILE RESPONSIVE OVERRIDES (WOW AESTHETICS)
   ========================================================== */
@media (max-width: 768px) {
    /* Main Layout */
    .container {
        padding: 0.5rem !important;
    }
    
    /* Books Page Styling */
    .categories-grid .card {
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin: 0 0.5rem;
        background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9)) !important;
        border: 1px solid rgba(6,182,212,0.3) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
    }
    .category-card {
        min-height: 140px;
        border-radius: 16px;
    }
    .books-grid, .ddc-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .book-card, .ddc-card {
        margin: 0 0.5rem;
        border-radius: 16px !important;
        background: linear-gradient(135deg, rgba(30,41,59,0.7) 0%, rgba(15,23,42,0.8) 100%) !important;
        border: 1px solid rgba(255,255,255,0.05) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    }
    .book-cover {
        height: 200px !important;
        border-radius: 12px;
    }
    .trending-shelf {
        padding: 1rem 0.5rem !important;
    }
    .trending-shelf > div {
        flex: 0 0 180px !important;
    }

    /* Members & Register Page Styling */
    .register-card, .donation-card, .members-page-section {
        padding: 1.5rem 1rem !important;
        margin: 0 0.5rem;
        border-radius: 20px !important;
        background: rgba(15,23,42,0.8) !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(6,182,212,0.4) !important;
    }
    .members-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .member-card {
        background: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95)) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(6,182,212,0.3) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    }
    .form-group input, .form-group select {
        padding: 1rem !important;
        border-radius: 12px !important;
        background: rgba(0,0,0,0.4) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }
    .form-group input:focus, .form-group select:focus {
        border-color: var(--accent-cyan) !important;
        box-shadow: 0 0 15px rgba(6,182,212,0.3) !important;
    }
    .btn-large {
        padding: 1rem !important;
        border-radius: 12px !important;
        font-size: 1.1rem !important;
        background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
        box-shadow: 0 8px 25px rgba(6,182,212,0.4) !important;
    }

    /* About Page Styling */
    .about-page-container {
        padding: 1rem !important;
    }
    .about-exec-container, .telegram-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .about-exec-image-card {
        max-width: 250px;
        margin: 0 auto;
    }
    .about-exec-img {
        border-radius: 50% !important;
        border: 4px solid var(--accent-cyan) !important;
        box-shadow: 0 10px 30px rgba(6,182,212,0.5) !important;
    }
    .about-exec-message {
        padding: 1.5rem !important;
        border-radius: 20px !important;
        background: rgba(30,41,59,0.7) !important;
        border-left: 4px solid var(--accent-cyan) !important;
        margin-top: 1rem;
    }
    .telegram-card {
        border-radius: 20px !important;
        background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9)) !important;
        border: 1px solid rgba(0,136,204,0.3) !important;
        box-shadow: 0 10px 30px rgba(0,136,204,0.2) !important;
    }
    .about-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
    .gallery-img {
        height: 180px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(6,182,212,0.3) !important;
    }
    .section-title, .vvm-title-main {
        font-size: 1.5rem !important;
        text-align: center !important;
        border-left: none !important;
        padding-left: 0 !important;
        position: relative;
        padding-bottom: 0.5rem;
    }
    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: var(--accent-cyan);
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .about-gallery-grid {
        grid-template-columns: 1fr !important;
    }
    .gallery-img {
        height: 220px !important;
    }
    .btn {
        padding: 0.8rem 1rem !important;
    }
}
