/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Make sure images never overflow their container */
img {
    max-width: 100%;
    height: auto;
}

:root {
    --bg-dark: #0a0e16;
    --bg-card: #141a24;
    --accent-orange: #f46a26;
    --text-gray: #a0aab8;
    --border-color: #2a3441;
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: var(--font-main);
}

/* --- Navbar / Header --- */

@media (max-width: 576px) {
    .logo {
        font-size: 18px;
    }
    .logo-img {
        max-height: 35px;
    }
}

@media (max-width: 991px) {
    .navbar .btn-primary-custom {
        display: block;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
}

.site-header {
    background-color: var(--bg-dark);
    border-bottom: 10px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Fixed the "smashing" here */
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    white-space: nowrap;
}

.logo-img {
    max-height: 70px;
    width: auto;
}

.logo-sub {
    font-weight: 400;
    color: var(--text-gray);
}

.navbar .nav-link {
    color: var(--text-gray);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent-orange);
    text-shadow: 0 0 20px var(--accent-orange), 0 0 20px var(--accent-orange);
}

/* --- Buttons --- */
.btn-primary-custom {
    background-color: var(--accent-orange);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary-custom:hover {
    background-color: #ffffff00;
    /* White background */
    color: var(--accent-orange);
    /* Orange text */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    /* Adds a subtle white glow so it lifts off the page */
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid #fff;
    padding: 12px 30px;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline-custom:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* --- Carousel --- */
.carousel-item {
    height: 520px;
    background-size: cover;
    background-position: center;
    transition: opacity 5s ease-in-out !important;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    transition: opacity 5.0s !important;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(10, 14, 22, 0.9) 0%, rgba(10, 14, 22, 0.4) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.hero-title {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;       /* Space BETWEEN the two lines */
    letter-spacing: 1px;    /* Space BETWEEN each letter */
    word-spacing: 1px;      /* Space BETWEEN each word */
    margin-bottom: 20px;
}

.section-tag {
    color: var(--accent-orange);
    font-weight: 600;
    letter-spacing: 2px;
    /* text-align: center; */
}

/* Mobile-friendly carousel height */
@media (max-width: 768px) {
    .carousel-item {
        height: auto;
        min-height: 520px;
    }

    .hero-overlay {
        min-height: 520px;
        height: auto;
        padding: 60px 20px 40px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .hero-actions .btn-outline-custom {
        margin-left: 0 !important; /* Removes ms-2 on mobile */
    }
}

/* --- Stats --- */
.stats-section {
    background-color: var(--bg-card);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 40px;
    color: #fff;
    padding-bottom: 10px;
}

.stat-text h3 {
    font-size: 28px;
    color: var(--accent-orange);
    margin: 0;
    font-weight: bold;
}

.stat-text p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .stat-icon {
        font-size: 28px;
    }
    .stat-text h3 {
        font-size: 22px;
    }
    .stat-text p {
        font-size: 11px;
    }
    .stat-item {
        flex-direction: column; /* Stack icon above text */
        text-align: center;
        gap: 8px;
    }
}

/* --- Services --- */
.service-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--accent-orange);
}

.service-card i {
    font-size: 16px;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

/* CSS for the BIG Service Icons (User-tie, Video, etc.) */
.service-card .service-icon {
    font-size: 50px;
    color: var(--accent-orange);
    margin-bottom: 15px;
    display: block;
}

.service-card p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

.service-card a {
    color: var(--accent-orange);
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.service-card .service-title {
    font-weight: bold;
}

/* --- Form Section --- */
.form-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
}

.form-control,
.form-select {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(244, 106, 38, 0.25) !important;
}

/* --- Form Placeholder Styling --- */
.form-control::placeholder,
.form-select::placeholder {
    color: rgb(100, 100, 100); /* Uses your existing light gray variable */
    opacity: 1; /* Required for Firefox to show the correct color */
}

/* --- Footer --- */
.site-footer {
    background: #05070b;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.site-footer a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
}

.site-footer a:hover {
    color: var(--accent-orange);
}

/* --- Mission & Vision --- */
.mission-vision-card {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    border-left: 6px solid var(--accent-orange);
    /* Bold orange stripe on the left */
    height: 100%;
    text-align: center;

}

.mv-title {
    font-size: 3.5rem;
    /* Massive, big letters! */
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.mission-vision-card p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* --- About Us --- */
.about-img {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.about-section p {
    line-height: 1.8;
    text-align: center;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

.map-container iframe {
    filter: invert(90%) hue-rotate(180deg);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    /* Darker Green on hover */
    color: #FFF;
    transform: scale(1.1);
    /* Slight zoom effect */
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    /* Adjusts the scroll so it doesn't hide behind the navbar */
}

/* --- Team Section --- */
.team-card {
    height: 100%;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-img-container {
    position: relative;
    width: 220px;
    /* Medium circle size */
    height: 220px;
    margin: 0 auto 20px;
}

.team-card img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* Stops the stretching! Crops the sides instead */
    object-position: center 15%;
    /* Pushes the focus slightly UP to keep the face centered */
    border: 5px solid var(--accent-orange);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.team-card:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* The Hover Message Overlay (perfectly matches the circle) */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 22, 0.95);
    color: #fff;
    border-radius: 50%;
    /* Keeps the overlay round */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.5s ease;
    z-index: 10;
}

.team-img-container:hover .team-overlay {
    opacity: 1;
    /* Shows message on hover */
}

.team-overlay h4 {
    color: var(--accent-orange);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.team-overlay p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.team-overlay h5 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Text below the image */
.team-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.team-info p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* --- Owner Pop-up & Manager Fade --- */

/* The Manager card stays normal, but has a smooth transition ready */
.manager-wrapper {
    transition: opacity 0.4s ease;
}

/* When hovering the Owner, fade out the Manager card completely */
.owner-wrapper:hover~.manager-wrapper {
    opacity: 0;
    pointer-events: none;
    /* Prevents accidentally hovering the Manager */
}

/* The Owner's pop-up box */
.owner-popup {
    position: absolute;
    top: 50%;
    right: -110%;
    /* Pops out to the right, over the Manager's spot */
    transform: translateY(-50%) scale(0.95);
    width: 320px;
    background-color: var(--bg-card);
    border: 2px solid var(--accent-orange);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    text-align: left;
}

/* --- Make pop-up text smaller --- */
.owner-popup h4 {
    font-size: 21px;
    /* Title (DIRECTOR'S MESSAGE) */
    margin-bottom: 8px;
    font-weight: bold;
}

.owner-popup p {
    font-size: 14px;
    /* The main message text */
    line-height: 1.5;
    /* Makes it easier to read when small */
    margin-bottom: 8px;
}

/* .owner-popup h5 {
    font-size: 12px; The name at the bottom */
/* padding-top: 8px;
} */

/* The Tail pointing left towards the Owner's image */
.owner-popup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -16px;
    transform: translateY(-50%);
    border-width: 16px 16px 16px 0;
    border-style: solid;
    border-color: transparent var(--accent-orange) transparent transparent;
}

/* Show pop-up on Owner hover */
.owner-wrapper:hover .owner-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
    .owner-popup {
        position: fixed; /* Overlay the whole screen */
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 350px;
        z-index: 9999;
    }
    .owner-wrapper:hover .owner-popup {
        transform: translate(-50%, -50%) scale(1);
    }
    /* Hide the little tail on mobile since popup is centered */
    .owner-popup::before {
        display: none;
    }
}

.partner-box {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    padding: 0; /* No padding so it touches the edges */
    height: 120px; 
    overflow: hidden; /* hides the cropped edges */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the box completely, crops the sides if needed */
    filter: grayscale(100%); 
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Hover effects */
.partner-box:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.partner-box:hover img {
    filter: grayscale(0%); /* Brings full color back on hover */
    opacity: 1;
}

.partner-box-contain {
    padding: 0px;
    height: auto; /* Let's the box grow/shrink to fit the logo */
    min-height: 120px; /* Keeps it from getting too small */
}

.partner-box-contain img {
    width: 100%;
    height: auto; /* Keeps the logo's perfect proportions */
    object-fit: contain;
}

@media (max-width: 576px) {
    .partner-box {
        height: 90px; /* Shorter boxes on mobile */
        padding: 8px;
    }
}

/* .site-footer a[href^="tel"] {
    color: var(--text-gray);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-footer a[href^="tel"]:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 10px var(--accent-orange);
} */

/* --- Footer Contact Links (Phone, Email, Address) --- */
.contact-link {
    display: flex;           /* Puts the icon and text side-by-side */
    align-items: flex-start; /* Aligns the icon to the TOP if the text wraps */
    gap: 10px;               /* Perfect space between icon and text */
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link i {
    margin-top: 3px;         /* Nudges the icon down slightly to line up with text */
    flex-shrink: 0;          /* Prevents the icon from being squished */
    width: 16px;             /* Locks the icon width so all 3 icons align in a perfect column */
    text-align: center;      /* Centers the icon inside its little 16px box */
}

.contact-link:hover {
    color: var(--accent-orange); /* Optional: turns orange on hover just like the navbar */
}

/* --- Footer Contact Spacing --- */
.site-footer .list-unstyled li {
    margin-bottom: 10px; /* Change this number to increase or decrease the space */
}

.footer-text{
    font-weight: bold;
    text-align: center;
}

@media (max-width: 768px) {
    .site-footer .row > div {
        text-align: center; /* Center everything on mobile */
    }
    .site-footer ul {
        padding-left: 0;
    }
    .contact-link {
        justify-content: center; /* Center phone/email/address */
    }
}


/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
img {
    max-width: 100%;
    height: auto;
}

/* ---- Tablets & Small Laptops (≤ 991px) ---- */
@media (max-width: 991px) {
    .navbar .btn-primary-custom {
        display: block;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
}

/* ---- Mobile Landscape & Tablets (≤ 768px) ---- */
@media (max-width: 768px) {
    /* Carousel */
    .carousel-item {
        height: auto;
        min-height: 90vh;
    }

    .hero-overlay {
        padding: 80px 20px 40px 20px;
    }

    .hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;       /* Space BETWEEN the two lines */
    letter-spacing: 1px;    /* Space BETWEEN each letter */
    word-spacing: 1px;      /* Space BETWEEN each word */
    margin-bottom: 20px;
    }

    .section-tag {
        font-size: 12px;
        letter-spacing: 1px;
    }

    /* Stats */
    .stat-icon { font-size: 28px; }
    .stat-text h3 { font-size: 22px; }
    .stat-text p { font-size: 11px; }
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* Owner Popup */
    .owner-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 350px;
        z-index: 9999;
    }
    .owner-wrapper:hover .owner-popup {
        transform: translate(-50%, -50%) scale(1);
    }
    .owner-popup::before {
        display: none;
    }

    /* Footer */
    .site-footer .row > div {
        text-align: center;
    }
    .contact-link {
        justify-content: center;
    }
}

/* ---- Phones (≤ 576px) ---- */
@media (max-width: 576px) {
    /* Hero buttons stack vertically */
  /* Hero Buttons Alignment */
.hero-actions {
    display: flex;
    flex-wrap: wrap;      /* Allows wrapping on small screens */
    align-items: center;  /* Keeps them vertically aligned */
    gap: 15px;            /* Consistent space between buttons */
    margin-top: 20px;
}
    .hero-actions .btn-outline-custom {
        margin-left: 0 !important;
    }

    /* WhatsApp button smaller */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    /* Partner boxes smaller */
    .partner-box {
        height: 90px;
        padding: 8px;
    }

    /* Logo smaller */
    .logo { font-size: 18px; }
    .logo-img { max-height: 35px; }

    /* Form padding reduce */
    .form-card { padding: 25px 20px; }

    /* Section titles smaller */
    h2 { font-size: 24px; }
    .hero-title { font-size: 26px; }
}

/* Keeps the second line together on one line */
.keep-together {
    white-space: nowrap;
}

/* On small phones, allow it to shrink instead of overflowing */
@media (max-width: 576px) {
    .hero-title {
        font-size: 28px; /* Smaller so "MATTERS MOST" fits */
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column; /* Stack vertically */
        align-items: stretch;   /* Full width */
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Carousel arrows lower on desktop */
.carousel-control-prev,
.carousel-control-next {
    top: 60%;
}

/* Even lower on mobile since the hero is taller */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        top: 75%;
    }
}