/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #ec4899;
    --color-primary-hover: #db2777;
    --color-secondary: #475569;
    --color-secondary-hover: #334155;
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--color-primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Layout */
.section-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 6rem 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    color: var(--color-primary);
}

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

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('https://ik.imagekit.io/uuuztwk7q/Life-With-A-Slave-Teaching-Feeling.webp?updatedAt=1731325540864');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 0 1rem;
    max-width: 64rem;
}

.hero p {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--color-text-muted);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: var(--color-text);
    text-decoration: none;
}

.btn.primary {
    background-color: var(--color-primary);
}

.btn.primary:hover {
    background-color: var(--color-primary-hover);
}

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

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

.btn.support {
    background-color: #ca8a04;
}

.btn.support:hover {
    background-color: #a16207;
}

/* About Section */
.about {
    background-color: var(--color-bg-alt);
}

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

.about-text {
    color: var(--color-text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.features-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 1rem;
}

.features-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-card ul {
    list-style: none;
    space: 1rem;
}

.features-card li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* Characters Section */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.character-card {
    background-color: var(--color-bg-alt);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.character-card:hover {
    transform: scale(1.05);
}

.character-image {
    height: 20rem;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-info {
    padding: 1.5rem;
}

.character-role {
    color: var(--color-primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.character-desc {
    color: var(--color-text-muted);
}

/* Download Section */
.download {
    background-color: var(--color-bg-alt);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: background-color 0.3s;
}

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

.download-info {
    color: var(--color-text-muted);
    margin: 1.5rem 0;
}

.support-button {
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--color-bg-alt);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-links span {
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

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

    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Display the mobile menu toggle icon only on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; 
    }

    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(15, 23, 42, 0.95);
        padding: 1rem;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; 
    }

    .nav-links a {
        font-size: 1.25rem; 
        padding: 1rem 0;
    }
}

/* Desktop Menu */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Language Panel Styles */
.language-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg);
    border-left: 1px solid rgba(148, 163, 184, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    padding: 2rem;
}

.language-panel.active {
    right: 0;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.panel-header h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0;
}

.close-panel {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.close-panel:hover {
    color: var(--color-primary);
}

.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.language-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.language-item:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.panel-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .language-panel {
        width: 100%;
        right: -100%;
    }

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

    .language-item {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* RTL Language Support */
[dir="rtl"] .language-panel {
    right: auto;
    left: -300px;
    border-left: none;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

[dir="rtl"] .language-panel.active {
    right: auto;
    left: 0;
}

[dir="rtl"] .language-panel {
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}