/* FONTS */
/*  AVOID OVER FLOW HORIZONTAL IN PHONE VIEW */
html, body {
    overflow-x: hidden;
    width: 100%;
}
.rubik, html, body {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

/* SETUP */
:root {
    --transition: all 0.5s ease;
    --box-shadow:  0 15px 25px rgba(29, 10, 10, 1);
}


body {
    /*background: linear-gradient(to right, #2596be, #2596be);*/
    background: #f7f5f0;
}

nav {
    background: #2596be;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.theme-shadow {
    box-shadow: var(--box-shadow);
}

.image-zoom {
    position: relative;
    overflow: hidden;
}

.image-zoom-wrapper {
    overflow: hidden;
    position: relative;
}

.image-zoom-wrapper img {
    transition: var(--transition);
}

.image-zoom:hover .image-zoom-wrapper img{
    transform: scale(1.1);
}

/* NAVBAR */

.navbar .nav-link {
    color: #0f172a !important; /* Default text color */
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease;
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease;
    transform: translateX(-50%) scaleX(0);
    transform-origin: bottom right;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
}

.navbar .nav-link:hover::before,
.navbar .nav-link:focus::before {
    transform: translateX(-50%) scaleX(1);
    transform-origin: bottom left;
}

/* Remove the default white color for aria-current */
.navbar .nav-link[aria-current="page"] {
    color: #0f172a !important;
}

/* Only show white when hovering */
.navbar .nav-link[aria-current="page"]:hover {
    color: #ffffff !important;
}


/* HERO */

#hero {
    background: linear-gradient(rgb(0,0,0,0.507), rgb(0,0,0,0.507)), url("../img/herobg.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh; /* Default height for desktop */
}

@media (max-width: 768px) {
    #hero {
        min-height: 80vh;
    }
}

@media (max-width: 576px) {
    #hero {
        min-height: 70vh;
    }
}
@media (max-width: 480px) {
    #hero {
        min-height: 60vh;
    }
}


/* Base styles */
#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#hero h5 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h5 {
        font-size: 1.25rem;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero h5 {
        font-size: 1rem;
        padding: 0 15px;
    }

    #hero .btn {
        padding: 0.5rem 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    #hero h1 {
        font-size: 1.75rem;
    }
}/* Base styles */
#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#hero h5 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h5 {
        font-size: 1.25rem;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero h5 {
        font-size: 1rem;
        padding: 0 15px;
    }

    #hero .btn {
        padding: 0.5rem 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    #hero h1 {
        font-size: 1.75rem;
    }
}

/* ABOUT US */

.section-title {
    margin-bottom: 60px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: brown;
    margin: 16px auto 24px auto;
}

.section-title p{
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    font-size: 44px;
    flex: none;
}
#imgLogo {
    border-radius: 8px;
}


/* SERVICES */
.service {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.service::after {
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    background: #2596be;
    transition: var(--transition);
}

.service:hover::after {
    width: 100%;
    height: 100%;
    background: #2596be;
    z-index: -1;
}

.service:hover h5,
.service:hover p {
    color: white;
}

.service:hover .icon-box{
    background: black;
    color: white;
}

/* GALLERY */

.portafolio-item .icon-box {
    background-color: #2596be;
    color: white;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: top 0.3s ease, opacity 0.3s ease;
}

.portafolio-item:hover .icon-box {
    opacity: 1;
    top: 50%;
}

/* REWIEWS */
.review small {
    font-weight: 600;
    text-transform: uppercase;
}


.review-head{
    position: relative;
}
.review-head::after {
    content: "";
    width: 28px;
    height: 28px;
    position: absolute;
    bottom: -14px;
    background-color: white;
    transform: rotate(45deg);
}

/* FORM */

.bg-form {
    background: linear-gradient(to right, #2596be, #2596be);
}

.break-line{
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background-color: white;
    margin-top: 20px;
}
textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.btn-submit {
    background: #f7f5f0;
    color: black;
    border: none;
    padding: 10px 40px;
    font-size: 18px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #2596be;
    color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Add a shadow */
    transform: translateY(-2px); /* Slight lift on hover */
}

.btn-submit:active {
    background-color: #f7f5f0; /* Even darker color when clicked */
    color: black;
    transform: translateY(0); /* Reset the lift when clicked */
}


#card-contact {
    background: #2596be;
    color: #f7f5f0;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);

}
#underline{
    width: 100%;
    height: 50%;
    border: 2px;
    color: white;
    border-bottom: 2px solid white ;
    margin-top: 20px;
    margin-bottom: 20px;
}

/*.review-head:hover{*/
/*    box-shadow: 12px 12px 12px rgba(0,0,0,0.1) inset,*/
/*    10px 10px 10px #2596be inset;*/
/*}*/

/*FOOTER */

#footer {
    background-color: #2596be;
}

.footer-padding {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* BUTTON SCROLL TOP*/
/* Style for the "Scroll to Top" button */
.scroll-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    z-index: 1000; /* Make sure it's on top of other elements */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Add hover effect */
.scroll-to-top-btn:hover {
    background-color: #0056b3; /* Darker blue when hovering */
}








