:root {
    --bg-dark: #0f0c29;
    --bg-mid: #302b63;
    --bg-light: #24243e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-purple: #b100ff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Setup */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 12, 41, 0.8), rgba(36, 36, 62, 0.95));
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

#navbar.scrolled {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.verified-badge {
    color: #1da1f2;
    -webkit-text-fill-color: #1da1f2;
    font-size: 0.6em;
    margin-left: 8px;
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.custom-dropdown {
    position: relative;
    font-size: 0.95rem;
    user-select: none;
    z-index: 100;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-selected:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.dropdown-selected .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    margin-top: 10px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    list-style: none;
    width: max-content;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-options li {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.dropdown-options li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.dropdown-options li.active {
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(0, 242, 254, 0.05);
}

.flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 20px;
    height: 14px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.flag-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* RTL Support */
[dir="rtl"] {
    text-align: right;
}
[dir="rtl"] .nav-links {
    /* flex direction handled automatically by dir="rtl" */
}
[dir="rtl"] .about-card h3 i, [dir="rtl"] .details-card ul li strong {
    margin-right: 0;
    margin-left: 10px;
}
[dir="rtl"] .cta-button i {
    margin-right: 0;
    margin-left: 8px;
}

/* Glassmorphism Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-secondary));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(177, 0, 255, 0.3);
}

.cta-button i {
    margin-right: 8px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(177, 0, 255, 0.5);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.glow-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-purple), var(--accent-primary), var(--accent-purple));
    z-index: 1;
    animation: rotateGlow 10s linear infinite;
    filter: blur(20px);
    opacity: 0.6;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sections General */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.main-bio {
    grid-column: 1 / -1;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.about-card h3 i {
    margin-right: 10px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.details-card ul {
    list-style: none;
}

.details-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.details-card ul li:last-child {
    border-bottom: none;
}

.details-card ul li strong {
    color: var(--text-primary);
    margin-right: 10px;
}

/* Content Pillars Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    background: rgba(0, 242, 254, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.content-card:hover .card-icon {
    transform: scale(1.1);
    background: rgba(0, 242, 254, 0.2);
}

.content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.content-card p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: rgba(15, 12, 41, 0.9);
    padding: 60px 20px 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.socials {
    margin-bottom: 30px;
}

.socials a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.socials a:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Passions Section */
.passions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.passion-icon {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    background: rgba(177, 0, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.passion-card:hover .passion-icon {
    transform: scale(1.1);
    background: rgba(177, 0, 255, 0.2);
}

.passion-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.passion-card p {
    color: var(--text-secondary);
}

/* Audio Wave Animation */
.audio-wave {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 30px;
}

.audio-wave span {
    display: block;
    width: 6px;
    background-color: var(--accent-purple);
    border-radius: 3px;
    animation: bounce 0.8s ease infinite alternate;
}

.audio-wave span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.audio-wave span:nth-child(2) { height: 20px; animation-delay: 0.3s; }
.audio-wave span:nth-child(3) { height: 30px; animation-delay: 0.5s; }
.audio-wave span:nth-child(4) { height: 15px; animation-delay: 0.7s; }
.audio-wave span:nth-child(5) { height: 25px; animation-delay: 0.9s; }

@keyframes bounce {
    0% { height: 5px; }
    100% { height: 100%; }
}

.dynamic-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile Floating Dock (Liquid Glass) */
.mobile-dock {
    display: none; /* Hidden on desktop */
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 50px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
    }
    
    .avatar-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    body {
        padding-bottom: 100px;
    }

    .nav-content {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .dropdown-selected {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    /* Reveal Floating Dock */
    .mobile-dock {
        display: flex;
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: var(--glass-bg);
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        border: 1px solid var(--glass-border);
        border-radius: 40px;
        padding: 15px 35px;
        z-index: 1000;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    }
    
    .dock-item {
        color: var(--text-secondary);
        font-size: 1.6rem;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
    }
    
    .dock-item:hover, .dock-item:active {
        color: var(--accent-primary);
        transform: translateY(-4px);
    }


    .hero-text h1 {
        font-size: 2.8rem;
    }
    .avatar-container {
        width: 250px;
        height: 250px;
    }

    /* Horizontal Carousels */
    .cards-container, .passions-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .cards-container::-webkit-scrollbar, .passions-grid::-webkit-scrollbar {
        display: none;
    }

    .content-card, .passion-card {
        scroll-snap-align: center;
        flex: 0 0 85%;
        min-width: 280px;
    }
}
