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

:root {
    --primary: #E91E63;
    /* وردي فوشيا */
    --primary-hover: #C2185B;
    /* وردي داكن */
    --secondary: #9C27B0;
    /* بنفسجي */
    --accent: #673AB7;
    /* بنفسجي غامق */
    --bg-dark: #1A1A2E;
    /* أزرق داكن مائل للبنفسجي */
    --bg-darker: #0F0F1E;
    /* أسود مائل للبنفسجي */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* Page Header */
    --header-text: #FFFFFF;

    --text-main: #FFFFFF;
    /* أبيض نقي */
    --text-muted: #B8B8D1;
    /* رمادي فاتح مائل للبنفسجي */
    --pink-light: #F48FB1;
    /* وردي فاتح */
    --title-pink: #fce4ec;
    /* وردي فاتح جداً للعناوين */
    --purple-dark: #4A148C;
    /* بنفسجي غامق جداً */
    --shadow: 0 20px 50px rgba(233, 30, 99, 0.3);

    /* Semantic Colors */
    --header-bg: rgba(26, 26, 46, 0.95);
    --footer-bg: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(233, 30, 99, 0.03) 0%, transparent 40%),
        linear-gradient(to bottom, #0a0a12, #050508);
    --footer-heading: #FFFFFF;
    --border-light: rgba(255, 255, 255, 0.08);
    --icon-border: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.05);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #F8F9FA;
    --bg-darker: #FFFFFF;
    --text-main: #1A1A2E;
    --text-muted: #555555;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --title-pink: #E91E63;
    /* Use primary color for titles in light mode */

    /* Semantic Overrides */
    --header-bg: #FFFFFF;
    --footer-bg: #F8F9FA;
    --footer-heading: #1A1A2E;
    --header-text: #1A1A2E;
    --border-light: rgba(0, 0, 0, 0.1);
    --icon-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.03);
}

/* Light Theme - Auth Buttons */
[data-theme="light"] .auth-buttons .btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

[data-theme="light"] .auth-buttons .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

[data-theme="light"] .auth-buttons .btn-primary {
    background: var(--primary);
    color: white;
}

[data-theme="light"] .auth-buttons .btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

/* Light Theme - User Menu */
[data-theme="light"] .user-menu .btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

[data-theme="light"] .user-menu .btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Light Theme - General Buttons */
[data-theme="light"] .btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

[data-theme="light"] .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Theme Button */
.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
}

.theme-btn:hover {
    color: var(--primary);
    background: rgba(233, 30, 99, 0.1);
    transform: rotate(15deg);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Bar */
.top-bar {
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--icon-border);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-links a span {
    position: relative;
    z-index: 1;
    font-family: sans-serif;
    /* Setup for unicode chars */
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary);
    /* Fallback background */
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}

/* Brand Colors on Hover */
.social-links a[aria-label="Twitter"]:hover {
    background: #000;
    border-color: #333;
    color: white !important;
}

.social-links a[aria-label="TikTok"]:hover,
.footer-social a[aria-label="TikTok"]:hover {
    background: #000;
    border-color: #333;
    color: white !important;
    text-shadow: 2px 2px 0px rgba(235, 30, 99, 0.4), -2px -2px 0px rgba(0, 242, 234, 0.4);
    /* TikTok Effect */
}

.social-links a[aria-label="YouTube"]:hover {
    background: #FF0000;
    border-color: #ff3333;
}

.social-links a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-links a[aria-label="Facebook"]:hover {
    background: #1877F2;
    border-color: #3b5998;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: var(--primary);
    background: rgba(233, 30, 99, 0.1);
}

.lang-btn.active {
    color: var(--primary);
    background: rgba(233, 30, 99, 0.15);
}

.lang-divider {
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 0.8rem;
}

/* RTL/LTR Support */
body.ltr {
    direction: ltr;
    text-align: left;
}

body.ltr .main-nav ul {
    flex-direction: row;
}

body.ltr .dropdown-menu {
    right: auto;
    left: 0;
}

body.ltr .dropdown-menu a:hover {
    padding-right: 1.5rem;
    padding-left: 2rem;
}

body.ltr .lang-switcher {
    margin-right: 0;
    margin-left: 1rem;
    padding-right: 0;
    padding-left: 1rem;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Header */
.main-header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 30, 99, 0.2);
    padding: 1.2rem 0;
    position: sticky;
    top: 41px;
    /* Height of top-bar */
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.brand {
    /* Container */
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.brand-link:hover {
    opacity: 0.9;
}

.brand-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    animation: logoPulse 3s infinite ease-in-out;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(233, 30, 99, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(233, 30, 99, 0.8));
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand h2 {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--title-pink);
}

.brand span {
    color: var(--title-pink);
    font-weight: 800;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

/* App Download Buttons */
.footer-social a[aria-label="Twitter"]:hover {
    background: #000;
    border-color: #333;
    color: white !important;
}

.app-subtitle {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.store-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 190px;
    min-width: unset;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.store-btn .icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    /* LTR defaults, will be flipped in RTL context if not handled */
}

/* Fix icon margin for RTL */
body[dir="rtl"] .store-btn .icon {
    margin-right: 0;
    margin-left: 0.8rem;
}

.store-btn .text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn .text small {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.store-btn .text span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.main-nav a:hover {
    color: #fff;
    background: rgba(233, 30, 99, 0.2);
    /* Slightly increased opacity for better white text contrast */
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
    transform: translateY(-2px);
    text-shadow: none;
}

.main-nav a::after {
    display: none;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .page-header p {
    color: #1A1A2E;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 0.5rem;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    padding-right: 2rem;
}

.dropdown-menu a::after {
    display: none;
}

/* Language Switcher */
.lang-switch {
    background: rgba(233, 30, 99, 0.1);
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-switch:hover {
    background: var(--primary);
    color: white !important;
}

.lang-switch::after {
    display: none;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg,
            rgba(233, 30, 99, 0.1) 0%,
            rgba(156, 39, 176, 0.1) 50%,
            rgba(103, 58, 183, 0.1) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)) 1;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(233, 30, 99, 0.05) 0%, transparent 70%);
    pointer-events: none;
}



/* Page Headers - Uniform Background */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--bg-dark);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--header-text);
    border-bottom: 1px solid var(--glass-border);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(233, 30, 99, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: var(--title-pink);
}

.hero-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-main);
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    animation: fadeInUp 0.8s ease-out;
    color: var(--title-pink);
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

[data-theme="light"] .hero p {
    color: #000000;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 5;
    padding-bottom: 4rem;
}

.stat-card {
    padding: 2.5rem;
    text-align: center;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.15),
        inset 0 0 20px rgba(233, 30, 99, 0.05);
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Blog Grid Section */
.blog-grid {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--title-pink);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter {
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    user-select: none;
}

.filter.active,
.filter:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.2);
}

.post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #334155);
    transition: transform 0.4s;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    color: var(--title-pink);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Partners & Contact Side by Side Wrapper */
.partners-contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 6rem 0;
    align-items: flex-start;
}

.partners-box,
.contact-box {
    flex: 1;
    min-width: 300px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    height: 100%;
}

/* Contact Box Styles */
.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--title-pink);
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-inline input,
.contact-form-inline textarea {
    padding: 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s;
}

.contact-form-inline input:focus,
.contact-form-inline textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Partners Box Styles */
.partners-box {
    text-align: center;
}

.partners-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--title-pink);
}

.partners-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.partners-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

/* RTL Support for Wrapper */
body[dir="rtl"] .partners-contact-wrapper {
    flex-direction: row;
    /* Contact is first in HTML, so it will be Right. Partners second will be Left. */
}

/* On small screens, stack them */
@media (max-width: 768px) {
    .partners-contact-wrapper {
        flex-direction: column !important;
    }
}



.partners-section h2 {
    font-size: 2.5rem;
    color: var(--title-pink);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.partners-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.partner-card {
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.partner-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.2);
}

.partner-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.partner-card:hover .partner-logo img {
    filter: brightness(1.1);
}

.partner-card h4 {
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Dynamic Partner Items */
.partner-item {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.partner-item:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.15);
}

.partner-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    gap: 1rem;
}

.partner-item img {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.partner-item:hover img {
    filter: brightness(1.1);
}

.partner-name {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s;
}

.partner-item:hover .partner-name {
    color: var(--primary);
}

/* Footer Redesign */
/* Premium Footer Redesign */
.footer {
    padding: 6rem 0 0;
    border-top: 1px solid var(--border-light);
    background: var(--footer-bg);
    margin-top: 8rem;
    position: relative;
    overflow: hidden;
}

/* Sophisticated Top Glow */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 20%,
            rgba(99, 102, 241, 0.5) 50%,
            transparent 80%,
            transparent 100%);
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.footer-brand span {
    background: linear-gradient(135deg, var(--footer-heading) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.footer-tagline {
    color: var(--footer-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 320px;
    opacity: 0.8;
}

.footer-col h4 {
    color: var(--footer-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* Contact Column - Shift Left */
.footer-contact-col {
    margin-left: 2rem;
    min-width: 180px;
}

.footer-contact-col h4 {
    white-space: nowrap;
    display: block;
    width: max-content;
}

/* App Column - Same styling */
.footer-app-col {
    min-width: 150px;
}

.footer-app-col h4 {
    white-space: nowrap;
    display: block;
    width: max-content;
}

/* App Subtitle - Same hover as footer links */
.app-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.app-subtitle::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.app-subtitle:hover {
    color: var(--primary);
    padding-right: 20px;
    background: linear-gradient(90deg, rgba(233, 30, 99, 0.05), transparent);
    border-radius: 4px;
}

.app-subtitle:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    right: 0;
}

/* App Buttons Container */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* App Button - Same hover as footer links */
.app-btn {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.app-btn::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.app-btn:hover {
    color: var(--primary);
    padding-right: 20px;
    background: linear-gradient(90deg, rgba(233, 30, 99, 0.05), transparent);
    border-radius: 4px;
}

.app-btn:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    right: 0;
}

.app-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.app-btn img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.app-btn img[alt="Google Play"] {
    height: 62px;
    margin-right: -10px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 20px;
    text-shadow: none;
    background: linear-gradient(90deg, rgba(233, 30, 99, 0.05), transparent);
    border-radius: 4px;
}

.footer-links a:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    right: 0;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    position: relative;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.contact-info-item:hover {
    color: var(--primary);
    padding-right: 20px;
    background: linear-gradient(90deg, rgba(233, 30, 99, 0.05), transparent);
    border-radius: 4px;
}

.contact-info-item:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    right: 0;
}

.contact-info-item i {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.contact-info-item:hover i {
    border-color: var(--primary);
    color: var(--primary);
}

.contact-info-item span,
.contact-info-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item:hover span,
.contact-info-item:hover a {
    color: var(--primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .footer-bottom {
    background: linear-gradient(135deg, #ffffff 0%, #fce4ec 100%);
    border-top: 1px solid rgba(233, 30, 99, 0.1);
}

[data-theme="light"] .footer-bottom p,
[data-theme="light"] .footer-bottom a {
    color: #000000 !important;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.15);
    background: var(--primary);
    /* Fallback background */
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Brand Colors */
.footer-social a[aria-label="Facebook"]:hover {
    background: #1877F2;
}

.footer-social a[aria-label="Twitter"]:hover {
    background: #000;
    border-color: #333;
}

.footer-social a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a[aria-label="YouTube"]:hover {
    background: #FF0000;
}

/* RTL Specific Adjustments override */
html[dir="rtl"] .footer-links a::before {
    right: -15px;
    transform: translateY(-50%) scale(0);
}

html[dir="rtl"] .footer-links a:hover {
    padding-right: 15px;
}

html[dir="rtl"] .footer-links a:hover::before {
    transform: translateY(-50%) scale(1);
    right: 0;
}


/* ==================== Mobile Hamburger Menu ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(233, 30, 99, 0.1);
    border-color: var(--primary);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation Styles */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-darker);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 6rem 2rem 2rem;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
    }

    .main-nav.active .nav-links li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation for menu items */
    .main-nav.active .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .main-nav.active .nav-links li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .main-nav.active .nav-links li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .main-nav.active .nav-links li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .main-nav.active .nav-links li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .main-nav.active .nav-links li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .main-nav.active .nav-links li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(233, 30, 99, 0.1);
        color: var(--primary);
        transform: translateX(-10px);
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Other Mobile Adjustments */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .posts-container {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* Top bar adjustments */
    .top-bar .container {
        padding: 0 0.5rem;
    }

    .auth-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .social-links a {
        font-size: 0.9rem;
    }

    /* Header content adjustments */
    .header-content {
        justify-content: space-between;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-text h2 {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .main-nav {
        width: 100%;
        max-width: none;
    }

    .auth-buttons {
        gap: 0.3rem;
    }

    .auth-buttons .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .top-bar-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Registration Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    border-radius: 1.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Light Mode Modal Override */
[data-theme="light"] .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

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

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-bg);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-close {
        top: 1rem;
        left: 1rem;
    }
}

/* Critical Modal Fixes - Override any conflicting styles */
#login-modal,
#register-modal,
#post-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
}

#login-modal[style*="display: flex"],
#register-modal[style*="display: flex"],
#post-modal[style*="display: flex"] {
    display: flex !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(18, 18, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    min-width: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
    flex-grow: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 0.3s;
    line-height: 1;
}

.toast-close:hover {
    color: #fff;
}

/* Toast Variants */
.toast-success {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(18, 24, 20, 0.95);
}

.toast-success .toast-icon {
    color: #4ade80;
}

.toast-error {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(26, 17, 17, 0.95);
}

.toast-error .toast-icon {
    color: #f87171;
}

.toast-info {
    border-color: rgba(96, 165, 250, 0.3);
}

.toast-info .toast-icon {
    color: #60a5fa;
}

/* Keyframes for smooth entrance */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll To Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Right side as requested */
    left: auto;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Ensure it stays on right for both directions if desired, or adjust LTR if needed. 
   Usually Right is standard for ScrollTop. */
html[dir="ltr"] #scrollToTopBtn {
    right: 30px;
    left: auto;
}

html[dir="rtl"] #scrollToTopBtn {
    right: 30px;
    left: auto;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background: var(--secondary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

/* App Store Buttons */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 190px;
}

.store-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.store-btn i {
    font-size: 1.2rem;
}

/* Developer Modal Styling */
.dev-modal-content {
    background: rgba(18, 18, 23, 0.8) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
}

/* Gradient Border Effect */
.dev-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.dev-header {
    text-align: center;
    margin-bottom: 1.5rem;
}



.dev-header h3 {
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.company-desc {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-row:hover {
    background: rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.3);
    transform: translateY(-3px);
}

.contact-row .icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-row .text {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Light Mode Overrides */
/* Footer Bottom Alignment */
.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.copyright-section {
    text-align: right;
    width: 100%;
}

[data-theme="light"] .dev-header h3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .contact-row {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-row:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.1);
}

/* Podcast Slider */
.podcast-slider-section {
    position: relative;
    padding: 2rem 0;
}

.podcast-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem;
    scrollbar-width: none;
}

.podcast-slider::-webkit-scrollbar {
    display: none;
}

.slider-controls {
    display: flex;
    gap: 1rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    z-index: 100;
    /* Ensure on top */
}

.slider-btn:hover {
    background: var(--primary);
    transform: scale(1.1) rotate(0deg);
    /* Prevent accidental rotation */
    box-shadow: 0 0 20px var(--primary);
    border-color: transparent;
}

/* Slider Card Hover Effect (Pop Out) */
/* Slider Card Hover Effect (Pop Out) */
.podcast-slider {
    scroll-snap-type: x mandatory;
    padding: 3rem 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    perspective: 1000px;
    /* Enable 3D perspective */
}

/* If total width < container, center them */
@media (min-width: 1200px) {
    .podcast-slider {
        justify-content: center;
    }
}

.podcast-slider .video-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* Elegant easing */
    transform-origin: center center;
    z-index: 1;
    scroll-snap-align: center;
    opacity: 0.3;
    /* Very dim inactive */
    transform: scale(0.8) rotateY(10deg);
    /* Slight rotation for depth */
    min-width: 340px;
    /* Slightly wider */
    border-radius: 20px;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    filter: blur(2px) grayscale(60%);
    /* Blur and desaturate inactive */
    position: relative;
}

.podcast-slider .video-card h3 {
    font-size: 1.1rem;
    margin: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.6;
    transition: all 0.5s ease;
    text-align: center;
}

.podcast-slider .video-card p {
    display: none;
}

.podcast-slider .video-card .video-wrapper {
    border-radius: 20px 20px 0 0;
    margin: 0;
    width: 100%;
    position: relative;
}

/* Active State - The Hero */
.podcast-slider .video-card.active {
    transform: scale(1.15) rotateY(0deg);
    z-index: 20;
    opacity: 1;
    background: #1a1a20;
    filter: blur(0px) grayscale(0%);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(233, 30, 99, 0.5);
    /* Solid gradient-like border */
}

/* Gradient Border Effect via pseudo-element for Active */
.podcast-slider .video-card.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary), #ff6b6b);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 1;
    z-index: -1;
}

.podcast-slider .video-card.active h3 {
    opacity: 1;
    color: #fff;
    transform: translateY(0);
    font-weight: 700;
}

/* Hovering over inactive items brings them into focus slightly */
.podcast-slider:hover .video-card:not(.active):hover {
    transform: scale(0.9) rotateY(0deg);
    opacity: 0.8;
    filter: blur(0px) grayscale(20%);
    z-index: 15;
    background: rgba(40, 40, 50, 0.9);
}

/* Footer Stats adjustments */
@media (max-width: 768px) {
    .footer-stats-section .container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Podcast Slider Styles (Added by Agent) */
.podcast-slider .video-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
}

/* ==================== Welcome Screen Overlay ==================== */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(26, 26, 46, 0.98) 0%,
            rgba(15, 15, 30, 0.99) 50%,
            rgba(26, 26, 46, 0.98) 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.welcome-overlay.show {
    opacity: 1;
    visibility: visible;
}

.welcome-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Checkmark Circle Animation */
.welcome-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.checkmark-circle {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(233, 30, 99, 0.1);
    stroke-width: 4;
}

.circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transform-origin: center;
    transform: rotate(-90deg);
    animation: circleProgress 0.8s ease-out 0.2s forwards;
}

.checkmark {
    fill: none;
    stroke: #10b981;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: checkmarkDraw 0.5s ease-out 0.8s forwards;
}

@keyframes circleProgress {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Welcome Text */
.welcome-title {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 1s forwards;
}

.welcome-name {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

/* Particles Animation */
.welcome-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0;
}

.welcome-overlay.show .particle {
    animation: particleExplode 1.5s ease-out 0.8s forwards;
}

.particle:nth-child(1) {
    --angle: 0deg;
    --distance: 100px;
    --delay: 0s;
}

.particle:nth-child(2) {
    --angle: 18deg;
    --distance: 120px;
    --delay: 0.02s;
}

.particle:nth-child(3) {
    --angle: 36deg;
    --distance: 90px;
    --delay: 0.04s;
}

.particle:nth-child(4) {
    --angle: 54deg;
    --distance: 130px;
    --delay: 0.06s;
}

.particle:nth-child(5) {
    --angle: 72deg;
    --distance: 110px;
    --delay: 0.08s;
}

.particle:nth-child(6) {
    --angle: 90deg;
    --distance: 100px;
    --delay: 0.1s;
}

.particle:nth-child(7) {
    --angle: 108deg;
    --distance: 125px;
    --delay: 0.12s;
}

.particle:nth-child(8) {
    --angle: 126deg;
    --distance: 95px;
    --delay: 0.14s;
}

.particle:nth-child(9) {
    --angle: 144deg;
    --distance: 115px;
    --delay: 0.16s;
}

.particle:nth-child(10) {
    --angle: 162deg;
    --distance: 105px;
    --delay: 0.18s;
}

.particle:nth-child(11) {
    --angle: 180deg;
    --distance: 110px;
    --delay: 0.2s;
}

.particle:nth-child(12) {
    --angle: 198deg;
    --distance: 120px;
    --delay: 0.22s;
}

.particle:nth-child(13) {
    --angle: 216deg;
    --distance: 100px;
    --delay: 0.24s;
}

.particle:nth-child(14) {
    --angle: 234deg;
    --distance: 130px;
    --delay: 0.26s;
}

.particle:nth-child(15) {
    --angle: 252deg;
    --distance: 90px;
    --delay: 0.28s;
}

.particle:nth-child(16) {
    --angle: 270deg;
    --distance: 115px;
    --delay: 0.3s;
}

.particle:nth-child(17) {
    --angle: 288deg;
    --distance: 105px;
    --delay: 0.32s;
}

.particle:nth-child(18) {
    --angle: 306deg;
    --distance: 125px;
    --delay: 0.34s;
}

.particle:nth-child(19) {
    --angle: 324deg;
    --distance: 95px;
    --delay: 0.36s;
}

.particle:nth-child(20) {
    --angle: 342deg;
    --distance: 110px;
    --delay: 0.38s;
}

/* Different colors for particles */
.particle:nth-child(odd) {
    background: var(--primary);
}

.particle:nth-child(even) {
    background: var(--secondary);
}

.particle:nth-child(3n) {
    background: #10b981;
}

@keyframes particleExplode {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(0);
    }
}

/* Welcome fadeInUp animation */
@keyframes welcomeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Welcome Screen */
@media (max-width: 768px) {
    .welcome-icon {
        width: 120px;
        height: 120px;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-name {
        font-size: 1.4rem;
    }
}

/* Podcast Slider Buttons */
.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Light Mode Overrides for Slider Buttons */
[data-theme="light"] .slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .slider-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

/* =========================================
   Developer Credit Modal Styling (Refined - Centered)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* Flex display when active (handled by JS setting display: flex) */
.modal.active {
    display: flex;
}

.dev-modal-content {
    background: rgba(26, 26, 46, 0.98);
    margin: auto;
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(233, 30, 99, 0.15);
    border-radius: 2rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    background: linear-gradient(160deg, #1A1A2E 0%, #0F0F1E 100%);
    animation: slideUp 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="light"] .dev-modal-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.dev-header {
    margin-bottom: 2rem;
    position: relative;
}

.dev-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FF80AB, #EA80FC);
    /* Lighter Gradient */
    margin: 1.5rem auto 0;
    border-radius: 10px;
    opacity: 0.9;
}

.dev-header h3 {
    font-size: 1.7rem;
    margin: 0;
    background: linear-gradient(90deg, #FF80AB, #EA80FC);
    /* Lighter Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(233, 30, 99, 0.15);
}

.company-desc {
    color: #FFFFFF;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.00rem;
    font-weight: 500;
    padding: 0 0.5rem;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dev-contact-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    align-items: center;
    /* Center Rows */
}

.dev-contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center Content Inside */
    gap: 1rem;
    padding: 1rem 2rem;
    /* More spacious */
    width: fit-content;
    /* Shrink to content */
    min-width: 320px;
    /* Wider minimum */
    border-radius: 50px;
    /* Pill Shape */
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .dev-contact-row {
    background: #f1f3f5;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dev-contact-row:hover {
    background: rgba(233, 30, 99, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dev-contact-row .icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    background: rgba(233, 30, 99, 0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dev-contact-row:hover .icon {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

.dev-contact-row .text {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s;
    line-height: 1;
    padding-bottom: 3px;
}

.modal-close-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Main Contact Section */
.contact-box {
    text-align: center;
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.pagination-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.pagination-dots {
    color: var(--text-muted);
    font-weight: bold;
    margin: 0 0.5rem;
}

/* Footer Stats Section */
.footer-stats-section {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.02);
}

.footer-stats-section .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.stat-item {
    text-align: center;
    color: var(--text-main);
    padding: 1.5rem;
    min-width: 150px;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--glass);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

[data-theme="light"] .stat-item h3 {
    color: var(--primary);
}

[data-theme="light"] .stat-item p {
    color: #555;
    font-weight: 600;
}

/* Light Theme Navigation Fixes */
[data-theme="light"] .main-nav a {
    color: #000000;
    font-weight: 600;
}

[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav a.active {
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    box-shadow: none;
    transform: translateY(-2px);
}

/* Light Theme - Developer Modal Fixes */
[data-theme="light"] .dev-modal-content {
    background: #1a1a2e;
    /* Dark background for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .dev-header h3 {
    color: var(--primary);
}

[data-theme="light"] .company-desc {
    color: #ffffff;
    font-weight: 500;
}

[data-theme="light"] .dev-contact-row .text {
    color: #ffffff;
}

[data-theme="light"] .dev-contact-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .dev-contact-row:hover {
    background: rgba(233, 30, 99, 0.1);
    border-color: var(--primary);
}

/* Light Theme - Podcast Video Cards */
[data-theme="light"] .podcast-slider .video-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .podcast-slider .video-card h3 {
    color: #333;
    font-weight: 600;
}

[data-theme="light"] .podcast-slider .video-card p {
    color: #555;
    font-weight: 500;
}

[data-theme="light"] .podcast-slider .video-card .video-date {
    color: #777;
}

/* Active Card in Light Mode */
[data-theme="light"] .podcast-slider .video-card.active {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--primary);
}

[data-theme="light"] .podcast-slider .video-card.active h3 {
    color: var(--primary);
    text-shadow: none;
}

/* Side Video Hover in Light Mode - Fix "Jarring" Dark Background */
[data-theme="light"] .podcast-slider:hover .video-card:not(.active):hover {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) rotateY(0deg);
    opacity: 1;
    filter: blur(0px) grayscale(0%);
}

/* ===== Article Content HTML Styling ===== */
.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.article-content a:hover {
    color: var(--primary-hover);
    text-decoration-color: var(--primary-hover);
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--text-main);
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-right: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-right: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--glass);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.5rem 0 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Light theme adjustments */
[data-theme="light"] .article-content a {
    color: var(--primary);
}

[data-theme="light"] .article-content a:hover {
    color: var(--primary-hover);
}