/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

/* Custom Font Face */
@font-face {
    font-family: 'InkBrushArabic';
    src: url('InkBrushArabic_DEMO-Textured.ttf') format('truetype'),
        url('InkBrushArabic_DEMO-Textured.otf') format('opentype'),
        url('InkBrushArabic_DEMO-Textured.woff') format('woff'),
        url('InkBrushArabic_DEMO-Textured.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Zain', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    transition: all 0.3s ease;
    direction: rtl;
    font-family: 'Zain', sans-serif;
    width: 100%;
    overflow-x: hidden;
    margin: 0 auto;
    max-width: 100vw;
}

body.ltr {
    direction: ltr;
    font-family: 'Zain', sans-serif;
}

body.rtl {
    direction: rtl;
    font-family: 'Zain', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Color Variables */
:root {
    --primary-purple: #debce1;
    --secondary-purple: #d1a5d9;
    --light-purple: #e8d0ed;
    --accent-purple: #c79cc4;
    --background-purple: #faf8fb;
    --dark-purple: #b8899f;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

/* Language Toggle in Navigation */
.lang-toggle-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background-purple);
    padding: 8px 15px;
    border-radius: 25px;
    border: 2px solid var(--light-purple);
}

.lang-toggle-nav button {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 15px;
    font-weight: 500;
}

.lang-toggle-nav button.active {
    background: var(--primary-purple);
    color: white;
    font-weight: 600;
}

.lang-toggle-nav button:hover:not(.active) {
    color: var(--primary-purple);
    background: rgba(139, 95, 191, 0.1);
}

/* Hidden class for language switching */
.hidden {
    display: none;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(139, 95, 191, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-purple);
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
    position: relative;
    height: 50px;
    z-index: 1001;
}

.logo-img {
    height: 100px;
    margin-top: 10px;
    width: auto;
    object-fit: contain;
    position: relative;
    top: 10px;
}

.logo i {
    color: var(--accent-purple);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary-purple);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--background-purple);
    color: var(--primary-purple);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-purple);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--background-purple);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-purple);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-lang-toggle {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--background-purple);
}

.mobile-lang-toggle button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--primary-purple);
    background: white;
    color: var(--primary-purple);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-lang-toggle button.active {
    background: var(--primary-purple);
    color: white;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--background-purple) 0%, #fef7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-text {
    position: relative;
}

.hero-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    color: var(--light-purple);
    font-size: 24px;
    opacity: 0.6;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.3);
}

.btn-play {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    color: var(--primary-purple);
    box-shadow: 0 5px 20px rgba(139, 95, 191, 0.2);
    padding: 0;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.3);
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-placeholder {
    width: 400px;
    height: 500px;
    border-radius: 200px 200px 50px 50px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    color: var(--accent-purple);
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.color-palette {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

.color-1 {
    background: var(--primary-purple);
}

.color-2 {
    background: var(--light-purple);
}

.color-3 {
    background: var(--dark-purple);
}

/* Welcome Section */
.welcome {
    padding: 80px 0;
    background: white;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
}

.welcome p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
    background: var(--primary-purple);
    color: white;
    padding: 20px 15px;
    border-radius: 15px;
    min-width: 100px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Academic Section */
.academic-section {
    padding: 80px 0;
    background: var(--background-purple);
}

.academic-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.academic-text h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-purple);
    font-family: 'InkBrushArabic', 'Zain', sans-serif;
}

.academic-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.academic-bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.certification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.certification-list li {
    background: var(--primary-purple);
    padding: 20px 30px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.3);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    border: 3px solid var(--primary-purple);
    transition: all 0.3s ease;
    text-align: center;
}

.certification-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 95, 191, 0.4);
    background: var(--white);
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.academic-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.academic-stats .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 400px;
    justify-items: center;
}

.academic-stats .stat-item {
    text-align: center;
    background: var(--primary-purple);
    color: white;
    padding: 15px;
    border-radius: 12px;
    width: 100px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.academic-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.academic-stats .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 95, 191, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
    position: relative;
    z-index: 2;
}

.services h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    margin: 20px auto;
    border-radius: 2px;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: scaleX(1);
        opacity: 1;
    }

    50% {
        transform: scaleX(1.2);
        opacity: 0.8;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-card {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 35px rgba(139, 69, 193, 0.3);
    cursor: pointer;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--dark-purple) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
    transform: scale(0.8);
    border-radius: 20px;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0);
}

.service-card.featured::before {
    opacity: 1;
    transform: scale(1);
}

.service-card.featured {
    color: white;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 69, 193, 0.4);
}

.service-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.service-card:hover {
    transform: translateY(-15px) scale(1.05) rotateX(5deg);
    color: white;
    box-shadow: 0 30px 60px rgba(139, 69, 193, 0.5);
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-icon,
.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.2) rotateY(360deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover h3,
.service-card.featured h3 {
    color: white;
    transform: translateY(-5px);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.service-card:hover p,
.service-card.featured p {
    color: white;
    transform: translateY(-3px);
}

.service-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.service-card:hover .service-link,
.service-card.featured .service-link {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.coming-soon {
    font-family: 'InkBrushArabic', 'Zain', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: normal;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Mobile-first responsive overrides */
@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden !important;
    }

    .services .container {
        padding: 0 8px !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .services-grid {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .service-card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 25px 15px !important;
        box-sizing: border-box !important;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .services .container {
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .service-card {
        padding: 30px 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .services h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .services {
        padding: 60px 0;
    }

    .services .container {
        padding: 0 5px !important;
        max-width: 100% !important;
    }

    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .service-card {
        padding: 25px 15px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Expertise Section */
.expertise {
    padding: 80px 0;
    background: white;
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expertise h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.expertise p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.progress-bars {
    margin-bottom: 40px;
}

.progress-item {
    margin-bottom: 25px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
    border-radius: 10px;
    transition: width 2s ease;
}

.pattern-dots {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0.6;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    text-align: center;
}

.framed-image {
    position: relative;
    display: inline-block;
    padding: 40px;
}

.frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 2;
}

.frame-1 {
    background-image: url('image-1.png');
}

.frame-2 {
    background-image: url('image-2.png');
}

.frame-3 {
    background-image: url('image-3.png');
}

.frame-4 {
    background-image: url('image-4.png');
}

.frame-5 {
    background-image: url('image-5.png');
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--background-purple) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--background-purple);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-image {
    position: relative;
    text-align: center;
}

.contact-image .image-container {
    position: relative;
    display: inline-block;
}

.contact-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    min-height: 600px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(139, 95, 191, 0.3);
    transition: transform 0.3s ease;
}

.contact-image img:hover {
    transform: translateY(-8px);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.1);
}

.contact-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Social Links */
.social-links {
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
}

.social-links h3 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-link i {
    font-size: 1.8rem;
    z-index: 2;
    position: relative;
}

.social-link span {
    display: none;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.social-link:hover::before {
    transform: scale(1.1);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #C13584, #E4405F, #833AB4);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #4267B2);
    color: white;
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #4267B2, #1877F2);
}

.social-link.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #CC0000, #FF0000);
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 95, 191, 0.2);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

.contact-card.whatsapp-card::before {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-card.facebook-card::before {
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.whatsapp-card .contact-card-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.facebook-card .contact-card-icon {
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.facebook-btn:hover {
    background: linear-gradient(135deg, #4267B2, #1877F2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .image-placeholder {
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .lang-toggle-nav {
        display: none;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
    }

    .contact-image {
        order: 1;
        text-align: center;
    }

    .contact-image img {
        max-width: 100%;
        min-height: 400px;
    }

    .contact-form-wrapper {
        order: 2;
        padding: 30px 20px;
        margin: 0 10px;
    }

    .social-icons {
        justify-content: center;
        gap: 15px;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .social-link i {
        font-size: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .nav {
        gap: 20px;
    }

    .hero-content,
    .welcome-content,
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .academic-bottom {
        flex-direction: column;
        gap: 30px;
    }

    .academic-stats .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 300px;
    }

    .academic-stats .stat-item {
        width: 80px;
        height: 70px;
        padding: 12px;
    }

    .academic-text h2 {
        font-size: 2rem;
    }

    .certification-list {
        align-items: stretch;
    }

    .certification-list li {
        width: 100%;
    }

    .academic-stats .stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .academic-stats .stat-item {
        min-width: 70px;
        padding: 12px 10px;
    }

    .academic-stats .stat-number {
        font-size: 1.3rem;
    }

    .academic-stats .stat-label {
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .image-placeholder {
        width: 300px;
        height: 400px;
        margin: 0 auto;
    }

    .stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        width: 280px;
    }

    .scroll-indicator {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .academic-text h2 {
        font-size: 1.8rem;
    }

    .welcome h2,
    .expertise h2,
    .services h2 {
        font-size: 2rem;
    }

    .image-placeholder {
        width: 250px;
        height: 350px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .service-card {
        width: 260px;
        padding: 30px 20px;
    }

    .services-grid {
        gap: 15px;
        padding: 10px 0 15px 0;
    }

    .scroll-indicator {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .services-container {
        gap: 15px;
    }
}

/* Certifications Section */
.certifications-section {
    padding: 80px 0;
    background: var(--white);
}

.certifications-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-purple);
    font-size: 2.5rem;
    font-weight: 600;
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
}

.certifications-section p {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.certifications-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.cert-slide {
    min-width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cert-slide:hover {
    transform: scale(1.02);
}

.cert-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    background: var(--light-gray);
    border-radius: 15px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-purple);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent-purple);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* RTL Direction Fixes for Arabic */
[dir="rtl"] .prev-btn {
    left: auto;
    right: 20px;
}

[dir="rtl"] .next-btn {
    right: auto;
    left: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-purple);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary-purple);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: -10px;
    right: 10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: var(--primary-purple);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design for Certifications */
@media (max-width: 768px) {
    .certifications-section {
        padding: 60px 0;
    }

    .certifications-section h2 {
        font-size: 2rem;
    }

    .cert-slide img {
        height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    /* RTL fixes for mobile */
    [dir="rtl"] .prev-btn {
        left: auto;
        right: 10px;
    }

    [dir="rtl"] .next-btn {
        right: auto;
        left: 10px;
    }

    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .close {
        font-size: 30px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(222,188,225,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(209,165,217,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0;
}

.testimonials-section h2 {
    font-family: 'InkBrushArabic', 'Poppins', sans-serif;
    text-align: center;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 2px;
}

.testimonials-section p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-slider {
    position: relative;
    padding-top: 20px;
    width: 100vw;
    height: 600px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 90s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Force LTR direction for testimonials slider and track to ensure consistent animation */
.testimonials-slider {
    direction: ltr !important;
}

.testimonials-track {
    direction: ltr !important;
}

/* Pause animation on hover */
.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 500px;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    border: 2px solid var(--light-purple);
    position: relative;
    transition: all 0.3s ease;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-purple);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-purple);
}

.testimonial-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: right;
    margin: 0;
    font-style: italic;
    position: relative;
    padding-right: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--light-purple);
}

.author-info {
    text-align: right;
    width: 100%;
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.author-info span {
    font-size: 1rem;
    color: var(--primary-purple);
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] .testimonial-content p {
    text-align: right;
    padding-right: 20px;
    padding-left: 0;
}

[dir="rtl"] .testimonial-card::before {
    right: 20px;
    left: auto;
}

[dir="ltr"] .testimonial-content p {
    text-align: left;
    padding-left: 20px;
    padding-right: 0;
}

[dir="ltr"] .testimonial-card::before {
    left: 20px;
    right: auto;
}

[dir="ltr"] .author-info {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-section h2 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .testimonials-section p {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .testimonials-slider {
        height: 450px;
    }

    .testimonial-card {
        flex: 0 0 320px;
        padding: 25px 20px;
        height: 400px;
    }

    .testimonial-card::before {
        font-size: 2rem;
        top: -2px;
        right: 15px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        padding-right: 15px;
    }

    [dir="ltr"] .testimonial-content p {
        padding-left: 15px;
        padding-right: 0;
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info span {
        font-size: 0.85rem;
    }

    .testimonials-track {
        gap: 20px;
        animation: scroll 90s linear infinite;
    }
}

@media (max-width: 480px) {
    .testimonials-slider {
        height: 420px;
        border-radius: 15px;
    }

    .testimonial-card {
        flex: 0 0 300px;
        padding: 15px 15px;
        height: 400px;
        border-radius: 15px;
        max-width: 90vw;
        box-sizing: border-box;
    }

    .testimonial-content p {
        font-size: 0.75rem;
        line-height: 1.4;
        padding-right: 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: hidden;
    }

    [dir="ltr"] .testimonial-content p {
        padding-left: 5px;
        padding-right: 0;
        font-size: 0.75rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: hidden;
    }

    .testimonials-track {
        animation: scroll 120s linear infinite;
    }
}

/* Remove existing border-radius and margins from sections */
.hero {
    border-radius: 0 !important;
    margin: 0 !important;
}

.welcome {
    border-radius: 0 !important;
    margin: 0 !important;
}

.academic-section {
    border-radius: 0 !important;
    margin: 0 !important;
}

.services {
    border-radius: 0 !important;
    margin: 0 !important;
}

.certifications-section {
    border-radius: 0 !important;
    margin: 0 !important;
}

.testimonials-section {
    border-radius: 0 !important;
    margin: 0 !important;
}

.contact-section {
    border-radius: 0 !important;
    margin: 0 !important;
}

.gallery-section {
    border-radius: 0 !important;
    margin: 0 !important;
}