/* ======================================================
   A&R ELECTRICAL ENGINEERING SERVICES
   COMPLETE FUTURISTIC STYLE CSS
====================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #050816;
    color: #ffffff;
    overflow-x: hidden;
    transition: .4s;
}

/* ===============================
   COLOR SYSTEM
================================ */
:root {
    --bg: #050816;
    --card: #101a33;
    --blue: #00c8ff;
    --gold: #ffc300;
    --white: #ffffff;
    --gray: #aeb6c1;
    --shadow: 0 0 30px rgba(0, 200, 255, .25);
}

/* ===============================
   LIGHT MODE
================================ */
body.light {
    background: #f4f6f9;
    color: #111;
}

body.light .card,
body.light .box,
body.light .review {
    background: white;
    color: #111;
}

body.light nav {
    background: rgba(255, 255, 255, .85);
}

body.light footer {
    background: #ddd;
    color: #222;
}

/* ===============================
   NAVIGATION
================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(5, 8, 22, .85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 200, 255, .2);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.slogan {
    font-size: 12px;
    font-weight: 300;
    color: var(--blue);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav ul a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}

nav ul a:hover {
    color: var(--blue);
}

#theme {
    background: var(--gold);
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
}

/* ===============================
   HERO SECTION
================================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 10%;
    background: linear-gradient(rgba(5, 8, 22, .75), rgba(5, 8, 22, .95)),
                url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero:before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: #00c8ff;
    filter: blur(180px);
    opacity: .25;
}

.hero div {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 65px;
    line-height: 1.2;
    font-weight: 700;
}

.hero span {
    display: block;
    color: #00c8ff;
    margin-top: 15px;
}

.hero p {
    max-width: 800px;
    margin: 30px auto;
    font-size: 20px;
    color: #aeb6c1;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 10px;
    border-radius: 50px;
    background: linear-gradient(45deg, #ffc300, #ff8800);
    color: black;
    text-decoration: none;
    font-weight: 700;
    transition: .4s;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #ffc300;
}

.whatsapp {
    background: linear-gradient(45deg, #25D366, #00ff88);
    color: white;
}

/* ===============================
   GENERAL SECTIONS
================================ */
section {
    padding: 100px 8%;
}

h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #ffc300;
}

p {
    line-height: 1.8;
}

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

.card {
    background: rgba(255, 255, 255, .08);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 200, 255, .25);
    backdrop-filter: blur(15px);
    transition: .4s;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 35px rgba(0, 200, 255, .35);
    border-color: #00c8ff;
}

.card i {
    font-size: 45px;
    color: #00c8ff;
    margin-bottom: 20px;
}

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

.about {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.box {
    background: rgba(255, 255, 255, .08);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 200, 255, .2);
    text-align: center;
}

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

.stats h3 {
    font-size: 40px;
    color: #00c8ff;
}

/* ===============================
   FORM STYLING
================================ */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input,
form textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 200, 255, .3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 15px;
}

form textarea {
    height: 120px;
    resize: vertical;
}

form button {
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: var(--gold);
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #ff8800;
}

/* ===============================
   FLOATING WHATSAPP
================================ */
.float-whatsapp {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    z-index: 999;
    box-shadow: 0 0 25px #25D366;
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===============================
   FOOTER
================================ */
footer {
    text-align: center;
    padding: 40px 8%;
    background: rgba(5, 8, 22, .95);
    border-top: 1px solid rgba(0, 200, 255, .2);
    line-height: 1.8;
}

footer h3 {
    color: var(--gold);
    margin-bottom: 5px;
}

footer .footer-slogan {
    color: var(--blue);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 10px;
}

footer .footer-badge {
    margin: 20px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .footer-badge img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tawk.to positioning */
iframe[title*="chat widget"] {
    z-index: 1000 !important;
}


/* CLICKABLE SERVICE & PROJECT CARDS */
.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.card-link .card {
    height: 100%;
    cursor: pointer;
}

.card-link .card h3,
.card-link .card p {
    color: inherit;
}

.card-link .card h3 {
    color: var(--gold);
}

.card-link:hover .card {
    transform: translateY(-12px);
    box-shadow: 0 0 35px rgba(0, 200, 255, .35);
    border-color: #00c8ff;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media(max-width: 900px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

    .about {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: row;
        justify-content: space-around;
    }

    h2 {
        font-size: 32px;
    }
}

@media(max-width: 500px) {
    .logo {
        font-size: 18px;
    }

    .btn {
        padding: 12px 25px;
    }

    .hero {
        padding-top: 140px;
    }

    .stats {
        flex-direction: column;
    }
}