:root {
            --primary-color: #1e3a8a;
            --secondary-color: #3b82f6;
            --accent-color: #f59e0b;
            --dark-bg: #0f172a;
            --light-bg: #f8fafc;
            --white: #ffffff;
            --gradient-1: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
            --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: #1f2937;
            background-color: var(--light-bg);
            overflow-x: hidden;
        }

        h1, h2, h3, h4 {
            font-family: 'Roboto Slab', serif;
            font-weight: 600;
        }

        /* Header */
        .header {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 1rem 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
        }

        .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 10px;
        }

        .logo i {
        color: var(--accent-color);
        }

        /* زر القائمة (الهامبرجر) */
        .menu-toggle {
        display: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary-color);
        }

        .nav-menu {
        display: flex;
        list-style: none;
        gap: 2.5rem;
        }

        .nav-menu a {
        text-decoration: none;
        color: var(--primary-color);
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
        }

        .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: width 0.3s ease;
        }

        .nav-menu a:hover::after {
        width: 100%;
        }
        

        /* ========== Responsive (Mobile) ========== */
        @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }

        .nav-menu {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 70px;
            right: 20px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            width: 200px;
            padding: 1rem;
            z-index: 999;
            animation: fadeIn 0.3s ease-in-out;
        }

        .nav-menu.show {
            display: flex;
        }

        .nav-menu li {
            margin-bottom: 1rem;
        }

        .nav-menu li:last-child {
            margin-bottom: 0;
        }
        }

        @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8)), 
                        url('premium_photo-1740997621891-99cf4ee1d44c.avif');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--white);
            position: relative;
            padding-top: 80px;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 900px;
            padding: 0 2rem;
        }

        .hero-image {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            margin: 0 auto 2rem;
            border: 5px solid var(--white);
            box-shadow: var(--shadow);
            background: url('photo.jpg');
            background-size: cover;
            background-position: center;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
        }

        .hero .subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0.9;
            font-weight: 400;
        }

        .hero-description {
            font-size: 1.15rem;
            margin-bottom: 3rem;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.8;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 14px 32px;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.7rem;
            font-size: 1.05rem;
        }

        .btn-primary {
            background: var(--gradient-1);
            color: var(--white);
            box-shadow: var(--shadow);
        }

        .btn-secondary {
            background: transparent;
            color: var(--white);
            border: 2px solid var(--white);
        }

        .btn:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        /* Sections */
        .section {
            padding: 100px 0;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .section-title {
            text-align: center;
            font-size: 2.7rem;
            margin-bottom: 3.5rem;
            color: var(--primary-color);
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 5px;
            background: var(--gradient-1);
            border-radius: 3px;
        }

        /* About Section */
        .about {
            background: var(--white);
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 4rem;
            align-items: start;
        }

        .about-image {
            width: 100%;
            height: 450px;
            border-radius: 20px;
            background: url('About .jpg');
            background-size: cover;
            background-position: center;
            box-shadow: var(--shadow);
        }

        .about-text {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            color: #334155;
        }

        .highlights {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2.5rem;
        }

        .highlight-item {
            background: var(--light-bg);
            padding: 1.8rem 1.5rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            border-left: 4px solid var(--secondary-color);
        }

        .highlight-item:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .highlight-item i {
            font-size: 2.2rem;
            color: var(--secondary-color);
            margin-bottom: 1.2rem;
        }

        .highlight-item h3 {
            font-size: 2.3rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }

        .highlight-item p {
            color: #64748b;
            font-weight: 500;
        }

        /* Positions Section */
        .positions {
            background: linear-gradient(to bottom, #f0f7ff, #e0f2fe);
        }

        .positions-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
        }

        .position-column {
            background: var(--white);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: var(--shadow);
        }

        .position-column h3 {
            font-size: 1.8rem;
            margin-bottom: 2rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .position-column h3 i {
            color: var(--accent-color);
        }

        .position-list {
            list-style: none;
        }

        .position-item {
            padding: 1.5rem 0;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .position-item:last-child {
            border-bottom: none;
        }

        .position-logo {
            flex-shrink: 0;
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafc;
            border-radius: 10px;
            padding: 5px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .position-logo.dark-bg-logo {
            background: var(--primary-color);
        }
        
        .position-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        
        .position-content {
            flex: 1;
        }

        .position-title {
            font-weight: 700;
            font-size: 1.15rem;
            margin-bottom: 0.4rem;
            color: var(--primary-color);
        }

        .position-org {
            color: #475569;
            margin-bottom: 0.4rem;
            font-weight: 500;
        }

        .position-dates {
            color: var(--accent-color);
            font-weight: 600;
            font-size: 0.95rem;
        }

        /* Research Section */
        .research {
            background: var(--white);
        }

        .research-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.5rem;
        }

        .research-card {
            background: var(--light-bg);
            border-radius: 20px;
            padding: 2.5rem 2rem;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border-top: 4px solid var(--primary-color);
        }

        .research-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-1);
        }

        .research-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .research-card i {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 1.5rem;
        }

        .research-card h3 {
            font-size: 1.6rem;
            margin-bottom: 1.2rem;
            color: var(--primary-color);
        }

        .research-card p {
            color: #475569;
            line-height: 1.7;
        }

        /* Awards Section */
        :root {
      --primary-color: #1e293b;
      --secondary-color: #0236c7;
      --accent-color: #959dc6;
      --shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
      background: #fff;
    }

    .section {
      padding: 2rem 1rem;
    }

    .section-title {
      text-align: center;
      font-size: 2rem;
      color: var(--primary-color);
      margin-bottom: 2rem;
    }

    .awards {
      background: linear-gradient(to bottom, #072dec, #293580);
    }

    .awards-timeline {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      max-width: 1000px;
      margin: 0 auto;
    }

    .award-item {
      display: flex;
      justify-content: center;
    }

    .award-content {
      background: white;
      border-radius: 15px;
      box-shadow: var(--shadow);
      padding: 1.5rem;
      width: 100%;
      max-width: 600px;
      position: relative;
      border: 2px solid transparent;
      transition: transform 0.3s ease;
    }

    .award-content:hover {
      transform: scale(1.02);
      border-color: var(--accent-color);
    }

    .award-year {
      background: var(--accent-color);
      color: white;
      font-weight: bold;
      padding: 0.4rem 1rem;
      border-radius: 30px;
      font-size: 1rem;
      margin-bottom: 0.8rem;
      display: inline-block;
    }

    .award-title {
      font-size: 1.3rem;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
    }

    .award-description {
      color: #475569;
      margin-bottom: 1rem;
      line-height: 1.6;
    }

    .award-link {
      color: var(--secondary-color);
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .award-link:hover {
      color: var(--primary-color);
    }

    @media (max-width: 768px) {
      .award-content {
        padding: 1rem;
      }

      .award-title {
        font-size: 1.1rem;
      }

      .award-year {
        font-size: 0.9rem;
      }
    }

        /* Publications Section */
        .publications {
            background: var(--white);
        }
        
        .publications-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .stat-card {
            background: var(--gradient-1);
            color: var(--white);
            padding: 2.5rem 2rem;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .stat-number {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .recent-publications {
            background: var(--light-bg);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow);
        }

        .publication-item {
            padding: 1.8rem 0;
            border-bottom: 1px solid #e2e8f0;
        }

        .publication-item:last-child {
            border-bottom: none;
        }

        .publication-title {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--primary-color);
            margin-bottom: 0.7rem;
            line-height: 1.5;
        }

        .publication-authors {
            color: #475569;
            font-size: 0.95rem;
            margin-bottom: 0.7rem;
            font-style: italic;
        }

        .publication-journal {
            color: var(--secondary-color);
            font-weight: 600;
            font-size: 0.95rem;
        }

        /* Contact Section */
        .contact {
            background: var(--gradient-1);
            color: var(--white);
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .contact-info {
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1.2rem;
            margin-bottom: 1.8rem;
        }

        .contact-item i {
            font-size: 1.6rem;
            color: var(--accent-color);
            margin-top: 5px;
        }

        .contact-text {
            flex: 1;
        }

        .contact-text h3 {
            font-size: 1.3rem;
            margin-bottom: 0.3rem;
        }

        .social-links {
            display: flex;
            gap: 1.2rem;
            margin-top: 2.5rem;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.3rem;
        }

        .social-link:hover {
            background: var(--accent-color);
            transform: translateY(-5px);
        }

        .contact-image {
            width: 100%;
            height: 400px;
            border-radius: 20px;
            background: url('contactimg.jpg');
            background-size: cover;
            background-position: center;
            box-shadow: var(--shadow);
        }

        /* Footer */
        .footer {
            background: var(--dark-bg);
            color: var(--white);
            text-align: center;
            padding: 3rem 0;
            font-size: 1.1rem;
        }

        .footer p {
            max-width: 700px;
            margin: 1rem auto;
            line-height: 1.7;
            color: #cbd5e1;
        }

        .copyright {
            margin-top: 2rem;
            color: #94a3b8;
            font-size: 0.95rem;
        }

        /* Mobile Responsiveness */
        @media (max-width: 1100px) {
            .positions-container {
                grid-template-columns: 1fr;
            }
            
            .about-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .hero h1 {
                font-size: 2.8rem;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.3rem;
            }
            
            .hero .subtitle {
                font-size: 1.2rem;
            }
            
            .section {
                padding: 70px 0;
            }
            
            .contact-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .contact-item {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            .social-links {
                justify-content: center;
            }
            
            .award-item {
                flex-direction: column !important;
                margin-bottom: 4rem;
            }
            
            .award-content {
                width: 100%;
            }
            
            .award-year {
                position: static;
                transform: none;
                margin-bottom: 1.5rem;
                display: inline-block;
            }
            
            .timeline-line {
                display: none;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.8s ease-out;
        }

        .section-title {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title h2 {
            font-size: 2.5rem;
            color: var(--dark-color);
            font-weight: 700;
        }

        .accent-color {
            color: var(--secondary-color);
        }

        /* Info Cards */
        .info-card {
            background: var(--light-color);
            border-left: 5px solid var(--secondary-color);
            transition: transform 0.3s;
        }

        .info-card:hover {
            transform: translateY(-5px);
        }

        .info-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }

        .info-item i {
            color: var(--secondary-color);
            margin-right: 1rem;
            width: 20px;
        }

        /* Activity Cards */
        .activity-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            text-align: center;
            height: 100%;
        }

        .activity-card:hover {
            transform: translateY(-5px);
        }

        .activity-icon {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }

        /* Service Cards */
        .service-card {
            background: var(--light-color);
            border-radius: 15px;
            transition: transform 0.3s;
            text-align: center;
            height: 100%;
        }

        .service-card:hover {
            transform: translateY(-5px);
        }

        .service-logo {
            width: 80px;
            height: 80px;
            background: var(--secondary-color);
            border-radius: 50%;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
        }

        .social-links a {
            color: var(--secondary-color);
            font-size: 1.2rem;
            margin: 0 0.5rem;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: #689f38;
        }

        /* ===== Navigation Hover Dropdowns ===== */
        #sci-activities-dropdown, #comm-services-dropdown {
            position: relative;
        }

        /* Show dropdown on hover (desktop) */
        @media (min-width: 992px) {
            #sci-activities-dropdown:hover > .dropdown-menu,
            #comm-services-dropdown:hover > .dropdown-menu {
                display: block;
                animation: dropdownFadeIn 0.22s ease forwards;
            }

            /* Keep the link clickable — prevent dropdown-toggle from blocking href */
            #sci-activities-dropdown > .nav-link.dropdown-toggle::after,
            #comm-services-dropdown > .nav-link.dropdown-toggle::after {
                margin-left: 6px;
                vertical-align: middle;
                border-top-color: var(--primary-color, #1e3a8a);
            }
        }

        @keyframes dropdownFadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Dropdown menu styling */
        #sci-activities-dropdown .dropdown-menu,
        #comm-services-dropdown .dropdown-menu {
            border: none;
            border-radius: 12px;
            box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15);
            padding: 0.5rem 0;
            min-width: 210px;
            margin-top: 4px;
            overflow: hidden;
        }

        #sci-activities-dropdown .dropdown-item,
        #comm-services-dropdown .dropdown-item {
            font-family: 'Inter', sans-serif;
            font-size: 0.93rem;
            font-weight: 500;
            color: #1e3a8a;
            padding: 0.6rem 1.2rem;
            transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
        }

        #sci-activities-dropdown .dropdown-item:hover,
        #comm-services-dropdown .dropdown-item:hover {
            background: linear-gradient(90deg, #eff6ff, #dbeafe);
            color: #1d4ed8;
            padding-left: 1.6rem;
        }

        #sci-activities-dropdown .dropdown-item i,
        #comm-services-dropdown .dropdown-item i {
            width: 18px;
            text-align: center;
        }

        /* Divider between items */
        #sci-activities-dropdown .dropdown-item + .dropdown-item,
        #comm-services-dropdown .dropdown-item + .dropdown-item {
            border-top: 1px solid #f1f5f9;
        }

        /* Books Section Styling */
        .book-cover {
            width: 100%;
            max-width: 220px;
            height: auto;
            object-fit: contain;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            margin: 0 auto;
            display: block;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .book-cover:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        }

