/* ============================
   VARIABLES & RESET
   ============================ */
:root {
    --accent:        #6c3fff;
    --accent-2:      #00c6ff;
    --accent-glow:   rgba(108, 63, 255, 0.45);
    --glass-bg:      rgba(255, 255, 255, 0.05);
    --glass-border:  rgba(255, 255, 255, 0.10);
    --text:          #ffffff;
    --text-muted:    rgba(255, 255, 255, 0.50);
    --bgColor:       #080818;
    --darkOpa:       rgba(0, 0, 0, 0.7);
    --lightOpa:      rgba(255, 255, 255, 0.9);
    --indicatorColor: rgb(255, 255, 255);
    --defaultMaxHeight: 55vh;
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Tajawal', Arial, sans-serif;
    background: var(--bgColor);
    color: var(--text);
    overflow-x: hidden;
    font-weight: 400;
    min-height: 100vh;
}

/* ============================
   PARTICLES
   ============================ */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* ============================
   BACKGROUND ORBS
   ============================ */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.orb-1 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, #6c3fff, transparent 70%);
    top: -220px; left: -220px;
    animation: orbFloat 10s ease-in-out infinite;
}
.orb-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, #00c6ff, transparent 70%);
    bottom: -150px; right: -150px;
    animation: orbFloat 13s ease-in-out infinite reverse;
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #ff3cac, transparent 70%);
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    animation: orbFloat 8s ease-in-out infinite 3s;
}
.orb-4 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #00e5ff, transparent 70%);
    top: 20%; right: -80px;
    animation: orbFloat 11s ease-in-out infinite 1.5s;
}
.orb-5 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    bottom: 20%; left: -60px;
    animation: orbFloat 9s ease-in-out infinite 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -40px) scale(1.06); }
    66%       { transform: translate(-25px, 25px) scale(0.94); }
}

/* ============================
   LAYOUT
   ============================ */
.main {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px 80px;
}

.col-xl-3 { width: 100%; }

.profile-container {
    border: none !important;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

/* ============================
   GLASS CARD
   ============================ */
.profile-left {
    position: relative;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 36px 32px !important;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(255, 255, 255, 0.10) inset;
    animation: cardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    color: var(--text) !important;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================
   LOGO
   ============================ */
.avatar-img {
    border-radius: 20px !important;
    box-shadow:
        0 10px 35px rgba(108, 63, 255, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.08) !important;
    width: 120px !important;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-img:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 45px rgba(108, 63, 255, 0.6), 0 0 0 3px rgba(255,255,255,0.12) !important;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.65));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.small, small {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    line-height: 1.5;
}

p {
    margin-bottom: 0;
    margin-top: 8px;
}

.h1, .h2, .h3, .h4, .h5, .h6 { margin-bottom: 0; }

/* ============================
   LINKS
   ============================ */
.profile-left a {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--accent-2) !important;
    transition: color 0.2s;
}

.profile-left a:hover { color: #fff !important; }

/* ============================
   LANGUAGE TOGGLE
   ============================ */
.language-toggle-btn {
    top: 14px !important;
    right: 14px !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

#language-toggle {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    box-shadow: none !important;
    transition: all 0.25s;
    height: auto !important;
    line-height: 1.4 !important;
}

#language-toggle:hover,
#language-toggle:focus,
#language-toggle:active {
    background: rgba(108, 63, 255, 0.25) !important;
    border-color: rgba(108, 63, 255, 0.5) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.dropdown-menu {
    background: rgba(15, 10, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    padding: 6px !important;
}

.dropdown-item {
    color: rgba(255,255,255,0.75) !important;
    border-radius: 8px !important;
    font-size: 0.83rem !important;
    padding: 8px 14px !important;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: rgba(108,63,255,0.2) !important;
    color: #fff !important;
}

/* ============================
   SOCIAL / STREAM BUTTONS
   ============================ */
.stream-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px !important;
    height: 100px !important;
    padding: 14px !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.08) !important;
    background: rgba(108,63,255,0.15) !important;
    border-color: rgba(108,63,255,0.4) !important;
    box-shadow: 0 12px 30px rgba(108,63,255,0.3) !important;
}

.btn:hover img { transform: scale(1.1); }

.btn-lieferando, .btn-tiktok, .btn-insta, .btn-blue, .btn-purple {
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
}

/* ============================
   DIVIDER (hide)
   ============================ */
.divider { display: none; }

/* ============================
   PDF SECTION
   ============================ */
#pdf-wrapper {
    position: relative;
    z-index: 10;
    padding-bottom: 70px;
}

#pdf-wrapper > div {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

canvas {
    border: none !important;
    margin-bottom: 0 !important;
    width: 100%;
    height: auto;
    display: block;
}

/* ============================
   FOOTER
   ============================ */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    background: rgba(8, 8, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 11px;
    z-index: 1000;
    line-height: 1.4;
}

footer p { margin: 0; }

footer a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover { color: #fff; }

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

/* ============================
   CAROUSEL (kept for compat)
   ============================ */
.row-flex { display: flex; flex-wrap: wrap; }

.profile-right {
    height: 100%;
    background-color: var(--darkOpa);
    position: relative;
    transition: 1s ease-in;
}

.profile-right .carousel-item {
    height: var(--defaultMaxHeight);
    padding-bottom: 5vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

.profile-right .carousel-item::-webkit-scrollbar { display: none; }

#profileCarousel .carousel-indicators { position: absolute; bottom: -50px; }
#profileCarousel .carousel-indicators button {
    background-color: var(--indicatorColor);
    opacity: 0.3;
}
#profileCarousel .carousel-indicators button.active { opacity: 0.8; }

.carousel-media {
    width: 100%;
    height: 100%;
    color: rgba(0,0,0,0.5);
}
.carousel-media a { text-decoration: none; color: rgba(0,0,0,1); }
.carousel-media iframe, .carousel-media img { width: 100%; height: 100%; border-radius: 4px; }
.carousel-item img { object-fit: cover; }
.carousel-media img { object-fit: contain !important; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 576px) {
    .profile-left {
        padding: 28px 20px !important;
    }
    h1 { font-size: 1.25rem; }
    .btn {
        width: 80px !important;
        height: 80px !important;
    }
    .avatar-img {
    width: 100px !important;
    height: auto;
    }
}

@media (max-width: 1200px) {
    .main { min-height: auto; }
    #profileCarousel .carousel-indicators { bottom: -20px; }
    .profile-right {
        padding: 3vh !important;
    }
    .profile-right .carousel-item { height: auto; }
}

@media (max-width: 768px) {
    :root { --defaultMaxHeight: 70vh; }
    .carousel-media iframe, .carousel-media img { height: 200px !important; }
    .left-icon-holder i { display: none; }
    .carousel-item img { height: 150px; }
}

/* ============================
   RTL SUPPORT
   ============================ */
[lang="ar"] body,
[lang="ar"] h1,
[lang="ar"] p,
[lang="ar"] small,
[lang="ar"] .small {
    font-family: 'Tajawal', Arial, sans-serif;
}

[lang="ar"] .language-toggle-btn {
    right: 14px !important;
    left: auto !important;
}
