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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #05070a;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- Header Styles --- */
header {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 24px;
    min-height: 120px;
    padding: 18px clamp(24px, 5vw, 72px);
    background-color: #05070a;
    border-bottom: 1px solid rgba(185, 224, 32, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Logo Image styling */
.header-logo {
    width: clamp(170px, 15vw, 230px);
    height: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: clamp(18px, 2vw, 34px);
}

nav ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    color: #b8bec8;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: #b9e020;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

nav ul li.active a,
nav ul li a:hover {
    color: #b9e020;
}

nav ul li.active a::after,
nav ul li a:hover::after {
    transform: scaleX(1);
}

nav ul li a:focus-visible,
.btn-outline-black:focus-visible,
.menu-circle:focus-visible {
    outline: 2px solid #b9e020;
    outline-offset: 4px;
}

nav ul li a:active {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-outline-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #b9e020;
    color: #b9e020;
    min-height: 42px;
    padding: 0 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.btn-outline-black:hover {
    background-color: #b9e020;
    color: #05070a;
    border-color: #b9e020;
}

.menu-circle {
    background: #0066ff;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* --- Blog Hero Section --- */
.blog-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 85vh;
    padding: 60px 10%;
    position: relative;
}

.blog-hero-content {
    max-width: 50%;
    z-index: 2;
}

.tagline {
    color: #9acd00;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

.blog-hero-content h1 {
    font-size: 58px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.highlight-green { color: #9acd00; }
.highlight-blue { color: #1e74f5; }

.blog-hero-content p {
    font-size: 17px;
    color: #c8d0dc;
    line-height: 1.6;
    font-weight: 400;
}

/* --- Hero Graphic Container --- */
.blog-hero-graphic-wrapper {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Image styling */
.hero-illustration {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* Optional: Add a drop shadow to give the 3D image presence on the dark background */
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    header {
        grid-template-columns: 1fr auto;
        min-height: 88px;
        padding: 12px 20px;
    }

    .header-logo {
        width: 160px;
    }

    nav {
        display: block;
        grid-column: 1 / -1;
        order: 3;
    }

    nav ul {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: rgba(5, 7, 10, 0.98);
        border: 1px solid rgba(185, 224, 32, 0.18);
        border-radius: 8px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        width: 100%;
        min-height: 46px;
        padding: 0 10px;
    }

    nav ul li a::after {
        left: 10px;
        right: auto;
        width: 42px;
    }

    .btn-outline-black {
        min-height: 40px;
        padding: 0 18px;
    }

    .menu-circle {
        display: flex;
    }

    .blog-hero { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 20px; 
        min-height: auto;
        gap: 40px;
    }
    .blog-hero-content { 
        max-width: 100%; 
    }
    .blog-hero-content p { 
        margin: 0 auto; 
    }
    .blog-hero-graphic-wrapper { 
        width: 80%; 
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    header {
        min-height: 76px;
        padding: 10px 16px;
    }

    .header-logo {
        width: 132px;
    }

    .btn-outline-black {
        display: none;
    }

    nav ul {
        left: 16px;
        right: 16px;
    }
}

/* cards section */

/* ================= BLOG GRID SECTION ================= */
.blog-grid-section {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Blog Filter Nav */
.blog-filter-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-filter-btn {
    background-color: transparent;
    border: 1px solid #1f2a3a;
    color: #a0aab8;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-btn:hover {
    border-color: #9acd00;
    color: #ffffff;
}

.blog-filter-btn.active {
    background-color: #9acd00;
    border-color: #9acd00;
    color: #000000;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

/* Blog Card */
.blog-card {
    background-color: #0f1622;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1f2a3a;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #05080e;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 22px 22px 25px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tag {
    color: #9acd00;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-card-body h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card-body p {
    color: #c8d0dc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    border-top: 1px solid #1f2a3a;
    padding-top: 15px;
    margin-top: auto;
}

.blog-meta span {
    color: #a0aab8;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    width: 14px;
    height: 14px;
    stroke: #a0aab8;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
/* ==============footer section===*/
/* ================= NEWSLETTER SECTION ================= */
.newsletter-section {
    position: relative;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto 80px auto;
    padding: 35px 40px;
    background-color: #080d18; /* Slightly lighter dark background for contrast */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

/* Recreating the left and right paint strokes using CSS */
.stroke-left, .stroke-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    pointer-events: none;
    z-index: 1;
}
.stroke-left {
    left: 0;
    background: radial-gradient(circle at 0% 50%, rgba(154, 205, 0, 0.3) 0%, transparent 70%);
    filter: blur(15px);
}
.stroke-right {
    right: 0;
    background: radial-gradient(circle at 100% 50%, rgba(30, 116, 245, 0.3) 0%, transparent 70%);
    filter: blur(15px);
}
/* Add a secondary sharper stroke overlay */
.stroke-left::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(154, 205, 0, 0.1) 10px, rgba(154, 205, 0, 0.1) 12px);
    transform: skewX(-20deg);
}
.stroke-right::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(30, 116, 245, 0.1) 10px, rgba(30, 116, 245, 0.1) 12px);
    transform: skewX(20deg);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    gap: 30px;
}

/* Plane Icon */
.plane-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plane-icon {
    width: 48px;
    height: 48px;
    transform: rotate(-15deg);
}

/* Text Area */
.newsletter-text {
    flex-grow: 1;
}
.newsletter-text h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.newsletter-text p {
    color: #a0aab8;
    font-size: 14px;
}

/* Form Area */
.newsletter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.newsletter-form input {
    background: transparent;
    border: 1px solid #2a3441;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    width: 220px;
    outline: none;
    transition: border-color 0.3s ease;
}
.newsletter-form input::placeholder {
    color: #6b7a90;
}
.newsletter-form input:focus {
    border-color: #9acd00;
}

.newsletter-form button {
    background-color: #9acd00;
    border: none;
    color: #000000;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.newsletter-form button:hover {
    background-color: #b0e610;
    transform: scale(1.02);
}

/* Responsive Newsletter */
@media (max-width: 992px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .plane-icon {
        width: 40px;
        height: 40px;
    }
    .newsletter-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form input {
        width: 100%;
    }
    .stroke-left, .stroke-right {
        width: 80px;
    }
}
