:root {
    --dark-green: #1a5e3d;
    --primary-green: #2d8659;
    --light-green: #5fb884;
    --background: #f3fbf7;
    --white: #ffffff;
    --gray-light: #f8f8f8;
    --gray: #eaeaea;
    --text-dark: #1a2e22;
    --text-light: #5a7165;
    --shadow: 0 5px 15px rgba(26, 94, 61, 0.08);
    --shadow-hover: 0 10px 25px rgba(26, 94, 61, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-scrolled {
    padding: 0.8rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-green);
    text-decoration: none;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 500;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(95, 184, 132, 0.15) 0%, rgba(45, 134, 89, 0.15) 100%);
    border: 2px solid var(--light-green);
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.1);
}

.language-switcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.language-switcher:hover::before {
    left: 100%;
}

.language-switcher:hover {
    background: linear-gradient(135deg, rgba(95, 184, 132, 0.25) 0%, rgba(45, 134, 89, 0.25) 100%);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 134, 89, 0.2);
}

.lang-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(45, 134, 89, 0.3);
    transition: transform 0.3s ease;
}

.language-switcher:hover .lang-flag {
    transform: rotate(360deg) scale(1.1);
}

.lang-text {
    font-weight: 500;
    color: var(--dark-green);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-green);
    cursor: pointer;
}

/* About Hero Section */
.about-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.1) 0%, rgba(95, 184, 132, 0.05) 100%);
    margin-top: 80px;
}

.about-hero-content {
    max-width: 900px;
}

.about-icon {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(45, 134, 89, 0.1);
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Institutional Partners Section */
.institutional-partners {
    padding: 3rem 5%;
    background: linear-gradient(135deg, rgba(95, 184, 132, 0.05) 0%, rgba(26, 94, 61, 0.05) 100%);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.partner-logo-item {
    text-align: center;
    transition: var(--transition);
}

.partner-logo-item:hover {
    transform: translateY(-10px);
}

.logo-placeholder {
    width: 150px;
    height: 150px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid var(--light-green);
}

.logo-placeholder:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green);
}

.logo-placeholder i {
    font-size: 4rem;
    color: var(--primary-green);
}

.logo-placeholder.psi-main {
    width: 180px;
    height: 180px;
    border: 4px solid var(--primary-green);
}

.logo-placeholder.psi-main img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.partner-logo-item p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    max-width: 150px;
}

.bismillah {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--light-green);
    margin-top: 2rem;
}

.bismillah p {
    font-size: 1.4rem;
    color: var(--primary-green);
    font-weight: 600;
    font-style: italic;
}

/* Project Info Section */
.project-info {
    padding: 5rem 5%;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-green);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-card h2 {
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h2 i {
    color: var(--primary-green);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item h3 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
    transition: var(--transition);
}

.member:hover {
    background: rgba(45, 134, 89, 0.05);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.member-info h4 {
    color: var(--dark-green);
    margin-bottom: 0.2rem;
}

.member-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Roadmap Section */
.roadmap-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, rgba(95, 184, 132, 0.03) 0%, rgba(45, 134, 89, 0.03) 100%);
}

.roadmap-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--light-green), var(--primary-green));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-green);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-green);
}

.timeline-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-phase {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-title {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-desc {
    color: var(--text-light);
    line-height: 1.6;
}

/* Transformation Areas Section */
.transformation-areas {
    padding: 5rem 5%;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.area-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-green);
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.area-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.area-card h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.area-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--white);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.footer-organization {
    font-size: 1rem;
    color: var(--primary-green);
    font-weight: 600;
}

.copyright {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .info-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .roadmap-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }

    .timeline-marker {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: 0.5s;
        gap: 2rem;
    }

    .partner-logos {
        gap: 2rem;
    }

    .logo-placeholder {
        width: 120px;
        height: 120px;
    }

    .logo-placeholder.psi-main {
        width: 140px;
        height: 140px;
    }

    .logo-placeholder i {
        font-size: 3rem;
    }

    .partner-logo-item p {
        font-size: 0.9rem;
    }

    .bismillah p {
        font-size: 1.2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-left {
        gap: 1rem;
    }

    .nav-right {
        gap: 1rem;
    }

    .language-switcher .lang-text {
        display: none;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 1.5rem;
    }

    .about-hero {
        padding: 7rem 5% 3rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .partner-logos {
        flex-direction: column;
        gap: 2.5rem;
    }

    .logo-placeholder {
        width: 100px;
        height: 100px;
    }

    .logo-placeholder.psi-main {
        width: 120px;
        height: 120px;
    }

    .logo-placeholder i {
        font-size: 2.5rem;
    }

    .bismillah p {
        font-size: 1rem;
    }
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-links a::after {
    left: auto;
    right: 0;
}

body.rtl .info-card {
    border-top: none;
    border-bottom: 4px solid var(--primary-green);
}

body.rtl .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-green);
}

body.rtl .timeline-item:nth-child(odd) .timeline-content {
    border-right: none;
    border-left: 4px solid var(--primary-green);
}

body.rtl .timeline-marker {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body.rtl .member {
    flex-direction: row-reverse;
}

body.rtl .timeline-phase {
    flex-direction: row-reverse;
}