:root {
    --primary: #0f172a; /* Midnight Navy */
    --accent: #f1121c; /* Action Blue */
    --gold: #fbbf24; /* Security Gold */
    --success: #10b981; /* Green */
    --primary-red: #f1121c;
    --dark-red: #b92626;
}

.text-brand-red {
    color: var(--primary-red);
}

body {
    font-family: 'Playfair Display', serif;
    scroll-behavior: smooth;
}

.glass-nav {
    background: rgba(15, 23, 42, 0.9);
   /* backdrop-filter: blur(10px);*/
    transition: all 0.3s ease;
}

.hero-gradient {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)), url('../assets/img/gallery/banner-hero-image.png');
    background-size: cover;
    background-position: center;
}

.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

.trust-badge {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

    .trust-badge:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

    .whatsapp-btn:hover {
        transform: scale(1.1);
    }

.section-padding {
    padding: 100px 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0f172a;
    border-radius: 4px;
}

/* Trust Bar */
.trust-bar {
    background: #dfdfdf;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.section-padding {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.contact-flex {
    display: flex;
    flex-wrap:wrap;
    gap: 50px;
    background: #111;
    color: white;
    padding: 60px;
    border-radius: 12px;
}

/* Desktop default */
.form-row {
    display: flex;
    gap: 20px;
}

/* Mobile force column */
@media (max-width: 768px) {

    .form-row {
        flex-direction: column !important;
        gap: 15px;
    }

    .form-group {
        width: 100%;
    }

    .form-control {
        width: 100%;
    }
}

/* Contact text spacing */
.contact-details p {
    margin-top: 20px;
    color: #fff;
}

/* Map responsive wrapper */
.map-wrapper {
    position: relative;
    width: 100%;
    margin-top: 25px;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

    /* Iframe full fill */
    .map-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Mobile polish */
@media (max-width: 768px) {
    .map-wrapper {
        padding-bottom: 65%; /* thoda taller on mobile */
    }
}


.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background: #222;
    color: white;
    border-radius: 4px;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-red);
    }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-red {
    background: var(--primary-red);
    color: white;
}

    .btn-red:hover {
        background: var(--dark-red);
        transform: translateY(-2px);
    }

.btn-outline {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

    .btn-outline:hover {
        background: var(--primary-red);
        color: white;
    }


.bg-brand-red {
    background-color: var(--primary-red);
}

.owl-carousel .item-logo {
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    margin: 5px;
}

.career-card:hover .career-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Footer Menu */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
}


@media (max-width: 992px) {
    .section-padding {
        padding: 50px 0;
    }
}

@keyframes soft-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(241, 18, 28, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(241, 18, 28, 0);
    }
}

.animate-soft-pulse {
    animation: soft-pulse 2s infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.stat-card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hero-gradient {
    background: url('../assets/img/gallery/banner-hero-image.jpg');
    background-size: cover;
    background-position: top;
}


/* Alternating backgrounds for better flow */
.service-section:nth-child(even) {
    background-color:white;
}
/* gray-900 */
.service-section:nth-child(odd) {
    background-color: #f8fafc;
}
/* slate-900 */

.sticky-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.section-padding {
    padding: 100px 0;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 992px) {
    .section-padding {
        padding: 50px 0;
    }
}


/* Image Hover Effect */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 100;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
   /* backdrop-filter: blur(10px);*/
    align-items: center;
    justify-content: center;
}

.advisory-section {
    padding: 100px 20px;
    background: #ffffff;
}

.advisory-container {
    max-width: 1400px;
    margin: 0 auto;
    justify-content:center;
}

.advisory-heading {
    text-align: center;
    margin-bottom: 70px;
}

    .advisory-heading .subtitle {
        display: inline-block;
        color: #ed1e32;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .advisory-heading h2 {
        font-size: 40px;
        font-weight: 700;
        line-height: 1.3;
    }

        .advisory-heading h2 span {
            color: #ed1e32;
        }

    .advisory-heading p {
        max-width: 700px;
        margin: 15px auto 0;
        color: #666;
        font-size: 16px;
    }

.advisory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.advisory-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #f9f9f9;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

    .advisory-card img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        display: block;
    }

    .advisory-card .overlay {
        position: absolute;
        inset: 0;
        background: rgba(237, 30, 50, 0.9);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
        opacity: 0;
        transition: all 0.4s ease;
        text-align: center;
    }

        .advisory-card .overlay p {
            font-size: 16px;
            line-height: 1.6;
        }

    .advisory-card:hover .overlay {
        opacity: 1;
    }

    .advisory-card .info {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 18px 20px;
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
    }

        .advisory-card .info h4 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }

        .advisory-card .info span {
            font-size: 14px;
            color: #ddd;
        }

/* Responsive */
@media (max-width: 768px) {
    .advisory-grid {
        grid-template-columns: 1fr;
    }

    .advisory-card img {
        height: 360px;
    }

    .advisory-heading h2 {
        font-size: 30px;
    }
}

.validation-error {
    color: #ff3b3b !important; /* Strong red */
    font-size: 13px;
    margin-top: 4px;
    display: block;
}


/*****************/
/*Website loader*/
/*****************/
:root {
    --brand-red: #e11d48;
    --brand-dark: #0a0a0b;
}
/* Loader Overlay */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1c 0%, #0a0a0b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

/* Combined Logo & Shield Container */
.brand-container {
    position: relative;
    width: 220px; /* Matched to logo width */
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.shield-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1.05); /* Slightly larger than logo for a "halo" effect */
}

/* Adjusted path to mimic the specific curvature of the AnSecure shield */
.shield-path {
    fill: none;
    stroke: var(--brand-red);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    filter: drop-shadow(0 0 12px rgba(225, 29, 72, 0.6));
    animation: drawShield 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.logo-img {
    position: relative;
    left: 0px;
    z-index: 2;
    width: 153px;
    height: auto;
    opacity: 0;
    filter: brightness(1.2);
    animation: fadeInLogo 1s ease-out 1.2s forwards;
}

@keyframes drawShield {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Text Animation */
.brand-name {
    color: white;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.8s forwards;
}

.brand-tagline {
    color: #666;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 2.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red);
    transition: width 0.3s ease;
}

/* Main Content State */
#main-content {
    opacity: 0;
   /* filter: blur(10px);*/
    transition: all 1.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.content-visible #main-content {
    opacity: 1;
    /*filter: blur(0px);*/
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}


/*Advisory Board*/
:root {
    --primary-color: #1a1a1a; /* Deep Charcoal/Black */
    --accent-color: #b71c1c; /* Professional Crimson Red */
    --accent-soft: #fdeaea; /* Very light red for hover backgrounds */
    --text-dark: #2d2d2d;
    --text-light: #757575;
    --bg-light: #fcfcfc;
    --card-bg: #ffffff;
    --white: #ffffff;
    --radius-lg: 24px; /* More rounded corners */
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Container & Grid Logic */
.advisory-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 15px;
    text-align: center; /* Center align container content */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.8rem;
        color: var(--primary-color);
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }

    .section-header .underline {
        width: 50px;
        height: 4px;
        background: var(--accent-color);
        margin: 0 auto;
        border-radius: 2px;
    }

.advisory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

/* Advisory Card Styling */
.advisory-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #eeeeee;
    cursor: pointer;
    position: relative;
}

    .advisory-card:hover {
        transform: translateY(-8px);
        border-color: var(--accent-color);
        box-shadow: 0 20px 40px rgba(183, 28, 28, 0.1);
    }

.image-wrapper {
    width: 160px;
    height: 160px;
    margin-bottom: 25px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* More rounded border effect on hover */
    .image-wrapper::after {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border: 2px solid var(--accent-color);
        opacity: 0;
        transition: var(--transition);
        border-radius: 50%;
        transform: scale(0.9);
    }

.advisory-card:hover .image-wrapper::after {
    opacity: 1;
    transform: scale(1);
}

.advisory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1;
    border: 2px solid var(--bg-light);
    background-color: #eee;
}

.advisory-card .info h4 {
    margin: 15px 0 8px 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.advisory-card .info span {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.view-profile-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: auto;
    padding: 10px 24px;
    border: 1px solid #eee;
    border-radius: 30px; /* Fully rounded button */
    transition: var(--transition);
}

.advisory-card:hover .view-profile-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Modal / Popup Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 700px;
    padding: 0;
    position: relative;
    animation: slideIn 0.4s ease-out;
    max-height: 90vh;
    overflow: hidden;
    border-radius: var(--radius-lg); /* Matches card rounding */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center align modal content */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: #f5f5f5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

    .close-modal:hover {
        background: var(--accent-soft);
        color: var(--accent-color);
    }

.modal-body {
    overflow-y: auto;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header-info {
    display: flex;
    flex-direction: column; /* Center stacked for consistency */
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

    .modal-header-info img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid var(--accent-color);
    }

.modal-header-text h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
}

.modal-header-text p {
    margin: 5px 0 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bio-text {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1rem;
    text-align: center; /* Center aligned text as requested */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .modal-body {
        padding: 40px 20px;
    }

    .advisory-card {
        padding: 40px 20px;
    }

    .advisory-grid {
        gap: 20px;
    }
}
