@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    font-display: swap;
}

/* Prevent layout shift */
img {
    height: auto;
    max-width: 100%;
}

/* Reduce animations for better performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body.intro-active {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Intro Animation */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeOutIntro 0.5s ease 1.5s forwards;
    overflow: hidden;
}

.intro-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 25px 25px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.intro-logo-container {
    position: relative;
    width: 600px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-logo-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.intro-logo {
    position: absolute;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translateX(-50%);
    animation: 
        logoEntrance 1s ease-out forwards,
        logoSlideLeft 1s ease-in-out 2s forwards;
    z-index: 2;
}

.intro-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 40px rgba(99, 102, 241, 1))
        drop-shadow(0 0 80px rgba(139, 92, 246, 0.6))
        drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        filter: 
            drop-shadow(0 0 40px rgba(99, 102, 241, 1))
            drop-shadow(0 0 80px rgba(139, 92, 246, 0.6))
            drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    }
    50% {
        filter: 
            drop-shadow(0 0 60px rgba(99, 102, 241, 1))
            drop-shadow(0 0 120px rgba(236, 72, 153, 0.8))
            drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7));
    }
}

.intro-text {
    position: absolute;
    left: 50%;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #ec4899 60%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateX(-50%);
    animation: 
        textAppear 1s ease-out 3s forwards,
        textShine 3s linear infinite 3s,
        fadeOutTextNew 1s ease 6s forwards;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.8));
    z-index: 1;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes logoSlideLeft {
    0% {
        transform: translateX(-50%) scale(1);
    }
    100% {
        transform: translateX(calc(-50% - 180px)) scale(0.85);
    }
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateX(calc(-50% + 100px)) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateX(calc(-50% + 120px)) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(calc(-50% + 120px)) scale(1);
    }
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes fadeOutTextNew {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeOutIntro {
    0% {
        opacity: 1;
        visibility: visible;
    }
    99% {
        opacity: 0;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

/* 3D Cube in Hero Section */
.cube-3d-container {
    position: absolute;
    width: 255px;
    height: 255px;
    top: 50%;
    margin-top: -135px;
    left: 18%;
    right: auto;
    perspective: 1200px;
    z-index: 5;
    animation: cubeContainerFloat 8s ease-in-out infinite;
    transition: left 0.5s ease, right 0.5s ease;
    pointer-events: none;
}

[dir="ltr"] .cube-3d-container {
    left: auto;
    right: 18%;
}

[dir="rtl"] .cube-3d-container {
    right: auto;
    left: 18%;
}

@keyframes cubeContainerFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(15px);
    }
    50% {
        transform: translateY(-5px) translateX(-15px);
    }
    75% {
        transform: translateY(-25px) translateX(8px);
    }
}

.cube-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate3d 25s infinite linear;
}

@keyframes cubeRotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
    }
}

.cube-3d-face {
    position: absolute;
    width: 255px;
    height: 255px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-light);
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2) 0%, 
        rgba(139, 92, 246, 0.25) 50%, 
        rgba(236, 72, 153, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.5),
        inset 0 0 30px rgba(139, 92, 246, 0.3),
        0 10px 50px rgba(0, 0, 0, 0.3);
    text-shadow: 
        0 0 20px rgba(99, 102, 241, 0.8),
        0 0 40px rgba(139, 92, 246, 0.6);
}

.cube-3d-face.front {
    transform: translateZ(127.5px);
}

.cube-3d-face.back {
    transform: rotateY(180deg) translateZ(127.5px);
}

.cube-3d-face.right {
    transform: rotateY(90deg) translateZ(127.5px);
}

.cube-3d-face.left {
    transform: rotateY(-90deg) translateZ(127.5px);
}

.cube-3d-face.top {
    transform: rotateX(90deg) translateZ(127.5px);
}

.cube-3d-face.bottom {
    transform: rotateX(-90deg) translateZ(127.5px);
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-color);
    top: 50%;
    right: 30%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--success-color);
    bottom: 10%;
    right: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: var(--warning-color);
    top: 30%;
    left: 20%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    z-index: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    min-width: 50px;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.lang-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: visible;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* 3D Cube */
.cube-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    opacity: 0.8;
}

.cube-face.front {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    transform: translateZ(100px);
}

.cube-face.back {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    transform: translateZ(-100px) rotateY(180deg);
}

.cube-face.right {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(245, 158, 11, 0.3));
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face.left {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(16, 185, 129, 0.3));
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face.top {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.3));
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face.bottom {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
    animation: scroll 2s infinite;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--text-light);
    border-radius: 2px;
    animation: scroll-dot 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scroll-dot {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-gray);
}

/* Images Section */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-card:hover img {
    transform: scale(1.1);
}

.image-content {
    text-align: center;
    padding: 2rem;
}

.image-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.view-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.2);
}

/* Posts Section */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-card);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-gray);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.program-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    list-style: none;
}

.tech-stack li {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.program-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.program-link:hover {
    gap: 1rem;
}

/* Profiles Section */
.profiles-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.profile-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.profile-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ef4444, #ec4899);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.profile-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.profile-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.btn-view,
.btn-download {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-view {
    background: var(--gradient-1);
    color: white;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-download {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-download:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* PDF Modal */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 2% auto;
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
}

.pdf-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pdf-close:hover {
    background: var(--danger-color);
    transform: rotate(90deg);
}

#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Section */
.contact-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.contact-content iframe {
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3) !important;
    background: rgba(30, 41, 59, 0.5) !important;
}

.contact-form {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 600px !important;
    width: 100% !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 3rem;
}

.footer-logo .logo-text {
    font-size: 2.5rem;
}

.footer-logo p {
    color: var(--text-gray);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 3rem;
    align-items: center;
}

.footer-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    width: 100%;
    max-width: 400px;
}

.footer-info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-social-link {
    width: 55px;
    height: 55px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cube-container {
        margin-top: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .videos-grid,
    .posts-grid,
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .language-switcher {
        gap: 0.3rem;
        margin-left: 1rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 40px;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .videos-grid,
    .images-grid,
    .posts-grid,
    .programs-grid,
    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        padding: 0 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Hide intro and cube animations on mobile for performance */
    .intro-screen {
        display: none !important;
    }

    body.intro-active {
        overflow: auto !important;
    }

    /* Disable background animations on mobile */
    .bg-animation .shape {
        animation: none !important;
        opacity: 0.1 !important;
    }

    /* Hide 3D cube on mobile */
    .cube-3d-container {
        display: none !important;
    }

    .cube {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
    }

    .pdf-modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }

    .pdf-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .intro-logo {
        width: 100px;
        height: 100px;
    }

    .intro-text {
        font-size: 2.5rem;
    }

    .intro-logo-container {
        width: 100%;
        height: 300px;
    }

    .intro-logo-container::before {
        width: 200px;
        height: 200px;
    }

    @keyframes logoSlideLeft {
        0% {
            transform: translateX(-50%) scale(1);
        }
        100% {
            transform: translateX(calc(-50% - 100px)) scale(0.8);
        }
    }

    @keyframes textAppear {
        0% {
            opacity: 0;
            transform: translateX(calc(-50% + 60px)) scale(0.5);
        }
        60% {
            opacity: 1;
            transform: translateX(calc(-50% + 70px)) scale(1.1);
        }
        100% {
            opacity: 1;
            transform: translateX(calc(-50% + 70px)) scale(1);
        }
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-icon {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .program-card,
    .contact-form {
        padding: 1.5rem;
    }

    .video-info,
    .post-content {
        padding: 1rem;
    }

    .video-info h3,
    .post-content h3 {
        font-size: 1.1rem;
    }

    .video-info p,
    .post-content p {
        font-size: 0.9rem;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .profile-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .program-icon,
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .intro-logo {
        width: 80px;
        height: 80px;
    }

    .intro-text {
        font-size: 2rem;
    }

    .cube {
        width: 120px;
        height: 120px;
    }

    .cube-face {
        width: 120px;
        height: 120px;
    }

    .footer-contact-info {
        gap: 1.5rem;
    }

    .footer-info-item {
        font-size: 1rem;
    }

    .footer-info-item i {
        font-size: 1.3rem;
        width: 28px;
    }

    .footer-social {
        gap: 1.2rem;
    }

    .footer-social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
