/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --primary: #2E3092;         /* Exact Brand Royal Sapphire/Cobalt Blue */
    --primary-dark: #1E2068;    /* Deep Midnight Corporate Navy */
    --primary-light: #4347B8;   /* Vibrant Royal Cobalt */
    --secondary: #1E2068;       /* Deep Navy */
    --accent: #484AA0;          /* Soft Royal Accent */
    --accent-hover: #393B97;    /* Accent Hover */
    --accent-light: #EBEBF7;    /* Soft Tint */
    --white: #FFFFFF;
    --light: #F4F5FB;           /* Clean Modern Corporate Background */
    --dark: #101236;            /* Deep Blue-Black for dark UI & footer */
    --text-color: #2D3154;      /* High contrast slate navy */
    --text-muted: #6B7094;      /* Secondary text */
    --gray: #8A90B2;
    --border-color: #E2E4F0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    color: var(--primary); 
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Typography & Utilities */
.container { width: 100%; padding: 4rem 5%; margin: 0 auto; }
.section-title { 
    text-align: center; 
    font-size: 2.6rem; 
    margin-bottom: 3rem; 
    color: var(--primary); 
    position: relative; 
    font-weight: 800;
}
.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px; 
    background: var(--primary); 
    margin: 12px auto 0; 
    border-radius: 2px;
}
.text-center { text-align: center; }

/* Navigation */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: #2E3092;
    padding: 0.5rem 0; transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 5%; }
.menu-toggle { display: none; font-size: 1.8rem; color: #FFFFFF; cursor: pointer; }
.mobile-close-btn { display: none; font-size: 2rem; color: #FFFFFF; cursor: pointer; position: absolute; top: 20px; right: 20px; }
.menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(16,18,54,0.6); z-index: 1000; }
.menu-overlay.active { display: block; }
.logo { color: var(--white); font-size: 1.5rem; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo img { max-height: 90px; }
.nav-links { display: flex; justify-content: space-between; flex-grow: 1; margin-left: 4rem; list-style: none; align-items: center; }
.nav-links a { 
    color: #FFFFFF; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 700; 
    transition: all 0.25s ease; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-family: var(--font-heading);
    padding: 8px 14px;
    border-radius: 6px;
}
.nav-links a:hover, .nav-links a.active { 
    color: #FFFFFF; 
    background-color: rgba(255, 255, 255, 0.18);
}

/* Dropdown navigation styles */
li.dropdown {
    position: relative;
}
li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    min-width: 260px;
    box-shadow: 0 12px 30px rgba(16, 18, 54, 0.35);
    border-radius: 8px;
    padding: 12px 0;
    z-index: 1010;
    list-style: none;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
/* Visual arrow for the dropdown menu */
li.dropdown .dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--primary-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
/* Bridge gap to prevent dropdown closing when hovering from nav link to menu */
li.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: none;
}
li.dropdown:hover::after {
    display: block;
}
li.dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.3s ease forwards;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
li.dropdown .dropdown-menu li {
    width: 100%;
}
li.dropdown .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.92) !important;
    display: block;
    padding: 10px 20px;
    text-transform: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: normal;
    line-height: 1.4;
    font-family: var(--font-body);
    border-radius: 0;
}
li.dropdown .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--dark);
}

.slider-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s linear;
    z-index: -2;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 12, 30, 0.8) 0%, rgba(10, 12, 30, 0.35) 50%, rgba(10, 12, 30, 0.1) 100%);
    z-index: -1;
}

.slide-content {
    max-width: 900px;
    padding: 0 20px;
}

.slide-category {
    display: inline-block;
    color: #FFFFFF;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: #2E3092;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.6);
    color: var(--white);
    font-weight: 800;
    font-family: var(--font-heading);
}

.slide-content .desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.8);
    font-family: var(--font-body);
}

/* Slider Thumbnails Navigation */
.slider-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.thumbnails-container {
    display: flex;
    gap: 15px;
    background: rgba(16, 18, 54, 0.85);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.thumb {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.active {
    opacity: 1;
    border-color: #FFFFFF;
    box-shadow: 0 0 12px rgba(46, 48, 146, 0.8);
    transform: scale(1.08);
}

.thumb:hover {
    opacity: 1;
}

.thumb-progress {
    position: absolute;
    bottom: 0; left: 0; height: 3px;
    background: var(--primary-light);
    width: 0%;
}

.thumb.active .thumb-progress {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@media (max-width: 768px) {
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content .desc { font-size: 1rem; }
    .thumbnails-container { gap: 8px; padding: 6px; }
    .thumb { width: 60px; height: 40px; }
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-content .feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Our Process Cards */
.process-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(46, 48, 146, 0.06);
    border: 1px solid var(--border-color);
    border-top: 4px solid #2E3092;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}
.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(46, 48, 146, 0.14);
}
.process-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #2E3092;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(46, 48, 146, 0.22);
}
.process-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2E3092;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    line-height: 1.35;
}
.process-desc {
    color: var(--text-color);
    font-size: 0.98rem;
    line-height: 1.65;
}
.process-desc p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}
.process-desc p:last-child {
    margin-bottom: 0;
}

.principle-column {
    transition: transform 0.3s ease;
}
.principle-column:hover {
    transform: translateY(-5px);
}

.hero-content .tagline { font-size: 1.5rem; color: var(--primary-light); margin-bottom: 1.5rem; }
.hero-content .desc { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* Statistics Section */
.statistics-section {
    position: relative;
    z-index: 5;
}
.stats-container { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.btn { 
    display: inline-block; 
    padding: 0.9rem 2.2rem; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    border: none; 
    font-family: var(--font-heading);
}
.btn-primary { 
    background: var(--primary); 
    color: var(--white); 
    box-shadow: 0 4px 14px rgba(46, 48, 146, 0.3);
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(46, 48, 146, 0.4);
}
.btn-outline { 
    border: 2px solid var(--primary); 
    color: var(--primary); 
    margin-left: 1rem; 
    background: transparent;
}
.btn-outline:hover { 
    background: var(--primary); 
    color: var(--white); 
}

/* Stats */
.stat-item { text-align: center; }
.stat-item h3 { 
    font-size: 2.8rem; 
    color: var(--primary); 
    font-weight: 800;
    font-family: var(--font-heading);
}
.stat-item p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

/* About & Why Belfast */
#about { background: var(--white); }
.feature-card { 
    background: var(--light); 
    padding: 2.2rem 2rem; 
    border-radius: 12px; 
    text-align: center; 
    border-bottom: 4px solid var(--primary); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.feature-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(46, 48, 146, 0.08); 
}

/* Services */
.service-card { 
    background: var(--white); 
    padding: 2.5rem; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 6px 20px rgba(46, 48, 146, 0.04); 
    transition: all 0.3s ease; 
    border: 1px solid var(--border-color); 
}
.service-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 35px rgba(46, 48, 146, 0.12);
}
.service-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }

/* Projects Section */
#projects { background: var(--white); }
.project-filters { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn { 
    padding: 0.6rem 1.6rem; 
    background: #F4F5FB; 
    border: 1px solid #D6DAE8; 
    color: #1E2068; 
    border-radius: 30px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}
.filter-btn.active, .filter-btn:hover { 
    background: #2E3092; 
    color: #FFFFFF; 
    border-color: #2E3092;
    box-shadow: 0 6px 18px rgba(46, 48, 146, 0.25);
}

.project-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(46, 48, 146, 0.06);
    border: 1px solid #D6DAE8;
    border-top: 5px solid #2E3092;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(46, 48, 146, 0.16);
    border-top-color: #1E2068;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #111A2B;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2E3092;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.project-year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(16, 18, 54, 0.85);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #FFFFFF;
}

.project-client {
    color: #4347B8;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    color: #2E3092;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    flex-grow: 1;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 800;
    color: #2E3092;
    font-family: var(--font-heading);
    border-top: 1px solid #E2E4F0;
    padding-top: 0.85rem;
    margin-top: auto;
    transition: color 0.2s ease;
}

.project-card:hover .project-card-footer {
    color: #1E2068;
}

.project-card:hover .project-card-footer i {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* People */
.person-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s; cursor: pointer;}
.person-card:hover { transform: translateY(-8px); }
.person-photo-container { position: relative; overflow: hidden; }
.flag-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.flag-overlay img {
    width: 28px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: block;
}
.person-card:hover .flag-overlay {
    transform: scale(1.1);
    background: #ffffff;
}
.person-photo { width: 100%; height: 300px; object-fit: cover; object-position: top; display: block; }
.person-details { padding: 1.5rem; }
.person-details h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-family: var(--font-heading); }
.person-details p { color: var(--accent); font-weight: 600; font-size: 0.92rem; }

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 145px 80px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.person {
    text-align: center;
    cursor: pointer;
    position: relative;
    padding-bottom: 120px;
    width: 100%;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--accent-light);
    overflow: hidden;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid #FFFFFF;
    box-shadow: 0 8px 25px rgba(46, 48, 146, 0.12);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 50%;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.flag-overlay-v2 {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: white;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    z-index: 11;
}
.flag-overlay-v2 img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hover Card Popover */
.hover-card {
    display: none;
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    width: 750px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(16, 18, 54, 0.18);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary);
    z-index: 1000;
    text-align: left;
    overflow: hidden;
}

.person:hover .hover-card {
    display: block;
    animation: fadeUp 0.3s ease forwards;
}

/* Fix positioning for edges - 3 columns */
.team-grid .person:nth-child(3n+1) .hover-card {
    left: 0;
    transform: none;
}
.team-grid .person:nth-child(3n) .hover-card {
    left: auto;
    right: 0;
    transform: none;
}

.hover-card-header {
    background: linear-gradient(90deg, #1E2068 0%, #2E3092 60%, #4347B8 100%);
    color: white;
    padding: 15px 20px;
}
.hover-card-header h4 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: white;
    font-family: var(--font-heading);
}
.hover-card-header span {
    font-size: 0.9rem;
    opacity: 0.9;
}
.hover-card-body {
    padding: 20px;
    color: var(--text-color);
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}
.hover-card-body table {
    margin-top: 0 !important;
}

@media (max-width: 992px) {
    .team-grid .person:nth-child(n) .hover-card {
        left: 50%;
        transform: translateX(-50%);
    }
    .team-grid .person:nth-child(2n+1) .hover-card {
        left: 0;
        transform: none;
    }
    .team-grid .person:nth-child(2n) .hover-card {
        left: auto;
        right: 0;
        transform: none;
    }
}

@media (max-width: 576px) {
    .team-grid .person:nth-child(n) .hover-card {
        left: 50%;
        transform: translateX(-50%);
        width: 95vw;
    }
}

.person .name {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.person .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 90px 60px;
    }
    .person {
        padding-bottom: 100px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }
    .avatar {
        width: 140px;
        height: 140px;
    }
    .person {
        padding-bottom: 90px;
    }
}

/* Timeline (Approach) */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background: var(--primary); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--white); border: 4px solid var(--primary); top: 15px; border-radius: 50%; z-index: 1; }
.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: var(--white); position: relative; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }

/* Clients */
.clients-carousel { overflow: hidden; white-space: nowrap; padding: 3rem 0; background: var(--light); }
.client-track { display: inline-block; animation: scroll 40s linear infinite; }
.client-card {
    display: inline-block; 
    margin: 0 1.5rem;
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50px;
}
.client-card:hover {
    transform: translateY(-5px);
}
.client-card-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 25px 8px 8px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(46, 48, 146, 0.08);
    border: 1px solid var(--border-color);
}
.client-card-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    border: 1px solid #f0f0f0;
}
.client-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    color: var(--primary);
}

/* News */
.news-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(46, 48, 146, 0.05); border: 1px solid var(--border-color); }
.news-image { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 1.5rem; }
.news-meta { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; font-weight: 500;}

/* Footer */
footer { background: var(--dark); color: var(--white); padding: 4.5rem 0 2.5rem; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { color: var(--white); font-size: 1.6rem; font-family: var(--font-heading); font-weight: 800; }
.footer-links { list-style: none; }
.footer-links a { color: var(--gray); text-decoration: none; transition: color 0.3s; line-height: 2.2; font-weight: 500; }
.footer-links a:hover { color: #FFFFFF; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a { color: var(--white); background: var(--primary); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.3s, transform 0.3s; }
.social-icons a:hover { background: var(--primary-light); transform: translateY(-2px); }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(16,18,54,0.85); backdrop-filter: blur(8px); }
.modal-content { background-color: var(--white); margin: 5% auto; padding: 35px; width: 90%; max-width: 800px; border-radius: 12px; position: relative; animation: fadeUp 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.close { position: absolute; right: 20px; top: 20px; font-size: 30px; font-weight: bold; cursor: pointer; color: var(--gray); }
.close:hover { color: var(--primary); }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header Logo Styling */
.header-logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

/* Floating WhatsApp */
.whatsapp-float { 
    position: fixed; 
    width: 54px; 
    height: 54px; 
    bottom: 25px; 
    right: 25px; 
    background-color: #25d366; 
    color: #FFF; 
    border-radius: 50px; 
    text-align: center; 
    font-size: 28px; 
    box-shadow: 0 6px 20px rgba(37,211,102,0.35); 
    z-index: 999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: transform 0.3s ease; 
}
.whatsapp-float:hover { transform: scale(1.1); }

@media (max-width: 992px) {
    .header-logo-img {
        max-height: 44px;
    }
    .grid-2 { grid-template-columns: 1fr; }
    .menu-toggle { 
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.18) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 8px !important;
        font-size: 1.3rem !important;
        color: #FFFFFF !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent;
    }
    .menu-toggle i {
        pointer-events: none !important;
    }
    .menu-toggle:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.28) !important;
    }
    .mobile-close-btn { 
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
        font-size: 1.3rem !important;
        color: #FFFFFF !important;
        cursor: pointer !important;
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 10002 !important;
    }
    .mobile-close-btn i {
        pointer-events: none !important;
    }
    .menu-overlay {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.55) !important;
        z-index: 9998 !important;
    }
    .menu-overlay.active {
        display: block !important;
    }
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 84% !important;
        max-width: 340px !important;
        height: 100vh !important;
        background: #1B1E5C !important; /* Solid crisp Royal Sapphire Dark Blue - zero cloud, 100% sharp */
        flex-direction: column !important;
        padding: 80px 20px 35px !important;
        gap: 0.4rem !important;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6) !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000 !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        flex-grow: 0 !important;
        align-items: stretch !important;
        overflow-y: auto !important;
        display: flex !important;
    }
    .nav-links.active { right: 0 !important; }
    .nav-links a { 
        color: #FFFFFF !important; 
        font-size: 1.05rem !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: space-between !important; 
        width: 100% !important; 
        padding: 13px 16px !important; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important; 
        border-radius: 8px !important; 
        font-weight: 700 !important;
        opacity: 1 !important;
        background: transparent !important;
    }
    .nav-links a:hover, .nav-links a.active { 
        background: rgba(255, 255, 255, 0.18) !important; 
        color: #FFFFFF !important; 
    }
    .hero-content h1 { font-size: 2.2rem; }
    .stats-container { flex-direction: column; gap: 2rem; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Mobile Dropdown Styling */
    li.dropdown .dropdown-menu {
        display: block !important;
        position: static !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: none !important;
        padding: 6px 0 !important;
        margin: 6px 0 12px !important;
        min-width: auto !important;
        border-radius: 8px !important;
        animation: none !important;
    }
    li.dropdown .dropdown-menu::after {
        display: none !important;
    }
    li.dropdown::after {
        display: none !important;
    }
    li.dropdown .dropdown-menu li a {
        color: #FFFFFF !important;
        opacity: 1 !important;
        font-size: 0.95rem !important;
        padding: 10px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        font-weight: 600 !important;
        text-transform: none !important;
        letter-spacing: 0.3px !important;
        border-radius: 6px !important;
        background: transparent !important;
    }
    li.dropdown .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #FFFFFF !important;
    }
}

/* Contact Form Styles */
.contact-form {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(46, 48, 146, 0.06);
    border: 1px solid var(--border-color);
}
.contact-form .form-control {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #D6DAE8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 48, 146, 0.15);
    outline: none;
}
.contact-form .btn-submit {
    background: var(--primary);
    color: #fff;
    padding: 12px 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.3s, transform 0.2s;
    font-family: var(--font-heading);
}
.contact-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: none;
    font-size: 0.95rem;
}
.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Consultants Showcase Grid */
.consultants-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.consultant-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(46, 48, 146, 0.08);
    border: 1px solid #D6DAE8;
    border-top: 5px solid #2E3092;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.consultant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(46, 48, 146, 0.16);
    border-top-color: #1E2068;
}

.consultant-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.consultant-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: #2E3092 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46, 48, 146, 0.3);
    flex-shrink: 0;
}

.consultant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultant-avatar .avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2E3092 !important;
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultant-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1.5px solid #2E3092;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #2E3092;
    font-family: var(--font-heading);
    box-shadow: 0 2px 6px rgba(46, 48, 146, 0.1);
}

.consultant-flag-badge img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.consultant-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #2E3092;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.consultant-spec-badge {
    background: #F4F5FB;
    border-left: 4px solid #2E3092;
    color: #101236;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 14px;
    border-radius: 6px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    border-top: 1px solid #E2E4F0;
    border-right: 1px solid #E2E4F0;
    border-bottom: 1px solid #E2E4F0;
}

.consultant-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 800;
    color: #2E3092;
    font-family: var(--font-heading);
    border-top: 1px solid #E2E4F0;
    padding-top: 0.85rem;
    margin-top: auto;
    transition: color 0.2s;
}

.consultant-card:hover .consultant-card-footer {
    color: #1E2068;
}

.consultant-card:hover .consultant-card-footer i {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* Native Consultant Modal Card Styling */
.consultant-modal-card {
    max-width: 650px !important;
    width: 92% !important;
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #D6DAE8 !important;
    box-shadow: 0 25px 60px rgba(16, 18, 54, 0.28) !important;
    position: relative !important;
    background: #FFFFFF !important;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: none;
    font-size: 1.8rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.consultant-modal-header {
    background: linear-gradient(135deg, #1E2068 0%, #2E3092 100%);
    padding: 2.25rem 2rem 2rem 2rem;
    color: #FFFFFF;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-country-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    color: #2E3092;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-country-badge img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.modal-profile-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.modal-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.modal-avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FFFFFF !important;
    color: #2E3092 !important;
    font-family: var(--font-heading);
    font-weight: 800 !important;
    font-size: 1.8rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.modal-profile-titles {
    flex-grow: 1;
}

#modal-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.modal-spec-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    line-height: 1.4;
}

.consultant-modal-body {
    padding: 2rem;
    background: #FFFFFF;
    color: #2D3154;
}

.modal-exp-badge {
    display: inline-block;
    background: #F4F5FB;
    color: #2E3092;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #E2E4F0;
}

.modal-bio-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #2E3092;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F0F2FA;
}

.modal-bio-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #2D3154;
}

.modal-bio-content p {
    margin-bottom: 1rem;
    color: #2D3154;
}

.modal-bio-content p:last-child {
    margin-bottom: 0;
}

.consultant-modal-footer {
    padding: 1.25rem 2rem;
    background: #F8F9FE;
    border-top: 1px solid #EBEBF7;
    display: flex;
    justify-content: flex-end;
}

.btn-modal-close {
    background: #2E3092;
    color: #FFFFFF;
    border: none;
    padding: 0.6rem 1.6rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-modal-close:hover {
    background: #1E2068;
    transform: translateY(-2px);
}
