* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.header {
    background: rgba(28, 37, 38, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.scrolled {
    transform: translateY(0);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 2em;
    letter-spacing: 4px;
    color: #ff4081;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo h1:hover {
    color: #ff80ab;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-button {
    color: #ff4081;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-button:hover {
    color: #ff80ab;
    text-decoration: underline;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 30px;
    height: 4px;
    background: #f5f5f5;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.intro {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('Main\ BG.jpeg') no-repeat center/cover;
    margin: 80px 0 40px;
    padding: 40px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.intro .container {
    position: relative;
    z-index: 2;
    background: rgba(30, 30, 30, 0.7);
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
}

.intro h2 {
    font-size: 2.5em;
    color: #ff4081;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.intro p {
    font-size: 1.2em;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
}

.blog-section {
    padding: 40px 0;
}

.search-bar {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.search-bar input {
    flex: 0 0 auto;
    width: 300px;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #333;
    border-radius: 25px;
    background: #222;
    color: #f5f5f5;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar input:focus {
    border-color: #ff4081;
    box-shadow: 0 0 8px rgba(255, 64, 129, 0.3);
    outline: none;
}

.sort-dropdown select {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #333;
    border-radius: 25px;
    background: #222;
    color: #f5f5f5;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sort-dropdown select:focus {
    border-color: #ff4081;
    box-shadow: 0 0 8px rgba(255, 64, 129, 0.3);
    outline: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.blog-card {
    background: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.3);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content .date {
    color: #ff4081;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.6em;
    color: #f5f5f5;
    margin-bottom: 10px;
}

.blog-content p {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 1em;
}

.blog-content a {
    color: #ff4081;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-content a:hover {
    color: #ff80ab;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 15px;
    border: none;
    background: #1c2526;
    color: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pagination button:hover {
    background: #ff4081;
    transform: translateY(-2px);
}

.pagination button.active {
    background: #ff4081;
    transform: scale(1.05);
}

.pagination button:disabled {
    background: #333;
    cursor: not-allowed;
    transform: none;
}

.footer {
    background: #1c2526;
    padding: 40px 20px;
    border-top: 2px solid #ff4081;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-column.logo-column {
    margin: 0;
    padding: 0;
}

.footer-column:not(.logo-column) {
    margin-left: 15px;
}

.footer-column h3 {
    font-size: 1.3em;
    color: #ff4081;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-column p {
    color: #cccccc;
    font-size: 1em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ff4081;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ff80ab;
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .logo h1 {
        font-size: 1.8em;
        letter-spacing: 3px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -50%;
        width: 50%;
        height: 100vh;
        background: rgba(28, 37, 38, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-button {
        padding: 15px;
        font-size: 1.2em;
    }

    .nav-toggle {
        display: flex;
    }

    .intro {
        padding: 30px 15px;
        margin: 70px 0 30px;
    }

    .intro h2 {
        font-size: 2em;
    }

    .intro .container {
        padding: 15px;
    }

    .search-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar input {
        width: 100%;
        max-width: 400px;
    }

    .sort-dropdown select {
        width: 100%;
        max-width: 400px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column:not(.logo-column) {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5em;
        letter-spacing: 2px;
    }

    .intro {
        padding: 20px 10px;
        margin: 60px 0 20px;
    }

    .intro h2 {
        font-size: 1.8em;
    }

    .intro p {
        font-size: 1em;
    }

    .search-bar input,
    .sort-dropdown select {
        max-width: 100%;
        font-size: 0.9em;
        padding: 10px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card img {
        height: 180px;
    }

    .blog-content h3 {
        font-size: 1.4em;
    }

    .pagination button {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}