/* الصفحة الرئيسية */
/* شاشة التحميل */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    z-index: 1000;
}
.loader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 120px;
}
.dot {
    width: 22px;
    height: 22px;
    background-color: #0056b3;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}
.dot:nth-child(2) {
    animation-delay: 0.2s;
    background-color: #17a2b8;
}
.dot:nth-child(3) {
    animation-delay: 0.4s;
    background-color: #fd7e14;
}
@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
}
.loader-text {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}
.loader-text span {
    display: inline-block;
    animation: blink 1.5s infinite;
}
.loader-text span:nth-child(2) { animation-delay: 0.2s; }
.loader-text span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
.loaded .loader-container {
    opacity: 0;
    visibility: hidden;
}

/* الصفحة الرئيسية */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

:root {
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #2c3e50;
    --navbar-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --logo-hover-color: #d25ac2;
    --button-bg: #145fb0;
    --button-text: white;
    --body-bg: #ffffff;
    --text-color: #2c3e50;
    --section-bg: #ffffff;
    --footer-bg: #1a365d;
    --footer-text: white;
}

[data-theme="dark"] {
    --navbar-bg: rgba(26, 26, 26, 0.95);
    --navbar-text: #ffffff;
    --navbar-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    --logo-hover-color: #d25ac2;
    --button-bg: #d25ac2;
    --button-text: #000000;
    --body-bg: #121212;
    --text-color: #ffffff;
    --section-bg: #1e1e1e;
    --footer-bg: #0d1b2a;
    --footer-text: #ffffff;
}

body {
    background: var(--body-bg);
    color: var(--text-color);
    min-height: 95vh;
    transition: background-color 0.3s, color 0.3s;
}

/* تنسيق النافبار */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: var(--navbar-bg);
    box-shadow: var(--navbar-shadow);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    flex-wrap: wrap;
}
.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.3s ease-out;
    background: var(--navbar-bg) !important;
    box-shadow: var(--navbar-shadow);
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.logo-container {
    order: 1;
    margin-left: auto;
}
.logo-container img {
    height: 60px;
    transition: transform 0.3s;
}
.logo-container img:hover {
    transform: scale(1.1);
}
.nav-links {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    order: 2;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: var(--navbar-text);
    font-size: 20px;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--logo-hover-color);
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--section-bg);
    box-shadow: var(--navbar-shadow);
    padding: 10px;
    border-radius: 5px;
    top: 100%;
    right: 0;
    z-index: 3;
    min-width: 150px;
}
.dropdown-content a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}
.dropdown-content a:hover {
    color: var(--logo-hover-color);
}
.dropdown:hover .dropdown-content {
    display: block;
}
/* تنسيق الصوت */
.sound-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--navbar-text);
    position: relative;
    order: 3;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sound-icon-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sound-toggle .main-icon {
    font-size: 1.5rem;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}
.sound-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}
.wave {
    position: absolute;
    border: 2px solid rgba(78, 205, 196, 0.7);
    border-radius: 50%;
    opacity: 0;
    animation: soundWave 3s infinite linear;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.wave-1 { animation-delay: 0s; width: 100%; height: 100%; }
.wave-2 { animation-delay: 1s; width: 80%; height: 80%; }
.wave-3 { animation-delay: 2s; width: 60%; height: 60%; }
@keyframes soundWave {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}
.sound-toggle .note-1,
.sound-toggle .note-2 {
    position: absolute;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.5s;
    z-index: 1;
}
.sound-toggle .note-1 {
    top: -5px;
    right: -5px;
    color: #ff6b6b;
}
.sound-toggle .note-2 {
    bottom: -5px;
    left: -5px;
    color: #4ecdc4;
}
.sound-toggle.playing .note-1 {
    animation: floatNote1 2s infinite ease-in-out;
    opacity: 1;
}
.sound-toggle.playing .note-2 {
    animation: floatNote2 2s infinite ease-in-out;
    opacity: 1;
}
@keyframes floatNote1 {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(10deg); }
}
@keyframes floatNote2 {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(15px) rotate(-10deg); }
}
/* تنسيق الإعدادات */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--navbar-text);
    transition: transform 0.4s;
    display: flex;
    align-items: center;
    order: 4;
}
.theme-toggle:hover {
    transform: rotate(360deg);
    color: var(--logo-hover-color);
}
.login-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    order: 5;
}
.login-button:hover {
    background-color: #1c5a9b;
    transform: scale(1.05);
}
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--navbar-text);
    order: 6;
    display: none;
}

@media (max-width: 600px) {
    .navbar {
        padding: 4px 3%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
    }
    .logo-container { order: 1; margin: 0; }
    .logo-container img { height: 50px; }
    .sound-toggle { order: 2; font-size: 1.3rem; padding: 3px; }
    .theme-toggle { order: 3; font-size: 1.8rem; }
    .login-button { order: 4; padding: 8px 15px; font-size: 0.9rem; }
    .menu-toggle { order: 5; font-size: 1.5rem; display: block; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--navbar-bg);
        width: 100%;
        box-shadow: var(--navbar-shadow);
        padding: 10px 0;
        border-radius: 0 0 8px 8px;
        z-index: 4;
    }
    .nav-links.active a { padding: 10px 20px; font-size: 18px; }
}
@media (min-width: 601px) {
    .menu-toggle { display: none; }
    .nav-links a { font-size: 22px; font-weight: 600; }
    .logo-container { order: 1; margin-left: 0; }
    .sound-toggle { order: 2; margin-right: 60px; }
    .nav-links { order: 3; margin: 0 auto; }
    .theme-toggle { order: 4; margin-left: auto; margin-right: 20px; }
    .login-button { order: 5; }
}

:root {
    --hero-overlay: rgba(15,18,54,0.65);
    --btn-bg: #af3a50;
    --btn-bg-hover: #922c40;
}
/*  hero section  */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/front22/photos/heroP.jpg") center/cover no-repeat;
    z-index: -2;
     animation: kenBurns 20s infinite alternate ease-in-out;
}
@keyframes kenBurns {
    0% {
        transform: scale(1);
        background-position: center;
    }
    100% {
        transform: scale(1.1);
        background-position: 20% 50%;
    }
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: -1;
}
.main-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    margin-bottom: 12px;
    animation: fadeInUp 0.9s ease-out;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}
.sub-title {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.25s both;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
.cta-button {
    background-color: var(--btn-bg);
    color: white;
    padding: 14px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    animation: pulse 2.2s infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.cta-button:hover {
    background-color: var(--btn-bg-hover);
    transform: scale(1.05);
    text-decoration: none !important;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero-section {
        padding: 120px 6% 100px;
        background-attachment: scroll;
    }
    .cta-button { width: 100%; max-width: 300px; }
}

/*  about section  */

.about-section {
    min-height: 100vh;
    padding: 8px 5%;
    background: linear-gradient(135deg, var(--section-bg), rgba(46, 114, 187, 0.1));
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}
.about-content {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}
/* Video Container */

.video-container {
    flex: 1;
    max-width: 800px; /* Suitable for large screens */
    width: 100%; /* Full width on smaller screens */
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin: 0 auto; /* Center the container */
}

.video-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(46, 114, 187, 0.3);
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Ensures video fills container */
}

.video-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2e72bb, #d25ac2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Prevents play button from intercepting clicks */
}

.video-container.playing .play-button {
    display: none; /* Hide play button when video is playing */
}

.video-container .play-button:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: linear-gradient(45deg, #d25ac2, #2e72bb);
    box-shadow: 0 8px 20px rgba(46, 114, 187, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        max-width: 90%;
    }

    .video-container .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-container {
        max-width: 95%;
    }

    .video-container .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
.about-title {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    position: relative;
    text-align: right;
    padding-bottom: 1rem;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    animation: slideInRight 1s ease-out;
}
.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2e72bb, #d25ac2);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(46, 114, 187, 0.4);
    transform: scaleX(0);
    animation: growLine 1.5s ease-out forwards;
}
.teacher-name {
    font-size: 3rem;
    color: #796f93;
    margin: 3rem 0;
    position: relative;
    padding-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    animation: fadeIn 1.2s ease-out;
}
.teacher-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2e72bb, #d25ac2, transparent);
    opacity: 0.9;
    animation: pulse 2s infinite ease-in-out;
}
@media (max-width: 992px) {
    .about-title { font-size: 2.8rem; }
    .teacher-name { font-size: 2.4rem; }
}
@media (max-width: 768px) {
    .about-title { font-size: 2.2rem; padding-bottom: 0.8rem; }
    .about-title::after { width: 150px; height: 4px; }
    .teacher-name { font-size: 2rem; padding-bottom: 1rem; }
    .teacher-name::after { width: 80%; max-width: 300px; }
}
@media (max-width: 480px) {
    .about-title { font-size: 1.8rem; }
    .about-title::after { width: 120px; height: 3px; }
    .teacher-name { font-size: 1.6rem; }
    .teacher-name::after { width: 70%; max-width: 250px; }
}
.info-list { 
    list-style: none; 
    padding: 0; 
    animation: fadeInUp 1.5s ease-out; 
}
.info-list li {
    font-size: 1.4rem;
    margin-bottom: 50px;
    padding-right: 30px;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}
.info-list li:hover {
    transform: translateX(-10px);
    color: #2e72bb;
}
.info-list li::before {
    content: '✓';
    color: #2e72bb;
    font-weight: bold;
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}
.info-list li:hover::before {
    transform: translateY(-50%) scale(1.2);
}
.info-list li::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2e72bb, #d25ac2);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.info-list li:hover::after {
    opacity: 0.8;
}

/* Bio Symbols */
.bio-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.bio-symbol {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(188, 191, 195, 0.6);
    opacity: 0.7;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}
.bio-symbol[data-symbol="dna"] {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.bio-symbol[data-symbol="microscope"] {
    top: 85%;
    right: 50%;
    animation-delay: 2s;
}

.bio-symbol[data-symbol="bacterium"] {
    top: 15%;
    left: 80%;
    animation-delay: 1s;
}
.bio-symbol[data-symbol="vials"]  
 { bottom: 2%; left: 30%; 
animation-delay: 2s;
}

.bio-symbol[data-symbol="heart"] {
    top: 10%;
    right: 50%;
    animation-delay: 3s;
}

.bio-symbol[data-symbol="disease"]
 { bottom: 50%; right: 60%; animation-delay: 1s; 
}

.bio-symbol[data-symbol="lungs"] {
    bottom: 2%; right: 20%; animation-delay: 2.8s;
}


[data-symbol="capsules"] {
 top: 50%; right: 20%; animation-delay: 2s;
}

@media (max-width: 768px) {
    .bio-symbol { font-size: 1.8rem; }
    .bio-symbol[data-symbol="dna"] { top: 30%; left: 10%; }
    .bio-symbol[data-symbol="microscope"] { top: 50%; right: 5%; }
    .bio-symbol[data-symbol="atom"] { bottom: 10%; left: 5%; }
    .bio-symbol[data-symbol="capsules"] { top: 30%; right: 5%; }
    .bio-symbol[data-symbol="heart"] { bottom: 20%; right: 60%; }
    .bio-symbol[data-symbol="bone"] { top: 40%; right: 20%; }

}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes growLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.5; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #2e72bb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
    z-index: 1000;
}
.scroll-top.show { display: flex; }

/* Global Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
   }

     :root {
    --bg-color: #f9f9f9; /* لون خلفية القسم */
    --text-color: #333; 
    --secondary-text-color: #666; 
    --box-bg-color: white; 
    --overlay-color: rgba(255,255,255,0.1);
    --shadow-color: rgba(0,0,0,0.05); /* لون ال shadow */
    --hover-shadow-color: rgba(0,0,0,0.1); 
    --toggle-bg: #ddd; 
    --toggle-circle: #fff; 
}

     [data-theme="dark"] {
    --bg-color: #1a1a1a; 
    --text-color: #e0e0e0; 
    --secondary-text-color: #a0a0a0; 
    --box-bg-color: #2c2c2c;
    --overlay-color: rgba(0,0,0,0.3); 
    --shadow-color: rgba(0,0,0,0.2); 
    --hover-shadow-color: rgba(0,0,0,0.3); 
    --toggle-bg: #4a4a4a; 
    --toggle-circle: #2196f3; 
}

    body {
    background: var(--body-bg);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
      }

     /* Features Section */
.features-section {
padding: 100px 5%;
background: linear-gradient(135deg, var(--section-bg) 0%, #eff0f3 100%);
text-align: center;
position: relative;
overflow: hidden;
clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
        }

 [data-theme="dark"] .features-section {
 background: linear-gradient(135deg, #121212 0%, #1e293b 100%);
        }

 .features-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('https://www.transparenttextures.com/patterns/soft-circle-scales.png');
opacity: 0.05;
z-index: 0;
}

.features-title {
font-size: 3.2rem;
color: var(--text-color);
margin-bottom: 15px;
position: relative;
font-weight: 700;
z-index: 1;
}

.features-title::after {
content: '';
position: absolute;
bottom: 0;
right: 45%;
width: 10%;
height: 5px;
background: linear-gradient(90deg, #2e72bb, #d25ac2);
border-radius: 3px;
box-shadow: 0 2px 10px rgba(46, 114, 187, 0.4);
transform: scaleX(0);
animation: growLine 1.5s ease-out forwards;
}

 @media (max-width: 768px) {
 .features-title {
 font-size: 2.5rem;
 padding-bottom: 10px;
            }
            
            .features-title::after {
                height: 4px;
                width: 35%;
                 right: 32%;

            }
        }

        .features-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .feature-box {
            background: var(--feature-box-bg);
            padding: 40px 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
            border: none;
            z-index: 1;
        }

        .feature-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background-color: var(--box-color);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--box-color);
            position: relative;
        }

        .feature-icon svg {
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
            width: 48px;
            height: 48px;
        }

        .feature-box h3 {
            font-size: 1.5rem;
            color: var(--text-color);
            margin-bottom: 15px;
            font-weight: 600;
            position: relative;
        }

        .feature-box p {
            font-size: 1rem;
            color: #666;
            line-height: 1.7;
            margin-bottom: 0;
        }

        [data-theme="dark"] .feature-box p {
            color: #d1d5db;
        }

        .feature-hover-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        [data-theme="dark"] .feature-hover-effect {
            background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        }

        .feature-box:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .feature-box:hover .feature-hover-effect {
            opacity: 1;
        }

        /* Animation classes */
.features-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.feature-box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.features-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-box.animate {
    opacity: 1;
    transform: translateY(0);
}

        @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
        }

       @media (max-width: 768px) {
    .features-title {
        font-size: 2.5rem;
    }

    .features-section {
        clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    }

    .feature-box {
        transition-delay: calc(var(--index) * 0.1s);
        transform: translateY(20px);
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

        @media (max-width: 480px) {
            .features-title { font-size: 2rem; }
          .features-container {
        gap: 20px;
    }
}

:root {
      --neuron-color-light: rgba(94, 129, 244, 0.9); /* Vibrant blue for a modern look */
      --neuron-color-dark: rgba(255, 255, 255, 0.85); /* Slightly brighter white for contrast */
      --bg-light: #ffffff;
      --bg-dark: #0f172a;
      --section-bg: #f8fafc;
      --text-color: #1e293b; /* Darker, richer text color for readability */
      --accent-gradient: linear-gradient(45deg, #7c3aed, #db2777); /* Creative gradient for accents */
}

/* Course Section */
        .courses-section {
            padding: 40px 5%;
            background: var(--section-bg);
            min-height: 60vh; /* Reduced from 100vh to 60vh */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        #network-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0; /* Canvas in the background */
            pointer-events: none; /* Prevents canvas from capturing clicks */
        }

        .section-title {
            margin-bottom: 35px;
            z-index: 1;
        }

        .section-title h2 {
            font-size: clamp(1.8rem, 5vw, 2.5rem);
            color: var(--text-color);
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent; /* Gradient text for a catchy effect */
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        .section-title .underline {
            width: 70px; /* Slightly wider for emphasis */
            height: 4px; /* Thicker for boldness */
            background: var(--accent-gradient); /* Gradient for consistency */
            border: 0;
            margin: 10px auto 0;
            border-radius: 2px; /* Subtle rounding */
        }

        .course-content {
            display: flex;
            justify-content: center;
            width: 100%;
            z-index: 1;
        }

        .course-box {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6); /* Gradient background */
            color: #fff;
            padding: clamp(25px, 6vw, 40px);
            border-radius: 20px; /* Softer, more modern look */
            max-width: 600px;
            width: 100%;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); /* Stronger shadow for depth */
            transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1; /* Ensures course box is above canvas */
        }

        .course-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%); /* Subtle overlay effect */
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none; /* Prevents pseudo-element from capturing clicks */
        }

        .course-box:hover::before {
            opacity: 1; /* Shine effect on hover */
        }

        .course-box:hover {
            transform: translateY(-10px); /* Slightly higher lift on hover */
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
        }

        .course-title {
            font-size: clamp(1.5rem, 4vw, 2rem);
            margin-bottom: 15px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle text shadow for depth */
        }

        .course-description {
            font-size: clamp(0.95rem, 2.5vw, 1.1rem);
            margin: 0 auto 22px;
            line-height: 1.6;
            max-width: 480px;
            opacity: 0.95; /* Slightly softer for elegance */
        }

        .register-button {
            background: var(--accent-gradient); /* Gradient for a vibrant, catchy look */
            border: 0;
            color: #fff;
            font-size: clamp(1rem, 3vw, 1.1rem);
            padding: 12px 35px;
            border-radius: 50px; /* More rounded for a playful vibe */
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle button shadow */
            position: relative;
            z-index: 2; /* Ensure button is above all other elements */
        }

        .register-button:hover {
            background: linear-gradient(45deg, #6d28d9, #be185d); /* Slightly darker gradient on hover */
            transform: scale(1.08); /* Slightly larger scale for emphasis */
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* Enhanced shadow on hover */
        }

        @media (max-width: 480px) {
            .courses-section { padding: 30px 5%; }
            .course-description { line-height: 1.5; }
        }

/* Footer styles */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 5%;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-info {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}
.contact-info p {
    margin: 8px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info i {
    margin-left: 8px;
    font-size: 1rem;
}
.footer-logo {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.footer-logo-text {
    font-size: 1rem;
    color: var(--footer-text);
    margin: 0;
}
.social-media {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.social-media h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}
.social-icon-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.social-icon {
    font-size: 1.8rem;
    color: white;
    transition: color 0.3s ease;
}
.social-icon:hover { color: #d25ac2; }
.footer-bottom {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: normal;
    color: #ddd;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .subtitle { font-size: 1.2rem; }
    .about-section { flex-direction: column; padding: 40px 15px; min-height: auto; }
    .video-container { width: 100%; height: auto; order: 0; margin-bottom: 25px; aspect-ratio: 16/9; }
    .about-title { font-size: 2.5rem; text-align: center; }
    .teacher-name { font-size: 2rem; }
    .info-list li { font-size: 1rem; padding-right: 20px; margin-bottom: 25px; }
    .info-list li::before { right: -10px; }
    .scroll-top { left: 30px; bottom: 40px; padding: 25px; }
    .features-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .features-container { grid-template-columns: 1fr; }
    .course-content { flex-direction: column; gap: 30px; }
}