body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #2A004F, #000000);
    color: #fff;
    overflow-x: hidden;
    font-size: 16px;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 10, 0, 0.8);
    padding: 1rem 2rem;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #FF6200;
    text-shadow: 0 0 10px rgba(255, 98, 0, 0.8), 0 0 5px rgba(255, 0, 122, 0.5);
}

.brand-name {
    font-size: 1.5rem;
    color: #FF6200;
    margin-left: 10px;
    text-shadow: 0 0 5px rgba(255, 98, 0, 0.6);
}

.tagline {
    font-size: 1rem;
    color: #FFD9B3;
    text-shadow: 0 0 5px rgba(255, 102, 0, 0.6);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #FF007A;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #FF6200;
    text-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
}

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

.menu-toggle {
    display: none;
    background: #FF6200;
    border: none;
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
}

.menu-toggle:hover {
    background: #FF007A;
    box-shadow: 0 0 10px rgba(255, 0, 122, 0.5);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 122, 0.9);
    z-index: 101;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.5s ease-in-out;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 1rem 0;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #FF6200;
    text-shadow: 0 0 10px rgba(255, 98, 0, 0.8);
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 120px;
    transition: transform 1s ease, opacity 1s ease;
}

.landing-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    background: linear-gradient(90deg, #FF6200, #FF007A, #FF6200);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 98, 0, 0.8), 0 0 40px rgba(255, 0, 122, 0.5);
    animation: textGlow 3s infinite;
}

.landing-content p {
    font-size: clamp(1.2rem, 5vw, 2rem);
    margin: 1.5rem 0;
    color: #FFD9B3;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

.cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, #FF6200, #FF007A);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(1rem, 4vw, 1.5rem);
    box-shadow: 0 5px 20px rgba(255, 98, 0, 0.7);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #FFD700;
    aria-label="Explore the Gallery";
}

.cta.secondary {
    background: #FF007A;
    border-color: #FF6200;
}

.cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta:hover::after {
    width: 300px;
    height: 300px;
}

.cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 98, 0, 0.9);
}

.black-hole {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #000 10%, transparent 70%);
    border-radius: 50%;
    z-index: 3;
    transition: all 1s ease;
    pointer-events: none;
}

.black-hole.active {
    width: 200vw;
    height: 200vw;
    transform: translate(-50%, -50%);
}

.sphere-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    perspective: 1000px;
}

.sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotateSphere 20s infinite linear;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 98, 0, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transform: rotateX(90deg);
    animation: pulsate 4s infinite ease-in-out;
}

.ring:nth-child(2) {
    transform: rotateY(90deg);
    border-color: rgba(255, 0, 122, 0.5);
    animation-delay: var(--delay, 1s);
}

.ring:nth-child(3) {
    transform: rotateX(45deg) rotateY(45deg);
    animation-delay: var(--delay, 2s);
}

@keyframes rotateSphere {
    from { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
    to { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

@keyframes pulsate {
    0%, 100% { transform: scale(1) rotateX(90deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotateX(90deg); opacity: 1; }
}

.featured-characters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.character-card {
    width: 200px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.character-card.flipped {
    transform: rotateY(180deg);
}

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

.character-card .character-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6200, #FF007A);
    color: #fff;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

.preview-gallery {
    margin: 2rem 0;
    text-align: center;
}

.preview-gallery h2 {
    color: #FFD9B3;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

.preview-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card.preview {
    width: 200px;
    height: 300px;
    border: 2px solid #FFD700;
}

.card.preview .card-front, .card.preview .card-back {
    border-radius: 15px;
}

.about-snippet {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 98, 0, 0.1);
    border-radius: 15px;
}

.about-snippet h2 {
    color: #FF007A;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.5);
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(42, 0, 79, 0.8);
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.footer-links, .social-links {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-links a, .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover, .social-links a:hover {
    color: #FF6200;
    text-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
}

.newsletter {
    margin: 1rem 0;
}

.newsletter input {
    padding: 0.5rem;
    border: 2px solid #FF6200;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.newsletter button.cta {
    margin-left: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .header { padding: 0.5rem 1rem; }
    .logo { font-size: 1.5rem; }
    .brand-name { font-size: 1.2rem; }
    .tagline { font-size: 0.9rem; }
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    .mobile-menu { display: none; }
    .landing-content { padding-top: 80px; }
    .landing-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .landing-content p { font-size: clamp(1rem, 4vw, 1.5rem); }
    .cta { padding: 0.8rem 2rem; font-size: 1rem; }
    .featured-characters, .preview-cards { gap: 1rem; }
    .character-card, .card.preview { width: 150px; height: 225px; }
    .footer { padding: 0.5rem 1rem; }
    .footer-links, .social-links { font-size: 0.8rem; }
    .newsletter input, .newsletter button.cta { font-size: 0.9rem; padding: 0.4rem; }
    .sphere-container { display: none; } /* Disable animations on mobile for performance */
}

.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast .header { background: #000 !important; }
.high-contrast .footer { background: #000 !important; }
.high-contrast .card-back { 
    background: #000 !important; 
    color: #fff !important; 
    border-color: #FFD700; 
}
.high-contrast .about-snippet { background: rgba(0, 0, 0, 0.5) !important; }
.high-contrast .nav-menu a, .high-contrast .footer-links a, .high-contrast .social-links a { color: #FFD9B3 !important; }
.high-contrast .nav-menu a:hover, .high-contrast .footer-links a:hover, .high-contrast .social-links a:hover { color: #FF007A !important; text-shadow: 0 0 10px #FF007A; }
.high-contrast .cta { background: #FF007A !important; border-color: #FF6200 !important; }
.high-contrast .cta.secondary { background: #FF6200 !important; border-color: #FF007A !important; }
