/* =========================================================
   SEA MARINE
   RECONDITIONING / SERVICE SECTION
   CLEAN RESPONSIVE CSS
   DESKTOP + TABLET + MOBILE
   ========================================================= */


/* =========================================================
   GOOGLE FONT
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;

    font-family: "Poppins", sans-serif;

    color: #ffffff;
    background: #04111d;

    background-image:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 191, 255, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(0, 130, 255, 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(0, 191, 255, 0.05),
            transparent 30%
        );
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   HERO
========================================================= */

.service-title {
    position: relative;

    width: 100%;
    min-height: 520px;

    padding: 170px 25px 100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(3, 18, 35, 0.82),
            rgba(3, 18, 35, 0.92)
        );

    background-size: cover;
    background-position: center;
}


/* =========================================================
   HERO LIGHT
========================================================= */

.service-title::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0, 191, 255, 0.18),
            transparent 60%
        );

    pointer-events: none;
}


/* =========================================================
   HERO GLOW
========================================================= */

.service-title::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    top: -180px;
    right: -150px;

    border-radius: 50%;

    background: rgba(0, 191, 255, 0.08);

    filter: blur(80px);

    pointer-events: none;
}


/* =========================================================
   HERO SUBTITLE
========================================================= */

.sub-title {
    position: relative;
    z-index: 2;

    margin-bottom: 20px;

    color: #00c6ff;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 8px;

    text-transform: uppercase;
}


/* =========================================================
   HERO TITLE
========================================================= */

.service-title h1 {
    position: relative;
    z-index: 2;

    max-width: 100%;

    margin-bottom: 25px;

    color: #ffffff;

    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;

    line-height: 1.12;
    letter-spacing: -1px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #00c6ff
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
}



/* =========================================================
   HERO PARAGRAPH
========================================================= */

.service-title p {
    position: relative;
    z-index: 2;

    width: min(100%, 700px);

    margin: 0 auto;

    color: #cbd8e5;

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   DIVIDER
========================================================= */

.divider {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 5px;
}

.divider span {
    width: 80px;
    height: 2px;

    background: #00c6ff;
}

.divider i {
    color: #00c6ff;

    font-size: 25px;

    animation: anchor 3s infinite;
}


/* =========================================================
   ANCHOR ANIMATION
========================================================= */

@keyframes anchor {

    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-12deg);
    }

    50% {
        transform: rotate(12deg);
    }

    75% {
        transform: rotate(-8deg);
    }

    100% {
        transform: rotate(0);
    }
}


/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-down {
    position: absolute;

    bottom: 30px;
    z-index: 5;

    color: #ffffff;

    font-size: 13px;

    letter-spacing: 3px;
}

.scroll-down i {
    display: block;

    margin-top: 7px;

    color: #00c6ff;

    animation: down 1.5s infinite;
}

@keyframes down {

    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(9px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* =========================================================
   SERVICES SECTION
========================================================= */

.services {
    width: 100%;

    padding: 70px 0;

    background: #061420;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(90%, 1400px);

    margin: 0 auto;
}


/* =========================================================
   SERVICE GRID
========================================================= */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;

    align-items: start;
}


/* =========================================================
   CARD
========================================================= */

.card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 16px;

    background: #0d1f2f;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35);

    opacity: 0;

    transform: translateY(50px);

    animation:
        fadeUp 0.8s forwards;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


/* =========================================================
   CARD ANIMATION DELAYS
========================================================= */

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

.card:nth-child(7) {
    animation-delay: 0.7s;
}

.card:nth-child(8) {
    animation-delay: 0.8s;
}

.card:nth-child(9) {
    animation-delay: 0.9s;
}


/* =========================================================
   CARD HOVER
========================================================= */

.card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(0, 191, 255, 0.35);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(0, 191, 255, 0.25),
        0 0 40px rgba(0, 191, 255, 0.18);
}


/* =========================================================
   IMAGE
   IMPORTANT:
   IMAGE HEIGHT IS NOT FIXED
   ORIGINAL PHOTO RATIO IS PRESERVED
========================================================= */

.image {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #081a29;

    line-height: 0;
}


/*
   IMAGE ITSELF
   - width follows card
   - height follows original image ratio
   - no crop
*/

.image img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        transform 0.6s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.card:hover .image img {
    transform: scale(1.05);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to top,
            rgba(4, 17, 29, 0.8),
            transparent
        );

    opacity: 0;

    transition:
        opacity 0.4s ease;
}

.card:hover .image::before {
    opacity: 1;
}


/* =========================================================
   CARD NUMBER
========================================================= */

.card-number {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 5;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.08);

    font-size: 36px;
    font-weight: 800;

    line-height: 1;

    pointer-events: none;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.content {
    position: relative;

    padding: 25px 22px 24px;

    text-align: left;
}


/* =========================================================
   CARD TITLE
========================================================= */

.content h2 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 23px;
    font-weight: 700;

    line-height: 1.3;

    transition:
        color 0.3s ease;
}

.card:hover .content h2 {
    color: #00c6ff;
}


/* =========================================================
   DATE
========================================================= */

.date {
    margin-bottom: 10px;

    color: #00c6ff;

    font-size: 13px;
}


/* =========================================================
   LINE
========================================================= */

.line {
    width: 55px;
    height: 2px;

    margin-bottom: 15px;

    border-radius: 5px;

    background: #00c6ff;
}


/* =========================================================
   CARD PARAGRAPH
========================================================= */

.content p {
    color: #c8d4df;

    font-size: 14px;

    line-height: 1.7;

    transition:
        color 0.3s ease;
}

.card:hover .content p {
    color: #ffffff;
}


/* =========================================================
   TOP ICON
========================================================= */

.top-icon {
    position: relative;
    z-index: 4;

    width: 58px;
    height: 58px;

    margin:
        -58px
        auto
        20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 21px;

    background:
        linear-gradient(
            135deg,
            #00c6ff,
            #0072ff
        );

    box-shadow:
        0 0 35px rgba(0, 198, 255, 0.45);

    transition:
        transform 0.5s ease;
}

.card:hover .top-icon {
    transform:
        rotate(360deg)
        scale(1.08);
}


/* =========================================================
   CARD BUTTON
========================================================= */

.content a {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 18px;

    padding: 10px 20px;

    overflow: hidden;

    border: 2px solid #00c6ff;
    border-radius: 35px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    transition:
        color 0.35s ease,
        background 0.35s ease;
}

.content a:hover {
    color: #061420;

    background: #00c6ff;
}

.content a i {
    transition:
        transform 0.35s ease;
}

.content a:hover i {
    transform:
        translateX(6px);
}


/* =========================================================
   BUTTON SHINE
========================================================= */

.content a::before {
    content: "";

    position: absolute;

    top: 0;
    left: -110%;

    width: 100%;
    height: 100%;

    background:
        rgba(255, 255, 255, 0.18);

    transition:
        left 0.45s ease;
}

.content a:hover::before {
    left: 110%;
}


/* =========================================================
   PREMIUM BORDER
========================================================= */

.card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 10;

    padding: 1px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #00c6ff,
            transparent 40%,
            transparent 60%,
            #00c6ff
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}


/* =========================================================
   CARD SHINE
========================================================= */

.card::after {
    content: "";

    position: absolute;

    top: -60%;
    left: -120px;

    width: 70px;
    height: 220%;

    background:
        rgba(255, 255, 255, 0.12);

    transform: rotate(25deg);

    pointer-events: none;

    transition:
        left 1s ease;
}

.card:hover::after {
    left: 140%;
}


/* =========================================================
   CARD REVEAL
========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(50px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   TABLET / SMALL DESKTOP
   1200px
========================================================= */

@media (max-width: 1200px) {

    .container {
        width: 92%;
    }

    .service-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;
    }

    .service-title {
        min-height: 500px;
    }

    .service-title h1 {
        font-size: 58px;
    }

}


/* =========================================================
   TABLET
   1024px
========================================================= */

@media (max-width: 1024px) {

    .container {
        width: 92%;
    }

    .service-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .service-title {
        min-height: 460px;

        padding:
            145px
            25px
            80px;
    }

    .service-title h1 {
        font-size: 52px;
    }

    .service-title p {
        width: min(90%, 680px);

        font-size: 17px;
    }

    .sub-title {
        font-size: 14px;

        letter-spacing: 6px;
    }

}


/* =========================================================
   MOBILE
   768px
========================================================= */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 32px);
    }


    /* HERO */

    .service-title {
        min-height: 430px;

        padding:
            120px
            20px
            70px;
    }

    .sub-title {
        margin-bottom: 16px;

        font-size: 11px;

        letter-spacing: 4px;
    }

    .service-title h1 {
        max-width: 95%;

        margin-bottom: 20px;

        font-size:
            clamp(34px, 7vw, 45px);

        line-height: 1.18;
    }

    .service-title p {
        width: 100%;

        font-size: 15px;

        line-height: 1.75;
    }

    .divider {
        gap: 10px;
    }

    .divider span {
        width: 45px;
    }

    .divider i {
        font-size: 21px;
    }

    .scroll-down {
        bottom: 18px;

        font-size: 10px;
    }


    /* SERVICES */

    .services {
        padding:
            55px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    /* CARD */

    .card {
        width: 100%;

        max-width: 520px;

        margin:
            0 auto;

        border-radius: 16px;
    }


    /*
       IMPORTANT:
       NO FIXED IMAGE HEIGHT HERE.
    */

    .image {
        width: 100%;
        height: auto;
    }

    .image img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    .content {
        padding:
            24px
            18px
            22px;

        text-align: center;
    }

    .content h2 {
        font-size: 21px;
    }

    .content p {
        font-size: 13px;

        line-height: 1.7;
    }

    .top-icon {
        width: 55px;
        height: 55px;

        margin:
            -55px
            auto
            18px;

        font-size: 19px;
    }

    .card-number {
        top: 12px;
        right: 12px;

        width: 43px;
        height: 43px;

        font-size: 31px;
    }

    .content a {
        padding:
            9px
            16px;

        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
   480px
========================================================= */

@media (max-width: 480px) {

    .container {
        width:
            calc(100% - 28px);
    }


    /* HERO */

    .service-title {
        min-height: 370px;

        padding:
            100px
            15px
            55px;
    }

    .sub-title {
        font-size: 9px;

        letter-spacing: 3px;
    }

    .service-title h1 {
        font-size: 30px;

        line-height: 1.2;
    }

    .service-title p {
        font-size: 13px;

        line-height: 1.75;
    }

    .divider {
        gap: 8px;
    }

    .divider span {
        width: 32px;
    }

    .divider i {
        font-size: 18px;
    }

    .scroll-down {
        display: none;
    }


    /* SERVICES */

    .services {
        padding:
            48px 0;
    }

    .service-grid {
        gap: 20px;
    }


    /* CARD */

    .card {
        border-radius: 15px;
    }

    /*
       IMAGE WILL AUTOMATICALLY
       FOLLOW PHOTO RATIO
    */

    .image {
        height: auto;
    }

    .image img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    .content {
        padding:
            21px
            16px
            20px;
    }

    .content h2 {
        font-size: 19px;
    }

    .content p {
        font-size: 12px;

        line-height: 1.7;
    }

    .top-icon {
        width: 50px;
        height: 50px;

        margin:
            -50px
            auto
            17px;

        font-size: 17px;
    }

    .card-number {
        width: 43px;
        height: 43px;

        font-size: 31px;
    }

    .content a {
        padding:
            9px
            16px;

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   375px
========================================================= */

@media (max-width: 375px) {

    .container {
        width:
            calc(100% - 24px);
    }

    .service-title {
        min-height: 350px;

        padding:
            92px
            12px
            48px;
    }

    .sub-title {
        font-size: 8px;

        letter-spacing: 2.5px;
    }

    .service-title h1 {
        font-size: 27px;
    }

    .service-title p {
        font-size: 12px;

        line-height: 1.8;
    }

    .content {
        padding:
            19px
            14px
            20px;
    }

    .content h2 {
        font-size: 18px;
    }

    .content p {
        font-size: 12px;
    }

}


/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

    .service-title {
        min-height: 360px;

        padding:
            80px
            20px
            45px;
    }

    .scroll-down {
        display: none;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .card:hover {
        transform: none;

        border-color: transparent;

        box-shadow:
            0 12px 35px
            rgba(0, 0, 0, 0.35);
    }

    .card:hover .image img {
        transform: none;
    }

    .card:hover .image::before {
        opacity: 0;
    }

    .card:hover .top-icon {
        transform: none;
    }

    .card:hover .content h2 {
        color: #ffffff;
    }

    .card:hover .content p {
        color: #c8d4df;
    }

    .card:hover::before {
        opacity: 0;
    }

    .card:hover::after {
        left: -120px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
}

.services {
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-grid {
    margin-bottom: 0;
}

.card:last-child {
    margin-bottom: 0;
}