/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #00ff88;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --gradient-start: #0a192f;
    --gradient-end: #00ff88;
    --blue-accent: #64ffda;
    --blue-dark: #112240;
    --blue-medium: #1e3a5f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--secondary-color);
}

body[dir="rtl"] {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
}

.logo-text {
    letter-spacing: -1px;
}

.logo-arabic {
    font-size: 20px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.6) 0%, rgba(10, 25, 47, 0) 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.5) 0%, rgba(30, 58, 95, 0) 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 25, 47, 0.8) 0%, rgba(100, 255, 218, 0.3) 50%, rgba(30, 58, 95, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/WhatsApp Image 2025-11-28 at 18.20.33_6f8e7e17.jpg') center/cover;
    opacity: 0.15;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--secondary-color);
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(60px, 12vw, 150px);
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 20px;
    line-height: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-title .line {
    display: inline-block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    color: var(--secondary-color);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
}

.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.2s; }
.hero-title .line:nth-child(3) { animation-delay: 0.3s; }
.hero-title .line:nth-child(4) { animation-delay: 0.4s; }
.hero-title .line:nth-child(5) { animation-delay: 0.5s; }
.hero-title .line:nth-child(6) { animation-delay: 0.6s; }
.hero-title .line:nth-child(7) { animation-delay: 0.7s; }

.hero-subtitle {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.hero-tagline {
    font-size: clamp(20px, 3vw, 40px);
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    letter-spacing: 2px;
}

.hero-description {
    font-size: clamp(16px, 2vw, 22px);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease 1.4s forwards;
    border: 2px solid var(--secondary-color);
}

.cta-button:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.portfolio-section .section-header {
    margin-bottom: 100px;
}

.section-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.portfolio-section .section-title {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 50%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.portfolio-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--blue-accent), transparent);
    border-radius: 2px;
}

.section-title span {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.section-title:hover span {
    transform: translateY(-5px);
}

.portfolio-section .section-title:hover span {
    color: var(--blue-accent);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 400;
}

/* Section Background Animations */
.section-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.section-bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(100, 255, 218, 0.03) 0%, transparent 50%);
    animation: bgMove 30s infinite linear;
}

@keyframes bgMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-10%, -10%) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.portfolio-section,
.services-section,
.projects-section,
.courses-section,
.team-section,
.contact-section {
    position: relative;
    z-index: 1;
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
    padding: 150px 0;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 255, 218, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 95, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.portfolio-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.portfolio-description {
    font-size: 22px;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 0;
    text-align: left;
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body[dir="rtl"] .portfolio-description {
    text-align: right;
}

.portfolio-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--blue-accent) 0%, var(--blue-medium) 100%);
    border-radius: 2px;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
}

body[dir="rtl"] .portfolio-description::before {
    left: auto;
    right: 0;
}

.portfolio-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(100, 255, 218, 0.15);
    border-color: rgba(100, 255, 218, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.portfolio-description:hover::before {
    opacity: 1;
}

.portfolio-description:nth-child(1) {
    animation: slideInLeft 0.8s ease forwards;
}

.portfolio-description:nth-child(2) {
    animation: slideInRight 0.8s ease 0.2s forwards;
    opacity: 0;
}

.portfolio-description:nth-child(3) {
    animation: slideInLeft 0.8s ease 0.4s forwards;
    opacity: 0;
}

.portfolio-description::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-medium), transparent);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.portfolio-description:hover::after {
    opacity: 0.1;
}

.portfolio-description {
    overflow: hidden;
}

.portfolio-description:hover::before {
    height: 100%;
    opacity: 1;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body[dir="rtl"] .portfolio-description:nth-child(1) {
    animation: slideInRight 0.8s ease forwards;
}

body[dir="rtl"] .portfolio-description:nth-child(2) {
    animation: slideInLeft 0.8s ease 0.2s forwards;
}

body[dir="rtl"] .portfolio-description:nth-child(3) {
    animation: slideInRight 0.8s ease 0.4s forwards;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    background: var(--bg-light);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    height: 500px;
    background: var(--secondary-color);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 0.6;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: var(--secondary-color);
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.project-description {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 15px;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.course-card {
    background: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon {
    font-size: 80px;
}

.course-content {
    padding: 30px;
}

.course-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.course-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.course-duration,
.course-level {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.testimonial {
    padding-top: 20px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

/* Team Section */
.team-section {
    background: var(--bg-light);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-member {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-placeholder {
    font-size: 60px;
}

.member-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.member-role {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.member-experience {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.submit-btn {
    padding: 18px 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.info-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-arabic {
    font-size: 24px;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    font-size: 14px;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-form button {
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

body[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* RTL Support */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

body[dir="rtl"] .hero-title {
    flex-direction: row-reverse;
}

body[dir="rtl"] .section-title span {
    display: inline-block;
}

body[dir="rtl"] .project-link::after {
    content: ' ←';
}

body[dir="rtl"] .project-link {
    direction: rtl;
}

body[dir="rtl"] .contact-content {
    direction: rtl;
}

body[dir="rtl"] .footer-content {
    direction: rtl;
}

body[dir="rtl"] .footer-links {
    direction: rtl;
}

body[dir="rtl"] .services-grid,
body[dir="rtl"] .courses-grid,
body[dir="rtl"] .team-grid,
body[dir="rtl"] .projects-grid {
    direction: rtl;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Particles */
.floating-particle {
    pointer-events: none;
    will-change: transform, opacity;
}

/* Enhanced Background Animations */
.services-section .section-bg-animation::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 60%, rgba(30, 58, 95, 0.04) 0%, transparent 50%);
    animation: bgMove 25s infinite linear;
}

.projects-section .section-bg-animation::before {
    background: 
        radial-gradient(circle at 30% 40%, rgba(100, 255, 218, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
    animation: bgMove 35s infinite linear reverse;
}

.courses-section .section-bg-animation::before {
    background: 
        radial-gradient(circle at 50% 30%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
    animation: bgMove 28s infinite linear;
}

.team-section .section-bg-animation::before {
    background: 
        radial-gradient(circle at 80% 20%, rgba(100, 255, 218, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(30, 58, 95, 0.04) 0%, transparent 50%);
    animation: bgMove 32s infinite linear reverse;
}

.contact-section .section-bg-animation::before {
    background: 
        radial-gradient(circle at 60% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 30% 30%, rgba(26, 26, 46, 0.03) 0%, transparent 50%);
    animation: bgMove 30s infinite linear;
}

/* Animated gradient background for sections */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Additional smooth animations */
.services-section,
.courses-section,
.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Hide projects by category */
.project-card.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
    }

    body[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
    }

    .nav-menu.active {
        left: 0;
    }

    body[dir="rtl"] .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .services-grid,
    .courses-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 400px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    body[dir="rtl"] .whatsapp-float {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 50px;
    }

    .section-title {
        font-size: 35px;
    }

    .project-card {
        height: 350px;
    }

    .project-info {
        padding: 30px 20px;
    }

    .project-title {
        font-size: 24px;
    }
}

