/* FONTS */
@import url(../css/clash-display.css);

/* VARIABLES */
:root {
    --c-dark: #4A4A4A;      /* Dark Gray */
    --c-brand: #8B0000;     /* Deep Red */
    --c-brand-light: #A52A2A; /* Lighter red */
    --c-brand-rgb: 139, 0, 0; /* Deep Red RGB */
    --c-body: #9A9A9A;      /* Light Gray */
    --font-base: "ClashDisplay", sans-serif;
    --box-shadow: 0px 15px 25px rgba(0,0,0,0.08);
    --transition: all 0.5s ease;
}

/* RESET & HELPERS */
html, body {
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    color: var(--c-dark);
}

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);
}

/* BTN */
.btn {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 10px 24px;
}

.btn-brand {
    background-color: #8B0000; /* Deep Red */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-brand:hover {
    background-color: #4A4A4A; /* Dark Gray */
    border-color: var(--c-brand-light);
    color: white;
}

/* HERO */
#hero {
    background: linear-gradient(rgba(139, 0, 0, 0.2), rgba(139, 0, 0, 0.1)), url(../images/hero.jpeg);
    background-position: center;
    background-size: cover;
}

.custom-h5 {
    font-size: 18px;
    line-height: 1.9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A modern sans-serif font */
    color: #f0f0f0; /* Softer white for a more elegant text color */
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(74, 74, 74, 0.7); /* Dark Gray with opacity */
    border-radius: 5px;
    text-align: center;
    font-weight: normal;
    text-indent: 30px;
    padding-left: 30px;
}

.custom-h5:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: opacity 0.3s, transform 0.3s;
    color: #ffffff;
    animation: fadeInUp 1.2s ease-out;
}

/* SERVICES */
.services {
    padding: 6rem 0;
    text-align: center;
    background-color: #fff;
}

.services h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #4A4A4A; /* Dark Gray */
}

.services p {
    font-size: 1.1rem;
    color: #9A9A9A; /* Light Gray */
    margin-bottom: 3rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 1.2rem;
    color: #8B0000; /* Deep Red */
    margin-bottom: 1.2rem;
}

.service-card p {
    font-size: 1rem;
    color: #9A9A9A; /* Light Gray */
    margin-bottom: 1.5rem;
}

.card-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover {
    background-color: #4A4A4A; /* Dark Gray */
}

/* COUNTER */
#counter {
    background: linear-gradient(rgba(139, 0, 0, 0.1), rgba(139, 0, 0, 0.2)), url(../images/kljh.jpg);
    background-position: center;
    background-size: cover;
}

/* TEAM MEMBER */
.team-member {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-content {
    background-color: #8B0000; /* Deep Red */
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    opacity: 1;
    transition: none;
}

.team-member-content h4 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #FFFFFF; /* White */
}

.team-member-content p {
    font-size: 14px;
    margin-bottom: 0;
    color: #fff;
}

.image-zoom-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: none;
    margin-bottom: 20px;
}

.image-zoom-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.custom-image-container {
    width: 200px;
    height: 200px;
}

/* CONTACT */
#contact {
    position: relative;
    z-index: 2;
}

#contact::after {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(139, 0, 0, 0.0), rgba(139, 0, 0, 0.0)), url(../images/contact.jpeg);
    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);
}

/* General Styling for the About Us Page */
#about {
    background-color: #ffffff;
    padding: 60px 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #4A4A4A; /* Dark Gray */
    margin-bottom: 15px;
}

.lead {
    font-size: 1.1rem;
    color: #9A9A9A; /* Light Gray */
    line-height: 1.6;
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #8B0000; /* Deep Red */
    margin-bottom: 20px;
}

.section-text {
    font-size: 1.1rem;
    color: #9A9A9A; /* Light Gray */
    line-height: 1.7;
    text-align: justify;
}

.text-center {
    text-align: center;
}

.values {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.value-item {
    background-color: #fff;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    flex: 1 1 30%; /* Make it responsive by giving it a flex-grow */
    margin: 10px;
}

.value-item h3 {
    font-size: 1.4rem;
    color: #8B0000; /* Deep Red */
    margin-bottom: 10px;
}

.value-item p {
    font-size: 1rem;
    color: #9A9A9A; /* Light Gray */
    line-height: 1.6;
}

.value-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #4A4A4A; /* Dark Gray */
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media screen and (max-width: 992px) {
    .services h2 {
        font-size: 2.4rem;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .value-item {
        flex: 1 1 45%;
    }
}

@media screen and (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-item {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .section-title h1 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .service-card {
        padding: 2rem;
    }

    .btn {
        font-size: 12px;
        padding: 8px 20px;
    }

    .custom-h5 {
        font-size: 16px;
        padding: 15px;
    }
}

.image-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
  }

  .image-circle img {
    width: 180%;
    height: 180%;
    object-fit: cover;
  }

  .flip-card {
    width: 120%;
    height: 140px;
    perspective: 1000px;
    transform: translateY(-3cm) translateX(-1cm);
  }

  .flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
  }

  .flip-card:hover .flip-inner {
    transform: rotateY(180deg);
  }

  .flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 200%;
    background-color: #8B0000; /* Deep Red */
    color: white;
    border-radius: 12px;
    padding: 1rem;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .flip-back {
    transform: rotateY(180deg);
    background-color: #4A4A4A; /* Dark Gray */
  }

  h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .flip-front p,
  .flip-back p {
    font-size: 0.95rem;
    margin: 0;
  }

  .founder-card {
    max-width: 300px;
    margin: 0 auto;
  }