/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

/* Loading Animation */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #00d4ff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links .nav-link {
    margin-left: 2rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: #00d4ff;
}

.nav-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #ff6b35);
    transition: width 0.3s ease;
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero-text {
    flex: 2;
    min-width: 300px;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #00d4ff, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #00d4ff, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.6s ease-out forwards;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.about-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

/* Tutorials Section */
.tutorials {
    padding: 5rem 0;
    background: rgba(10, 10, 10, 0.8);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.6s ease-out forwards;
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.tutorial-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tutorial-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #00d4ff;
}

.tutorial-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-tutorial {
    display: block;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-tutorial:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Courses Section */
.courses {
    padding: 5rem 0;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Partners Section */
.partners {
    padding: 5rem 0;
    background: rgba(10, 10, 10, 0.8);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.partner-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #00d4ff, #ff6b35);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partner-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.partner-card p {
    color: #e6e6e6;
    line-height: 1.8;
}

.course-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.6s ease-out forwards;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #00d4ff;
}

.course-card p {
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    color: #ff6b35;
    font-weight: 600;
}

.duration {
    color: #cccccc;
    font-size: 0.9rem;
}

.btn-book {
    display: block;
    width: calc(100% - 3rem);
    margin: 1rem 1.5rem 1.5rem;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-book:hover::before {
    left: 100%;
}

.btn-book:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    animation: modalReveal 0.3s ease-out;
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    color: #cccccc;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 1rem;
}

.close:hover {
    color: #00d4ff;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #00d4ff;
}

#booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#booking-form input {
    padding: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
}

#booking-form input::placeholder {
    color: #cccccc;
}

#booking-form input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    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 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding-top: 1rem;
    color: #cccccc;
}

/* Reveal Animation */
@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid,
    .tutorials-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}

/* Articles Page Styles */
.articles {
    padding: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.article-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.article-body {
    padding: 1rem 1rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    color: #00d4ff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.article-excerpt {
    color: #e6e6e6;
    margin-bottom: 1rem;
    flex: 1;
}

.read-btn {
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(90deg,#00d4ff,#0099cc);
    color: #fff;
    text-decoration: none;
}

.article-page {
    padding: 3rem 0 6rem;
}

.article-header img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.article-content {
    margin-top: 1.5rem;
    line-height: 1.9;
    color: #eaeaea;
}

/* Academy Rules Page */
.academy-rules {
    padding: 8rem 0 5rem;
}

.rules-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.rules-eyebrow {
    color: #ff6b35;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.rules-intro .section-title {
    margin-bottom: 1rem;
}

.rules-intro > p:last-child {
    color: #d6d6d6;
    line-height: 1.9;
}

.download-rules-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-rules-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(0, 212, 255, 0.5);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.rule-card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rule-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff, #ff6b35);
}

.rule-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 212, 255, 0.18);
}

.rule-number {
    display: block;
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.rule-card h3 {
    color: #00d4ff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.rule-card ul {
    padding-right: 1.2rem;
    color: #e6e6e6;
    line-height: 1.9;
}

.rule-card li + li {
    margin-top: 0.65rem;
}

.rules-note {
    margin-top: 2rem;
    color: #bdbdbd;
    text-align: center;
    font-size: 0.95rem;
}

@media (max-width: 700px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* Shorts Player Styles */
.shorts-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    background: #000;
}

.shorts-top-bar {
    position: sticky;
    top: 80px;
    z-index: 10;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
}

.short-slide {
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,#000,#0a0a0a);
}

.short-iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

.short-overlay {
    position: absolute;
    bottom: 3rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.short-info {
    color: #fff;
    text-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

.short-title { font-size: 1.2rem; color: #00d4ff; margin-bottom: 0.3rem; }
.short-meta { font-size: 0.9rem; color: #ddd; }

.short-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.short-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.short-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-size: 1.2rem;
}

.short-action:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.14);
}

.short-action.muted {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.short-action.unmuted {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-color: rgba(0, 212, 255, 0.9);
    color: #fff;
}

@media (min-width: 900px) {
    .short-title { font-size: 1.4rem; }
}.shorts-header {
    position: sticky;
    top: 90px;
    z-index: 10;
    padding: 1.25rem 1rem 0.8rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.55));
    backdrop-filter: blur(10px);
    text-align: right;
}

.shorts-header h2 {
    margin: 0 0 0.35rem;
    color: #00d4ff;
    font-size: 2rem;
}

.shorts-header p {
    margin: 0;
    color: #ddd;
    font-size: 0.95rem;
}

.shorts-footer {
    padding: 1.5rem 1rem 4rem;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.shorts-all-btn {
    display: inline-block;
    padding: 14px 24px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shorts-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(0, 212, 255, 0.3);
}
