* {
    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: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ecf0f1;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Hero Icons */
.hero-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.hero-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.hero-icon:hover::before {
    left: 100%;
}

.hero-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
}

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

.hero-icon span {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Category Sections */
.category-section {
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.category-section:nth-child(even) {
    background-color: #f8f9fa;
}

.category-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.category-intro:hover .section-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
}

/* Posts Section */
.posts-section {
    padding: 80px 0;
}

.posts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.filter-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.posts-section h2, .category-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
}

.category-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-header {
    padding: 1.5rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.post-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.post-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.post-content {
    padding: 1.5rem;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

/* About Section */
.about-section {
    background-color: #ecf0f1;
    padding: 80px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.about-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-section a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu.active {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container, .nav-container {
        padding: 0 15px;
    }
    
    .hero-icons {
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 1rem 15px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-logo h1 {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 20px 60px;
        background-attachment: scroll;
        margin-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 10px;
        margin-bottom: 2.5rem;
    }
    
    .hero-icons {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .hero-icon {
        padding: 1.2rem;
        width: 220px;
        max-width: 90%;
    }
    
    .hero-icon img {
        width: 48px;
        height: 48px;
    }
    
    /* Content Sections */
    .container {
        padding: 0 15px;
    }
    
    .category-intro {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-intro p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .category-section h2, .posts-section h2, .about-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Filter Buttons */
    .filter-buttons {
        gap: 0.5rem;
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        margin: 0 5px;
    }
    
    /* About Section */
    .about-section {
        padding: 60px 0;
    }
    
    .about-section p {
        padding: 0 15px;
        font-size: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .nav-logo h1 {
        font-size: 1rem;
    }
    
    .hero {
        padding: 100px 15px 50px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .hero-icon {
        width: 180px;
        padding: 1rem;
    }
    
    .hero-icon img {
        width: 40px;
        height: 40px;
    }
    
    .hero-icon span {
        font-size: 1rem;
    }
    
    .category-section h2, .posts-section h2, .about-section h2 {
        font-size: 1.6rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .post-header {
        padding: 1.2rem;
    }
    
    .post-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .post-content {
        padding: 1.2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .about-section p {
        padding: 0 10px;
    }
    
    footer {
        padding: 1.5rem 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}