/* =====================================================
   General Styles
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0e0e0e;
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 20px;
    color: #00d1ff;
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #cccccc;
}

.btn {
    display: inline-flex;
    align-items: center;
    background-color: #00d1ff;
    color: #0e0e0e;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    margin-top: 20px;
}

.btn:hover {
    background-color: #009bbd;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================================================
   Preloader
   ===================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0e0e0e;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #00d1ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   Particles.js Background
   ===================================================== */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #0e0e0e;
}

/* =====================================================
   Navigation
   ===================================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 14, 14, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d1ff;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu li a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: #00d1ff;
}

/* Mobile Menu */

.menu-icon {
    display: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 60px;
        right: -100%;
        height: 100vh;
        width: 200px;
        background: rgba(14, 14, 14, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .menu li {
        margin: 20px 0;
    }

    .menu-icon {
        display: block;
    }

    #menu-toggle:checked ~ .menu {
        right: 0;
    }
}

/* =====================================================
   Home Section
   ===================================================== */

#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

#home h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#home p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

#home .btn {
    background-color: #ff4081;
    color: #ffffff;
}

#home .btn:hover {
    background-color: #e73370;
}

/* =====================================================
   About Section
   ===================================================== */

#about {
    background: rgba(255, 64, 129, 0.1);
    border-left: 4px solid #ff4081;
    position: relative;
    z-index: 1;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* =====================================================
   Blog Section
   ===================================================== */

#blog {
    background: rgba(0, 209, 255, 0.05);
    border-right: 4px solid #00d1ff;
    position: relative;
    z-index: 1;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-post {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.blog-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-post h3 {
    margin: 15px 0 10px 0;
    color: #ff4081;
}

.blog-post p {
    font-size: 0.95rem;
    color: #cccccc;
}

.search-container {
    text-align: center;
    margin-top: 20px;
}

.search-container input {
    padding: 10px 15px;
    width: 80%;
    max-width: 400px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    background: #2a2a2a;
    color: #ffffff;
}

.search-container input::placeholder {
    color: #999999;
}

.see-all-container {
    text-align: center;
    margin-top: 30px;
}

/* =====================================================
   Contact Section
   ===================================================== */

#contact {
    background: rgba(255, 64, 129, 0.05);
    border-left: 4px solid #ff4081;
    position: relative;
    z-index: 1;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

#contact p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.form-message {
    margin-top: 10px;
    font-size: 1rem;
    color: #ff4081;
}

/* =====================================================
   Overlay
   ===================================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 14, 14, 0.95);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

.overlay-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.overlay-content h3 {
    color: #ff4081;
    margin-bottom: 15px;
}

.overlay-content p {
    color: #cccccc;
    line-height: 1.6;
}

.close-overlay {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}

.post-content {
    margin-top: 20px;
}

/* Optional: Style headings and other elements within post-content */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #00d1ff; /* Added color for headings in post-content */
}

.post-content p {
    margin-bottom: 15px;
    color: #cccccc;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
}

.post-content blockquote {
    border-left: 4px solid #00d1ff;
    padding-left: 10px;
    color: #555555;
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.post-content li {
    margin-bottom: 10px;
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
    background: rgba(14, 14, 14, 0.9);
    text-align: center;
    padding: 20px;
    color: #ffffff;
}

.footer .social-icons {
    margin-top: 10px;
}

.footer .social-icons a {
    margin: 0 10px;
    color: #ffffff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #00d1ff;
}

/* =====================================================
   Back to Top Button
   ===================================================== */

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #00d1ff;
    color: #0e0e0e;
    padding: 12px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#backToTop:hover {
    background-color: #009bbd;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */

@media (max-width: 480px) {
    #home h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 8px 16px;
    }

    .blog-post img {
        height: 120px;
    }

    .contact-form {
        padding: 20px;
    }

    .overlay-content {
        padding: 20px;
    }

    .close-overlay {
        top: 10px;
        right: 15px;
    }
}
