/* ========================================================= */
/* COMPONENTS: DROPDOWNS, MODALS, GALLERIES, HAMBURGER MENU */
/* ========================================================= */

/* ---------------- Dropdown Menu (Solutions / About) ---------------- */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary); /* High-end dark theme */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 220px;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.05);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--color-secondary);
    padding-left: 25px;
}

/* Desktop Hover Interaction */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeInUp 0.3s ease forwards;
    }
}

/* ---------------- PREMIUM PILL LANGUAGE SWITCHER ---------------- */
.language-switcher {
    display: flex;
    align-items: center;
}

.lang-pill {
    display: flex;
    flex-direction: row; /* Enforce horizontal layout on PC */
    background: #e0e4e9; /* Light track color from screenshot */
    border-radius: 50px;
    padding: 2px;
    border: 1px solid rgba(0,0,0,0.05);
    gap: 2px;
    min-width: 130px; /* Prevents circular collapse on PC */
}

.lang-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #444; /* Dark text for contrast on light pill */
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.lang-btn img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

/* The Active Gradient from your Screenshot */
.lang-btn.active {
    background: linear-gradient(135deg, #f1c40f 0%, #00a693 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---------------- Elegant 2-Bar Hamburger (Premium UI) ---------------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 18px;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px; /* Slimmer for premium look */
    background-color: var(--color-text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ---------------- Modal & Gallery ---------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--color-primary);
    border-radius: 15px;
    padding: 40px 20px 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: var(--color-secondary); }

/* Gallery Controls */
.gallery-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.gallery-nav button:hover { background: var(--color-secondary); }
.prev-btn { left: -60px; }
.next-btn { right: -60px; }

/* ---------------- Responsive Components ---------------- */
@media (max-width: 1024px) {
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .lang-pill {
        min-width: 110px;
        padding: 2px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}









/* --- Pillars Grid & Icon Styling --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar-item {
    background: var(--color-body-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--color-secondary);
}

/* THE ICON STYLE FIX */
.pillar-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.pillar-item h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.4rem;
}

.pillar-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.pillar-item .internal-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-decoration: none;
    margin-top: auto;
}