/*
Theme Name: 0days-x
Theme URI: https://0days-x.com
Author: Hammaad
Author URI: https://0days-x.com
Description: SOC Automation Platform WordPress Theme (Cybersecurity UI)
Version: 1.2
Text Domain: 0days-x
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0A0F1F;
    color: #E4E8FF;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    color: #5AC8FA;
    text-decoration: none;
}

a:hover {
    color: #89DDFF;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================== */
/* HEADER */
/* ============================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(10, 15, 31, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9999;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 42px;
}

/* Desktop Nav */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #E4E8FF;
    font-weight: 500;
    letter-spacing: 0.3px;
}

nav a:hover {
    color: #5AC8FA;
}

/* Header CTA */
.cta-header {
    background: #5AC8FA;
    color: #0A0F1F;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.25s;
}

.cta-header:hover {
    background: #89DDFF;
}

/* ============================== */
/* HERO SECTION */
/* ============================== */

.hero {
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A0F1F 0%, #11182E 60%, #0A0F1F 100%);
}

/* Animated Neon Grid */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(90, 200, 250, 0.07) 0%, rgba(0, 0, 0, 0.12) 100%),
        repeating-linear-gradient(to bottom,
            rgba(90, 200, 250, 0.12),
            rgba(90, 200, 250, 0.12) 1px,
            transparent 1px,
            transparent 40px);
    animation: pulse 6s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes pulse {
    0% {
        opacity: 0.15;
        transform: scale(1);
    }

    100% {
        opacity: 0.32;
        transform: scale(1.05);
    }
}

/* Floating Particle Dots */
.hero::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 200, 250, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.12;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-200px, -200px);
    }
}

.hero>.container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.hero p {
    margin: 20px auto;
    font-size: 1.2rem;
    max-width: 700px;
    opacity: 0.85;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn-primary {
    background: #5AC8FA;
    color: #0A0F1F;
}

.btn-primary:hover {
    background: #89DDFF;
}

.btn-secondary {
    border: 2px solid #5AC8FA;
    background: transparent;
    color: #5AC8FA;
}

.btn-secondary:hover {
    background: #13304B;
}

/* ============================== */
/* SECTION STYLES */
/* ============================== */

.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

/* Cards/Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #11182E;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.3s ease;
}

.card:hover {
    border-color: #5AC8FA;
    box-shadow: 0 0 20px rgba(90, 200, 250, 0.18);
}

.card h3 {
    font-size: 1.4rem;
    color: #5AC8FA;
    margin-bottom: 1rem;
}

/* ============================== */
/* FOOTER */
/* ============================== */

footer {
    background: #070B14;
    padding: 50px 0;
    margin-top: 50px;
    color: #7C859E;
}

footer h4 {
    color: #5AC8FA;
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================== */
/* MOBILE NAVIGATION */
/* ============================== */

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 28px;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    height: 3px;
    background: #5AC8FA;
    border-radius: 4px;
    width: 100%;
    transition: 0.3s;
}

@media(max-width:768px) {

    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Transform into X on open */
    .mobile-menu-open .mobile-menu-btn span:nth-child(1) {
        transform: rotate(45deg) translateY(9px);
    }

    .mobile-menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-open .mobile-menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translateY(-9px);
    }

    /* Slide-out mobile menu */
    #mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #0A0F1F;
        border-left: 1px solid rgba(255, 255, 255, 0.07);
        padding: 80px 30px;
        z-index: 99999;
        transition: 0.35s ease;
    }

    #mobile-menu.open {
        right: 0;
    }

    #mobile-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    #mobile-menu a {
        color: #E4E8FF;
        font-size: 1.2rem;
        font-weight: 500;
    }

    #mobile-menu a:hover {
        color: #5AC8FA;
        text-shadow: 0 0 10px rgba(90, 200, 250, 0.5);
    }
}

/* ============================== */
/* RESPONSIVE OVERRIDES */
/* ============================== */

@media(max-width:768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.05rem;
    }
}