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

html, body {
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --primary: #344697;
    --primary-dark: #253163;
    --secondary: #B5B6B7;
    --text-main: #f9fafb;
    --text-sub: #cbd5f5;
    --page-bg: #081654;
    --header-bg: rgba(15, 23, 42, 0.9);
    --header-border: rgba(148, 163, 184, 0.25);
    --section-soft-bg: #0b1220;
    --section-strong-bg: #050f3a;
    --card-bg: #020617;
    --card-border: rgba(148, 163, 184, 0.4);
}

html[data-theme="light"],
:root[data-theme="light"],
body.theme-light {
    --page-bg: #f9fafb;
    --text-main: #0f172a;
    --text-sub: #4b5563;
    --header-bg: rgba(248, 250, 252, 0.95);
    --header-border: #e5e7eb;
    --section-soft-bg: #f3f4f6;
    --section-strong-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

.story-section {
    padding: 4rem 2rem;
    background: var(--section-soft-bg);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.story-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

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

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
}

.navbar {
    padding: 0.75rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-sub);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #344697;
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #344697;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
    align-items: center;
}

.story-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.7s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.story-content p {
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.story-image {
    position: relative;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    animation: slideInRight 0.7s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1.5rem 2rem;
    border-radius: 0.8rem;
    color: #f9fafb;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-badge-year {
    font-size: 2rem;
    font-weight: 800;
}

.story-badge-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.vmv-section {
    padding: 4rem 2rem;
    background: var(--section-strong-bg);
    position: relative;
}

.vmv-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    transform: translateY(-50%);
}

.vmv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.vmv-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.vmv-card:nth-child(1) { animation-delay: 0.1s; }
.vmv-card:nth-child(2) { animation-delay: 0.2s; }
.vmv-card:nth-child(3) { animation-delay: 0.3s; }

.vmv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.vmv-card:hover::before {
    transform: scaleX(1);
}

.vmv-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.vmv-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.vmv-card:hover .vmv-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #f9fafb;
    transform: scale(1.1) rotate(10deg);
}

.vmv-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.vmv-card p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
}

.vmv-card ul {
    list-style: none;
    text-align: left;
}

.vmv-card li {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vmv-card li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

.timeline-section {
    padding: 4rem 2rem;
    background: var(--section-soft-bg);
    position: relative;
    overflow: hidden;
}

.timeline-section::after {
    content: '';
    position: absolute;
    right: -10%;
    top: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    transform: translateY(-50%);
}

.timeline {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    animation: fadeInUp 0.7s ease-out both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 52%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #f9fafb;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-year {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.8rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.team-section {
    padding: 4rem 2rem;
    background: var(--section-strong-bg);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.team-member {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

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

.member-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-social {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #25316380, #34469780);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-social {
    opacity: 1;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: #f9fafb;
    color: var(--primary);
    transform: scale(1.15);
}

.member-info {
    padding: 1.5rem;
}

.member-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.member-position {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-info p {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.5;
}

.achievements-section {
    padding: 4rem 2rem;
    background: var(--section-soft-bg);
    position: relative;
    overflow: hidden;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.achievement-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }

.achievement-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.2) rotate(-10deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #f9fafb;
}

.achievement-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.achievement-card p {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.achievement-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #f9fafb;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-about {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #f9fafb;
}

.cta-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-light {
    background: #f9fafb;
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

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

    .timeline::before {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-year {
        left: 0;
    }
    
    .nav-menu {
        position: fixed;
        inset-inline: 0;
        top: 64px;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0 2rem;
        gap: 1rem;
        transform: translateY(-120%);
        transition: transform 0.25s ease;
        z-index: 40;
        backdrop-filter: blur(8px);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    body, html {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 50;
        width: 100%;
    }
    
    .navbar {
        padding: 0.75rem 0;
        width: 100%;
    }
    
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .nav-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 64px;
        margin-top: 0;
    }
    
    .hero-inner {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-about-content h1 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }

    .vmv-grid,
    .team-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .story-section {
        padding: 2rem 0;
    }
    
    .story-grid {
        gap: 1.5rem;
    }
    
    .story-image {
        height: 250px;
    }
    
    .vmv-card {
        padding: 1.5rem 1rem;
    }
    
    .team-section {
        padding: 2rem 0;
    }
    
    .member-image {
        height: 200px;
    }
    
    .achievements-section {
        padding: 2rem 0;
    }
    
    .cta-about {
        padding: 3rem 1.5rem;
    }
    
    .cta-content {
        max-width: 100%;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}