/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

:root {
    /* Rich Colorful Corporate Palette */
    --primary: #921A31; /* Deep Crimson */
    --secondary: #1B2A47; /* Rich Navy Blue */
    --accent: #D4AF37; /* Metallic Gold Accent */
    --bg-light: #F4F6F9; /* Soft Cool Off-white */
    --bg-white: #ffffff;
    --text-dark: #2b2b2b;
    --text-light: #f4f4f4;

    /* Layout Variables */
    --nav-height: 80px;
    --transition: all 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .nav-links a, .btn {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 3rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin-bottom: 2rem;
}

.title-underline.center {
    margin: 0 auto 3rem auto;
}

.title-underline.light {
    background-color: var(--bg-white);
}

.light-text {
    color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-white);
}

.bg-corporate {
    background: #ffffff;
    position: relative;
    z-index: 1;
}
.bg-corporate::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(146, 26, 49, 0.05) 0%,   
transparent 60%);
}

.bg-corporate-light {
    background-color: #ededed;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(146, 26, 49, 0.3);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.glass-panel-dark {
    background: rgba(65, 64, 66, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.glass-panel-dark:hover {
    background: rgba(65, 64, 66, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 1);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));       
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo img {
    height: 50px;
    max-height: 50px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 42, 71, 0.7) 20%, rgba(146, 26, 49, 0.25) 100%),
                url('NEW/corporate-optimized.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main-logo {
    width: 220px; /* Reduced size based on feedback */
    height: auto;
    margin-bottom: 2rem;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--bg-white);
}

.hero-slogan {
    font-size: clamp(0.95rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--bg-white); /* Restored back to white */
}

/* About Section */
#about {
    scroll-margin-top: 70px;
    padding: 80px 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.professional-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: var(--bg-white);
    padding: 10px;
}

/* Companies Showcase */
.group-master-logo {
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.group-logo {
    width: 200px; /* Made the group logo smaller */
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
    transition: transform 0.5s ease;
}

.group-logo:hover {
    transform: scale(1.05) rotate(1deg);
}

.hexagon-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto 5rem;
}

.diamond-card {
    width: 260px;
    height: 260px;
    position: relative;
    cursor: pointer;
    margin: 30px;
    animation: float 4s ease-in-out infinite;
    background: url('logo-BG.png') no-repeat center/contain;
    filter: grayscale(100%) drop-shadow(0 15px 25px rgba(0,0,0,0.1));
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.showcase-card {
    transition: filter 0.5s ease;
}

.showcase-card:hover {
}

.diamond-card:hover {
    transform: translateY(-20px) scale(1.05);
    animation-play-state: paused;
    filter: grayscale(0%) drop-shadow(0 0 15px rgba(212,175,55,0.4));
}

.diamond-card h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
    text-align: center;
    word-break: break-word;
    letter-spacing: 2px;
}

/* Clients Slider */
.slider-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 3rem 0;
    position: relative;
    background: var(--bg-white);
}

.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white) 0%,
rgba(255,255,255,0) 100%);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white) 0%,
rgba(255,255,255,0) 100%);
}

.slider-track {
    display: inline-block;
    animation: scroll 60s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls precisely half of its      
duplicated length */
}

.slider-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    vertical-align: middle;
    width: 220px;
    height: 120px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid rgba(27,42,71,0.09);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(27,42,71,0.07);
    flex-shrink: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(27,42,71,0.13);
}

.slider-item img {
    display: block;
    width: 180px;
    height: 88px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: opacity 0.3s;
}

.slider-logo-name {
    display: block;
    margin-top: 6px;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(100,100,100,0.6);
    text-align: center;
    max-width: 130px;
    white-space: normal;
    line-height: 1.2;
}

/* .slider-item hover consolidated above */

/* End of Styles */


/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Turn off delay once visible so hover animations respond instantly */
.fade-up.visible.delay-1,
.fade-up.visible.delay-2,
.fade-up.visible.delay-3 {
    transition-delay: 0s, 0s;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .container-grid, .contact-wrapper, .companies-showcase {
        grid-template-columns: 1fr;
        flex-direction: column;
        height: auto;
        gap: 3rem;
    }

    .companies-showcase.hexagon-grid {
        flex-direction: row !important;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .companies-showcase .showcase-card {
        opacity: 1 !important;
        transform: translateY(0) !important;
        flex: none;
    }

    .companies-showcase:hover .showcase-card,
    .companies-showcase .showcase-card:hover {
        transform: translateY(-5px) !important;
        opacity: 1;
        box-shadow: none;
    }

    .showcase-desc {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
    }

    .showcase-card h3 {
        color: var(--primary);
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-main-logo {
        width: 180px;
    }

    .diamond-card {
        width: 160px !important;
        height: 160px !important;
        margin: 15px auto;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding-bottom: 20vh;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        line-height: 1.3;
    }

    .hero-slogan {
        font-size: 1.1rem;
        padding: 0 15px;
        line-height: 1.5;
    }

    .hero-main-logo {
        width: 140px;
        margin-bottom: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .diamond-card {
        width: 150px !important;
        height: 150px !important;
        margin: 15px;
    }

    .companies-showcase.hexagon-grid {
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
    }
}

/* =============================================
   DARK CRIMSON "OUR GROUP" SECTION REDESIGN
   ============================================= */

.bg-dark-crimson {
    background: linear-gradient(135deg, #392c41 0%, #30445c 100%);
    position: relative;
}

.bg-dark-crimson::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 35%, rgba(180, 30, 60, 0.22) 0%, transparent 52%),
        radial-gradient(ellipse at 78% 65%, rgba(120, 10, 35, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 15%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 80%, rgba(80, 5, 20, 0.15) 0%, transparent 45%);
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
}

.bg-dark-crimson .container,
.bg-dark-crimson .clients-sub-section {
    position: relative;
    z-index: 1;
}

/* Section Label  ——— TEXT ——— */
.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.label-line {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    opacity: 0.5;
}

.label-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.75);
    text-transform: uppercase;
}

/* Mixed Title: "Our Group" */
.section-title-mixed {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.4rem;
    line-height: 1.1;
}

/* Thin accent line under the title */
.section-title-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
    margin: 0 auto 0.8rem;
}

.title-gold-italic {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

/* Circular Logo */
.group-logo-circle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.group-logo-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Company Cards Grid */
.companies-showcase-new {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

/* Pentagon Card Shape */
.company-card-new {
    background: rgba(106, 31, 56, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.15);
    clip-path: polygon(0% 0%, 100% 0%, 100% 82%, 88% 100%, 12% 100%, 0% 82%);
    padding: 1rem 1.5rem 2.8rem;
    max-width: 280px;
    flex: 1;
    min-width: 220px;
    text-align: center;
    transition: background 0.4s ease, transform 0.4s ease;
}

.company-card-new:hover {
    background: rgba(106, 31, 56, 0.92);
    transform: translateY(-6px);
}
a.company-card-new { color: inherit; }
.card-link-hint {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
a.company-card-new:hover .card-link-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Card Number (01, 02, 03) */
.card-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.28);
    line-height: 1;
    margin-bottom: 0.6rem;
}

/* Card Title */
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: static;
    bottom: unset;
    left: unset;
    transform: none;
    text-transform: none;
    letter-spacing: 0.5px;
    text-shadow: none;
    width: auto;
}

/* Card Subtitle with bottom border */
.card-subtitle-wrap {
    margin-bottom: 0.6rem;
}

.card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 0.4rem;
    display: inline-block;
}

/* Card Description */
.card-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
}

/* Slider adjustments for dark bg */
.bg-dark-crimson .slider-container {
    background: transparent;
    padding: 0.6rem 0;
}

.bg-dark-crimson .slider-container::before {
    background: linear-gradient(to right, #392c41 0%, transparent 100%);
}

.bg-dark-crimson .slider-container::after {
    background: linear-gradient(to left, #30445c 0%, transparent 100%);
}

.bg-dark-crimson .slider-track img,
.bg-dark-crimson .slider-item img {
    mix-blend-mode: screen;
    opacity: 0.85;
}

.bg-dark-crimson .slider-item img[alt="Attijariwafa Bank"],
.bg-dark-crimson .slider-item img[alt="First Abu Dhabi Bank"] {
    mix-blend-mode: normal;
    background-color: #ffffff;
    padding: 5px 8px;
    border-radius: 6px;
    opacity: 0.9;
}

.bg-dark-crimson .slider-track img:hover,
.bg-dark-crimson .slider-item img:hover {
    mix-blend-mode: screen;
    opacity: 1;
    transform: scale(1.1);
}

/* ── Clients slider: white background strip ── */
#clients.clients-sub-section {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 32px 0 36px;
}
#clients .label-text { color: var(--secondary); opacity: 0.85; }
#clients .label-line { background: rgba(27,42,71,0.2); opacity: 1; }
#clients .slider-container::before {
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
#clients .slider-container::after {
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}
#clients .slider-item img {
    mix-blend-mode: normal;
    opacity: 1;
    filter: none;
}

/* Scale up logos whose source images have large whitespace areas */
#clients .slider-item img[alt="Abu Dhabi Commercial Bank"],
#clients .slider-item img[alt="Halan"],
#clients .slider-item img[alt="ValU Egypt"],
#clients .slider-item img[alt="IDB"] {
    transform: scale(1.6);
}

/* Responsive: dark section cards */
@media screen and (max-width: 992px) {
    .companies-showcase-new {
        gap: 1rem;
    }
    .company-card-new {
        min-width: 220px;
        max-width: 280px;
    }
    .section-title-mixed {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 768px) {
    .companies-showcase-new {
        flex-direction: column;
        align-items: center;
    }
    .company-card-new {
        width: 90%;
        max-width: 340px;
        min-width: unset;
    }
    .section-title-mixed {
        font-size: 2.2rem;
    }
}

/* Compact padding for companies section */
#companies {
    padding: 30px 0 10px;
    scroll-margin-top: var(--nav-height);
    box-sizing: border-box;
}

/* Small phones (480px and below) */
@media screen and (max-width: 480px) {
    .hero-main-logo {
        width: 110px;
        margin-bottom: 14px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        letter-spacing: 1.5px;
    }

    .hero-slogan {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .section {
        padding: 50px 0;
    }

    .container {
        width: 95%;
    }

    .container-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-card-new {
        width: 95%;
        min-width: unset;
        max-width: unset;
    }

    .section-title-mixed {
        font-size: 1.8rem;
    }

    .slider-item {
        width: 160px;
        height: 88px;
        padding: 12px 14px;
        margin: 0 6px;
    }

    .slider-item img {
        width: 132px;
        height: 64px;
    }
}
