
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f8ff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(270deg, #87ceeb, #4682b4, #87ceeb);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Enhanced Hero Section with Background Image */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/generated-image-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    animation: float 4s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    animation: fadeInUp 1.2s ease-out 0.4s both;
    font-weight: 300;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    animation: bounce 2s infinite;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
}

/* Posts Grid Section */
.posts-grid {
    margin: 4rem 0;
    padding: 2rem 0;
}

.posts-grid h2 {
    color: #4682b4;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}

.posts-grid h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #87ceeb, #4682b4);
    border-radius: 2px;
}

/* Enhanced Post Cards with Thumbnails */
.post-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87ceeb, #4682b4, #87ceeb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Post Thumbnail */
.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Category Badges */
.category {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.category.science {
    background: linear-gradient(135deg, #4169e1, #6495ed);
}

.category.tech {
    background: linear-gradient(135deg, #20b2aa, #48d1cc);
}

.category.news {
    background: linear-gradient(135deg, #ff6347, #ff7f7f);
}

.category.lifestyle {
    background: linear-gradient(135deg, #9370db, #ba55d3);
}

.category:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: pulse 0.6s ease;
}

/* Post Content */
.post-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: #4682b4;
}

.post-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.read-more {
    color: #4682b4;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #87ceeb;
    transition: width 0.3s ease;
}

.read-more:hover {
    color: #87ceeb;
    transform: translateX(5px);
}

.read-more:hover::after {
    width: 100%;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.features-section h2 {
    color: #4682b4;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    position: relative;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #87ceeb;
    border-radius: 2px;
}

.features-section div {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.features-section > div > div {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 1rem;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.features-section > div > div:nth-child(1) { animation-delay: 0.6s; }
.features-section > div > div:nth-child(2) { animation-delay: 0.8s; }
.features-section > div > div:nth-child(3) { animation-delay: 1.0s; }
.features-section > div > div:nth-child(4) { animation-delay: 1.2s; }

.features-section > div > div:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.features-section h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.features-section p {
    color: #666;
    line-height: 1.7;
}

/* About, Contact, Privacy Pages */
.page-content {
    background: white;
    padding: 3.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.page-content h2 {
    color: #4682b4;
    margin-bottom: 1.8rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #87ceeb;
    border-radius: 2px;
}

.page-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

/* Contact Form Enhanced */
.contact-form {
    max-width: 700px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1f5fe;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fbff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #87ceeb;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
    background: white;
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.submit-btn {
    background: linear-gradient(135deg, #87ceeb, #4682b4);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #4682b4, #87ceeb);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(70, 130, 180, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #87ceeb, #4682b4);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

footer .container {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .post-card {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .features-section div {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .features-section > div > div {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }
    
    .page-content,
    .contact-form {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .posts-grid h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .post-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .post-thumbnail {
        height: 160px;
    }
    
    .read-more {
        font-size: 1rem;
    }
}

/* Keyframe Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(135, 206, 235, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Performance Optimizations */
.post-card,
.features-section > div > div,
.page-content,
.contact-form {
    will-change: transform, opacity;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #87ceeb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4682b4;
}