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

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff3366;
    --accent-light: #ff6b9d;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 10px rgba(106, 17, 203, 0.7), 0 0 20px rgba(106, 17, 203, 0.5), 0 0 30px rgba(106, 17, 203, 0.3);
}

body {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Cairo', 'Exo 2', sans-serif;
}

html[lang="ar"] body,
html[lang="ar"] .logo,
html[lang="ar"] .logo-card-inner,
html[lang="ar"] .nav-links a,
html[lang="ar"] .hero h1,
html[lang="ar"] .section-title h2,
html[lang="ar"] .about-text h3,
html[lang="ar"] .project-content h3,
html[lang="ar"] .footer-logo {
    font-family: 'Cairo', sans-serif !important;
}

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

header {
    padding: 1.5rem 0;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(106, 17, 203, 0.7);
}

.logo-card {
    width: 50px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: rotate(5deg);
}

.logo-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
}

.logo:hover .logo-card:before {
    animation: shine 1.5s ease;
}

.logo-card-inner {
    width: 40px;
    height: 60px;
    background: var(--darker);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 900;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a,
.nav-links .lang-switch {
    position: relative;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links .lang-switch:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: var(--light);
}

.nav-links .lang-switch {
    text-transform: uppercase;
}

.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 17, 203, 0.3), transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(37, 117, 252, 0.3), transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(255, 51, 102, 0.2), transparent 30%);
    z-index: -1;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.card-2 { top: 60%; left: 5%; animation-delay: 2s; }
.card-3 { top: 30%; right: 10%; animation-delay: 4s; }
.card-4 { top: 70%; right: 5%; animation-delay: 1s; }

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #b8b8d1;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
    position: relative;
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.6);
}

.btn:hover:before {
    left: 0;
}

section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title p {
    color: #b8b8d1;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #b8b8d1;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--neon-glow);
    position: relative;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.03);
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.3;
    z-index: 1;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--dark), var(--darker));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.project-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), var(--neon-glow);
}

.project-card:hover:before {
    opacity: 0.1;
}

.project-img {
    height: 220px;
    width: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
}

.project-card:hover .project-img:after {
    animation: shine 1.5s ease;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
}

.project-content p {
    color: #b8b8d1;
    margin-bottom: 1.5rem;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), var(--neon-glow);
}

.member-header {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.member-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.member-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

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

.team-card:hover .member-img {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.member-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.member-header h3 .member-name-sub {
    display: block;
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 2rem;
}

.member-header p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.member-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.member-content p {
    color: #b8b8d1;
    margin-bottom: 1.5rem;
}

.twitter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1DA1F2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.twitter-link:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(106, 17, 203, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

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

.social-links a:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.copyright {
    color: #b8b8d1;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .about-content { flex-direction: column; }
    .about-text, .about-image { width: 100%; }
    .floating-card { display: none; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .nav-container { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1.5rem; }
    .section-title h2 { font-size: 2.2rem; }
}

@media (max-width: 576px) {
    .hero { padding: 6rem 0 4rem; }
    .hero h1 { font-size: 2rem; }
    .project-cards, .team-cards { grid-template-columns: 1fr; }
    .member-img { width: 120px; height: 120px; }
}


/* -========== Ritaj Page ==========- */

.ritaj-header-img {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker);
}
.ritaj-header-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.ritaj-page-title {
    padding: 3rem 0 1rem;
    text-align: center;
}
.ritaj-page-title h1 {
    font-size: 2.6rem;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ritaj-block {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}
.ritaj-block h2,
.ritaj-block h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}
.ritaj-block h3 {
    margin-top: 1.5rem;
}
.ritaj-block p { color: #b8b8d1; margin-bottom: 1rem; }
.ritaj-block p.highlight { color: var(--accent-light); }
.ritaj-block p.note-box {
    background: rgba(255,255,255,0.05);
    border-inline-start: 3px solid var(--secondary);
    padding: 1rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.ritaj-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}
.ritaj-video iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--light);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}
.doc-link:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.doc-link i { color: #4285F4; font-size: 1.3rem; }

.external-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1.2rem;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}
.external-card:hover { background: rgba(255,255,255,0.1); }
.external-card .icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.external-card .info h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.external-card .info p { font-size: 0.85rem; color: #b8b8d1; margin-bottom: 0.2rem; }
.external-card .info span { font-size: 0.8rem; color: #8888a8; }