@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens & Variables --- */
:root {
    --bg-dark: #050608;
    --bg-card: rgba(12, 14, 20, 0.75);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(229, 169, 60, 0.2);
    --gold: #e5a93c;
    --gold-hover: #ffd175;
    --gold-glow: rgba(229, 169, 60, 0.25);
    --gold-gradient: linear-gradient(135deg, #ffd175 0%, #e5a93c 100%);
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.2);
    --magenta: #ff2a5f;
    --magenta-glow: rgba(255, 42, 95, 0.2);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-premium: 0 25px 60px rgba(0, 0, 0, 0.8);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
    position: relative;
}

/* --- Background Nebulae (Premium Floating Lighting) --- */
.nebula-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.nebula-gold {
    position: absolute;
    top: -15%;
    left: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(229, 169, 60, 0.08) 0%, rgba(229, 169, 60, 0) 70%);
    filter: blur(140px);
    animation: orbit-gold 40s infinite ease-in-out alternate;
}

.nebula-cyan {
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, rgba(0, 229, 255, 0) 70%);
    filter: blur(150px);
    animation: orbit-cyan 50s infinite ease-in-out alternate;
}

.nebula-magenta {
    position: absolute;
    top: 40%;
    left: -20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 42, 95, 0.03) 0%, rgba(255, 42, 95, 0) 70%);
    filter: blur(130px);
    animation: orbit-magenta 45s infinite ease-in-out alternate;
}

/* --- Keyframe Animations --- */
@keyframes orbit-gold {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vw, 12vh) scale(1.15); }
}

@keyframes orbit-cyan {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-12vw, -8vh) scale(0.9); }
}

@keyframes orbit-magenta {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vw, -15vh) scale(1.2); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes entranceZoom {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes logoFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.4);
        filter: brightness(0) blur(10px);
    }
    60% {
        opacity: 0.95;
        transform: scale(1.08);
        filter: brightness(1.8) blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0px);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-out {
    animation: fadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Layout Container --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none !important;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--gold-gradient);
    border: 1px solid var(--gold);
    color: #07080a;
    padding: 0.85rem 2.2rem;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(229, 169, 60, 0.25);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 169, 60, 0.45);
    background: var(--gold-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.65rem 1.6rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    background: rgba(229, 169, 60, 0.06);
}

/* --- 1. Intro Screen (Presentation Video) --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-controls {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 1.5rem;
    z-index: 10000;
}

.intro-btn {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 2rem;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.intro-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

/* --- 2. Header & Navigation --- */
header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 1.8rem 0;
    transition: var(--transition-smooth);
}

header.catalog-mode {
    position: sticky;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

header:not(.catalog-mode) .logo-container {
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.logo-brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Custom Language Dropdown */
.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-selector select {
    background: rgba(13, 15, 22, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 2.4rem 0.65rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lang-selector select:focus, .lang-selector select:hover {
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    outline: none;
}

.lang-selector::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--gold);
    position: absolute;
    right: 14px;
    pointer-events: none;
}

/* --- 3. VIEW A: Central Interactive Portal (Hub) --- */
.hub-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 1.5rem;
    position: relative;
}

.hub-center-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Giant Borderless Glowing Logo Container */
.hub-logo-glow {
    position: relative;
    width: min(390px, 85vw);
    height: min(390px, 85vw);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, logoFloat 8s ease-in-out infinite 1.2s;
    transition: var(--transition-smooth);
}

/* Circular Golden Aura Behind the Tiger Head */
.hub-logo-glow::before {
    content: '';
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 169, 60, 0.35) 0%, rgba(229, 169, 60, 0) 70%);
    filter: blur(40px);
    z-index: -1;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.hub-logo-glow:hover {
    transform: scale(1.04);
}

.hub-logo-glow:hover::before {
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(229, 169, 60, 0.5) 0%, rgba(229, 169, 60, 0) 70%);
    opacity: 1;
}

.hub-large-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Timed Subtitle Style (Fades in after 2.5s) */
.hub-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    
    /* Timed animation setup */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Timed Controls Panel Style (Fades in after 2.5s) */
.hub-delayed-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    
    /* Timed animation setup */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hub-delayed-controls.visible {
    opacity: 1;
    transform: translateY(0);
}

.portal-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.1rem 2rem;
    border-radius: 18px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    pointer-events: none;
}

.portal-btn-icon {
    font-size: 1.3rem;
    color: var(--gold);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.portal-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.7);
}

.portal-btn:hover .portal-btn-icon {
    transform: scale(1.2);
}

/* Button hover color accents */
.btn-products:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(229, 169, 60, 0.18), 0 0 1px var(--gold);
    color: var(--gold-hover);
}

.btn-manager:hover {
    border-color: var(--cyan);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.18), 0 0 1px var(--cyan);
    color: #e2f9ff;
}

.btn-manager:hover .portal-btn-icon {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.btn-privacy:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.18), 0 0 1px #10b981;
    color: #e6fbf3;
}

.btn-privacy:hover .portal-btn-icon {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* --- 4. VIEW B: Catalog Container & Grid --- */
.catalog-container {
    padding-bottom: 6rem;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.catalog-grid-section {
    padding-top: 3rem;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.catalog-filter-tabs {
    display: flex;
    gap: 0.8rem;
    background: rgba(13, 15, 22, 0.6);
    padding: 0.45rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: #050608;
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.3);
}

/* Search Box */
.search-container {
    position: relative;
    max-width: 360px;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(13, 15, 22, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1.4rem 0.8rem 2.8rem;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
}

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 18px var(--gold-glow);
    outline: none;
    background: rgba(13, 15, 22, 0.95);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.search-input:focus + .search-icon {
    color: var(--gold);
}

.catalog-info-bar {
    margin-bottom: 2.2rem;
}

.catalog-info-bar p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 2.2rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 0;
    color: var(--text-secondary);
    font-size: 1.15rem;
    border: 1px dashed var(--border-color);
    border-radius: 24px;
    background: rgba(13, 15, 22, 0.3);
}

/* App Cards (Floating Glass Plates) */
.app-card {
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.app-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-inner {
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.app-logo-wrapper {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.4rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
    color: var(--text-primary);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.download-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.store-icon {
    font-size: 1.05rem;
    color: var(--gold);
    transition: var(--transition-smooth);
}

/* Card Hover Animations */
.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 169, 60, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 20px rgba(229, 169, 60, 0.08);
}

.app-card:hover::after {
    opacity: 1;
}

.app-card:hover .app-logo-wrapper {
    transform: scale(1.05);
    border-color: rgba(229, 169, 60, 0.35);
    box-shadow: 0 10px 20px rgba(229, 169, 60, 0.2);
}

.app-card:hover .download-button {
    background: var(--gold-gradient);
    border-color: var(--gold);
    color: #050608;
    box-shadow: 0 6px 15px rgba(229, 169, 60, 0.35);
}

.app-card:hover .store-icon {
    transform: rotate(15deg) scale(1.2);
    color: #050608;
}

/* --- 5. Modal Overlays (Privacy, Manager & Contact) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: rgba(12, 14, 19, 0.9);
    border: 1px solid rgba(229, 169, 60, 0.35);
    border-radius: 28px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(229, 169, 60, 0.15);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(20px);
}

.modal-header {
    padding: 2rem 2.2rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.modal-close-x {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.modal-close-x:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2.5rem 2.2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.modal-footer {
    padding: 1.2rem 2.2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

/* General Manager Specific Modal Styling */
.manager-modal-card {
    max-width: 480px;
}

.manager-modal-body {
    padding: 3rem 2rem;
}

.modal-avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
}

.modal-manager-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.modal-avatar-container::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(229, 169, 60, 0.2);
    animation: spin 30s linear infinite;
    pointer-events: none;
}

.modal-manager-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.modal-manager-badge {
    display: inline-block;
    background: rgba(229, 169, 60, 0.08);
    border: 1px solid rgba(229, 169, 60, 0.2);
    color: var(--gold);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.modal-manager-divider {
    width: 50px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 0 auto 1.5rem;
}

.modal-manager-quote {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

/* Contact Form Modal Specific Styling */
.contact-modal-body {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 2.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
    width: 100%;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group textarea {
    resize: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.success-alert-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.modal-form-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.8rem;
}

.btn-contact:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.18), 0 0 1px #3b82f6;
    color: #e6f0ff;
}

.btn-contact:hover .portal-btn-icon {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* --- 6. Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(5, 6, 8, 0.98);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 5;
}

footer p {
    margin-bottom: 0.5rem;
}

/* --- Right-To-Left (RTL) Layout support for Arabic --- */
.rtl-layout {
    text-align: right;
}

.rtl-layout header .container, 
.rtl-layout .catalog-header {
    flex-direction: row-reverse;
}

.rtl-layout .manager-card {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-layout .manager-quote {
    border-left: none;
    border-right: 3px solid var(--gold);
    padding-left: 0;
    padding-right: 1.5rem;
}

.rtl-layout .search-input {
    padding: 0.8rem 2.8rem 0.8rem 1.4rem;
}

.rtl-layout .search-icon {
    left: auto;
    right: 15px;
}

.rtl-layout .lang-selector::after {
    right: auto;
    left: 14px;
}

.rtl-layout .lang-selector select {
    padding: 0.65rem 1.4rem 0.65rem 2.4rem;
}

.rtl-layout .portal-btn {
    flex-direction: row-reverse;
}

.rtl-layout .modal-header {
    flex-direction: row-reverse;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hub-large-logo {
        width: 100%;
        height: 100%;
    }

    .hub-logo-glow {
        width: min(300px, 80vw);
        height: min(300px, 80vw);
    }

    .hub-subtitle {
        font-size: 0.85rem;
        letter-spacing: 4px;
        margin-bottom: 2.5rem;
    }

    .hub-delayed-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }
    
    .hub-delayed-controls button {
        justify-content: center;
    }

    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.5rem;
        gap: 1.2rem;
    }

    .search-container {
        max-width: none;
    }
}
