/* =========================================================
   ALMARX TECH - HOME.CSS
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

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

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #0f172a;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    min-height: 75px;

    padding: 0 8% !important;

    background:
        radial-gradient(
            circle at 85% 75%,
            rgba(59, 130, 246, 0.25),
            transparent 40%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(0, 198, 255, 0.12),
            transparent 35%
        ),
        #0b1220;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;

    z-index: 9999;

    overflow: visible !important;
}


/* Bootstrap navbar container */

.navbar .container-fluid {
    width: 100%;
    max-width: 100%;

    min-height: 75px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;

    position: relative;
}


/* Logo */

.navbar-brand {
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo {
    display: block;

    height: 90px;
    width: auto;
    max-width: 400px;

    object-fit: contain;
}


/* Desktop navigation */

.navbar-collapse {
    flex-grow: 1;
    overflow: visible !important;
}
.nav-links {
    display: flex;
    align-items: center;

    gap: 28px;

    margin: 0 0 0 auto !important;
    padding: 0 !important;

    list-style: none;
   
}

.nav-links .nav-item {
    flex-shrink: 0;
}

.nav-links .nav-link {
    color: #cbd5e1 !important;

    font-size: 15px;
    font-weight: 500;

    text-decoration: none;

    padding: 10px 0 !important;

    transition: 0.3s ease;
}

.nav-links .nav-link:hover {
    color: #3b82f6 !important;
}


/* Contact navbar button */

.nav-btn {
    display: inline-block;

    padding: 11px 20px;

    background: #2563eb;

    color: #ffffff !important;

    border-radius: 8px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    transition: 0.3s ease;
}

.nav-btn:hover {
    background: #1d4ed8;

    color: #ffffff !important;

    transform: translateY(-2px);
}


/* Hamburger */

.navbar-toggler {
    padding: 7px 10px !important;

    border: 1px solid rgba(255, 255, 255, 0.35) !important;

    box-shadow: none !important;

    flex-shrink: 0;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url(
        "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"
    ) !important;
}


/* =========================================================
   FIXED NAVBAR SPACE
========================================================= */

body {
    padding-top: 75px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: 100%;
    min-height: calc(100vh - 75px);

    padding: 70px 8%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    align-items: center;

    gap: 50px;

    background:
        radial-gradient(
            circle at 85% 75%,
            rgba(59, 130, 246, 0.25),
            transparent 40%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(0, 198, 255, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(37, 99, 235, 0.15),
            transparent 30%
        ),
        #0b1220;

    overflow: hidden;
}


/* Hero left */

.hero-content {
    width: 100%;
    max-width: 620px;

    position: relative;

    z-index: 5;
}

.small-title {
    margin-bottom: 18px;

    color: #3b82f6;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: clamp(45px, 5vw, 72px);

    line-height: 1.05;

    font-weight: 700;
}

.hero h1 span {
    color: #2563eb;
}

.hero-content > p {
    max-width: 580px;

    color: #cbd5e1;

    font-size: 17px;

    line-height: 1.8;
}


/* Hero buttons */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;

    transition: 0.3s ease;
}

.primary-btn {
    background: #2563eb;
    color: #ffffff;
}

.primary-btn:hover {
    background: #1d4ed8;
    color: #ffffff;

    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid #475569;

    color: #ffffff;
}

.secondary-btn:hover {
    border-color: #3b82f6;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   HERO DEVICE SHOWCASE
========================================================= */

.hero-devices {
    position: relative;

    width: 100%;
    max-width: 520px;
    height: 500px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.device {
    position: absolute;

    background: #0f172a;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.28);
}


/* Desktop */

.desktop-device {
    width: 430px;
    max-width: 84%;
    height: 280px;

    top: 75px;
    left: 50%;

    padding: 10px;

    border-radius: 12px;

    transform: translateX(-50%);

    animation: desktopFloat 5s ease-in-out infinite;

    z-index: 1;
}

.device-screen {
    width: 100%;
    height: 100%;

    background: #ffffff;

    border-radius: 5px;

    overflow: hidden;
}

.screen-header {
    height: 35px;

    display: flex;
    align-items: center;
    background: #353348;
    padding: 0 12px;

    border-bottom: 1px solid #e2e8f0;
}

.screen-header img {
    width: 80px;
    height: auto;
}

.screen-content {
    padding: 25px;
}

.screen-content span {
    color: #2563eb;

    font-size: 10px;
    font-weight: 700;
}

.screen-content h3 {
    margin: 10px 0;

    color: #0f172a;

    font-size: 27px;

    line-height: 1.1;
}

.screen-line {
    width: 100px;
    height: 5px;

    background: #2563eb;

    border-radius: 5px;
}

.screen-cards {
    display: flex;

    gap: 8px;

    margin-top: 25px;
}

.screen-cards div {
    width: 70px;
    height: 35px;

    background: #eff6ff;

    border-radius: 6px;
}


/* Desktop stand */

.desktop-stand {
    position: absolute;

    width: 80px;
    height: 50px;

    bottom: -48px;
    left: 50%;

    background: #0f172a;

    transform: translateX(-50%);
}

.desktop-stand::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 8px;

    bottom: -7px;
    left: 50%;

    background: #0f172a;

    border-radius: 10px;

    transform: translateX(-50%);
}


/* Tablet */

.tablet-device {
    width: 180px;
    height: 260px;

    right: 0;
    bottom: 50px;

    padding: 8px;

    border-radius: 20px;

    animation: tabletFloat 4s ease-in-out infinite;

    z-index: 3;
}

.tablet-content {
    padding: 22px 15px;
}

.tablet-content span {
    color: #2563eb;

    font-size: 8px;
    font-weight: 700;
}

.tablet-content h3 {
    margin: 10px 0 20px;

    color: #0f172a;

    font-size: 22px;

    line-height: 1.1;
}

.tablet-box {
    height: 45px;

    margin-bottom: 10px;

    background: #eff6ff;

    border-radius: 8px;
}

.tablet-box.small {
    width: 70%;
}


/* Mobile */

.mobile-device {
    width: 105px;
    height: 205px;

    left: 0;
    bottom: 45px;

    padding: 7px;

    border-radius: 20px;

    animation: mobileFloat 4.5s ease-in-out infinite;

    z-index: 4;
}

.mobile-screen {
    width: 100%;
    height: 100%;

    padding: 15px 10px;

    background: #ffffff;

    border-radius: 14px;

    text-align: center;

    overflow: hidden;
}

.mobile-screen img {
    width: 55px;
    height: auto;

    margin-bottom: 12px;
}

.mobile-screen span {
    display: block;

    color: #2563eb;

    font-size: 6px;
    font-weight: 700;
}

.mobile-screen h4 {
    margin-top: 10px;

    color: #0f172a;

    font-size: 13px;

    line-height: 1.15;
}

.mobile-button {
    margin-top: 15px;

    padding: 5px;

    background: #2563eb;

    color: #ffffff;

    font-size: 7px;

    border-radius: 5px;
}


/* Device animation */

@keyframes desktopFloat {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(0);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-12px);
    }
}

@keyframes tabletFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes mobileFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-5deg);
    }

    50% {
        transform:
            translateY(-15px)
            rotate(-5deg);
    }
}


/* =========================================================
   COMMON SECTION
========================================================= */

section {
    padding: 90px 8%;
}

.section-title {
    margin-bottom: 50px;

    text-align: center;
}

.section-title h2 {
    margin-bottom: 12px;

    font-size: 38px;
}

.section-title p {
    color: #64748b;
}


/* =========================================================
   SERVICES
========================================================= */

.services-section {
    background: #f8fafc;
}

.services {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.service-card {
    position: relative;

    padding: 35px 30px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Top blue line */

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #06b6d4
    );

    transition: width 0.35s ease;
}


.service-card:hover {
    transform: translateY(-7px);

    border-color: #bfdbfe;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.10);
}

.service-card:hover::before {
    width: 100%;
}


/* Icon */

.service-icon {
    width: 55px;
    height: 55px;

    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 14px;

    font-size: 23px;

    transition: 0.3s ease;
}

.service-card:hover .service-icon {
    background: #2563eb;

    color: #ffffff;

    transform: scale(1.05);
}


/* Text */

.service-card h3 {
    margin-bottom: 12px;

    color: #0f172a;

    font-size: 20px;
    font-weight: 700;
}

.service-card p {
    margin: 0;

    color: #64748b;

    font-size: 15px;

    line-height: 1.7;
}

/* =========================================================
   FEATURED PROJECTS
========================================================= */

.projects-section {
    background: #ffffff;
}

.project-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    border-color: #bfdbfe;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.12);
}


/* Image */

.project-image-wrap {
    position: relative;

    width: 100%;
    height: 230px;

    overflow: hidden;

    background: #e2e8f0;
}

.project-image-wrap img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.06);
}


/* Category badge */

.project-category {
    position: absolute;

    top: 15px;
    left: 15px;

    padding: 7px 12px;

    background: rgba(15, 23, 42, 0.88);

    color: #ffffff;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;

    backdrop-filter: blur(5px);
}


/* No image */

.project-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #0f172a,
        #2563eb
    );

    color: #ffffff;

    font-size: 22px;
    font-weight: 800;
}


/* Content */

.project-card-content {
    padding: 25px;
}

.project-card-content h3 {
    margin-bottom: 12px;

    color: #0f172a;

    font-size: 21px;
    font-weight: 700;
}

.project-card-content p {
    margin-bottom: 20px;

    color: #64748b;

    font-size: 15px;
    line-height: 1.7;
}


/* Details link */

.project-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #2563eb;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 12px;

    color: #1d4ed8;
}

/* =========================================================
   ABOUT
========================================================= */

.about-section {
    padding: 100px 8%;

    background: #0b1220;

    color: #ffffff;
}

.about-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 80px;
}


/* Left */

.section-label {
    margin-bottom: 18px;

    color: #38bdf8;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
}

.about-content h2 {
    max-width: 600px;

    margin-bottom: 25px;

    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;

    line-height: 1.15;
}

.about-content h2 span {
    color: #3b82f6;
}

.about-content p {
    max-width: 650px;

    margin-bottom: 17px;

    color: #94a3b8;

    font-size: 16px;

    line-height: 1.8;
}


/* Button */

.about-btn {
    display: inline-block;

    margin-top: 18px;

    padding: 13px 22px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.about-btn:hover {
    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-2px);
}


/* Right card */

.about-card {
    padding: 15px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 20px;
}

.about-feature {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 25px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.about-feature:last-child {
    border-bottom: none;
}


/* Icons */

.about-icon {
    min-width: 52px;
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(37, 99, 235, 0.15);

    color: #60a5fa;

    border-radius: 13px;

    font-size: 20px;
}


/* Feature text */

.about-feature h3 {
    margin: 2px 0 8px;

    color: #ffffff;

    font-size: 18px;
}

.about-feature p {
    margin: 0;

    color: #94a3b8;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 100px 8%;

    background:
        radial-gradient(
            circle at top,
            #172554 0%,
            #0b1220 45%,
            #070d18 100%
        );

    color: #ffffff;
}


/* Heading */

.contact-section .section-heading {
    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}

.contact-section .section-heading span {
    color: #60a5fa;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
}

.contact-section .section-heading h2 {
    margin: 10px 0 15px;

    color: #ffffff;

    font-size: clamp(36px, 4vw, 50px);

    font-weight: 800;
}

.contact-section .section-heading p {
    margin: 0;

    color: #94a3b8;

    font-size: 16px;

    line-height: 1.8;
}


/* Grid */

.contact-grid {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* Card */

.contact-card {
    padding: 35px 28px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 18px;

    text-align: center;

    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(96, 165, 250, 0.35);
}


/* Icon */

.contact-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(37, 99, 235, 0.15);

    color: #60a5fa;

    border-radius: 16px;

    font-size: 24px;
}

.contact-card .whatsapp-icon {
    background:
        rgba(37, 211, 102, 0.12);

    color: #25d366;
}


/* Text */

.contact-card h3 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 21px;
}

.contact-card p {
    min-height: 52px;

    margin-bottom: 22px;

    color: #94a3b8;

    font-size: 14px;

    line-height: 1.7;
}


/* Links */

.contact-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #60a5fa;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.contact-link:hover {
    gap: 11px;

    color: #93c5fd;
}

.whatsapp-link {
    color: #25d366;
}

.whatsapp-link:hover {
    color: #4ade80;
}


/* Location */

.contact-location {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #60a5fa;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 70px 8% 0;

    background: #050a13;

    color: #94a3b8;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 50px;
}


/* Brand */

.footer-brand h2 {
    margin-bottom: 5px;

    color: #ffffff;

    font-size: 25px;
    font-weight: 800;
}

.footer-brand h2 span {
    color: #3b82f6;
}

.footer-brand > p:first-of-type {
    margin-bottom: 18px;

    color: #60a5fa;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1px;
}

.footer-description {
    max-width: 330px;

    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.8;
}


/* Columns */

.footer-column h3 {
    margin-bottom: 22px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.footer-column > a {
    display: flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    margin-bottom: 13px;

    color: #94a3b8;

    text-decoration: none;

    font-size: 14px;

    transition: 0.3s ease;
}

.footer-column > a i {
    width: 17px;

    color: #60a5fa;

    text-align: center;
}

.footer-column > a:hover {
    color: #ffffff;

    transform: translateX(4px);
}


/* Social icons */

.social-links {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    color: #94a3b8;

    text-decoration: none;

    transition: 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;

    border-color: #2563eb;

    color: #ffffff;

    transform: translateY(-3px);
}


/* Footer bottom */

.footer-bottom {
    max-width: 1200px;

    margin: 55px auto 0;

    padding: 22px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    /* Navbar */

    .navbar {
        min-height: 75px;

        padding: 0 20px !important;
    }

    .navbar .container-fluid {
        min-height: 75px;
    }

    .logo {
        height:65px;
        width: auto;
        max-width: 250px;
    }


    /* Mobile / Tablet dropdown */

    .navbar-collapse {
        position: absolute;

        top: 100%;
        left: -20px;
        right: -20px;

        width: auto;

        padding: 15px 20px 25px;

        background: #0b1220;

        border-top: 1px solid rgba(255, 255, 255, 0.1);

        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);

        overflow: visible !important;

        z-index: 9998;

        transition: all 0.3s ease;
    }

    .navbar-collapse .nav-item {
        width: 100%;
        padding: 2px 0;
        text-align: center;
    }

    .navbar-collapse .nav-item {
        width: 100%;

        text-align: center;
    }

    .navbar-collapse .nav-link {
        display: block;

        width: 100%;

        padding: 12px 10px !important;

        border-radius: 8px;

        color: #cbd5e1 !important;

        transition: 0.3s ease;
    }

    .navbar-collapse .nav-link:hover {
        background: rgba(37, 99, 235, 0.12);

        color: #60a5fa !important;
    }

    .navbar-collapse .nav-btn {
        display: inline-block;

        margin-top: 8px;

        padding: 11px 30px;
    }


    /* Hero */

    .hero {
        min-height: auto;

        padding: 80px 7% 70px;

        grid-template-columns: 1fr;

        gap: 20px;

        text-align: center;
    }

    .hero-content {
        max-width: 700px;

        margin: auto;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-devices {
    position: relative;

    width: 100%;
    max-width: 360px;
    height: 330px;

    margin: 15px auto 0;

    transform: none;
}


    /* Services */

    .services {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* Projects */

    .project-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* About */

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

        gap: 45px;
    }

    .about-card {
        max-width: 500px;
    }


    /* Contact */

    .contact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* Footer */

    .footer-container {
        grid-template-columns:
            1fr 1fr;

        gap: 40px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    section {
        padding: 70px 6%;
    }


    /* Navbar */

    .navbar {
        padding: 0 18px !important;
    }

    .navbar-collapse {
        left: -18px;
        right: -18px;
    }

    .logo {
        height: 55px;
        width: auto;
        max-width: 210px;
    }


    /* Hero */

    .hero {
        padding: 65px 22px 50px;

        display: flex;
        flex-direction: column;

        gap: 35px;

        text-align: center;
    }

    .small-title {
        margin-bottom: 30px;

        font-size: 13px;

        line-height: 1.6;
    }

    .hero h1 {
        margin-bottom: 25px;

        font-size: 52px;

        line-height: 1.08;
    }

    .hero-content > p {
        font-size: 17px;

        line-height: 1.8;
    }

    .hero-buttons {
        margin-top: 30px;

        flex-direction: column;
        align-items: center;
    }

    .primary-btn,
    .secondary-btn {
        width: 250px;

        text-align: center;
    }


    /* Device showcase */

    .hero-devices {
        position: relative;

        width: 100%;
        max-width: 360px;
        height: 330px;

        margin: 15px auto 0;

        transform: none;
    }
    /* Desktop mockup */

    .desktop-device {
        width: 300px;
        height: 195px;

        max-width: none;

        top: 35px;
        left: 50%;

        transform: translateX(-50%);
        animation: desktopFloatMobile 5s ease-in-out infinite;
    }


    /* Tablet mockup */

    .tablet-device {
        width: 125px;
        height: 185px;

        right: 0;
        bottom: 20px;
    }


    /* Mobile mockup */

    .mobile-device {
        width: 78px;
        height: 155px;

        left: 0;
        bottom: 25px;
    }


    /* Desktop inner content */

    .screen-content {
        padding: 15px;
    }

    .screen-content h3 {
        font-size: 19px;
    }

    .screen-cards {
        margin-top: 15px;
    }

    .screen-cards div {
        width: 45px;
        height: 25px;
    }


    /* Tablet inner content */

    .tablet-content {
        padding: 15px 10px;
    }

    .tablet-content h3 {
        font-size: 16px;
    }


    /* Mobile inner content */

    .mobile-screen {
        padding: 12px 7px;
    }

    .mobile-screen img {
        width: 42px;
        margin-bottom: 8px;
    }

    .mobile-screen h4 {
        font-size: 10px;
    }

    .mobile-button {
        margin-top: 10px;
    }


    /* Services */

    .services {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 28px 24px;
    }

    .service-icon {
        width: 50px;
        height: 50px;

        font-size: 21px;
    }


    /* Projects */

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

    .project-image-wrap {
        height: 210px;
    }

    .project-card-content {
        padding: 22px;
    }
    /* About */

    .about-section {
        padding: 70px 6%;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .about-card {
        max-width: 100%;
    }

    .about-section {
        padding: 70px 6%;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2 {
        margin-left: auto;
        margin-right: auto;

        font-size: 34px;
    }

    .about-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .about-card {
        max-width: 100%;
        margin: 0 auto;

        text-align: left;
    }

    .about-feature {
        padding: 20px 15px;

        gap: 14px;
    }

    .about-icon {
        min-width: 46px;
        width: 46px;
        height: 46px;

        font-size: 18px;
    }


    /* Contact */

    .contact-section {
        padding: 70px 6%;
    }

    .contact-section .section-heading {
        margin-bottom: 40px;
    }

    .contact-section .section-heading h2 {
        font-size: 32px;
    }

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

    .contact-card {
        padding: 30px 22px;
    }

    .contact-card p {
        min-height: auto;
    }


    /* Footer */

    .site-footer {
        padding: 55px 7% 0;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-brand {
        max-width: 400px;
    }

    .footer-column h3 {
        margin-bottom: 17px;
    }

    .footer-bottom {
        margin-top: 40px;

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .navbar {
        padding: 0 15px !important;
    }

    .navbar-collapse {
        left: -15px;
        right: -15px;
    }

    .logo {
        height: 37px;
        max-width: 145px;
    }


    /* Hero */

    .hero {
        padding:
            55px
            18px
            40px;
    }

    .small-title {
        margin-bottom: 25px;

        font-size: 12px;
    }

    .hero h1 {
        font-size: 44px;

        line-height: 1.08;
    }

    .hero-content > p {
        font-size: 16px;

        line-height: 1.75;
    }

    .primary-btn,
    .secondary-btn {
        width: 230px;
    }


    /* Devices */

    .hero-devices {
        max-width: 300px;
        height: 290px;
    }

    .desktop-device {
        width: 265px;
        height: 175px;
    }

    .tablet-device {
        width: 110px;
        height: 165px;

        right: 0;
    }

    .mobile-device {
        width: 70px;
        height: 140px;

        left: 0;
    }

    .desktop-stand {
        height: 40px;
        bottom: -38px;
    }

    .desktop-stand::after {
        width: 110px;
    }


    /* Headings */

    .section-title h2 {
        font-size: 30px;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .contact-section .section-heading h1,
    .contact-section .section-heading h2 {
        font-size: 30px;
    }
}