* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #f0f0f0;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 60px; /* ارتفاع ثابت للهيدر */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem; /* إزالة padding العلوي والسفلي */
    max-width: 1200px;
    margin: 0 auto;
    height: 60px; /* نفس ارتفاع الهيدر */
}

.logo , a{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: none; /* إزالة الخلفية */
    border: none; /* إزالة الحدود */
    transition: all 0.3s ease;
    height: fit-content;
    text-decoration: none;
}

.logo::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover::before {
    opacity: 0.1;
}

.logo img {
    width: 60px; /* زيادة الحجم */
    height: 60px; /* زيادة الحجم */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(241, 146, 53, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(241, 146, 53, 0.1);
    cursor: pointer;
}

.logo h1 {
    font-size: 2rem; /* زيادة حجم الخط */
    font-weight: 700;
    background: linear-gradient(135deg, #720000, #900000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo h1 span{
    background: linear-gradient(135deg, #5F77C0, #0071ED);
   -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.logo:hover h1::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #284b72;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #720000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #f4f9ff;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #720000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #284b72;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #284b72;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #284b72, #5888be);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #284b72;
    border: 2px solid #5888be;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #284b72, #5888be);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    height: 800px;
    width: 700px;
}

.hero-image img{
    width: 900px;
    height: 800px;
}

.floating-elements {
    position: relative;
    height: 100%;
}

.floating-element {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #f19235, #720000);
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #720000, #f19235);
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(241, 146, 53, 0.3), rgba(179, 88, 39, 0.3));
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #720000;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #284b72;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f4f9ff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2{
    font-size: 2.5rem;
    color: #720000;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #720000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: #284b72;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    cursor: pointer;
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.features .feature{
    background-color: #eaf2ff;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #720000;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.3rem;
    color: #284b72;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #284b72;
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: white;
}

.image-placeholder img{
    width: 700px;
    height: 500px;
}

/* Programs Section */
.programs {
    padding: 6rem 0;
    background: #f4f9ff;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.program-card {
    background: #eaf2ff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.program-icon img{
    width: 90px;
    height: 90px;
}

.program-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-card p {
    color: #284b72;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.program-features li {
    padding: 0.5rem 0;
    color: #284b72;
    position: relative;
    padding-right: 1.5rem;
}

.program-features li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #720000;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f4f9ff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #720000;
    width: 30px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #284b72;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #284b72, #5888be);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.contact-form {
    background: #eaf2ff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
    background: #f9fcff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #720000;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #c44646;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* iPad Responsive Design */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo img {
        width: 55px;
        height: 55px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-image {
        width: 100%;
        height: 650px;
    }

    .hero-image img {
        width: 100%;
        height: 650px;
        object-fit: cover;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about h2 {
        font-size: 2.2rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .image-placeholder img {
        width: 100%;
        height: 450px;
        object-fit: cover;
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .feature {
        padding: 1.2rem;
    }

    .feature h4 {
        font-size: 1.2rem;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }

    .program-card {
        padding: 2rem;
    }

    .program-card h3 {
        font-size: 1.6rem;
    }

    .program-icon img {
        width: 80px;
        height: 80px;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-form h3 {
        font-size: 1.6rem;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .floating-element {
        animation: float 6s ease-in-out infinite;
    }

    .element-1 {
        width: 70px;
        height: 70px;
    }

    .element-2 {
        width: 50px;
        height: 50px;
    }

    .element-3 {
        width: 90px;
        height: 90px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-title{
        font-size: smaller;
        font-weight: 500;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 63px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .image-placeholder{
        background-color: transparent;
    }

    .image-placeholder img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .image-placeholder {
        width: 300px;
        height: 200px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-placeholder img{
        width: 300px;
        height: 200px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
   .nav-menu {
        top: 60px;  /* تأكيد الموقع بعد الهيدر */
        width: 50%;  /* تحديد العرض ليأخذ نصف الشاشة */
        left: 0;
        background-color: white;
        text-align: center;
        transition: transform 0.5s ease, right 0.3s ease;
    }

    /* عند استخدام هامبرجر مفعّل */
    .nav-menu.active {
        transform: translateX(0); /* تحريك القائمة إلى اليسار عند التفعيل */
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .program-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        min-width: unset;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

     .image-placeholder {
        width: 300px;
        height: 200px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-placeholder img{
        width: 300px;
        height: 200px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .program-card,
    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
}