:root {
    --primary-color: #2c3e50;
    --secondary-color: #1B8E26;
    --secondary-color-dark: #156E1D;
    --logo-purple: #3E2961;
    --logo-purple-light: #817398;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Replace Bootstrap's default blue primary button with the logo's green */
.btn-primary {
    --bs-btn-bg: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-bg: var(--secondary-color-dark);
    --bs-btn-hover-border-color: var(--secondary-color-dark);
    --bs-btn-active-bg: var(--secondary-color-dark);
    --bs-btn-active-border-color: var(--secondary-color-dark);
    --bs-btn-focus-shadow-rgb: 27, 142, 38;
}

.navbar {
    background: linear-gradient(135deg, var(--logo-purple-light) 0%, var(--logo-purple) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    margin-right: 10px;
}

.nav-link {
    color: #ffffff;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffd166;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(27, 142, 38, 0.5);
}

.hero-section {
    height: 100vh;
    min-height: 560px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-slide-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hero-dot.active {
    background: #ffffff;
    transform: scale(1.15);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: var(--glass-border);
    padding: 30px;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
}

.section-title {
    position: relative;
    display: table;
    margin: 0 auto 50px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Same bold weight + color as the main section titles (e.g. "About Us"),
   for sub-headings within a section like "Our Core Values" / "Our Take on HR" */
.subsection-title {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-box {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    height: 100%;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-box:hover {
    transform: translateY(-6px);
    border-color: var(--secondary-color);
}

/* Service image shown as a faded background behind the box content */
.service-box.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--service-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.service-box.has-bg-image:hover::before {
    opacity: 0.22;
}

.service-box-content {
    position: relative;
    z-index: 1;
}

.team-card {
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    outline: 1px solid rgba(0, 0, 0, 0.06);
    outline-offset: -8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: #fff;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.team-img-square {
    width: 220px;
    height: 220px;
    border-radius: 0;
    object-fit: cover;
    object-position: center top;
}

/* HR section: image shown as a faded full-card background instead of a separate image grid */
.hr-card {
    position: relative;
    overflow: hidden;
}

.hr-card.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hr-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    z-index: 0;
}

.hr-card-content {
    position: relative;
    z-index: 1;
}

.client-logo {
    height: 90px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
}

/* Clients carousel: give slides room to breathe above the pagination
   dots instead of sitting flush against them */
.clients-swiper {
    padding-bottom: 50px;
}

.clients-swiper .swiper-slide {
    padding: 15px 10px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clients-swiper .swiper-slide p,
.client-name {
    margin-top: 14px;
    margin-bottom: 0;
    font-weight: 500;
}

.clients-swiper .swiper-pagination {
    bottom: 5px !important;
}

/* Contact section background image, faded so form/text stay legible */
#contact.contact-bg {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#contact.contact-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 247, 250, 0.88);
    z-index: 0;
}

#contact.contact-bg > .container {
    position: relative;
    z-index: 1;
}

.contact-info {
    margin-bottom: 20px;
    text-align: left;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Center the body copy in the About Us cards (Our Story / Vision & Mission),
   matching the already-centered headings and the Services/Team/Clients sections */
#about .glass-card {
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Admin edit-mode affordance shown only when a logged-in admin views the site */
.admin-edit-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 42px;
    z-index: 2000;
    background: #1a1a1a;
    color: #fff;
    padding: 0 16px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.admin-edit-bar a {
    color: #fff;
    text-decoration: underline;
    margin-left: 12px;
}

/* When the admin bar is showing, push the fixed navbar down below it and
   add matching top padding to the page so content isn't hidden underneath
   either bar — without this, both bars sit at top:0 and overlap. */
body.has-admin-bar {
    padding-top: 42px;
}

body.has-admin-bar .navbar {
    top: 42px;
}
