/* Pixel Font Import - Optimized */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap&text=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    overflow-x: hidden;
    background: #0f0a1e;
    color: #fff;
    image-rendering: pixelated;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode */
body.light-mode {
    background: #f5f5f5;
    color: #333;
}

body.light-mode .navbar {
    background: #ffffff;
    border-bottom-color: #6366f1;
}

body.light-mode .nav-link {
    color: #6366f1;
}

body.light-mode .nav-link:hover {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
}

body.light-mode .hero {
    background: #f5f5f5 url('bg1.png') center center / cover no-repeat;
}

body.light-mode .hero::before {
    background: rgba(255, 255, 255, 0.3);
}

body.light-mode .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(245, 245, 245, 0.3) 100%);
}

body.light-mode .title {
    color: #333;
    text-shadow: 
        4px 4px 0px #6366f1,
        8px 8px 0px rgba(0, 0, 0, 0.1);
}

body.light-mode .tagline {
    color: #6366f1;
}

body.light-mode .subtitle {
    color: #4f46e5;
}

body.light-mode .CapsuleTime-inner {
    background: #ffffff;
    border-color: #6366f1;
}

body.light-mode .CapsuleTime-inner h3 {
    color: #333;
}

body.light-mode .CapsuleTime-inner p {
    color: #6366f1;
}

body.light-mode .cta-subtitle {
    color: #4f46e5;
}

body.light-mode .nav-toggle span {
    background: #6366f1;
    border-color: #333;
}

body.light-mode .nav-menu {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .particle {
    background: #6366f1;
}

body.light-mode .gradient-sphere {
    opacity: 0.1;
}

body.light-mode .CapsuleTime-badge {
    background: #6366f1;
    border-color: #333;
}

body.light-mode .CapsuleTime-arrow {
    background: #ffffff;
    border-color: #6366f1;
    color: #333;
}

body.light-mode .CapsuleTime-arrow:hover {
    background: #6366f1;
    color: #fff;
}

body.light-mode .social-button {
    border-color: #333;
}

body.light-mode .telegram-button {
    background: #0088cc;
}

body.light-mode .twitter-button {
    background: #1DA1F2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a0a2e;
    border-bottom: 3px solid #6366f1;
    z-index: 1000;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.5));
}

.nav-logo-text {
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 2px 2px 0px #6366f1;
    letter-spacing: 0.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.55rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.15s ease-out;
    display: block;
}

.nav-link:hover {
    color: #fff;
    border: 2px solid #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    transform: translate(-2px, -2px);
}

.nav-link:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #6366f1;
    border: 1px solid #fff;
    transition: all 0.2s ease-out;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f0a1e url('bg.png') center center / cover no-repeat;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 30, 0.3);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(26, 10, 46, 0.2) 0%, rgba(15, 10, 30, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Background Animation - Simplified */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    opacity: 0.15;
    filter: blur(60px);
    border-radius: 50%;
    animation: pixelFloat 20s ease-in-out infinite;
    will-change: transform;
}

.sphere-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6366f1, transparent);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.sphere-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: 15%;
    right: 10%;
    animation-delay: 7s;
}

.sphere-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #06b6d4, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes pixelFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-30px, 30px);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.hero-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: pixelFadeIn 0.6s ease-out forwards;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-title-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.theme-icon {
    width: 48px;
    height: 48px;
    cursor: pointer;
    image-rendering: pixelated;
    border: 3px solid transparent;
    padding: 0.3rem;
    transition: all 0.15s ease-out;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    background: rgba(26, 10, 46, 0.5);
}

.theme-icon:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
}

.theme-icon.active {
    border-color: #6366f1;
    box-shadow: 
        5px 5px 0px rgba(99, 102, 241, 0.8),
        5px 5px 0px 3px rgba(0, 0, 0, 0.5);
}

body.light-mode .theme-icon {
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .theme-icon.active {
    border-color: #6366f1;
}

.title {
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.2rem;
    text-shadow: 
        4px 4px 0px #6366f1,
        8px 8px 0px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    margin: 0;
}

.tagline {
    font-size: 0.875rem;
    color: #a78bfa;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 0.75rem;
    color: #6366f1;
    letter-spacing: 0.1rem;
    line-height: 1.8;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* CapsuleTimes Wrapper Container */
.CapsuleTimes-wrapper-container {
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* CapsuleTime Arrow Buttons */
.CapsuleTime-arrow {
    background: #1a0a2e;
    border: 3px solid #6366f1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease-out;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.CapsuleTime-arrow:hover {
    background: #6366f1;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
}

.CapsuleTime-arrow:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.CapsuleTime-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #1a0a2e;
}

.CapsuleTime-arrow:disabled:hover {
    transform: none;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

/* CapsuleTimes Wrapper */
.CapsuleTimes-wrapper {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

/* CapsuleTimes Container */
.CapsuleTimes-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* CapsuleTime */
.CapsuleTime {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    flex-shrink: 0;
}

.CapsuleTime[data-index="0"] { animation-delay: 0.2s; }
.CapsuleTime[data-index="1"] { animation-delay: 0.35s; }
.CapsuleTime[data-index="2"] { animation-delay: 0.5s; }
.CapsuleTime[data-index="3"] { animation-delay: 0.65s; }
.CapsuleTime[data-index="4"] { animation-delay: 0.8s; }
.CapsuleTime[data-index="5"] { animation-delay: 0.95s; }

.CapsuleTime-inner {
    background: #1a0a2e;
    border: 3px solid #6366f1;
    padding: 1.2rem;
    width: 240px;
    cursor: pointer;
    position: relative;
    box-shadow: 
        6px 6px 0px rgba(99, 102, 241, 0.5),
        6px 6px 0px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease-out;
}

.CapsuleTime-inner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.CapsuleTime-inner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed rgba(99, 102, 241, 0.3);
    pointer-events: none;
}

.CapsuleTime-inner:hover {
    transform: translate(-3px, -3px);
    box-shadow: 
        9px 9px 0px rgba(99, 102, 241, 0.8),
        9px 9px 0px 3px rgba(0, 0, 0, 0.5);
    border-color: #8b5cf6;
}

.CapsuleTime-inner:active {
    transform: translate(3px, 3px);
    box-shadow: 
        3px 3px 0px rgba(99, 102, 241, 0.5),
        3px 3px 0px 3px rgba(0, 0, 0, 0.3);
}

.CapsuleTime-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.CapsuleTime-icon img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.5));
    image-rendering: pixelated;
}

.new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.45rem;
    padding: 0.25rem 0.5rem;
    border: 2px solid #fff;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    animation: pixelPulse 1.5s ease-in-out infinite;
}

@keyframes pixelPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.new-badge.hidden {
    display: none;
}

.CapsuleTime-inner h3 {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    color: #fff;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.CapsuleTime-inner p {
    font-size: 0.5rem;
    color: #a78bfa;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.CapsuleTime-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #6366f1;
    border: 2px solid #fff;
    box-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2);
    font-size: 0.45rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    text-align: center;
    animation: pixelFadeIn 0.6s ease-out 0.3s backwards;
    position: relative;
    z-index: 10;
}

.social-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-button {
    font-family: 'Press Start 2P', monospace;
    border: 4px solid #fff;
    padding: 1rem 2rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 
        8px 8px 0px rgba(0, 0, 0, 0.5),
        inset -4px -4px 0px rgba(0, 0, 0, 0.2),
        inset 4px 4px 0px rgba(255, 255, 255, 0.2);
    transition: all 0.15s ease-out;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    text-decoration: none;
    image-rendering: pixelated;
}

.telegram-button {
    background: #0088cc;
}

.twitter-button {
    background: #1DA1F2;
}

.social-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 
        12px 12px 0px rgba(0, 0, 0, 0.5),
        inset -4px -4px 0px rgba(0, 0, 0, 0.2),
        inset 4px 4px 0px rgba(255, 255, 255, 0.2);
}

.telegram-button:hover {
    background: #0096dd;
}

.twitter-button:hover {
    background: #1a8cd8;
}

.social-button:active {
    transform: translate(4px, 4px);
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.5),
        inset -4px -4px 0px rgba(0, 0, 0, 0.3),
        inset 4px 4px 0px rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

.cta-subtitle {
    font-size: 0.6rem;
    color: #6366f1;
    font-style: normal;
    line-height: 1.8;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Particles - Simplified */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6366f1;
    border-radius: 50%;
    opacity: 0.6;
    animation: pixelParticleFloat 15s ease-in-out infinite;
}

@keyframes pixelParticleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

/* Animations - Pixel Style */
@keyframes pixelFadeIn {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(32px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* About Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: #1a0a2e;
    border: 4px solid #6366f1;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        12px 12px 0px rgba(99, 102, 241, 0.5),
        12px 12px 0px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalPopIn 0.3s steps(4) forwards;
}

body.light-mode .modal-box {
    background: #ffffff;
    border-color: #6366f1;
}

@keyframes modalPopIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header-bar {
    background: #6366f1;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #8b5cf6;
}

body.light-mode .modal-header-bar {
    background: #6366f1;
}

.modal-header-title {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    background: #ef4444;
    border: 3px solid #fff;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    line-height: 1;
    transition: all 0.1s steps(2);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}

.modal-close-btn:hover {
    background: #dc2626;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
}

.modal-close-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.modal-content-area {
    padding: 2rem;
    overflow-y: auto;
}

body.light-mode .modal-content-area {
    background: #ffffff;
}

.about-section-modal {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid #6366f1;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

body.light-mode .about-section-modal {
    background: rgba(99, 102, 241, 0.05);
    border-color: #6366f1;
}

.about-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #6366f1;
    text-align: center;
}

body.light-mode .about-subtitle {
    color: #333;
}

.about-text {
    font-size: 0.55rem;
    color: #a78bfa;
    line-height: 1.8;
    text-align: center;
}

body.light-mode .about-text {
    color: #666;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-box {
    background: #1a0a2e;
    border: 3px solid #6366f1;
    padding: 1rem;
    text-align: center;
    transition: all 0.15s ease-out;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}

body.light-mode .feature-box {
    background: #ffffff;
    border-color: #6366f1;
}

.feature-box:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
    border-color: #8b5cf6;
}

.feature-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-label {
    font-size: 0.5rem;
    color: #fff;
    display: block;
}

body.light-mode .feature-label {
    color: #333;
}

.about-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(236, 72, 153, 0.1);
    border: 3px solid #ec4899;
    margin-top: 2rem;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

body.light-mode .about-cta {
    background: rgba(236, 72, 153, 0.05);
    border-color: #ec4899;
}

.about-quote {
    font-size: 0.75rem;
    color: #ec4899;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

body.light-mode .about-quote {
    color: #ec4899;
}

.about-vision {
    font-size: 0.55rem;
    color: #a78bfa;
    line-height: 1.8;
}

body.light-mode .about-vision {
    color: #666;
}

/* Features Modal Styles */
.features-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid #6366f1;
}

body.light-mode .features-intro {
    background: rgba(99, 102, 241, 0.05);
}

.features-intro-text {
    font-size: 0.6rem;
    color: #a78bfa;
    line-height: 1.8;
}

body.light-mode .features-intro-text {
    color: #666;
}

.feature-card {
    margin-bottom: 2rem;
    background: #1a0a2e;
    border: 3px solid #6366f1;
    overflow: hidden;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease-out;
}

body.light-mode .feature-card {
    background: #ffffff;
    border-color: #6366f1;
}

.feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    border-color: #8b5cf6;
}

.feature-header {
    background: #6366f1;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid #8b5cf6;
}

body.light-mode .feature-header {
    background: #6366f1;
}

.feature-number {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}

.feature-icon-large {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-title {
    font-size: 0.75rem;
    color: #fff;
    margin: 0;
    flex: 1;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.feature-content {
    padding: 1.5rem;
}

body.light-mode .feature-content {
    background: #ffffff;
}

.feature-description {
    font-size: 0.55rem;
    color: #a78bfa;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

body.light-mode .feature-description {
    color: #666;
}

.feature-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid #6366f1;
    color: #a78bfa;
    font-size: 0.45rem;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

body.light-mode .feature-tag {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #6366f1;
}

/* Modal Scrollbar */
.modal-box::-webkit-scrollbar {
    width: 16px;
}

.modal-box::-webkit-scrollbar-track {
    background: #0f0a1e;
    border: 3px solid #6366f1;
}

body.light-mode .modal-box::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.modal-box::-webkit-scrollbar-thumb {
    background: #6366f1;
    border: 2px solid #fff;
}

.modal-box::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .title {
        font-size: 2rem;
        line-height: 1.6;
    }
    
    .logo {
        width: 64px;
        height: 64px;
    }
    
    .logo-title-container {
        gap: 1rem;
    }
    
    .CapsuleTimes-container {
        gap: 1.5rem;
    }
    
    .CapsuleTime-inner {
        width: 220px;
        padding: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .CapsuleTimes-container {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-logo-text {
        font-size: 0.65rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 10, 30, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 3px solid #6366f1;
        box-shadow: 0 4px 0px rgba(0, 0, 0, 0.5);
        transition: left 0.3s steps(10);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        font-size: 0.55rem;
        padding: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 1rem;
    }
    
    .CapsuleTimes-container {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .logo-title-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .title {
        font-size: 1.5rem;
        line-height: 1.8;
    }
    
    .tagline {
        font-size: 0.7rem;
        line-height: 2;
    }
    
    .subtitle {
        font-size: 0.6rem;
    }
    
    .logo {
        width: 64px;
        height: 64px;
    }
    
    .CapsuleTimes-wrapper-container {
        padding: 0 1rem;
    }
    
    .CapsuleTime-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .CapsuleTimes-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .CapsuleTime-inner {
        width: 220px;
        padding: 1.2rem;
    }
    
    .CapsuleTime-inner h3 {
        font-size: 0.7rem;
    }
    
    .CapsuleTime-icon img {
        width: 56px;
        height: 56px;
    }
    
    .social-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.6rem;
    }
    
    .social-buttons {
        gap: 1rem;
    }
    
    .CapsuleTime-arrow {
        display: none;
    }
    
    .theme-icon {
        width: 40px;
        height: 40px;
    }
    
    .theme-switcher {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .CapsuleTimes-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .title {
        font-size: 1.2rem;
        line-height: 2;
    }
    
    .tagline {
        font-size: 0.6rem;
        line-height: 2;
    }
    
    .subtitle {
        font-size: 0.5rem;
    }
    
    .CapsuleTime-inner {
        width: 200px;
        padding: 1rem;
    }
    
    .CapsuleTime-icon img {
        width: 48px;
        height: 48px;
    }
    
    .CapsuleTime-inner h3 {
        font-size: 0.65rem;
    }
    
    .theme-icon {
        width: 36px;
        height: 36px;
    }
    
    .theme-switcher {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .social-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.55rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-box {
        max-height: 95vh;
    }
    
    .modal-header-bar {
        padding: 0.8rem 1rem;
    }
    
    .modal-header-title {
        font-size: 0.75rem;
    }
    
    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .modal-content-area {
        padding: 1rem;
    }
    
    .about-section-modal {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .about-icon {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 0.65rem;
    }
    
    .about-text {
        font-size: 0.5rem;
    }
    
    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .feature-emoji {
        font-size: 1.5rem;
    }
    
    .feature-label {
        font-size: 0.45rem;
    }
    
    .about-cta {
        padding: 1.5rem 1rem;
    }
    
    .about-quote {
        font-size: 0.65rem;
    }
    
    .about-vision {
        font-size: 0.5rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .feature-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-icon-large {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 0.65rem;
        flex-basis: 100%;
        margin-top: 0.5rem;
    }
    
    .feature-content {
        padding: 1rem;
    }
    
    .feature-description {
        font-size: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-tag {
        font-size: 0.4rem;
        padding: 0.3rem 0.6rem;
    }
    
    .features-intro-text {
        font-size: 0.5rem;
    }
    
    .global-news-section {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 0.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card-home {
        min-height: 200px;
    }
    
    .news-title-home {
        font-size: 0.55rem;
        line-height: 1.4;
    }
    
    .news-meta-home {
        font-size: 0.45rem;
    }
    
    .refresh-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

/* Global News Section */
.global-news-section {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid #6366f1;
}

.news-title {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 
        2px 2px 0px #6366f1,
        4px 4px 0px rgba(0, 0, 0, 0.3);
}

body.light-mode .news-title {
    color: #333;
    text-shadow: 
        2px 2px 0px #6366f1,
        4px 4px 0px rgba(0, 0, 0, 0.1);
}

.refresh-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 3px solid #fff;
    color: #fff;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.refresh-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.refresh-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

body.light-mode .refresh-btn {
    border-color: #333;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

body.light-mode .refresh-btn:hover {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
}

body.light-mode .refresh-btn:active {
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-card-home {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid #6366f1;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
}

.news-card-home:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3);
    border-color: #8b5cf6;
}

body.light-mode .news-card-home {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

body.light-mode .news-card-home:hover {
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
}

.news-image-home {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #1a1430;
    border-bottom: 3px solid #6366f1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .news-image-home {
    background-color: #e5e7eb;
}

.news-placeholder-home {
    font-size: 4rem;
    opacity: 0.3;
}

.news-content-home {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title-home {
    font-size: 0.7rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.light-mode .news-title-home {
    color: #333;
}

.news-meta-home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.5rem;
    color: #a78bfa;
    margin-top: auto;
}

body.light-mode .news-meta-home {
    color: #6366f1;
}

.news-source-home {
    background: #6366f1;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border: 2px solid #fff;
}

body.light-mode .news-source-home {
    border-color: #333;
}

.news-time-home {
    color: #94a3b8;
}

body.light-mode .news-time-home {
    color: #64748b;
}

.news-loading {
    text-align: center;
    font-size: 0.8rem;
    color: #a78bfa;
    padding: 3rem;
    grid-column: 1 / -1;
}

body.light-mode .news-loading {
    color: #6366f1;
}

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

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

