﻿/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: 'unify sans regular',Helvetica,Arial,Lucida,sans-serif;*/
    font-family: Rubik,sans-serif;
    background-color: #fff;
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: gainsboro;
    color: black;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    max-width: 90%;
    margin: auto;
    padding: 10px 20px;
    /*background-color: #fcf4d9;*/
}

.top-bar .title{
    margin: auto;
    font-size: 20px;
    font-weight: bold;
    /*text-align: center;*/
}

.top-bar .title .small-title{
    margin: auto;
    font-size: 12px;
    /*text-align: center;*/
    font-weight: normal;
}

.top-bar > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.top-bar > div:first-child {
    flex: 0.5;
}

.top-bar > div:nth-child(2) {
    flex: 1;
    width: 20%;
}

.top-bar > div:nth-child(3) {
    flex: 1;
    width: 20%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

#nav-links {
    display: flex;
}


.social-media{
    flex-direction: row;
    display: flex;
}

.social-media a, .contact a {
    color: black;
    margin: 0 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.contact{
    font-size: 12px;
}

.contact a{
    margin-bottom: 5px;
}

.contact i{
    margin-right: 5px;
}

.social-media img, .contact img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: black;
    text-decoration: none;
    font-size: .9rem;
    padding: 8px 5px;
}

.navbar ul li a:hover {
    /*background-color: #1e73be;*/
    background-color: black;
    color: white;
    border-radius: 4px;
}

/* Main Content */
.main-content {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    width: 80%;
    margin: 30px auto 30px auto;
    box-shadow: 15px 15px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-image: url(../assets/7.jpg);
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    font-weight: bold;
    min-height: 70vh;
}

.main-content h1 {
    font-size: 2.5rem;
    max-width: 70%;
    margin: auto;
    color: #222222;
}

.main-content h1.main-page-title {
    font-size: 50px;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #009AC8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: #1e73be;
}

/* Text Content */
.text-content {
    display: flex;
    align-items: center;
    background-color: #e6e6e6;
    padding: 20px 50px 10px 50px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 15px 15px 12px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    font-size: 20px;
    line-height: 1.6;
    color: #4B566B;
}

.text-content p {
    margin: 0;
    flex: 1;
}

.text-content img {
    margin-left: 20px;
    max-width: 400px;
    max-height: 700px;
    height: auto;
    border-radius: 8px;
}

/* Table */
table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #f9f9f9;
}
table td:first-child {
    white-space: wrap;
    font-weight: bolder;
}
table td {
    white-space: nowrap;
}
table td:first-child {
    font-weight: bolder;
}
table th {
    background-color: #d3d3d3;
    font-weight: bolder;
}

table th, table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
    margin-top: auto;
}

/* Mobile*/
@media (max-width: 768px) {
    .top-bar .title {
        display: none;
    }

    .services-list li {
        max-width: 100% !important;
    }

    .services-list .description {
        max-width: 100% !important;
    }

    .table-container {
        overflow-x: auto;
        width: 100%;
        margin-bottom: 50px;
    }
    table {
        width: 100%;
        margin: 20px auto;
        border-collapse: collapse;
    }
    table th, table td {
        padding: 10px;
        font-size: 0.8rem;
    }

    .client-reviews {
        margin-top: 30px !important;
    }
    .client-reviews h2 {
        font-size: 25px !important;
        margin-top: 20px !important;
        margin-bottom: 30px !important;
    }
    .reviews-wrapper {
        width: 100% !important;
    }
    .reviews-container {
        margin: 0 20px !important;
    }
    .review p {
        font-size: 13px !important;
    }
    .review span {
        font-size: 13px !important;
    }
    button.prev, button.next {
        top: 25% !important;
    }
    button.prev { left: -30px !important; }
    button.next { right: -30px !important; }
}



/*Mobile*/

@media (max-width: 858px) {
    .hamburger {
        display: block;
    }
    .top-bar{
        max-width: 100%;
    }

    .top-bar > div:nth-child(3) {
        flex: 0.3;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 30%;
        z-index: 1000;
        background-color: white;
    }

    #nav-links li a{
        padding-right: 37px;
        padding-left: 10px;
        margin-left: 4px;
    }

    #nav-links.show {
        display: flex;
    }

    #nav-links.show li {
        margin: 5px 0;
    }

    .navbar {
        order: 1;
    }

    .social-media {
        order: 2;
    }

    .contact {
        order: 3;
        font-size: 11px;
        margin-top: auto;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .social-media {
        align-items: flex-start;
        margin-top: 12px;
    }

    .main-content h1{
        max-width: 90% !important;
    }
}

@media (max-width: 1108px) {
    .top-bar .title{
        display: none;
    }
}

@media (max-width: 950px) {
    .main-content {
        width: 95%;
        padding: 8px;
        margin-bottom: 15px;
    }
    
    .text-content {
        max-width: 95%;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .text-content p {
        font-size: 16px;
    }
    
    .text-content img {
        margin-bottom: 50px;
        max-width: 70%;
        height: auto;
    }
}


/*Reviews Section*/

.client-reviews {
    text-align: center;
    margin: 30px auto;
    max-width: 80%;
    position: relative;
}

.client-reviews h2 {
    font-size: 30px;
    margin-top: 60px;
    margin-bottom: 60px;
    color: #333;
}

.reviews-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 600px;
    justify-content: center;
}

.reviews-container {
    position: relative;
    margin: 0 100px;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.review {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.review.active {
    opacity: 1;
}

.review p {
    font-size: 18px;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.review span {
    font-size: 16px;
    font-weight: bold;
    color: #666;
}

button.prev, button.next {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #b3b3b3;
    padding: 10px;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    transition: color 0.3s;
}

button.prev { left: -40px; }
button.next { right: -40px; }

button.prev:hover, button.next:hover {
    color: black;
}


.main-content, .text-content, .client-reviews {
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 0.8s ease-out forwards;
}

/* Keyframes for the slide-in effect */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


