
/* =====================================================
   NGWANE ENTERPRISE
   PREMIUM TECHNOLOGY WEBSITE
   Navy | Electric Blue | Silver Grey
===================================================== */


/* 1. BRAND COLOURS */

:root {
    --navy: #03152F;
    --dark-navy: #020B19;
    --blue: #087FF5;
    --light-blue: #36A5FF;
    --silver: #AEB8C5;
    --grey: #64748B;
    --light-grey: #EDF2F8;
    --white: #FFFFFF;

    --gradient-blue: linear-gradient(135deg, #087FF5, #36A5FF);
    --gradient-dark: linear-gradient(135deg, #020B19, #03152F);

    --shadow: 0 15px 40px rgba(2, 11, 25, 0.15);
    --glow: 0 0 25px rgba(8, 127, 245, 0.35);

    --radius: 18px;
    --transition: 0.35s ease;
}


/* 2. RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light-grey);
    color: var(--navy);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}


/* 3. ANIMATED CIRCUIT BACKGROUND */

body {
    background-image:
        radial-gradient(circle at 10% 15%,
            rgba(8, 127, 245, 0.08), transparent 25%),
        radial-gradient(circle at 90% 80%,
            rgba(54, 165, 255, 0.07), transparent 25%),
        linear-gradient(rgba(8, 127, 245, 0.035) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(8, 127, 245, 0.035) 1px,
            transparent 1px);

    background-size:
        auto,
        auto,
        45px 45px,
        45px 45px;
}


/* 4. SHARED HEADER */

.site-header {
    width: 100%;
    min-height: 88px;
    padding: 15px 6%;
    background: rgba(2, 11, 25, 0.97);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(54, 165, 255, 0.2);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex-shrink: 0;
}

.brand-name {
    color: var(--white);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-subtitle {
    color: var(--light-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
}


/* 5. DESKTOP NAVIGATION */

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 12px 13px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    background: var(--light-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-link:hover {
    color: var(--light-blue);
}

.nav-link:hover::after {
    transform: scaleX(1);
}


/* ANIMATED NAVIGATION ICONS */

.nav-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--light-blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition),
                filter var(--transition);
}

.nav-link:hover svg {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 6px var(--light-blue));
}


/* 6. HAMBURGER BUTTON */

.menu-toggle {
    display: none;
    width: 45px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 1px solid rgba(54, 165, 255, 0.5);
    border-radius: 9px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(8, 127, 245, 0.15);
    box-shadow: var(--glow);
}

.menu-toggle.is-active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}


/* 7. HERO SECTION */

.hero {
    min-height: 650px;
    padding: 90px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 40%,
            rgba(8, 127, 245, 0.25), transparent 35%),
        var(--gradient-dark);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(54, 165, 255, 0.07) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(54, 165, 255, 0.07) 1px,
            transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to right, black, transparent);
    animation: circuitMove 18s linear infinite;
}

.hero-text,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    animation: fadeUp 1s ease both;
}

.welcome {
    display: inline-block;
    color: var(--light-blue);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.12;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: var(--light-blue);
}

.hero h2 {
    font-size: 1.35rem;
    color: var(--silver);
    margin-bottom: 18px;
}

.hero p {
    max-width: 550px;
    color: #D6E1EF;
    margin-bottom: 30px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-laptop {
    width: 100%;
    max-width: 580px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    animation: floatImage 5s ease-in-out infinite;
}


/* 8. BUTTONS */

.hero-buttons,
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.main-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 25px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    background: var(--gradient-blue);
    color: var(--white);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 7px 20px rgba(8, 127, 245, 0.2);
}

.main-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
    background: var(--blue);
}

.main-button:active {
    transform: scale(0.97);
}


/* 9. ABOUT SECTION */

.about {
    padding: 100px 8%;
    background: var(--white);
    position: relative;
}

.about-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.about-content > span,
.section-heading > span {
    display: inline-block;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.about h2,
.section-heading h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 22px;
}

.about p {
    color: var(--grey);
    margin-bottom: 28px;
}


/* 10. SERVICES SECTION */

.services {
    padding: 100px 7%;
    background:
        radial-gradient(circle at 10% 10%,
            rgba(8, 127, 245, 0.07), transparent 30%),
        var(--light-grey);
}

.section-heading {
    max-width: 700px;
    text-align: center;
    margin: 0 auto 50px;
}

.section-heading p {
    color: var(--grey);
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    padding: 35px 25px;
    background: var(--white);
    border: 1px solid rgba(8, 127, 245, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(2, 11, 25, 0.06);
    transition: transform var(--transition),
                box-shadow var(--transition),
                border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue);
    box-shadow: var(--shadow), var(--glow);
}

.service-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(8, 127, 245, 0.1);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(-5deg) scale(1.1);
    background: rgba(8, 127, 245, 0.18);
}

.service-card h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--grey);
    font-size: 0.95rem;
}

.services-link {
    text-align: center;
    margin-top: 45px;
}


/* 11. ONLINE SHOP SECTION */

.home-shop {
    padding: 90px 7%;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%,
            rgba(54, 165, 255, 0.22), transparent 30%),
        var(--gradient-dark);
}

.home-shop-content {
    max-width: 750px;
    margin: auto;
}

.home-shop-content > span {
    color: var(--light-blue);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.home-shop h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.25;
    margin: 18px 0;
}

.home-shop h2 strong {
    display: block;
    color: var(--light-blue);
}

.home-shop p {
    color: #D6E1EF;
    margin-bottom: 28px;
}


/* 12. HOUSE CALL SECTION */

.home-house-calls {
    padding: 80px 7%;
    text-align: center;
    background: var(--white);
}

.home-house-calls h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-bottom: 15px;
}

.home-house-calls p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: var(--grey);
}


/* 13. CONTACT CALL TO ACTION */

.contact {
    padding: 90px 7%;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 80%,
            rgba(8, 127, 245, 0.22), transparent 35%),
        var(--navy);
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.contact p {
    max-width: 700px;
    color: #D6E1EF;
    margin: 0 auto 30px;
}

.contact-buttons {
    justify-content: center;
}


/* 14. FOOTER */

footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: 65px 7% 20px;
    border-top: 1px solid rgba(54, 165, 255, 0.25);
}

.footer-content {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 45px;
}

.footer-brand h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--silver);
    margin-bottom: 8px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--light-blue);
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--silver);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--light-blue);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1250px;
    margin: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(174, 184, 197, 0.2);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--silver);
    font-size: 0.85rem;
}


/* 15. ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes circuitMove {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 55px 55px, 55px 55px;
    }
}


/* 16. TABLET RESPONSIVENESS */

@media (max-width: 1000px) {
    .hero {
        gap: 30px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .service-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-link {
        padding: 10px 8px;
        font-size: 0.88rem;
    }

    .site-nav {
        gap: 5px;
    }
}


/* 17. MOBILE NAVIGATION */

@media (max-width: 768px) {

    .site-header {
        min-height: 75px;
        padding: 12px 5%;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        font-size: 0.68rem;
    }

    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 15px 5% 25px;
        background: rgba(2, 11, 25, 0.99);
        border-top: 1px solid rgba(54, 165, 255, 0.2);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);

        transition: opacity var(--transition),
                    transform var(--transition),
                    visibility var(--transition);

        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
    }

    /* Works with either common open class */
    .site-nav.is-open,
    .site-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        padding: 13px 10px;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: rgba(8, 127, 245, 0.12);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 75px 6%;
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 650px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-laptop {
        max-width: 500px;
    }

    .about,
    .services {
        padding: 75px 6%;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* 18. SMALL ANDROID PHONES */

@media (max-width: 480px) {

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero-buttons,
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .main-button,
    .contact-buttons .main-button {
        width: 100%;
    }

    .service-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 22px;
    }

    .home-shop,
    .home-house-calls,
    .contact {
        padding: 65px 6%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* 19. ACCESSIBILITY: REDUCE MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .nav-link.current-page {
    color: var(--light-blue);
}

.nav-link.current-page svg {
    filter: drop-shadow(0 0 6px var(--light-blue));
}

/* REVIEW STAR RATING ACCESSIBILITY */

.star-rating-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.star-rating-fieldset legend {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--navy);
}
}