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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --background: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --hover-color: #f1f5f9;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: relative;
    text-align: center;
    margin-bottom: 17px;
    color: white;
    padding: 8px 20px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    border-radius: 24px;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 70px;
    height: 70px;
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 50px;
    height: 50px;
    top: 50%;
    right: -10px;
    animation-delay: 5s;
}

.shape-3 {
    width: 35px;
    height: 35px;
    bottom: -10px;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.header-content {
    position: relative;
    z-index: 1;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6px;
}

.profile-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    filter: blur(10px);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.profile-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.profile-image:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(99, 102, 241, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.designer-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.designer-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.badge-icon {
    font-size: 0.7rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.designer-credit {
    font-size: 0.65rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.title-section {
    animation: fadeInUp 0.8s ease-out;
}

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

.title-icon {
    font-size: 1.1rem;
    margin-bottom: 3px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.main-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 3px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.1;
}

.title-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.title-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
    position: relative;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 2px;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.title-underline {
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 0 auto 4px;
    border-radius: 1px;
    animation: expand 1s ease-out;
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 35px;
    }
}

.subtitle {
    font-size: 0.7rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.search-bar {
    position: relative;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: var(--card-background);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), var(--shadow-lg);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-bar input:focus ~ .search-icon {
    opacity: 0.5;
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.clear-search:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.clear-search:active {
    transform: translateY(-50%) scale(0.95);
}

.stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card-background);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subjects-container {
    display: grid;
    gap: 40px;
}

.subject-section {
    animation: fadeIn 0.3s ease;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.section-icon {
    font-size: 2rem;
}

.section-subjects {
    display: grid;
    gap: 25px;
}

.subject-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.subject-card.numbered-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.subject-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
    padding-top: 5px;
}

.subject-content {
    flex: 1;
}

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

.subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.subject-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.subject-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.subject-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin: 0;
}

.subject-card h3.subject-title {
    font-size: 1.4rem;
}

.pdf-files {
    display: grid;
    gap: 12px;
}

.pdf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--hover-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pdf-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.pdf-name {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-icon {
    font-size: 1.2rem;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.download-btn:active {
    transform: scale(0.98);
}

.download-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
    color: white;
    opacity: 0.95;
}

.footer-main {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 15px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        border-radius: 10px;
    }

    .profile-image {
        width: 45px;
        height: 45px;
    }

    .profile-glow {
        width: 50px;
        height: 50px;
    }

    .designer-badge {
        padding: 3px 6px;
    }

    .designer-credit {
        font-size: 0.6rem;
    }

    .title-icon {
        font-size: 1.1rem;
    }

    .main-title {
        font-size: 1rem;
        gap: 5px;
    }

    .title-text {
        font-size: 1rem;
    }

    .title-accent {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .subject-title {
        font-size: 1.2rem;
    }

    .subject-card {
        flex-direction: column;
        gap: 15px;
    }

    .subject-number {
        min-width: auto;
        padding-top: 0;
    }

    .pdf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }
}

