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

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #e8e8e8 0%, #d3d3d3 25%, #c0c0c0 50%, #b8b8b8 75%, #a8a8a8 100%);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    box-shadow: inset 0 0 100px rgba(255, 215, 0, 0.1);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.container {
    max-width: 800px;
    padding: 2rem;
}

.welcome-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #f8f8ff;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8), 
        0 0 60px rgba(192, 192, 192, 0.6), 
        5px 5px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 3.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out, titleShimmer 3s ease-in-out infinite alternate;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 25%, #e6e6fa 50%, #d3d3d3 75%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #cd7f32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    filter: drop-shadow(2px 2px 4px rgba(205, 127, 50, 0.3));
}

.cta-container {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.cta-button {
    display: inline-block;
    padding: 1.4rem 3.5rem;
    background: linear-gradient(45deg, #e8e8e8 0%, #ffd700 25%, #ffb347 50%, #cd7f32 75%, #b8860b 100%);
    color: #2f2f2f;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 35px rgba(205, 127, 50, 0.5),
        0 4px 15px rgba(255, 215, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 0 rgba(184, 134, 11, 0.3);
    border: 3px solid #ffd700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
    animation: buttonGlow 2s ease-in-out infinite alternate;
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(205, 127, 50, 0.8),
        0 8px 25px rgba(255, 215, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 0 rgba(218, 165, 32, 0.4);
    background: linear-gradient(45deg, #f0f0f0 0%, #ffed4e 25%, #ffc947 50%, #daa520 75%, #cd853f 100%);
    border-color: #ffed4e;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 1);
    animation-duration: 1s;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(255, 215, 0, 0.6), transparent);
    transition: all 0.8s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* Animated Background */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Speech Bubbles Animation */
.speech-bubble {
    position: absolute;
    opacity: 0.8;
}

.speech-bubble img {
    width: 80px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.bubble-1 {
    top: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.bubble-2 {
    top: 25%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.bubble-3 {
    bottom: 30%;
    left: 8%;
    animation: float 7s ease-in-out infinite;
}

.bubble-4 {
    bottom: 20%;
    right: 12%;
    animation: float 9s ease-in-out infinite reverse;
}

/* Characters Animation */
.character {
    position: absolute;
    opacity: 0.9;
}

.character img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.3));
    object-fit: cover;
}

.character-1 {
    top: 10%;
    left: 20%;
    animation: characterBounce 4s ease-in-out infinite;
}

.character-2 {
    bottom: 15%;
    right: 25%;
    animation: characterFloat 5s ease-in-out infinite reverse;
}

/* Books Animation */
.floating-books {
    position: absolute;
    top: 35%;
    left: 5%;
    opacity: 0.8;
    animation: bookSway 10s linear infinite;
}

.floating-books img {
    width: 150px;
    height: auto;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.3));
}

/* Geometric Shapes */
.shape {
    position: absolute;
    opacity: 0.7;
}

.shape img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.shape-1 {
    top: 8%;
    right: 30%;
    animation: rotate 8s linear infinite;
}

.shape-2 {
    top: 45%;
    left: 12%;
    animation: rotate 6s linear infinite reverse;
}

.shape-3 {
    bottom: 10%;
    left: 30%;
    animation: rotate 10s linear infinite;
}

.shape-4 {
    top: 60%;
    right: 8%;
    animation: rotate 7s linear infinite reverse;
}

.shape-5 {
    bottom: 35%;
    right: 35%;
    animation: rotate 9s linear infinite;
}

/* Drawing Tools */
.tool {
    position: absolute;
    opacity: 0.8;
}

.tool img {
    width: 60px;
    height: auto;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.25));
}

.tool-1 {
    top: 30%;
    right: 5%;
    animation: toolFloat 5s ease-in-out infinite;
}

.tool-2 {
    bottom: 25%;
    left: 15%;
    animation: toolFloat 6s ease-in-out infinite reverse;
}

.tool-3 {
    top: 55%;
    left: 25%;
    animation: toolFloat 7s ease-in-out infinite;
}

/* Comic Book Covers - Premium Metallic Elements */
.comic-cover {
    position: absolute;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    transform-origin: center;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));
}

.comic-cover:hover {
    opacity: 0.85;
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.4)) brightness(1.1);
}

.comic-cover img {
    width: 125px;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.25));
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s ease;
}

.comic-cover:hover img {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 8px 25px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* COLLISION-FREE STRATEGIC GRID POSITIONING */
/* Maximum separation with zero overlaps - Professional distribution */
.cover-1 {
    top: 5%;
    left: 3%;
    animation: coverFloat1 12s ease-in-out infinite;
    z-index: 5;
}

.cover-2 {
    top: 5%;
    right: 3%;
    animation: coverFloat2 14s ease-in-out infinite 1s;
    z-index: 3;
}

.cover-3 {
    top: 35%;
    left: 2%;
    animation: coverFloat3 16s ease-in-out infinite 2s;
    z-index: 4;
}

.cover-4 {
    top: 25%;
    right: 15%;
    animation: coverFloat4 13s ease-in-out infinite 3s;
    z-index: 2;
}

.cover-5 {
    top: 10%;
    left: 75%;
    animation: coverFloat5 15s ease-in-out infinite 4s;
    z-index: 6;
}

.cover-6 {
    bottom: 25%;
    right: 25%;
    animation: coverFloat6 11s ease-in-out infinite 5s;
    z-index: 3;
}

.cover-7 {
    bottom: 8%;
    left: 25%;
    animation: coverFloat7 17s ease-in-out infinite 6s;
    z-index: 4;
}

.cover-8 {
    bottom: 5%;
    right: 5%;
    animation: coverFloat8 14s ease-in-out infinite 7s;
    z-index: 2;
}

/* Shooting Stars */
.star {
    position: absolute;
    opacity: 0.9;
    z-index: 8;
}

.star img {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.star-1 {
    top: 5%;
    left: 50%;
    animation: shootingStar 3s linear infinite;
}

.star-2 {
    top: 75%;
    left: 70%;
    animation: shootingStar 4s linear infinite 1s;
}

.star-3 {
    top: 40%;
    right: 2%;
    animation: shootingStar 5s linear infinite 2s;
}

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

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

@keyframes characterBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes characterFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

@keyframes bookSway {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateX(10px) rotate(2deg);
    }
    75% {
        transform: translateX(-10px) rotate(-2deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes toolFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(10deg);
    }
}

@keyframes shootingStar {
    0% {
        transform: translateX(0px) translateY(0px) scale(1);
        opacity: 1;
    }
    70% {
        transform: translateX(100px) translateY(50px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateX(200px) translateY(100px) scale(0.5);
        opacity: 0;
    }
}

/* Refined Comic Cover Float Animations - Collision-Free */
@keyframes coverFloat1 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateX(8px) translateY(-10px) rotate(2deg) scale(1.03);
        opacity: 0.6;
    }
    50% {
        transform: translateX(12px) translateY(-5px) rotate(-1deg) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translateX(5px) translateY(-12px) rotate(3deg) scale(1.02);
        opacity: 0.5;
    }
}

@keyframes coverFloat2 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    30% {
        transform: translateX(-10px) translateY(8px) rotate(-2deg) scale(1.04);
        opacity: 0.6;
    }
    60% {
        transform: translateX(-5px) translateY(12px) rotate(2deg) scale(0.98);
        opacity: 0.4;
    }
    80% {
        transform: translateX(-12px) translateY(5px) rotate(-1deg) scale(1.02);
        opacity: 0.5;
    }
}

@keyframes coverFloat3 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    20% {
        transform: translateX(10px) translateY(8px) rotate(2deg) scale(1.02);
        opacity: 0.3;
    }
    40% {
        transform: translateX(15px) translateY(-5px) rotate(-1deg) scale(1.03);
        opacity: 0.6;
    }
    70% {
        transform: translateX(8px) translateY(12px) rotate(3deg) scale(0.99);
        opacity: 0.4;
    }
}

@keyframes coverFloat4 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    35% {
        transform: translateX(-8px) translateY(-10px) rotate(-2deg) scale(1.03);
        opacity: 0.6;
    }
    65% {
        transform: translateX(-12px) translateY(3px) rotate(1deg) scale(1.01);
        opacity: 0.3;
    }
    85% {
        transform: translateX(-5px) translateY(-8px) rotate(-1deg) scale(1.02);
        opacity: 0.5;
    }
}

@keyframes coverFloat5 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateX(12px) translateY(10px) rotate(2deg) scale(0.98);
        opacity: 0.3;
    }
    50% {
        transform: translateX(15px) translateY(-8px) rotate(-1deg) scale(1.04);
        opacity: 0.5;
    }
    75% {
        transform: translateX(10px) translateY(12px) rotate(3deg) scale(1.01);
        opacity: 0.4;
    }
}

@keyframes coverFloat6 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    40% {
        transform: translateX(-12px) translateY(10px) rotate(-2deg) scale(1.03);
        opacity: 0.6;
    }
    70% {
        transform: translateX(-15px) translateY(-5px) rotate(2deg) scale(0.99);
        opacity: 0.4;
    }
    90% {
        transform: translateX(-8px) translateY(12px) rotate(-1deg) scale(1.01);
        opacity: 0.5;
    }
}

@keyframes coverFloat7 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    30% {
        transform: translateX(5px) translateY(-12px) rotate(2deg) scale(1.02);
        opacity: 0.3;
    }
    55% {
        transform: translateX(-10px) translateY(-15px) rotate(-2deg) scale(1.04);
        opacity: 0.6;
    }
    80% {
        transform: translateX(-3px) translateY(-8px) rotate(1deg) scale(0.99);
        opacity: 0.4;
    }
}

@keyframes coverFloat8 {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    20% {
        transform: translateX(-10px) translateY(-10px) rotate(-2deg) scale(1.02);
        opacity: 0.6;
    }
    45% {
        transform: translateX(-15px) translateY(5px) rotate(2deg) scale(0.98);
        opacity: 0.3;
    }
    75% {
        transform: translateX(-5px) translateY(-12px) rotate(-1deg) scale(1.03);
        opacity: 0.5;
    }
}

/* Premium Title Animation */
@keyframes titleShimmer {
    0% {
        filter: brightness(1) contrast(1);
    }
    100% {
        filter: brightness(1.2) contrast(1.1);
    }
}

/* Premium Button Glow Animation */
@keyframes buttonGlow {
    0% {
        box-shadow: 
            0 12px 35px rgba(205, 127, 50, 0.5),
            0 4px 15px rgba(255, 215, 0, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.7),
            inset 0 -2px 0 rgba(184, 134, 11, 0.3);
    }
    100% {
        box-shadow: 
            0 15px 45px rgba(205, 127, 50, 0.7),
            0 6px 20px rgba(255, 215, 0, 0.5),
            inset 0 2px 0 rgba(255, 255, 255, 0.8),
            inset 0 -2px 0 rgba(184, 134, 11, 0.4);
    }
}

/* Premium Footer Shimmer Animation */
@keyframes footerShimmer {
    0% {
        border-top-color: rgba(255, 215, 0, 0.7);
    }
    100% {
        border-top-color: rgba(255, 215, 0, 0.9);
    }
}

/* Premium Loading Animation */
.premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c0c0c0 0%, #8c8c8c 50%, #696969 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: metallicSpin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #FFD700 0%, #CD7F32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes metallicSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Premium Metallic Particle Animation */
@keyframes metallicFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Premium Metallic Footer */
.premium-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(232, 232, 232, 0.96) 0%, rgba(208, 208, 208, 0.98) 25%, rgba(192, 192, 192, 0.99) 50%, rgba(180, 180, 180, 0.98) 75%, rgba(160, 160, 160, 0.96) 100%);
    backdrop-filter: blur(15px) saturate(150%);
    border-top: 3px solid rgba(255, 215, 0, 0.7);
    box-shadow: 
        0 -12px 35px rgba(0, 0, 0, 0.25), 
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(184, 134, 11, 0.2);
    z-index: 200;
    padding: 1rem 0;
    animation: footerShimmer 4s ease-in-out infinite alternate;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.copyright, .powered-by {
    margin: 0;
    font-size: 0.85rem;
    color: #2f2f2f;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.iris-link {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    /* Simple black text with good contrast against light footer background */
}

.iris-link:hover {
    color: #333333 !important;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Footer link pseudo-element and animation styles removed - using simple static styling */

/* ========== COMPREHENSIVE MOBILE RESPONSIVE DESIGN ========== */

/* Desktop First - 1025px and above */
@media (min-width: 1025px) {
    .container {
        max-width: 900px;
        padding: 2.5rem;
    }
    
    .welcome-title {
        font-size: 4.2rem;
        margin-bottom: 4rem;
    }
    
    .cta-button {
        padding: 1.6rem 4rem;
        font-size: 1.5rem;
        min-height: 44px;
    }
}

/* Tablet - 769px to 1024px */
@media (max-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 2rem;
    }
    
    .welcome-title {
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }
    
    .cta-button {
        padding: 1.3rem 3rem;
        font-size: 1.3rem;
        min-height: 44px;
    }
    
    /* Comic covers positioning adjustment for tablet */
    .cover-1 { top: 8%; left: 2%; }
    .cover-2 { top: 8%; right: 2%; }
    .cover-5 { left: 70%; }
}

/* Mobile Landscape - 481px to 768px */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 2.8rem;
        margin-bottom: 2.5rem;
        line-height: 1.2;
        text-align: center;
    }
    
    /* Touch-friendly button - minimum 44px tap target */
    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
        min-height: 44px;
        min-width: 200px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
        touch-action: manipulation;
    }
    
    /* Optimize comic covers for mobile landscape - smaller and contained */
    .comic-cover img {
        width: 70px;
        border: 2px solid rgba(255, 215, 0, 0.4);
    }
    
    .comic-cover {
        opacity: 0.4;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.15));
    }
    
    /* MOBILE REORGANIZATION: All covers around edges and top area ONLY */
    /* NO covers below the main content area - clean professional layout */
    .cover-1 { top: 2%; left: 1%; }          /* Top-left corner */
    .cover-2 { top: 2%; right: 1%; }         /* Top-right corner */
    .cover-3 { top: 15%; left: 0%; }         /* Left side, higher */
    .cover-4 { top: 8%; right: 25%; }        /* Top area, right side */
    .cover-5 { top: 5%; left: 60%; }         /* Top center-right */
    .cover-6 { top: 22%; right: 0%; }        /* Right side, mid-high */
    .cover-7 { top: 25%; left: 15%; }        /* Left side, mid-high */
    .cover-8 { top: 15%; right: 40%; }       /* Top area, center-right */
    
    /* Reduce background elements for better mobile performance */
    .character img, .speech-bubble img, .tool img {
        width: 50px;
        height: 50px;
    }
    
    .star img {
        width: 40px;
    }
    
    .shape img {
        width: 25px;
        height: 25px;
    }

    /* Mobile-optimized footer */
    .footer-text {
        flex-direction: column;
        gap: 0.3rem;
    }

    .copyright, .powered-by {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .iris-link {
        font-size: 0.85rem;
        padding: 2px 4px;
        margin: 2px 0;
        min-height: 32px;
        display: inline-block;
        line-height: 1.3;
    }

    .footer-content {
        padding: 0 1.2rem;
    }
    
    .premium-footer {
        padding: 1rem 0;
    }
}

/* Mobile Portrait - 320px to 480px */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 1rem;
        max-width: 100vw;
    }
    
    /* Mobile-optimized title */
    .welcome-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 2rem;
        text-align: center;
        word-break: break-word;
    }
    
    /* Mobile-optimized button with larger touch target */
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 48px;
        min-width: 180px;
        border-radius: 44px;
        margin: 0 auto;
        display: block;
        text-align: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Further optimize comic covers for small screens */
    .comic-cover img {
        width: 55px;
        border: 1px solid rgba(255, 215, 0, 0.3);
    }
    
    .comic-cover {
        opacity: 0.35;
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.12));
    }
    
    /* MOBILE PORTRAIT: Clean organization - ALL covers in top/edge areas ONLY */
    /* Ensures NO artifacts appear below the main content button */
    .cover-1 { top: 1%; left: 0%; }           /* Top-left corner */
    .cover-2 { top: 1%; right: 0%; }          /* Top-right corner */
    .cover-3 { top: 12%; left: 0%; }          /* Left edge, high */
    .cover-4 { top: 6%; right: 20%; }         /* Top area, right */
    .cover-5 { top: 3%; left: 50%; }          /* Top center */
    .cover-6 { top: 18%; right: 0%; }         /* Right edge, high */
    .cover-7 { top: 20%; left: 8%; }          /* Left side, high */
    .cover-8 { top: 12%; right: 35%; }        /* Top area, center-right */
    
    /* Minimal background elements for performance */
    .character, .speech-bubble, .tool {
        display: none; /* Hide on very small screens for performance */
    }
    
    .star img {
        width: 30px;
        opacity: 0.6;
    }
    
    .shape img {
        width: 20px;
        height: 20px;
        opacity: 0.7;
    }

    /* Mobile-friendly footer */
    .premium-footer {
        padding: 0.8rem 0;
    }

    .footer-text {
        gap: 0.2rem;
    }

    .copyright, .powered-by {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    
    .iris-link {
        font-size: 0.75rem;
        padding: 4px 6px;
        margin: 4px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
        border-radius: 4px;
        touch-action: manipulation;
    }

    .footer-content {
        padding: 0 1rem;
    }
}

/* Extra Small Mobile - 320px and below */
@media (max-width: 320px) {
    .welcome-title {
        font-size: 1.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-width: 160px;
    }
    
    /* Extra small screens - even more compact covers */
    .comic-cover img {
        width: 50px;
    }
    
    .comic-cover {
        opacity: 0.3;
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.1));
    }
    
    /* EXTRA SMALL MOBILE: Maintain clean top/edge organization */
    .cover-1 { top: 0.5%; left: 0%; }         /* Top-left corner */
    .cover-2 { top: 0.5%; right: 0%; }        /* Top-right corner */
    .cover-3 { top: 10%; left: 0%; }          /* Left edge */
    .cover-4 { top: 4%; right: 18%; }         /* Top area, right */
    .cover-5 { top: 2%; left: 45%; }          /* Top center */
    .cover-6 { top: 15%; right: 0%; }         /* Right edge */
    .cover-7 { top: 18%; left: 5%; }          /* Left side */
    .cover-8 { top: 8%; right: 30%; }         /* Top area, center-right */
    
    .container {
        padding: 0.8rem;
    }
    
    .copyright, .powered-by {
        font-size: 0.65rem;
    }
    
    .iris-link {
        font-size: 0.7rem;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* MOBILE ANIMATION CONSTRAINTS: Reduce movement range to keep covers contained */
    /* Prevent covers from floating into main content area */
    @keyframes coverFloat1 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(3px) translateY(-3px) rotate(1deg) scale(1.01); opacity: 0.4; }
    }
    
    @keyframes coverFloat2 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(-3px) translateY(2px) rotate(-1deg) scale(1.01); opacity: 0.4; }
    }
    
    @keyframes coverFloat3 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(2px) translateY(3px) rotate(1deg) scale(1.01); opacity: 0.4; }
    }
    
    @keyframes coverFloat4 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(-2px) translateY(-2px) rotate(-1deg) scale(1.01); opacity: 0.4; }
    }
    
    @keyframes coverFloat5 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(3px) translateY(2px) rotate(1deg) scale(1.01); opacity: 0.4; }
    }
    
    @keyframes coverFloat6 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(-3px) translateY(2px) rotate(-1deg) scale(1.01); opacity: 0.4; }
    }
    
    @keyframes coverFloat7 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(2px) translateY(-2px) rotate(1deg) scale(1.01); opacity: 0.4; }
    }
    
    @keyframes coverFloat8 {
        0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
        50% { transform: translateX(-2px) translateY(2px) rotate(-1deg) scale(1.01); opacity: 0.4; }
    }
    
    /* Reduce animations on mobile for better performance */
    .comic-cover {
        animation-duration: 10s;
    }
    
    /* Disable heavy animations on mobile */
    .character, .speech-bubble, .tool {
        animation: none;
    }
    
    /* Optimize touch interactions */
    .cta-button:active {
        transform: translateY(-2px) scale(0.98);
        transition: all 0.1s ease;
    }
    
    /* Improve scrolling performance */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Hide complex background elements on very small screens */
    @media (max-width: 400px) {
        .animated-background > .character,
        .animated-background > .speech-bubble,
        .animated-background > .tool {
            display: none;
        }
        
        /* Further reduce animation movement on very small screens */
        .comic-cover {
            animation: none; /* Disable animations completely on very small screens */
            opacity: 0.3 !important;
        }
    }
}

/* ========== NEW PROFESSIONAL FEATURES ========== */

/* Premium Loading Screen */
.premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d3d3d3 25%, #c0c0c0 50%, #b8b8b8 75%, #a8a8a8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
}

.loader-content {
    text-align: center;
    color: #2c2c2c;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-left: 4px solid #d4af37;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.loader-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loader-subtext {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    opacity: 0.8;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Contrast Accessibility Toggle */
.contrast-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 40, 40, 0.9);
    color: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contrast-toggle:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.contrast-toggle svg {
    width: 18px;
    height: 18px;
}

.toggle-text {
    font-size: 0.8rem;
}

/* High Contrast Mode Styles */
.high-contrast {
    filter: contrast(200%) brightness(1.2);
}

.high-contrast .welcome-title,
.high-contrast .highlight {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.high-contrast .cta-button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 0 0 3px #ffff00 !important;
}

.high-contrast .premium-footer {
    background: #000000 !important;
    color: #ffffff !important;
    border-top: 3px solid #ffff00 !important;
}

.high-contrast .iris-link {
    color: #ffff00 !important;
    background: none !important;
    -webkit-text-fill-color: #ffff00 !important;
    text-decoration: underline !important;
    font-weight: 900 !important;
}

.high-contrast .animated-background {
    opacity: 0.3;
}

/* Social Sharing Buttons */
.social-sharing {
    position: fixed;
    bottom: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border-radius: 25px;
    pointer-events: none;
}

.facebook-btn {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    color: white;
}

.twitter-btn {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.facebook-btn:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.twitter-btn:hover {
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.whatsapp-btn:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Image Lazy Loading Enhancement */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========== MOBILE RESPONSIVE INTEGRATION FOR PROFESSIONAL FEATURES ========== */

/* Mobile Landscape - Social & Accessibility Features */
@media (max-width: 768px) {
    .contrast-toggle {
        top: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 0.8rem;
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .toggle-text {
        display: none;
    }
    
    .social-sharing {
        bottom: 110px;
        right: 15px;
        gap: 10px;
    }
    
    .social-btn {
        width: 48px;
        height: 48px;
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        border-radius: 24px;
    }
    
    .social-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .loader-text {
        font-size: 1.3rem;
    }
    
    .loader-subtext {
        font-size: 1rem;
    }
    
    .premium-loader {
        padding: 25px;
    }
    
    .loader-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Portrait - Optimized Touch Targets */
@media (max-width: 480px) {
    .contrast-toggle {
        top: 12px;
        right: 12px;
        padding: 10px;
        font-size: 0.75rem;
        min-height: 44px;
        min-width: 44px;
        border-radius: 22px;
    }
    
    .contrast-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .social-sharing {
        bottom: 95px;
        right: 12px;
        gap: 8px;
    }
    
    .social-btn {
        width: 44px;
        height: 44px;
        min-height: 44px;
        min-width: 44px;
        border-radius: 22px;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .loader-text {
        font-size: 1.1rem;
    }
    
    .loader-subtext {
        font-size: 0.9rem;
    }
    
    .loader-spinner {
        width: 40px;
        height: 40px;
    }
    
    .premium-loader {
        padding: 20px;
    }
}

/* Extra Small Mobile - Minimal Interface */
@media (max-width: 320px) {
    .contrast-toggle {
        top: 10px;
        right: 10px;
        padding: 8px;
        min-height: 40px;
        min-width: 40px;
    }
    
    .contrast-toggle svg {
        width: 16px;
        height: 16px;
    }
    
    .social-sharing {
        bottom: 85px;
        right: 10px;
        gap: 6px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
        min-width: 40px;
        border-radius: 20px;
    }
    
    .social-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .loader-text {
        font-size: 1rem;
    }
    
    .loader-subtext {
        font-size: 0.8rem;
    }
    
    .loader-spinner {
        width: 35px;
        height: 35px;
    }
}

/* Touch Interaction Enhancements */
@media (max-width: 768px) {
    /* Improved touch feedback for all interactive elements */
    .contrast-toggle:active {
        transform: translateY(-1px) scale(0.95);
        transition: all 0.1s ease;
    }
    
    .social-btn:active {
        transform: translateY(-1px) scale(0.95);
        transition: all 0.1s ease;
    }
    
    .iris-link:active {
        transform: translateY(-1px) scale(0.98);
        transition: all 0.1s ease;
    }
    
    /* Prevent zoom on double tap for better UX */
    button, .cta-button, .social-btn, .contrast-toggle, .iris-link {
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Improve tap highlight visibility */
    .cta-button:active, .social-btn:active, .contrast-toggle:active {
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
    }
    
    /* Enhanced footer link mobile specific styles */
    .iris-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 12px;
        margin: -8px -12px; /* Negative margin to maintain visual positioning */
    }
    
    /* Enhanced visibility for static black link on mobile */
    .iris-link:active {
        -webkit-tap-highlight-color: transparent;
        transform: translateY(-1px) scale(0.98);
        color: #666666 !important;
        text-decoration: underline;
    }
}
