/*
Theme Name: Hello World Animation Theme (Bootstrap 5)
Theme URI: https://example.com/hello-world-theme
Author: Your Name
Author URI: https://example.com
Description: A beautiful WordPress theme featuring an animated "Hello World" with modern design, smooth animations, and Bootstrap 5 framework.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-world-theme
Tags: animation, modern, minimal, bootstrap, custom-background, custom-colors
*/

/* Custom styles that work with Bootstrap 5 */

/* Hero Section with Animation */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    text-align: center;
    z-index: 10;
}

.animated-title {
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    margin-bottom: 2rem;
}

.animated-title span {
    display: inline-block;
    opacity: 0;
    animation: bounceIn 0.6s ease-out forwards;
}

.animated-title span:nth-child(1) { animation-delay: 0.1s; }
.animated-title span:nth-child(2) { animation-delay: 0.2s; }
.animated-title span:nth-child(3) { animation-delay: 0.3s; }
.animated-title span:nth-child(4) { animation-delay: 0.4s; }
.animated-title span:nth-child(5) { animation-delay: 0.5s; }
.animated-title span:nth-child(6) { animation-delay: 0.6s; }
.animated-title span:nth-child(7) { animation-delay: 0.7s; }
.animated-title span:nth-child(8) { animation-delay: 0.8s; }
.animated-title span:nth-child(9) { animation-delay: 0.9s; }
.animated-title span:nth-child(10) { animation-delay: 1s; }
.animated-title span:nth-child(11) { animation-delay: 1.1s; }

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

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

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 2s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: 0.8s; }
.particle:nth-child(8) { left: 80%; top: 25%; animation-delay: 1.3s; }
.particle:nth-child(9) { left: 90%; top: 65%; animation-delay: 1.8s; }
.particle:nth-child(10) { left: 15%; top: 45%; animation-delay: 2.3s; }

/* Content Section */
.content-section {
    padding: 4rem 0;
}

/* Bootstrap Navbar Customization */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea !important;
}

.nav-link {
    color: #333 !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link:focus {
    color: #667eea !important;
}

/* Post Cards with Bootstrap */
.post-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-excerpt {
    color: #555;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #667eea;
}

/* Single Post & Page Styles */
.single-post,
.single-page {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .animated-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .entry-title {
        font-size: 2rem;
    }
}