* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0D0221;
    color: #C2E7D9;
}

.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #0F084B 0%, #26408B 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #C2E7D9;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #A6CFD5;
    line-height: 1.8;
}

.cta-button {
    background-color: #C2E7D9;
    color: #0D0221;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(194, 231, 217, 0.3);
}

.cta-button:hover {
    background-color: #A6CFD5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(194, 231, 217, 0.4);
}

.courses-section {
    padding: 80px 20px;
    background-color: #0D0221;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #C2E7D9;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #A6CFD5, #26408B, #A6CFD5);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: linear-gradient(135deg, #0F084B 0%, #26408B 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.8s forwards;
    
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.3s; }
.course-card:nth-child(3) { animation-delay: 0.5s; }
.course-card:nth-child(4) { animation-delay: 0.7s; }
.course-card:nth-child(5) { animation-delay: 0.9s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(166, 207, 213, 0.2);
}

.course-image {
    width: 100%;
    height: 180px;
    background-color: #A6CFD5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D0221;
    font-weight: bold;
    font-size: 1.5rem;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #C2E7D9;
}

.course-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #A6CFD5;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #A6CFD5;
}

.view-course {
    background-color: #C2E7D9;
    color: #0D0221;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

.view-course:hover {
    background-color: #A6CFD5;
}

footer {
    background-color: #0F084B;
    padding: 30px 20px;
    text-align: center;
    color: #A6CFD5;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: #C2E7D9;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #A6CFD5;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(166, 207, 213, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: rgba(166, 207, 213, 0.3);
    transform: translateY(-3px);
}



@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes linkFade {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(194, 231, 217, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(194, 231, 217, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(194, 231, 217, 0);
    }
}

.navbar {
    background: linear-gradient(135deg, #0F084B 0%, #26408B 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
    border-bottom: 1px solid rgba(166, 207, 213, 0.2);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: #C2E7D9;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #A6CFD5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D0221;
    font-weight: bold;
    transition: all 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
    background-color: #C2E7D9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #A6CFD5;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 0;
    position: relative;
    animation: linkFade 0.6s ease-out forwards;
    opacity: 0;
}

.nav-links li:nth-child(1) a { animation-delay: 0.3s; }
.nav-links li:nth-child(2) a { animation-delay: 0.4s; }
.nav-links li:nth-child(3) a { animation-delay: 0.5s; }
.nav-links li:nth-child(4) a { animation-delay: 0.6s; }
.nav-links li:nth-child(5) a { animation-delay: 0.7s; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #C2E7D9;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #C2E7D9;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.nav-links a.active {
    color: #C2E7D9;
    font-weight: bold;
}

.nav-links a.active::after {
    width: 100%;
    background-color: #A6CFD5;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-btn, .signup-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn {
    background-color: transparent;
    color: #C2E7D9;
    border: 2px solid #A6CFD5;
}

.login-btn:hover {
    background-color: rgba(166, 207, 213, 0.1);
}

.signup-btn {
    background-color: #C2E7D9;
    color: #0D0221;
    border: none;
    animation: pulse 2s infinite;
}

.signup-btn:hover {
    background-color: #A6CFD5;
    transform: translateY(-2px);
}

.navbar.scrolled {
    background-color: rgba(15, 8, 75, 0.95);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

#ys-typewriter-container {
    font-family: 'Cairo', sans-serif;
    font-size: 26px;
    color: #ffffff;
    text-shadow: 0 0 4px #00CFFF, 0 0 6px #00CFFF;
    display: inline-block;
    position: relative;
    direction: rtl;
    min-width: 360px;
    text-align: right;
}
  
  #ys-typewriter-container::after {
    content: "|";
    position: absolute;
    left: -10px;
    animation: ys-blink 0.7s infinite;
    color: #00CFFF;
}
  
  @keyframes ys-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}