/* Theme Variables */
:root {
    --primary-color: #002b64;
    --primary-dark: #001a3d;
    --secondary-color: #e55b27;
    --accent-color: #90b5b3;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --bg-body: #fbfbfd;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.1);
    --spotlight-color: rgba(144, 181, 179, 0.15);

    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Heebo', sans-serif;
}

body.dark-mode {
    --primary-color: #90b5b3;
    --primary-dark: #2c5282;
    --secondary-color: #f9b80c;
    --accent-color: #002b64;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --bg-body: #000000;
    --bg-glass: rgba(30, 30, 30, 0.65);
    --card-border: rgba(255, 255, 255, 0.05);
    --spotlight-color: rgba(255, 255, 255, 0.05);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(229, 91, 39, 0.1);
}

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

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to left, #002b64, #dd2a7b, #e47525, #f9b80c, #4bb578, #90b5b3);
    transition: width 0.1s ease-out;
}

/* Theme Toggle Button */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle .fa-sun {
    display: none;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .fa-sun {
    display: block;
    color: var(--secondary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dd2a7b, #e47525, #f9b80c, #4bb578, #90b5b3, #002b64);
    border-radius: 10px;
    border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b82366, #c2611e, #d49c09, #3f9965, #7a9c9a, #001f4a);
}

/* ... (Keep existing resets, animations) ... */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    direction: rtl;
    margin: 0;
    overflow-x: hidden;
}

/* Texture & Background */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noise 2s steps(4) infinite;
}

@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 15%);
    }

    80% {
        transform: translate(5%, 5%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--bg-body) 0%, rgba(0, 0, 0, 0.02) 100%);
}

body.dark-mode .background-mesh {
    background: radial-gradient(circle at 50% 50%, var(--bg-body) 0%, #051622 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 43, 100, 0.15);
    top: -10%;
    right: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(229, 91, 39, 0.15);
    bottom: 10%;
    left: -5%;
    animation-duration: 30s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(144, 181, 179, 0.1);
    top: 40%;
    right: 40%;
    animation-duration: 35s;
}

@keyframes float {
    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

body.dark-mode .navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar Layout */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    /* Logo Left, Menu Right */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Active Link Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    /* RTL underline start */
    background-color: var(--secondary-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-cta {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white !important;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 43, 100, 0.3);
}

.nav-cta:hover::after,
.nav-cta.active::after {
    width: 0;
}

/* No underline for CTA button */

/* Hero - Lifted Higher */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-top: 15vh;
    padding-bottom: 15vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shimmer-text {
    font-family: 'Rubik', sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(110deg, var(--primary-color) 20%, var(--accent-color) 40%, var(--primary-color) 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    letter-spacing: -2px;
}

@keyframes shine {
    to {
        background-position: -200% center;
    }
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.floating-social-proof {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding: 10px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--bg-body);
    margin-left: -15px;
    /* RTL overlapping */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-count {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 3px solid var(--bg-body);
    margin-left: -15px;
    z-index: 1;
}

.floating-social-proof span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
}

.scroll-arrow {
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: scrollDown 2s infinite;
}

.scroll-arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 43, 100, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 43, 100, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
}

.btn-secondary .ripple {
    background: rgba(0, 43, 100, 0.2);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Premium About Section (Editorial & Glass) */
.about-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* More space for text */
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.about-text-column {
    position: relative;
    padding-right: 30px;
    border-right: 4px solid var(--secondary-color);
}

.lead-text {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 25px;
}

.about-text-column p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-style: italic;
    background: rgba(229, 91, 39, 0.1);
    padding: 20px;
    border-radius: 0 15px 15px 0;
    margin-top: 30px;
    border-left: 4px solid var(--secondary-color);
}

/* Glass Value Cards */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.value-card {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(229, 91, 39, 0.15), transparent 60%);
    opacity: 0;
    transition: 0.3s;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

body.dark-mode .value-card:hover {
    background: rgba(30, 30, 30, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(135deg, #e55b27 0%, #f9b80c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Expanded Vision Section */
.vision-section {
    background: #0d0d0d;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.vision-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 43, 100, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vision-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.vision-text {
    font-family: 'Rubik', sans-serif;
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 40px;
}

.vision-detailed-text p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: center;
}

/* Modern Symmetric Activities (3-Column Premium Glass) */
.bento-section {
    padding: 120px 0;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    perspective: 1000px;
}

.bento-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.4s;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            var(--spotlight-color),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-app::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.card-radio::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.card-tv::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
}

.bento-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode .bento-card:hover {
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.bento-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    background: linear-gradient(135deg, #002b64 0%, #90b5b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.bento-card:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
}

.bento-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.bento-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.bento-content .subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.feature-checklist {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.feature-checklist li {
    font-size: 0.95rem;
    padding-right: 25px;
    margin-bottom: 12px;
    color: #555;
    position: relative;
}

.feature-checklist li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    font-size: 0.75rem;
    background: rgba(0, 43, 100, 0.05);
    padding: 6px 14px;
    border-radius: 100px;
    color: var(--primary-color);
    font-weight: 500;
    transition: 0.2s;
}

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

/* Team Section */
.team-section {
    background: var(--bg-body);
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

/* Base Hover */
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode .team-card:hover {
    background: rgba(30, 30, 30, 0.9);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    border: 3px solid rgba(0, 43, 100, 0.1);
    transition: 0.4s;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card:hover .member-photo {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

body.dark-mode .member-info h3 {
    color: white;
}

.member-info .role {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Expandable Bio Section */
.member-bio {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
}

.member-bio p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    color: var(--primary-color);
    background: rgba(0, 43, 100, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

body.dark-mode .social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hover Reveal Trigger */
.team-card:hover .member-bio {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

/* Placeholder Card specifics */
.placeholder-card .member-photo {
    background: rgba(229, 91, 39, 0.1);
    color: var(--secondary-color);
    border-color: transparent;
}

.pulse-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.2;
    animation: pulseAvatar 2s infinite;
    z-index: -1;
}

@keyframes pulseAvatar {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 43, 100, 0.05) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-mode .partner-logo-card {
    background: rgba(30, 30, 30, 0.6);
}

/* White pillow box to always display logos cleanly regardless of theme */
.partner-logo-box {
    background: white;
    width: 100%;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.partner-logo-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: 0.4s;
}

.pl-content h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 8px;
    transition: 0.3s;
}

body.dark-mode .pl-content h3 {
    color: white;
}

.pl-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Hover effects with glowing border */
.partner-logo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -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: 0;
    transition: 0.4s;
    pointer-events: none;
}

.partner-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(229, 91, 39, 0.1);
}

.partner-logo-card:hover::after {
    opacity: 1;
}

.partner-logo-card:hover .partner-logo-box {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.partner-logo-card:hover .pl-content h3 {
    color: var(--primary-color);
}

/* Gallery Section - Infinite Marquee */
.gallery-section {
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-body);
}

.gallery-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    direction: ltr;
    /* Force LTR for correct marquee scrolling logic */
}

.gallery-marquee-container::before,
.gallery-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15rem;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body) 0%, transparent 100%);
}

.gallery-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body) 0%, transparent 100%);
}

.gallery-marquee {
    display: flex;
    width: max-content;
}

.gallery-scroll {
    display: flex;
    gap: 30px;
    animation: scrollMarquee 40s linear infinite;
}

/* Pause animation and handle focus states on hover */
.gallery-scroll:hover {
    animation-play-state: paused;
}

/* Gallery Focus Effect (Blur non-hovered items) */
.gallery-scroll:has(.gallery-card:hover) .gallery-card:not(:hover) {
    filter: blur(4px) grayscale(50%);
    opacity: 0.6;
    transform: scale(0.95);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
        /* Moves right because of RTL direction context issues or just standard marquee logic. For RTL usually goes right-to-left actually. Let's assume standard LTR logic for transform first then adjust if needed. Actually in RTL mode, translate positive X moves RIGHT. Negative moves LEFT. We want it to move continuously. */
        transform: translateX(-50%);
    }
}

.gallery-card {
    width: 300px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Card Backgrounds */
.card-1 {
    background: url('images/connect.png') center/cover no-repeat;
}

.card-2 {
    background: url('images/nature.png') center/cover no-repeat;
}

.card-3 {
    background: url('images/urban.png') center/cover no-repeat;
}

.card-4 {
    background: url('images/art.png') center/cover no-repeat;
}

.gallery-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.gallery-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-card {
        width: 240px;
        height: 320px;
    }
}

/* Contact Section - Premium Bento Upgrade */
.contact-section {
    padding: 100px 0 50px;
    background: var(--bg-body);
}

.contact-bento-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.contact-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(0, 43, 100, 0.03);
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
    border: 1px solid transparent;
}

body.dark-mode .contact-method-card {
    background: rgba(255, 255, 255, 0.05);
}

.contact-method-card:hover {
    background: rgba(0, 43, 100, 0.06);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(229, 91, 39, 0.1);
    transform: translateX(-5px);
}

body.dark-mode .contact-method-card:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.contact-method-card i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(0, 43, 100, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.4s;
    flex-shrink: 0;
}

.contact-method-card:hover i {
    background: var(--primary-color);
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

.contact-method-card div {
    display: flex;
    flex-direction: column;
}

.contact-method-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-method-card strong {
    font-size: 1.1rem;
    color: var(--primary-color);
    direction: ltr;
    text-align: right;
}

/* Contact Visual Area */
.contact-visual {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.abstract-globe {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-globe .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: spinGlobes 15s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: var(--secondary-color);
    animation-duration: 8s !important;
}

.ring-2 {
    width: 140%;
    height: 140%;
    border-right-color: rgba(255, 255, 255, 0.5);
    animation-duration: 12s !important;
    animation-direction: reverse !important;
}

.ring-3 {
    width: 180%;
    height: 180%;
    border-bottom-color: var(--secondary-color);
    animation-duration: 20s !important;
}

.glow-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 20px rgba(229, 91, 39, 0.8);
    position: relative;
    z-index: 2;
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes spinGlobes {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatIcon {

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

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

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    width: 100%;
    margin-top: 80px;
    opacity: 0.5;
    box-shadow: 0 0 20px var(--secondary-color);
}

@media (max-width: 1024px) {
    .partners-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .contact-bento-panel {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .partners-logo-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Section */
.site-footer {
    background: #002b64;
    color: white;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 300px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Contact Section Duplicate Config Removed */

.contact-container {
    background: var(--bg-body);
    border-radius: 40px;
    padding: 60px;
    text-align: center;
}

/* Text Center Helper */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .shimmer-text {
        font-size: 4rem;
        letter-spacing: -1px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .about-content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-column {
        padding-right: 0;
        border-right: none;
        border-bottom: 4px solid var(--secondary-color);
        padding-bottom: 30px;
    }

    .values-grid {
        gap: 15px;
    }

    .vision-text {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .shimmer-text {
        font-size: 2.8rem !important;
    }

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

    .btn-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: auto;
        min-width: 250px;
        text-align: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

    h2 {
        font-size: 2rem !important;
    }

    .section {
        padding: 60px 0;
    }

    .bento-section,
    .contact-section,
    .vision-section,
    .gallery-section {
        padding: 60px 0;
    }

    .contact-container {
        padding: 40px 20px;
    }

    .team-grid {
        gap: 30px;
    }

    .contact-container h2 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .shimmer-text {
        font-size: 2.2rem !important;
    }

    .nav-menu {
        width: 85%;
    }

    .container {
        padding: 0 15px;
    }

    .bento-card {
        padding: 30px 20px;
        min-height: auto;
    }

    .bento-icon {
        font-size: 2.5rem;
    }

    .partner-card {
        width: 140px;
        padding: 20px;
    }

    .about-quote {
        font-size: 1.1rem;
        padding: 15px;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fbfbfd;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* Force All Reveal Elements on Load */
body.loaded .reveal {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* Slight delay for dramatic effect */
}

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

.loader-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(144, 181, 179, 0.5));
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.loader-anim {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 43, 100, 0.1);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Logo Visibility by Theme */
.dark-logo {
    display: none;
}

body.dark-mode .dark-logo {
    display: block;
}

body.dark-mode .light-logo {
    display: none;
}

/* Value Cards Colors (About Section) */
.value-card-1 {
    border-top: 4px solid #dd2a7b;
}

.value-card-1 .value-icon {
    background: linear-gradient(135deg, #dd2a7b 0%, #a71d6a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card-1:hover {
    box-shadow: 0 20px 40px rgba(221, 42, 123, 0.15);
}

.value-card-2 {
    border-top: 4px solid #e47525;
}

.value-card-2 .value-icon {
    background: linear-gradient(135deg, #e47525 0%, #e1681f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card-2:hover {
    box-shadow: 0 20px 40px rgba(228, 117, 37, 0.15);
}

.value-card-3 {
    border-top: 4px solid #f9b80c;
}

.value-card-3 .value-icon {
    background: linear-gradient(135deg, #f9b80c 0%, #fea033 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card-3:hover {
    box-shadow: 0 20px 40px rgba(249, 184, 12, 0.15);
}

.value-card-4 {
    border-top: 4px solid #4bb578;
}

.value-card-4 .value-icon {
    background: linear-gradient(135deg, #4bb578 0%, #3caf70 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card-4:hover {
    box-shadow: 0 20px 40px rgba(75, 181, 120, 0.15);
}

body.dark-mode .value-card-1:hover {
    box-shadow: 0 20px 40px rgba(221, 42, 123, 0.3);
}

body.dark-mode .value-card-2:hover {
    box-shadow: 0 20px 40px rgba(228, 117, 37, 0.3);
}

body.dark-mode .value-card-3:hover {
    box-shadow: 0 20px 40px rgba(249, 184, 12, 0.3);
}

body.dark-mode .value-card-4:hover {
    box-shadow: 0 20px 40px rgba(75, 181, 120, 0.3);
}

/* Team Cards Colors (Team Section) */
.team-card-1 {
    border-top: 4px solid #dd2a7b;
}

.team-card-1:hover {
    box-shadow: 0 20px 40px rgba(221, 42, 123, 0.15);
}

.team-card-1:hover .member-photo {
    border-color: #dd2a7b;
}

.team-card-2 {
    border-top: 4px solid #e47525;
}

.team-card-2:hover {
    box-shadow: 0 20px 40px rgba(228, 117, 37, 0.15);
}

.team-card-2:hover .member-photo {
    border-color: #e47525;
}

.team-card-3 {
    border-top: 4px solid #f9b80c;
}

.team-card-3:hover {
    box-shadow: 0 20px 40px rgba(249, 184, 12, 0.15);
}

.team-card-3:hover .member-photo {
    border-color: #f9b80c;
}

.team-card-4 {
    border-top: 4px solid #4bb578;
}

.team-card-4:hover {
    box-shadow: 0 20px 40px rgba(75, 181, 120, 0.15);
}

.team-card-4:hover .member-photo {
    border-color: #4bb578;
}

body.dark-mode .team-card-1:hover {
    box-shadow: 0 20px 40px rgba(221, 42, 123, 0.3);
}

body.dark-mode .team-card-2:hover {
    box-shadow: 0 20px 40px rgba(228, 117, 37, 0.3);
}

body.dark-mode .team-card-3:hover {
    box-shadow: 0 20px 40px rgba(249, 184, 12, 0.3);
}

body.dark-mode .team-card-4:hover {
    box-shadow: 0 20px 40px rgba(75, 181, 120, 0.3);
}

/* Custom Colors for Contact Cards */
.contact-mail-card {
    border-left: 4px solid #dd2a7b;
}

.contact-mail-card:hover {
    border-color: #dd2a7b;
    box-shadow: 0 10px 20px rgba(221, 42, 123, 0.15);
}

.contact-mail-card:hover .contact-icon {
    background: #dd2a7b;
}

.contact-whatsapp-card {
    border-left: 4px solid #4bb578;
}

.contact-whatsapp-card:hover {
    border-color: #4bb578;
    box-shadow: 0 10px 20px rgba(75, 181, 120, 0.15);
}

.contact-whatsapp-card:hover .contact-icon {
    background: #4bb578;
}

body.dark-mode .contact-mail-card:hover {
    box-shadow: 0 10px 20px rgba(221, 42, 123, 0.3);
}

body.dark-mode .contact-whatsapp-card:hover {
    box-shadow: 0 10px 20px rgba(75, 181, 120, 0.3);
}

@media (max-width: 600px) {
    .contact-info {
        padding: 30px 20px;
    }

    .contact-method-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .contact-method-card strong {
        font-size: 1rem;
        word-break: break-all;
    }
}