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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0b1220;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.main_header {
    background: #050a14;
    padding: 18px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    color: #00d9ff;
    font-size: 28px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00d9ff;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    z-index: 1100;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #00d9ff;
    border-radius: 5px;
    transition: 0.3s ease;
}


/* Hamburger animation */

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


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

.hero {
    min-height: 90vh;

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

    text-align: center;

    padding: 80px 5%;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.7)
        ),
        url("https://images.unsplash.com/photo-1581092160607-ee22621dd758");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 1000px;
}

.hero h1 {
    font-size: 45px;
    margin-bottom: 20px;
}

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

.button {
    display: inline-block;

    margin-top: 30px;

    background: #00d9ff;
    color: black;

    padding: 15px 30px;

    border-radius: 30px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.3s;
}

.button:hover {
    background: white;
    transform: translateY(-3px);
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

section {
    padding: 70px 5%;
    text-align: center;
}

section h2 {
    font-size: 32px;
}


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

.cards {
    display: grid;

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

    gap: 25px;

    max-width: 1200px;

    margin: 40px auto 0;
}

.card {
    background: #151f35;

    padding: 30px;

    border-radius: 15px;

    transition: 0.3s;

    min-height: 190px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px);
    background: #1e3155;
}

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


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

.about-section {
    background: #0e1729;
}

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

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    text-align: left;
}

.about-image img {
    width: 100%;

    max-height: 450px;

    object-fit: cover;

    border-radius: 20px;

    display: block;

    box-shadow:
        0 10px 35px rgba(0, 217, 255, 0.15);
}

.about-content h2 {
    color: #00d9ff;

    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 18px;

    color: #d5dce8;
}


/* =========================================================
   TESTIMONIAL
========================================================= */

.testimonial-section {
    padding: 40px 5%;

    max-width: 1600px;

    margin: 0 auto;
}

.section-title {
    text-align: center;

    margin-bottom: 24px;
}

.testimonial-slider {
    display: flex;

    gap: 20px;

    width: 100%;

    overflow: hidden;

    padding: 10px 0 20px 0;

    /* * Important: * Keep the first card exactly at the * beginning of the slider. */
    
    margin: 0;
    
    scroll-behavior: smooth;
}

.testimonial-card {
    flex: 0 0 320px;

    background: #ffffff;

    padding: 24px;

    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    min-height: 230px;

    /* * Prevent flexbox from shrinking * the testimonial cards. */
    
    min-width: 0;
}

.quote {
    font-size: 16px;

    line-height: 1.6;

    color: #333333;

    font-style: italic;

    margin-bottom: 0 0 20px 0;
}

.user-info {
    display: flex;

    align-items: center;

    gap: 12px;
}

.name {
    margin: 0;

    font-size: 15px;

    color: #111111;
}

.role {
    font-size: 13px;

    color: #666666;
}


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

footer {
    background: #050a14;

    padding: 60px 5% 20px;

    text-align: center;
}

.footer_content {
    max-width: 1650px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 55%;

    text-align: left;

    align-items: start;
}


/* Contact details */

.contact_details {
    text-align: left;

    padding-left: 10px;
}

.contact_details h2,
.social_media h2,
.contact_form h2 {
    color: #00d9ff;

    margin-bottom: 20px;
}

.contact_details p {
    margin: 10px 0;
}

.contact_details a {
    color: white;

    text-decoration: none;

    transition: 0.3s;
}

.contact_details a:hover {
    color: #00d9ff;
}


/* Social media */

.social_media {
    text-align: center;
    padding-right: 10px;
}

.social_media a {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin: 14px 0;

    color: white;

    text-decoration: none;

    transition: 0.3s;
}

.social_media a:hover {
    color: #00d9ff;

    transform: translateX(5px);
}

.social_media svg {
    width: 20px;
    height: 20px;
}

.social-icon {
    width: 20px;

    height: 20px;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    font-weight: bold;
}


/* Contact form */

.contact_form {
    text-align: center;

    padding-right: 10px;
}

.contact_form form {
    max-width: 420px;

    margin-left: auto;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

input,
textarea {
    width: 100%;

    padding: 15px;

    border-radius: 8px;

    border: none;

    font-size: 16px;

    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 2px solid #00d9ff;
}

.contact_form button {
    padding: 15px;

    background: #00d9ff;

    border: none;

    border-radius: 30px;

    font-size: 18px;

    cursor: pointer;

    transition: 0.3s;
}

.contact_form button:hover {
    background: white;
}

.contact_form button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}

.form-status {
    text-align: center;

    min-height: 24px;

    font-size: 14px;
}

.form-status.success {
    color: #00ff9d;
}

.form-status.error {
    color: #ff6b6b;
}


/* Copyright */

.copyright {
    margin-top: 50px;

    padding-top: 20px;

    border-top: 1px solid #1c2940;

    color: #9da8ba;
}


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

@media (max-width: 1000px) {

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

    .footer_content {
        grid-template-columns: 1fr 1fr;

        gap: 35%;
    }

    .contact_form {
        grid-column: 1 / -1;

        text-align: center;

        padding: 0;
    }

    .contact_form form {
        margin: auto;
    }

}


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

@media (max-width: 768px) {

    /* Header */

    .main_header {
        padding: 10px 18px;

        min-height: 58px;
    }

    nav {
        min-height: 38px;
    }

    .logo {
        font-size: 23px;
    }

    .menu-toggle {
        display: flex;
    }


    /* Mobile navigation */

    .nav-links {
        position: fixed;

        top: 58px;

        right: 0;

        width: 75%;

        max-width: 320px;

        height: calc(100vh - 58px);

        background: #050a14;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: flex-start;

        gap: 0;

        padding-top: 30px;

        transform: translateX(100%);

        transition:
            transform 0.35s ease;

        box-shadow:
            -10px 0 30px rgba(0, 0, 0, 0.35);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;

        text-align: center;
    }

    .nav-links a {
        display: block;

        padding: 18px 20px;

        width: 100%;

        font-size: 18px;
    }

    .nav-links a:hover {
        background: #101d34;
    }


    /* Hero */

    .hero {
        min-height: 75vh;

        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 32px;

        line-height: 1.2;
    }

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


    /* Sections */

    section {
        padding: 55px 20px;
    }

    section h2 {
        font-size: 28px;
    }


    /* Services */

    .cards {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-top: 30px;
    }

    .card {
        min-height: auto;

        padding: 25px;
    }


    /* About */

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

        gap: 30px;

        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-content {
        order: 2;

        text-align: center;
    }

    .about-image img {
        max-height: 300px;
    }


    /* Testimonials */

    .testimonial-section {
        padding: 40px 20px;
    }

    .testimonial-slider {
        gap: 15px;

        overflow: hidden;
        width: 100%;
        
        padding-left: 0;
        padding-right: 0;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 15px);
        min-height: 250px;
        padding: 24px;
    }

    
    /* =====================================================
   FINAL TESTIMONIAL ARROWS
   Do not move this below other button styles
===================================================== */

.testimonial-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}


/* Slider */

.testimonial-wrapper .testimonial-slider {
    width: 100%;
    flex: 1;
}


/* =====================================================
   ARROW RESET
===================================================== */

.testimonial-wrapper .testimonial-arrow {
    all: unset !important;

    position: absolute !important;

    top: 50% !important;

    width: 45px !important;
    height: 70px !important;

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

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;

    color: rgba(255, 255, 255, 0.55) !important;

    cursor: pointer !important;

    z-index: 20 !important;

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

    transform: translateY(-50%) !important;

    transition:
        color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease !important;

    font-size: 0 !important;
}


/* =====================================================
   CREATE CLEAN CHEVRON USING CSS
===================================================== */

.testimonial-wrapper .testimonial-arrow::before {
    content: "" !important;

    display: block !important;

    width: 14px !important;
    height: 14px !important;

    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;

    transition:
        border-color 0.25s ease,
        filter 0.25s ease !important;
}


/* =====================================================
   LEFT ARROW
===================================================== */

.testimonial-wrapper .prev-btn {
    left: -35px !important;
}

.testimonial-wrapper .prev-btn::before {
    transform: rotate(-135deg) !important;
}


/* =====================================================
   RIGHT ARROW
===================================================== */

.testimonial-wrapper .next-btn {
    right: -35px !important;
}

.testimonial-wrapper .next-btn::before {
    transform: rotate(45deg) !important;
}


/* =====================================================
   HOVER
===================================================== */

.testimonial-wrapper .testimonial-arrow:hover {
    background: transparent !important;

    color: #dcecff !important;

    box-shadow: none !important;

    transform:
        translateY(-50%)
        scale(1.12) !important;
}

.testimonial-wrapper .testimonial-arrow:hover::before {
    filter:
        drop-shadow(0 0 5px rgba(0, 217, 255, 0.8))
        drop-shadow(0 0 10px rgba(0, 217, 255, 0.4));
}


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

@media (max-width: 768px) {

    .testimonial-wrapper .testimonial-arrow {
        width: 30px !important;
        height: 60px !important;
    }

    .testimonial-wrapper .testimonial-arrow::before {
        width: 11px !important;
        height: 11px !important;

        border-width: 1.5px !important;
    }

    .testimonial-wrapper .prev-btn {
        left: -20px !important;
    }

    .testimonial-wrapper .next-btn {
        right: -20px !important;
    }

}




    /* Footer */

    footer {
        /* padding: 50px 20px 20px; */
        padding: 60px 3% 20px;
    }

    .footer_content {
        /* display: flex;

        max-width: 1400px;

        flex-direction: column;

        gap: 30 px;

        text-align: center; */

        max-width: 1650px;
        margin: 0 auto;
        display: grid;   
        grid-template-columns: 1fr;
        gap: 70px;

        /* width: 100%; */

        
        padding: 0;

        text-align: left;
        align-items: start;
    
    }

    .contact_details,
    .social_media,
    .contact_form {
        width: 100%;

        text-align: center;

        padding: 0;
    }

    .contact_details {
        /* order: 1; */
        /* padding-left: 0; */
        /*text-align: left;*/
        padding-right: 0;
    }

    .social_media {
        order: 2;
    }

    .contact_form {
        /* order: 3; */
        text-align: right;
        padding-right: 0;
    }

    .social_media a {
        justify-content: center;
    }

    .contact_form form {
        /* width: 100%; */

        /* max-width: 450px; */

        /* margin: auto; */

        max-width: 420px;
        margin-left: auto;
        margin-right: 0;
    }

    .copyright {
        margin-top: 40px;
    }

}