/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 255, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #00f;
}

.navbar .search {
    display: flex;
    align-items: center;
}

.navbar .search input {
    padding: 8px 12px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.navbar .search button {
    padding: 8px 16px;
    background: #00f;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.navbar .search button:hover {
    background: #0056b3;
}

/* Hamburger Button Styling */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Nav Menu Styling */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Nav Links Styling */
.nav-links {
    display: flex;
    list-style: none;
}

/* Logo Styling */
.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

/* Desktop Layout */
@media (min-width: 769px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav-menu {
        display: flex;
        width: auto;
    }
    .nav-links {
        display: flex;
        margin-right: 20px;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .hamburger {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 20px;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .search {
        margin-top: 20px;
        text-align: center;
    }
}

/* Blog Posts Section */
.blog-posts {
    padding: 40px 0;
}

.blog-posts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.sort-options {
    text-align: center;
    margin-bottom: 30px;
}

.sort-options label {
    margin-right: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.sort-options select {
    padding: 8px 12px;
    border-radius: 5px;
    background: #2c3e50;
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sort-options select:hover {
    background: #3b5670;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

.post-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 255, 0.2);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(80%);
    transition: transform 0.3s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease, background 0.3s ease;
}

.post-card:hover .post-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.post-card h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.post-card .date {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 5px;
    font-style: italic;
}

.post-card .excerpt {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.post-card .read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #00f;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.post-card .read-more:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.pagination a.active {
    background: #00f;
}

.pagination a:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/mainimage.png') no-repeat center/cover;
    padding: 100px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 20px 0;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: #00f;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Blog Post Page */
.blog-post {
    padding: 40px 0;
}

.blog-post .meta {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
}

.blog-post .post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-post .content {
    margin-bottom: 20px;
}

.blog-post h3 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
}

/* About Page */
.about {
    padding: 40px 0;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.about p {
    margin-bottom: 15px;
}

.about h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
}

.about .skills {
    list-style: none;
    margin-bottom: 20px;
}

.about .skills li {
    margin-bottom: 10px;
}

/* Contact Page */
.contact {
    padding: 40px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact p {
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #2c3e50;
    color: #fff;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    height: 150px;
}

.contact-form button {
    padding: 10px;
    background: #00f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #0056b3;
}

/* Privacy, Disclaimer, Advertise Pages */
.privacy,
.disclaimer,
.advertise {
    padding: 40px 0;
}

.privacy h2,
.disclaimer h2,
.advertise h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.privacy p,
.disclaimer p,
.advertise p {
    margin-bottom: 15px;
}

.privacy h3,
.disclaimer h3,
.advertise h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
}

.privacy ul,
.advertise ul {
    list-style: none;
    margin-bottom: 20px;
}

.privacy ul li,
.advertise ul li {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 255, 0.3);
}

.footer .footer-links a,
.footer .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer .footer-links a:hover,
.footer .social-links a:hover {
    color: #00f;
}

.footer p {
    margin: 5px 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-posts h2 {
        font-size: 2rem;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .post-card img {
        height: 180px;
    }
    .post-overlay {
        padding: 10px;
    }
    .post-card h3 {
        font-size: 1.4rem;
    }
    .post-card .excerpt {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .post-card img {
        height: 220px;
    }
}