/* =====================================================
   1. RESET
===================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   2. DESIGN TOKENS (SYSTEM)
===================================================== */

:root {
    --color-bg: #f8f8f8;
    --color-dark: #1e1e1e;
    --color-light: #ffffff;
    --color-muted: #4e4e4e;
    --color-logo: #111;
    --color-gold: #dab070;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* =====================================================
   3. BASE
===================================================== */

body {
    font-family: "Inter", sans-serif;
    background: var(--color-bg);
    color: var(--color-dark);
    height: 100vh;
}

img {
    width: 100%;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 42px;
    letter-spacing: 6px;
    color: var(--color-logo);
    line-height: 1.1;
}

.navbar .logo span {
    display: block;
    font-size: 16px;
    letter-spacing: 8px;
    margin-top: 6px;
    color: var(--color-muted);
}

.navbar nav {
    display: flex;
}

.navbar nav a {
    margin-left: 22px;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-dark);
}

.navbar nav a.cta {
    background: var(--color-gold);
    color: var(--color-light);
    padding: 8px 14px;
    /* border-radius: var(--radius-sm); */
}

/* HERO */
.hero {
    height: 90vh;
    background: url("img/baner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-left: 10%;
    color: var(--color-light);
    margin-top: 100px;
    filter: contrast(1.05) brightness(0.95) saturate(1.1);
}

.hero .hero-content h1 {
    font-size: 50px;
    margin-bottom: 15px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero .hero-content p {
    font-size: 24px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

/* TRUST */
.trust {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    background: var(--color-light);
    font-weight: 600;
    font-size: 20px;
}

.cta-section.why {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.cta-section.why .why-left .head {
    font-size: 40px;
    margin-bottom: 10px;
}

.cta-section.why .why-left .sub-head {
    font-size: 22px;
    line-height: 1.5;
}

.cta-section.why .trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.cta-section.why .trust-stats div {
    margin: 10px 0 20px;
    font-size: 24px;
    padding: 30px;
    /* border-radius: var(--radius-lg); */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: .4s ease;
    min-width: 220px;
    width: min-content;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal .8s ease forwards;
}

.cta-section.why .trust-stats div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: linear-gradient(transparent, var(--color-light), transparent);
}

.cta-section.why .trust-stats h3 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SHARED */
.title {
    font-size: 22px;
    text-align: left;
}

.card {
    background: var(--color-light);
    /* border-radius: var(--radius-md); */
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(0, 0, 0, 0.12);
    transition: .3s;
    position: relative;
    cursor: pointer;
}

.card>img {
    width: 100%;
    height: 340px;
    transition: transform .7s ease;
    transform-origin: bottom;
}

.products,
.projects {
    padding: 80px 10%;
}

.products .product-grid .card:hover>img,
.projects .gallery .card:hover>img {
    transform: scale(1.1);
}

/* PRODUCTS */
.products .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.products .product-grid .card {
    text-align: center;
    padding-top: 15px;
}

.products .product-grid .card img {
    width: 70%;
}

.products .product-grid .product {
    position: absolute;
    font-size: 16px;
    top: 20px;
    left: 20px;
    padding: 6px 30px;
    /* border-radius: var(--radius-lg); */
    text-transform: uppercase;
    color: var(--color-light);
    border: 1px solid #a6a6a6;
    background: rgb(0 0 0 / 40%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.products .product-grid .bottom {
    display: flex;
    align-items: center;
    font-size: 14px;
    text-align: left;
    border-top: 1px solid #eaeaea;
}

.products .product-grid .card img.front-img {
    width: 120px;
    /* border-radius: var(--radius-sm); */
    margin: 10px;
}

/* PROJECTS */
.projects .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.projects .gallery .card {
    display: grid;
}

.projects .gallery img {
    width: 100%;
    height: 350px;
    /* border-radius: var(--radius-md); */
    object-fit: cover;
}

/* CTA */
.cta-section {
    padding: 60px;
    background: var(--color-dark);
    color: var(--color-gold);
}

.cta-section.long .head {
    font-size: 40px;
    margin-bottom: 30px;
}

.cta-section.long .text {
    position: relative;
    margin: 0 auto;
    font-size: 22px;
    width: 60%;
    line-height: 1.5;
    padding: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-section.long .text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: linear-gradient(transparent, var(--color-light), transparent);
}

.cta-section.long .text p {
    margin-bottom: 8px;
    display: flex;
}

.cta-section.long .text p span {
    padding-right: 6px;
    color: var(--color-gold);
}

.cta-section.long .text>span {
    display: block;
    margin-bottom: 24px;
}

/* SLIDER */
.slider {
    position: relative;
}

.mySlides {
    display: block;
    width: 20%;
    text-align: center;
    background: #f3ede3;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.mySlides .card-img-top svg {
    width: 70px;
    height: auto;
}

.slideshow-container {
    position: relative;
    padding: 80px;
    display: flex;
    justify-content: space-around;
    background: #eae1d1;
}

.slider-btns {
    display: none;
}

.prev,
.next {
    cursor: pointer;
    width: auto;
    padding: 10px 16px;
    margin-top: -22px;
    color: var(--color-dark);
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 20px;
    user-select: none;
}

.text-slider {
    color: var(--color-dark);
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
}

.title-slider {
    color: var(--color-gold);
    font-size: 20px;
    padding: 16px 0;
    text-align: center;
}

.fade-slade {
    animation-name: fade-slade;
    animation-duration: 1.5s;
}

@keyframes fade-slade {
    from {
        opacity: .6
    }

    to {
        opacity: 1
    }
}

/* FOOTER */
.footer {
    padding: 40px;
    text-align: center;
    background: var(--color-dark);
    color: var(--color-bg);
}

.footer .sub-title {
    margin: 20px 0;
}

.footer p {
    margin: 5px 0;
}

.footer .form {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #6b6b6b;
    margin-bottom: 25px;
}

.footer .form form {
    width: 40%;
    padding-bottom: 25px;
}

.footer .form form .form-group {
    display: flex;
    flex-direction: column;
}

.footer .form form .form-label {
    text-align: left;
    font-size: 18px;
    margin-top: 10px;
}

.footer .form form .form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-dark);
    background-color: var(--color-light);
    background-clip: padding-box;
    border: 1px solid #848484;
    /* border-radius: var(--radius-md); */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.footer .form form .primary-btn {
    margin-top: 20px;
    padding: 8px 14px;
    border: none;
    color: var(--color-light);
    background: var(--color-gold);
    cursor: pointer;
    font-weight: bold;
    /* border-radius: var(--radius-sm); */
    font-size: 16px;
}

.mr-top {
    margin-top: 15px;
}

.footer .media a.social {
    display: inline-block;
    font-size: 22px;
    text-decoration: none;
    color: var(--color-light);
    margin: 6px;
    border: 1px solid var(--color-light);
    padding: 6px 14px;
}

/* COPYRIGHT */
.copyright {
    background: var(--color-logo);
    text-align: center;
    color: var(--color-muted);
    padding: 4px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 111;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--color-light);
    padding: 10px 0;
    height: 150px;
    font-size: 18px;
}

.modal-content,
#caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--color-light);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
    .cta-section.long .text {
        width: 70%;
    }

    .cta-section.why {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .navbar nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .navbar nav div {
        display: flex;
        justify-content: space-between;
    }

    .navbar nav a {
        display: inline-block;
    }

    .hero {
        height: 70vh;
        padding: 0 50px;
    }

    .hero .hero-content h1,
    .cta-section.why .head {
        font-size: 36px;
    }

    .trust {
        font-size: 18px;
    }

    .cta-section.why .trust-stats div,
    .cta-section.why .sub-head,
    .cta-section.long .text {
        font-size: 18px;
        width: -webkit-fill-available;
    }

    .cta-section.long .text {
        width: 100%;
    }

    .slideshow-container {
        justify-content: center;
    }

    .mySlides {
        width: 60%;
        display: none;
    }

    .slider-btns {
        display: flex;
        justify-content: space-between;
        position: absolute;
        top: 50%;
        width: 100%;
        padding: 0 10px;
    }

    .footer .form form {
        width: 80%;
    }
}

@media (max-width: 600px) {
    body {
        height: 100dvh;
    }

    .navbar {
        flex-direction: column;
        padding: 16px;
    }

    .navbar nav {
        width: -webkit-fill-available;
        padding: 20px 0 0;
    }

    .navbar nav div {
        width: -webkit-fill-available;
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .navbar nav a {
        text-align: center;
        margin: 0;
        width: -webkit-fill-available;
    }

    .navbar nav .no-mobile {
        display: none;
    }

    .hero {
        height: 50vh;
        padding: 30px;
        margin-top: 150px;
    }

    .hero .hero-content h1 {
        font-size: 30px;
    }

    .hero .hero-content p {
        font-size: 18px;
    }

    .trust {
        padding: 20px 10px;
        gap: 6px;
        font-size: 16px;
        flex-wrap: wrap;
    }

    .trust div {
        flex: 1 1 180px;
    }

    .cta-section.why .trust-stats {
        display: flex;
        flex-direction: column;
        gap: unset;
    }

    .cta-section.why .why-left .head,
    .cta-section.why .trust-stats h3 {
        font-size: 30px;
    }

    .cta-section.why .why-left .sub-head,
    .cta-section.why .trust-stats div {
        font-size: 18px;
    }

    .products,
    .projects {
        padding: 50px 40px;
    }

    .cta-section,
    .cta-section.why,
    .footer {
        padding: 60px 20px;
    }

    .mySlides {
        width: 100%;
    }

    .footer {
        padding-bottom: 20px;
    }

    .products .product-grid .card>img {
        height: 240px;
        width: 55%;
    }

    .products .product-grid .card img.front-img {
        width: 90px;
    }

    .products .product-grid,
    .projects .gallery {
        margin-top: 15px;
    }

    .cta-section.long .head {
        font-size: 30px;
    }

    .cta-section.long .text {
        width: 100%;
        padding: 20px;
    }

    .footer .form form {
        width: 100%;
    }

    .footer .form form .primary-btn {
        width: -webkit-fill-available;
    }

    .modal-content {
        width: 100%;
    }
}