/* FONTS */
@import url(../assets/clash-display.css);
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins:wght@700&display=swap');

/* Var */
:root {
    --c-dark: #000000;
    --c-brand: #4e57d4;
    --c-brand-light: #7179ec;
    --c-brand-rgb: 80, 74, 74;
    --c-body: #504a4a;
    --font-base: "ClashDisplay", sans-serif;
    --box-shadow: 0px 15px 25px rgba(0,0,0,0.08);
    --transition: all 0.5s ease;
}

/* Set Elements */
body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
    background-color: rgb(236, 236, 236);
}

h1, h2, h3,h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6{
    font-weight:bolder;
    color: var(--c-dark);
    font-family: "Outfit", sans-serif;
}

a {
    text-decoration: none;
    color: var(--c-brand);
    transition: var(--transition);
}

a:hover {
    color: var(--c-brand-light);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
}

.theme-shadow {
    box-shadow: var(--box-shadow);
}

/* Img zoom */
.image-zoom {
    position: relative;
}

.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);
}

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--c-dark);
}

.navbar-nav .nav-link.active {
    color: var(--c-brand);
}
/* buttons */
.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 10rem;
    border-radius: 2rem;
}
.btn-nav{
    font-weight: 600;
    padding: 1rem;
    width: 10rem;
    border-radius: 2rem;
    border-color: var(--c-brand);
}
.btn-nav:hover{
    font-weight: 600;
    padding: 1rem;
    width: 10rem;
    background-color: var(--c-brand-light);
    border-color: var(--c-brand-light);
}
.btn-brand-me-2{
    margin-top: 10px;
    background-color: var(--c-brand);
    border-color: var(--c-brand);
    color: white;
}
.btn-brand-me-2:hover{
    margin-top: 10px;
    background-color: var(--c-brand-light);
    border-color: var(--c-brand-light);
    color: white;
}


.btn-brand {
    background-color: var(--c-brand);
    border-color: var(--c-brand);
    color: white;
    width: 100px;
}

.btn-brand:hover {
    background-color: var(--c-brand-light);
    border-color: var(--c-brand-light);
    color: white;
}
/* For Home Section */
#home {
    background: linear-gradient(rgba(var(--c-brand-rgb), 1.000), rgba(var(--c-brand-rgb), 0.438)),url(../assets/imgs/logo.jpg);
    background-position: center;
    background-size: cover;
    text-shadow: #212529;
}

.col-lg-6{
    height: 25px;
}

  

/* About Section */
#about {
    background: white;
    background-position: center;
    background-size: cover;
    text-shadow: #212529;
}

/* Section title */
.section-title {
    margin-bottom: 60px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--c-brand);
    margin: 16px auto 24px auto;
}

.section-title p {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* About Item styling */
/* About Section Responsiveness */
.about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    height: auto; /* Dynamic height */
}

.about-item:hover {
    transform: translateY(-10px);
}

@media (max-width: 992px) {
    .about-item {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-item {
        text-align: left; /* Better readability on smaller screens */
        padding: 1rem;
    }
    .row.g-4 {
        flex-direction: column; /* Stack items vertically */
    }
}


.about-item:hover {
    transform: translateY(-10px);
}

.about-item h4 {
    font-size: 1.5rem;
    font-weight: bold;
}

.about-item p {
    color: var(--c-body);
}
/* icon box class */
.iconbox {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: black, 0.1;
    background: lightslategray;
    font-size: 34px;
    flex: none;
}

/* Job Offers Section */
#offers {
    background: linear-gradient(rgba(var(--bg-section), 1.000), rgba(var(--bg-section), 0.438)), url(../assets/imgs/s2.jpg);
    background-position: center;
    background-size: cover;
    text-shadow: #212529;
}

/* Applet Container */
.applet-container {
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(27, 27, 27);
    text-align: center;
    justify-content: center;
    margin: 10px;
    padding: 10px;
    text-align: center;
}

.container-fluid {
    align-items: center;
    margin-right: 30px;
}

/* Flex container updated to use Grid */
.applet-flex-container {
    display: grid; /* Use grid for better control */
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
    gap: 2rem; /* Space between cards */
    padding: 2rem;
    justify-content: center;
    text-align: center;
}

/* Card Styling */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
}

.card:hover {
    transform: scale(1.05);
}

.card .image {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

/* Card content styling */
.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

/* Responsive Grid: 4 cards for the first row, 4 cards for the second row */
.applet-flex-container > div:nth-child(-n+4) {
    /* First 4 cards: Full width in the first row */
    grid-column: span 1;
}

.applet-flex-container > div:nth-child(n+5):nth-child(-n+8) {
    /* Next 4 cards: In the second row */
    grid-column: span 1;
}

@media (max-width: 1024px) {
    /* For medium screens, switch to a smaller grid layout */
    .applet-flex-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }
}

@media (max-width: 767px) {
    /* For mobile screens, switch to 1 card per row */
    .applet-flex-container {
        grid-template-columns: 1fr; /* 1 card per row */
    }
}

/* Team */
.team-member-content {
    background-color: rgba(0, 0, 255, 0.4); /* Light transparent blue */
    position: absolute;
    bottom: -24px;
    left: 50%;
    width: calc(100% - 50px);
    transform: translateX(-50%);
    padding: 24px;
    transition: var(--transition);
    opacity: 0; /* Initially hidden */
}

.team-member:hover .team-member-content {
    opacity: 0.7; /* Semi-transparent on hover */
    bottom: 24px; /* Move up smoothly */
    background-color: rgba(0, 0, 255, 0.3); /* Even lighter transparent blue */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional light shadow */
}

.team-member-content h4,
.team-member-content p {
    color: rgb(0, 0, 0); /* Ensure high contrast */
    text-shadow:rgba(241, 235, 235, 0.7); /* Add shadow for visibility */
    margin: 0; /* Maintain spacing */
}

/* New styles for consistent image sizing */
.team-member {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Optional for rounded corners */
}

.image-zoom-wrapper {
    width: 100%; /* Ensure full width of the parent container */
    height: 300px; /* Set a consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-zoom-wrapper img {
    width: 100%; /* Ensure full width */
    height: 100%; /* Ensure full height */
    object-fit: cover; /* Maintain aspect ratio */
    transition: transform 0.3s ease-in-out; /* Smooth effect for other interactions */
}

.image-zoom-wrapper img[src*="person-1.jpg"] {
    transform: scale(1.2); /* More zoom by default */
    object-position: center; /* Adjust focus point if needed */
}

/* Contact Us */
#contact {
    margin-top: 2px;
    position: relative;
    z-index: 2;
}

#contact::after {
    content: "";
    width: 100%;
    height: 70%;
    background: linear-gradient(rgba(var(--c-brand-rgb), 0.8), rgba(var(--c-brand-rgb), 0.8)), url(../images/counter.jpg);
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#contact .form-control {
    border-radius: 0;
}

#contact .form-control:focus {
    box-shadow: none;
    border-color: var(--c-brand);
}

/* Footer Layout */
.new-footer .row {
    display: flex;
    justify-content: center; /* Center both columns horizontally */
    align-items: flex-start; /* Align items to the top */
    gap: 40px; /* Space between Opportunet and Contact sections */
    margin: 0 auto; /* Center the row within the container */
}

.new-footer .col-lg-3,
.new-footer .col-md-4 {
    margin-bottom: 30px; /* Bottom margin for spacing between rows */
}

/* Add margin-top to the Opportunet and Contact Sections */
.new-footer .col-lg-3:first-child, /* First column (Opportunet) */
.new-footer .col-md-4 { /* Second column (Contact) */
    margin-top: 30px; /* Margin to space it away from the top */
}

/* Title Alignment */
.new-footer h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    text-align: center; /* Ensure titles are aligned center */
}

/* Line style for visual separation */
.new-footer .line {
    width: 40px;
    height: 4px;
    background-color: #ff7f50;
    margin: 10px auto;
}

/* Footer styling */
.new-footer p,
.new-footer ul li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center; 
}

.new-footer ul {
    padding-left: 0;
    list-style: none;
}

.new-footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}

.new-footer ul li a:hover {
    color: #ff7f50;
}

.new-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.new-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    margin-top: 15px;
}

.social-icon {
    margin: 0 10px;
    font-size: 20px;
    color: #fff;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ff7f50;
}

/* Responsiveness */
@media (max-width: 768px) {
    .new-footer .row {
        flex-direction: column; /* Stack columns vertically on smaller screens */
        gap: 20px; /* Reduced gap for smaller devices */
        align-items: center; /* Center align columns vertically */
    }

    .new-footer .col-lg-3, 
    .new-footer .col-md-4 {
        margin-bottom: 20px; /* Reduce margin-bottom on smaller screens */
    }

    .new-footer .footer-bottom {
        text-align: center;
    }
}
