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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform-origin: center center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#main-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 3px;
    animation: titlePulse 3s ease-in-out infinite;
}

#main-subtitle {
    font-size: 1.8rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 2px;
}

@keyframes titlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-text {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-arrow span {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.7;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0.4;
}

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

.news-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 4rem 2rem 8rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.news-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.clock-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1.5rem 2.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.clock-time {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
                 0 0 20px rgba(102, 126, 234, 0.6),
                 0 0 30px rgba(102, 126, 234, 0.4),
                 0 0 40px rgba(102, 126, 234, 0.2);
    letter-spacing: 4px;
}

.clock-ampm {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(102, 126, 234, 0.9);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

.clock-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1.5rem;
    border-left: 2px solid rgba(102, 126, 234, 0.4);
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.7;
    padding: 2rem;
}

.daily-summary {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

.summary-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: iconBounce 2s ease-in-out infinite;
}

.summary-content {
    padding: 1rem 2rem 2rem;
    line-height: 1.8;
}

.summary-content p {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    transition: all 0.3s ease;
}

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

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.news-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.news-title-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.3s;
    line-height: 1.5;
    cursor: pointer;
}

.news-title-link:hover {
    color: #667eea;
    opacity: 0.8;
}

.news-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.news-content h1,
.news-content h2,
.news-content h3 {
    color: #667eea;
    margin: 1rem 0 0.5rem;
    font-size: 1.4rem;
}

.news-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.news-content ul,
.news-content ol {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.4rem;
}

.news-content code {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.news-content strong {
    color: #667eea;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 1;
    z-index: 100;
    height: 20px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    text-decoration: underline;
    color: #764ba2;
}

@media (max-width: 768px) {
    #main-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    #main-subtitle {
        font-size: 1.4rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .news-section h2 {
        font-size: 2rem;
    }

    .clock-widget {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .clock-time {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .clock-ampm {
        font-size: 1rem;
    }

    .clock-date {
        font-size: 0.85rem;
    }

    .summary-title {
        font-size: 1.2rem;
        padding: 1rem 1.5rem 0.8rem;
    }

    .summary-content {
        padding: 0.8rem 1.5rem 1.5rem;
    }

    .summary-content p {
        font-size: 1rem;
    }

    .news-item {
        padding: 1.2rem;
    }

    .news-content h1,
    .news-content h2,
    .news-content h3 {
        font-size: 1.2rem;
    }

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

    .scroll-arrow span {
        width: 20px;
    }
}