* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #0f0f0f;
    color: white;
    line-height: 1.5;
}

/* ===== NAVBAR ===== */
header {
    position: fixed;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 30px;
    font-weight: 800;
    color: #E10600;
    letter-spacing: 1px;
}

.logo img {
    display: none;
    height: 40px;
    width: auto;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    font-weight: 500;
    display: inline-block;
}

nav a:hover {
    color: #E10600;
}

/* Right-side header stack: contact icons on top, nav links below. */
.nav-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.menu-toggle {
    display: none;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Faded header contact icons that turn Orakel red on hover. */
.header-contact {
    position: absolute;
    top: 8px;
    right: 8%;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.45;
    transition: 0.25s;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-icon:hover {
    color: #E10600;
    opacity: 1;
}

/* ===== HERO WITH PARTICLES CANVAS ===== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    background: radial-gradient(circle at 20% 20%, #121212 0%, #060606 55%, #000 100%);
}

.hero h1 {
    font-size: 60px;
    max-width: 700px;
    font-weight: 800;
    line-height: 1.1;
}

.hero span {
    color: #E10600;
}

.hero p {
    margin-top: 20px;
    color: #ccc;
    max-width: 600px;
    font-size: 18px;
}

.hero button {
    margin-top: 30px;
    padding: 14px 35px;
    border: none;
    background: #E10600;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.hero button:hover {
    background: #b80400;
    transform: scale(1.05);
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 8%;
    text-align: center;
}

.services h2 {
    font-size: 40px;
    margin-bottom: 60px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    transition: 0.4s;
    border: 1px solid transparent;
}

.card:hover {
    border: 1px solid #E10600;
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 15px;
}

/* ===== STATS ===== */
.stats {
    padding: 80px 8%;
    display: flex;
    justify-content: space-around;
    background: #111;
    text-align: center;
}

.stats h3 {
    font-size: 35px;
    color: #E10600;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 8%;
    text-align: center;
}

.contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    border: none;
}

.contact button {
    padding: 12px;
    border: none;
    background: #E10600;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.contact button:hover {
    background: #b80400;
}

footer {
    text-align: center;
    padding: 20px;
    background: black;
    color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
    /* Mobile header layout: left toggle, centered branding row, right-aligned icons. */
    header {
        padding: 14px 5%;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .menu-toggle {
        display: inline-block;
        margin-left: 0;
        margin-right: 10px;
        order: 1;
    }

    .nav-group {
        order: 3;
        width: 100%;
        align-items: flex-end;
        gap: 10px;
    }

    .header-contact {
        top: 50%;
        right: 5%;
        transform: translateY(-50%);
        gap: 8px;
    }

    .logo {
        order: 2;
    }

    .contact-icon {
        opacity: 0.55;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .contact-icon svg {
        width: 25px;
        height: 25px;
    }

    nav {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 8px;
        border-top: 1px solid #252525;
        padding-top: 10px;
    }

    header.nav-open nav {
        display: flex;
    }

    nav a {
        margin-left: 0;
        padding: 8px 0;
    }

    .hero {
        padding: 110px 5% 70px;
        justify-content: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero button {
        width: 100%;
        max-width: 280px;
    }

    .services,
    .stats,
    .contact {
        padding: 70px 5%;
    }

    .services h2,
    .contact h2 {
        font-size: 32px;
        margin-bottom: 35px;
    }

    .card {
        padding: 28px 22px;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width:500px){
    /* Swap text logo for image logo on smaller phones. */
    .logo-text {
        display: none;
    }

    .logo img {
        display: block;
        height: 52px;
    }
}

@media(max-width:480px){
    /* Tighten hero typography and CTA sizing on very small screens. */
    .logo img {
        height: 46px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero button {
        max-width: none;
    }
}

/* Full-bleed background canvas anchored behind hero content. */
#home-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
}

/* Keep hero text/button above the particle canvas layer. */
.hero > :not(#home-particles) {
    position: relative;
    z-index: 1;
}

