/* Futuristic Design Overhaul */

:root {
    --bg-color: #050510;
    /* Deep Space Black */
    --card-bg: rgba(25, 30, 50, 0.6);
    /* Glassmorphism Base */
    --text-primary: #e0faff;
    --text-secondary: #a0aab5;
    --accent-color: #00f3ff;
    /* Cyber Cyan */
    --accent-hover: #00c3cc;
    --accent-secondary: #bc13fe;
    /* Neon Purple */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --glow-text: 0 0 5px rgba(0, 243, 255, 0.5), 0 0 10px rgba(0, 243, 255, 0.3);
    --glow-box: 0 0 15px rgba(0, 243, 255, 0.2);
    --border-neon: 1px solid rgba(0, 243, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 20%);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--glow-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: var(--glow-text);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent-color);
    opacity: 1;
    text-shadow: var(--glow-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    bottom: -5px;
    left: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
    box-shadow: 0 0 5px var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(5, 5, 16, 0.8), rgba(5, 5, 16, 0.8)), url('https://images.unsplash.com/photo-1498038432885-c6f3f1b912ee?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    margin-bottom: 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(0, 243, 255, 0.1) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: shine 5s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    position: relative;
    display: inline-block;
}

/* Glitch Effect optional or simplified */
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Latest Posts (Index) */
.latest-posts {
    padding: 50px 0 100px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

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

.post-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover::before {
    opacity: 1;
}

.post-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 16, 0.9), transparent);
}

.post-content {
    padding: 25px;
}

.post-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-meta::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-secondary);
}

/* Single Post (Blog) */
.blog-post {
    padding: 80px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-header h1 {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.post-header .meta {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 1.1rem;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2 {
    color: rgb(171, 213, 230);
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 2.2rem;
    border-left: 4px solid var(--accent-secondary);
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(171, 213, 230, 0.1), transparent);
}

/* Footer */
footer {
    background-color: #020205;
    padding: 60px 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5, 5, 16, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(0, 243, 255, 0.1);
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .post-header h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: 70vh;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 380px) {
    .section-title {
        font-size: 1.7rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}

.site-footer {
    padding: 100px 0;
    background: #0a0c0f;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-l);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-s);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-m);
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-group h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.link-group a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    height: 100px;
    width: 100px;
    align-items: center;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    color: var(--text-main);
}