/* =========================================================
   THE FABRICATOR - PREMIUM GLOBAL STYLE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0B5ED7;
    --secondary: #3B82F6;
    --dark: #0F172A;
    --dark2: #071426;
    --white: #FFFFFF;
    --light: #F5F8FC;
    --text: #64748B;
    --border: rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;

    /* Page entrance */
    animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   GLOBAL LINKS
   ========================================================= */

a {
    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   HEADER / HOME HERO
   ========================================================= */

header {
    min-height: 100vh;

    background:
        linear-gradient(
            120deg,
            rgba(5, 15, 30, 0.90),
            rgba(10, 25, 47, 0.68)
        ),
        url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=2000&q=85");

    background-size: cover;
    background-position: center;

    position: relative;

    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {

    from {
        background-size: 110%;
    }

    to {
        background-size: cover;
    }
}


/* =========================================================
   NAVBAR
   ========================================================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 7%;

    position: fixed;
    width: 100%;
    top: 0;
    left: 0;

    z-index: 1000;

    background: rgba(7, 20, 38, 0.78);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 5px 30px rgba(0,0,0,0.08);

    transition: 0.35s ease;
}

nav:hover {
    background: rgba(7, 20, 38, 0.92);
}


/* Logo */

nav h2 {
    color: var(--white);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -1px;
    white-space: nowrap;
}

nav h2 span {
    color: #4DA3FF;
}


/* Navigation */

nav ul {
    display: flex;
    align-items: center;

    list-style: none;

    gap: 28px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    position: relative;

    color: rgba(255,255,255,0.88);

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    padding: 8px 0;
}


/* Animated underline */

nav ul li a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -3px;

    width: 0;
    height: 2px;

    background: var(--secondary);

    transform: translateX(-50%);

    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #ffffff;
}

nav ul li a:hover::after {
    width: 100%;
}


/* =========================================================
   PREMIUM BUTTON
   ========================================================= */

.btn {
    position: relative;

    display: inline-block;

    padding: 12px 26px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color: white;

    text-decoration: none;

    border-radius: 40px;

    font-weight: 600;
    font-size: 14px;

    overflow: hidden;

    box-shadow:
        0 8px 22px rgba(11,94,215,0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background: rgba(255,255,255,0.25);

    transform: skewX(-25deg);

    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 130%;
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(11,94,215,0.35);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-left: 10%;
    padding-right: 8%;

    position: relative;
}


/* Hero content animation */

.hero-content {
    max-width: 700px;

    color: white;

    animation:
        heroContent 1.1s ease-out;
}

@keyframes heroContent {

    from {
        opacity: 0;
        transform: translateY(45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Hero heading */

.hero h1 {
    font-size: clamp(45px, 6vw, 72px);

    line-height: 1.08;

    margin-bottom: 24px;

    font-weight: 700;

    letter-spacing: -2px;

    text-shadow:
        0 10px 30px rgba(0,0,0,0.25);
}


/* Hero paragraph */

.hero p {
    font-size: 18px;

    line-height: 1.8;

    margin-bottom: 38px;

    color: #e5e7eb;

    max-width: 650px;
}


/* Hero button */

.hero-btn {
    display: inline-block;

    padding: 16px 34px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    text-decoration: none;

    border-radius: 40px;

    font-weight: 600;

    box-shadow:
        0 12px 30px rgba(11,94,215,0.30);

    transition: 0.35s ease;
}

.hero-btn:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(11,94,215,0.40);
}


/* =========================================================
   ABOUT HOME SECTION
   ========================================================= */

.about {
    padding: 110px 10%;

    text-align: center;

    background: white;
}

.about h4 {
    color: var(--primary);

    margin-bottom: 15px;

    letter-spacing: 3px;

    font-size: 13px;
}

.about h2 {
    font-size: 42px;

    color: var(--dark);

    margin-bottom: 22px;
}

.about p {
    max-width: 800px;

    margin: auto;

    line-height: 1.9;

    color: var(--text);
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
    padding: 110px 10%;

    background: var(--light);
}

.services h2 {
    text-align: center;

    font-size: 42px;

    margin-bottom: 60px;

    color: var(--dark);
}

.cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 30px;
}

.card {
    background: white;

    padding: 40px;

    border-radius: 16px;

    border-top: 4px solid var(--primary);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.07);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 25px 50px rgba(11,94,215,0.16);
}

.card h3 {
    margin-bottom: 18px;

    color: var(--dark);

    font-size: 21px;
}

.card p {
    line-height: 1.8;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    padding: 110px 10%;

    background: white;
}

.projects h2 {
    text-align: center;

    font-size: 42px;

    margin-bottom: 55px;

    color: var(--dark);
}

.gallery {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;
}

.box {
    height: 320px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 16px;

    background:
        linear-gradient(
            rgba(11,94,215,0.78),
            rgba(15,23,42,0.88)
        );

    color: white;

    font-size: 28px;

    font-weight: 600;

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;

    cursor: pointer;

    overflow: hidden;
}

.box:hover {
    transform:
        translateY(-10px)
        scale(1.02);

    box-shadow:
        0 25px 50px rgba(0,0,0,0.18);
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact {
    padding: 110px 10%;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #084298
        );

    color: white;
}

.contact h2 {
    font-size: 45px;

    margin-bottom: 20px;
}

.contact p {
    margin-bottom: 35px;

    color: rgba(255,255,255,0.85);
}

.contact a {
    display: inline-block;

    padding: 15px 35px;

    background: white;

    color: var(--primary);

    text-decoration: none;

    font-weight: 600;

    border-radius: 40px;

    transition: 0.35s ease;
}

.contact a:hover {
    background: var(--dark);

    color: white;

    transform: translateY(-4px);
}


/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */

.whatsapp-float {
    position: fixed;

    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    background: #25D366;

    color: white;

    border-radius: 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 28px;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.25);

    z-index: 9999;

    transition: 0.35s ease;

    animation:
        whatsappPulse 2.5s infinite;
}

@keyframes whatsappPulse {

    0%, 100% {
        box-shadow:
            0 8px 25px rgba(0,0,0,0.25);
    }

    50% {
        box-shadow:
            0 8px 30px rgba(37,211,102,0.55);
    }
}

.whatsapp-float:hover {
    transform:
        scale(1.12)
        translateY(-5px);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: var(--dark);

    color: rgba(255,255,255,0.65);

    text-align: center;

    padding: 30px;

    font-size: 14px;
}


/* =========================================================
   PAGE BANNER
   Works with About / Services / Projects / Contact
   ========================================================= */

.banner,
.page-banner {
    position: relative;

    overflow: hidden;

    animation:
        pageBannerIn 0.9s ease-out;
}

@keyframes pageBannerIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Banner heading animation */

.banner h1,
.page-banner h1 {
    animation:
        bannerHeading 1s ease-out;
}

@keyframes bannerHeading {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   ABOUT PAGE IMAGE
   ========================================================= */

.about-page img {
    transition:
        transform 0.6s ease,
        box-shadow 0.6s ease;
}

.about-page img:hover {
    transform: scale(1.035);

    box-shadow:
        0 25px 55px rgba(0,0,0,0.18);
}


/* =========================================================
   GENERAL FORM ELEMENTS
   ========================================================= */

input,
textarea,
select {
    font-family: inherit;

    transition:
        border 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary) !important;

    box-shadow:
        0 0 0 4px rgba(11,94,215,0.10);

    outline: none;
}


/* =========================================================
   GENERAL BUTTONS
   ========================================================= */

button {
    font-family: inherit;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(11,94,215,0.22);
}


/* =========================================================
   SCROLL REVEAL CLASSES
   ========================================================= */

.hidden {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: var(--primary);

    color: white;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:900px) {

    nav {
        padding: 18px 4%;

        gap: 15px;
    }

    nav ul {
        gap: 16px;
    }

    nav ul li a {
        font-size: 13px;
    }

    nav .btn {
        padding: 10px 18px;
    }

    .hero {
        padding:
            130px 7% 60px;
    }

    .hero h1 {
        font-size: 52px;
    }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media(max-width:768px) {

    nav {
        position: fixed;

        flex-direction: column;

        justify-content: center;

        padding: 15px 20px;

        gap: 10px;
    }

    nav h2 {
        font-size: 25px;
    }

    nav ul {
        flex-wrap: wrap;

        justify-content: center;

        gap: 10px 16px;
    }

    nav ul li a {
        font-size: 12px;
    }

    nav .btn {
        display: none;
    }


    /* HOME */

    header {
        min-height: 100vh;

        background-position: center;
    }

    .hero {
        min-height: 100vh;

        padding:
            160px 25px 60px;

        text-align: center;

        justify-content: center;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;

        line-height: 1.7;
    }


    /* SECTIONS */

    .about,
    .services,
    .projects {
        padding:
            75px 20px;
    }

    .about h2,
    .services h2,
    .projects h2 {
        font-size: 32px;
    }


    /* CONTACT */

    .contact {
        padding:
            75px 20px;
    }

    .contact h2 {
        font-size: 34px;
    }


    /* WHATSAPP */

    .whatsapp-float {
        width: 54px;
        height: 54px;

        right: 18px;
        bottom: 18px;

        font-size: 25px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:480px) {

    nav {
        padding:
            13px 12px;
    }

    nav h2 {
        font-size: 22px;
    }

    nav ul {
        gap: 8px 12px;
    }

    nav ul li a {
        font-size: 11px;
    }


    .hero {
        padding:
            170px 18px 50px;
    }

    .hero h1 {
        font-size: 35px;

        line-height: 1.15;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-btn {
        padding:
            14px 27px;
    }


    .about h2,
    .services h2,
    .projects h2 {
        font-size: 29px;
    }


    .card {
        padding: 30px 24px;
    }


    .contact h2 {
        font-size: 30px;
    }


    footer {
        padding:
            25px 15px;

        font-size: 12px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}