/* Global Styles */
:root {
    --primary: #ff4d89;
    --secondary: #6a5acd;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --transition: all 0.3s ease;
}

/* Light Mode Variables */
body[data-theme="light"] {
    --dark: #f8f9fa;
    --light: #1a1a2e;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f0f0;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a4a;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95);
}

body[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #f8f9fa;
    --text-secondary: #e0e0e0;
    --card-bg: rgba(26, 26, 46, 0.9);
    --header-bg: rgba(26, 26, 46, 0.9);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary, var(--dark));
    color: var(--text-primary, var(--light));
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Levitating Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: levitate 20s infinite ease-in-out;
}

.blob1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary), var(--secondary));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.blob2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--secondary), #9b59b6);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.blob3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff6b9d, var(--primary));
    bottom: 15%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.blob4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #8b5cf6, var(--secondary));
    top: 30%;
    right: 25%;
    animation-delay: 6s;
    animation-duration: 35s;
}

.blob5 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #ec4899, #f43f5e);
    top: 80%;
    left: 20%;
    animation-delay: 8s;
    animation-duration: 32s;
}

@keyframes levitate {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1) rotate(90deg);
    }

    50% {
        transform: translate(-30px, -80px) scale(0.9) rotate(180deg);
    }

    75% {
        transform: translate(-60px, -30px) scale(1.05) rotate(270deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--header-bg, rgba(26, 26, 46, 0.9));
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 10%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: var(--light);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: transparent;
    color: var(--light);
    border: none;
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(26, 26, 46, 0.9);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: var(--light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: rgba(255, 77, 137, 0.2);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--light);
}

/* Theme Toggle Button - Uiverse.io Design */
.darkThemeBtn * {
    transition: all 0.3s;
}

.darkThemeBtn {
    margin-left: 20px;
}

.darkThemeBtn input {
    width: 0;
    height: 0;
    visibility: hidden;
    position: absolute;
}

.darkThemeBtn label {
    border: 2px solid var(--primary);
    background: rgba(255, 77, 137, 0.1);
    border-radius: 10px;
    height: 46px;
    width: 46px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.darkThemeBtn label:active {
    border-radius: 5px;
}

.darkThemeBtn label svg {
    position: absolute;
    width: 16px;
    transition: 0.3s;
    z-index: 1;
    fill: var(--light);
}

.darkThemeBtn label svg.sun {
    width: 20px;
    opacity: 0;
    fill: #fff;
}

.darkThemeBtn label svg.moon {
    opacity: 1;
}

.darkThemeBtn input:checked+label {
    background: var(--primary);
}

.darkThemeBtn input:checked+label svg.sun {
    opacity: 1;
}

.darkThemeBtn input:checked+label svg.moon {
    opacity: 0;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.9));
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: zoomInOut 20s infinite alternate;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.5s forwards;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.8s forwards;
}

/* Anime Hero Section */
.anime-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.anime-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.9));
    z-index: -1;
}

.anime-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: zoomInOut 20s infinite alternate;
}

.anime-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.anime-hero-content h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.anime-hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--light);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Anime Info Section */
.anime-info {
    padding: 80px 0;
}

.anime-details {
    display: flex;
    gap: 40px;
    align-items: center;
}

.anime-poster {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.anime-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.anime-description {
    flex: 1;
}

.anime-description h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.anime-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.anime-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    color: var(--primary);
    font-size: 20px;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 77, 137, 0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 1.1s forwards;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 77, 137, 0.6);
}

/* Section Styles */
.section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

/* Wallpapers Grid */
.wallpapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.wallpaper-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    height: 300px;
    opacity: 0;
    transform: translateY(50px);
}

.wallpaper-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.wallpaper-card:nth-child(1) {
    animation-delay: 0.1s;
}

.wallpaper-card:nth-child(2) {
    animation-delay: 0.2s;
}

.wallpaper-card:nth-child(3) {
    animation-delay: 0.3s;
}

.wallpaper-card:nth-child(4) {
    animation-delay: 0.4s;
}

.wallpaper-card:nth-child(5) {
    animation-delay: 0.5s;
}

.wallpaper-card:nth-child(6) {
    animation-delay: 0.6s;
}

.wallpaper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

.wallpaper-card:hover .wallpaper-img {
    transform: scale(1.1);
}

.wallpaper-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.wallpaper-info p {
    font-size: 14px;
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--secondary);
}

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.series-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    height: 250px;
    text-decoration: none;
    color: var(--light);
}

.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.series-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    text-align: center;
    transition: var(--transition);
}

.series-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.series-card:hover img {
    transform: scale(1.1);
}

/* Characters Grid */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.character-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-align: center;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.character-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.character-card h3 {
    font-size: 20px;
    margin: 15px 0 10px;
    color: var(--primary);
}

.character-card p {
    font-size: 14px;
    padding: 0 15px 20px;
    line-height: 1.5;
}

/* Newsletter */
.newsletter {
    text-align: center;
    background: linear-gradient(45deg, rgba(106, 90, 205, 0.2), rgba(255, 77, 137, 0.2));
    padding: 80px 10%;
    border-radius: 20px;
    margin: 50px 0;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 10% 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* Anime Series Column - 2 Column Layout */
.anime-series-column ul {
    column-count: 2;
    column-gap: 20px;
}

.anime-series-column ul li {
    break-inside: avoid;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* Glass Radio Filter Bar */
.filter-bar-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.glass-radio-group {
    --bg: rgba(255, 255, 255, 0.06);
    --text: #e5e5e5;

    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    box-shadow:
        inset 1px 1px 4px rgba(255, 255, 255, 0.2),
        inset -1px -1px 6px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: fit-content;
}

.glass-radio-group input {
    display: none;
}

.glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-size: 14px;
    padding: 0.8rem 1.6rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
}

.glass-radio-group label:hover {
    color: white;
}

.glass-radio-group input:checked+label {
    color: #fff;
}

.glass-glider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% / 3);
    border-radius: 1rem;
    z-index: 1;
    transition:
        transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56),
        background 0.4s ease-in-out,
        box-shadow 0.4s ease-in-out;
}

/* All Filter (Default) */
#glass-all:checked~.glass-glider {
    transform: translateX(0%);
    background: linear-gradient(135deg, #c0c0c055, #e0e0e0);
    box-shadow:
        0 0 18px rgba(192, 192, 192, 0.5),
        0 0 10px rgba(255, 255, 255, 0.4) inset;
}

/* Characters Filter */
#glass-characters:checked~.glass-glider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #ffd70055, #ffcc00);
    box-shadow:
        0 0 18px rgba(255, 215, 0, 0.5),
        0 0 10px rgba(255, 235, 150, 0.4) inset;
}

/* Action Filter */
#glass-action:checked~.glass-glider {
    transform: translateX(200%);
    background: linear-gradient(135deg, #d0e7ff55, #a0d8ff);
    box-shadow:
        0 0 18px rgba(160, 216, 255, 0.5),
        0 0 10px rgba(200, 240, 255, 0.4) inset;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    header {
        padding: 15px 5%;
    }

    .hero,
    .section {
        padding: 80px 5%;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .anime-details {
        flex-direction: column;
    }

    .anime-poster {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .dropdown {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 50px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .wallpapers-grid {
        grid-template-columns: 1fr;
    }

    .anime-hero-content h1 {
        font-size: 40px;
    }
}