@font-face {
    font-family: "Bangers";
    src: url("./fonts/Bangers/Bangers-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Bangers", cursive;
    /* background: linear-gradient(135deg, #feed00 0%, #feed00 40%, #ffffff 100%); */
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #ffffff 100%);
    color: #ffffff;
    overflow-x: hidden;
}

.hero-content h1 {
    font-family: "Bangers", cursive;
    letter-spacing: 1px;
}

.hero-content p {
    font-family: "Bangers", cursive;
}

.nav-link,
.cta-btn,
.nav-brand span {
    font-family: "Bangers", cursive;
    font-size: 28px !important;
}

.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.glass-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 48px;
    height: 100px;
    background: #feed00;
    border: none;
    border-bottom: 7px solid #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111;
    font-family: 'Bangers', cursive;
    font-weight: 900;
    font-size: 2.4rem;
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.nav-brand:hover {
    opacity: 0.7;
}

.nav-logo {
    height: 80px;
    width: auto;
}

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

.nav-links-desktop {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-family: 'Bangers', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 22px;
    right: 22px;
    height: 3px;
    background: #111;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    background: #fe4d4d;
}

.nav-link:hover {
    color: #111;
}

.nav-link.active {
    color: #111;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    background: #fe4d4d;
    color: #fff;
    border: 4px solid #000;
    padding: 16px 36px;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 6px 6px  #111;
}

.cta-btn:hover {
    background: #e04040;
    transform: translateY(-2px);
    box-shadow: 4px 6px 0 #111;
}

.cta-btn:active {
    transform: translateY(1px);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.navbar-lang {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-lang-margin {
    margin-right: 12px;
}
.navbar-lang-margin-arabic {
    margin-left: 12px;
}
.lang-switcher {
    position: relative;
}

.lang-flat {
    display: none;
}

.lang-flat-btn {
    display: inline-block;
    padding: 8px 18px;
    font-family: 'Bangers', cursive;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: #111;
    border: 2px solid #111;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-flat-btn.active {
    background: #111;
    border-color: #111;
    color: #feed00;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #111;
    border: 2px solid #111;
    padding: 8px 14px;
    font-family: 'Bangers', cursive;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-toggle:hover {
    background: #111;
    color: #feed00;
}

.lang-toggle .fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.lang-switcher:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    list-style: none;
    margin: 0;
    padding: 6px;
    min-width: 140px;
    background: #111;
    border: 3px solid #feed00;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.lang-dropdown li a:hover {
    background: rgba(254, 237, 0, 0.15);
    color: #feed00;
}

.lang-dropdown li a.active {
    background: rgba(254, 237, 0, 0.2);
    color: #feed00;
}

/* ============================================
   RTL SUPPORT
   ============================================ */

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* ============================================
   HAMBURGER BUTTON
   ============================================ */

.mobile-menu {
    display: none;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: #111;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.05);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #feed00;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

/* ============================================
   MOBILE MENU (max-width: 677px)
   ============================================ */

@media (max-width: 677px) {
    .glass-nav {
        background: #feed00;
        border-bottom: 3px solid #111;
        justify-content: space-between;
        padding: 0 20px;
        height: 64px;
    }

    .nav-brand {
        display: flex;
        font-size: 1.3rem;
    }

    .nav-links-desktop {
        display: none !important;
    }

    .navbar-right {
        display: none !important;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 6px;
        padding: 16px;
        background: #111;
        border-bottom: 3px solid #feed00;
        z-index: 100;
        animation: mobile-menu-in 0.3s ease;
    }

    @keyframes mobile-menu-in {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .mobile-menu.mobile-open {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        list-style: none;
    }

    .nav-link {
        justify-content: center;
        padding: 14px 16px;
        border-radius: 10px;
        color: #feed00;
        font-size: 1.2rem;
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: rgba(254, 237, 0, 0.1);
    }

    .nav-link.active {
        background: #fe4d4d;
        color: #fff;
    }

    .navbar-lang {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(254, 237, 0, 0.2);
    }

    .navbar-lang-margin,
    .navbar-lang-margin-arabic {
        margin: 0;
    }

    .lang-switcher {
        display: none;
    }

    .lang-flat {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .lang-flat-btn {
        border-color: rgba(254, 237, 0, 0.4);
        color: rgba(254, 237, 0, 0.7);
        border-radius: 10px;
    }

    .lang-flat-btn.active {
        background: #feed00;
        color: #111;
        border-color: #feed00;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 16px 22px;
        border-radius: 0;
        margin-top: 4px;
    }

    [dir="rtl"] .lang-dropdown {
        right: 50%;
        transform: translateX(50%);
    }
}

/* ============================================
   COMIC CUSTOM CURSOR
   ============================================ */

.comic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #feed00;
    border: 3px solid #000;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: transform;
    pointer-events: none;
    box-shadow:
        0 0 8px rgba(254, 237, 0, 0.4),
        inset 0 0 3px rgba(255, 255, 255, 0.3);
    transition:
        width 0.3s ease,
        height 0.3s ease,
        border-width 0.3s ease,
        background 0.3s ease;
}

.comic-cursor.is-hover {
    width: 44px;
    height: 44px;
    border-width: 4px;
    background: #feed00;
    box-shadow:
        0 0 16px rgba(254, 237, 0, 0.7),
        0 0 32px rgba(254, 237, 0, 0.3);
}

.comic-cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(254, 237, 0, 0.25);
    z-index: 99998;
    transform: translate(-50%, -50%);
    will-change: transform;
    pointer-events: none;
}

/* Click Burst Word */
.comic-burst {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99996;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.comic-burst-word {
    position: absolute;
    font-family: "Bangers", cursive;
    font-weight: 700;
    color: #feed00;
    text-shadow:
        2px 2px 0 #000,
        -2px 2px 0 #000,
        2px -2px 0 #000,
        -2px -2px 0 #000,
        0 3px 0 #000,
        3px 0 0 #000;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(var(--burst-rotation, 0deg));
    user-select: none;
    -webkit-user-select: none;
}

/* Touch device: hide custom cursor */
@media (pointer: coarse) {
    .comic-cursor,
    .comic-cursor-trail,
    .comic-burst {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        cursor: auto !important;
    }
}

/* ============================================
   COMIC PAGE LOADER
   ============================================ */

.comic-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    visibility: hidden;
    opacity: 0;
}

.comic-loader-overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.loader-halftone {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #feed00 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.08;
}

.loader-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-words {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.loader-word {
    position: absolute;
    font-family: "Bangers", cursive;
    font-size: 120px;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.loader-word-dev {
    font-family: "Bangers", cursive;
    font-size: 48px;
    letter-spacing: 4px;
    white-space: nowrap;
    color: #feed00;
    text-shadow:
        3px 3px 0 #000,
        -3px 3px 0 #000,
        3px -3px 0 #000,
        -3px -3px 0 #000,
        0 4px 0 #000,
        0 6px 12px rgba(254, 237, 0, 0.4);
    position: relative;
    padding: 8px 24px;
    border: 4px solid #000;
    border-radius: 12px;
    background: #f75f60;
    box-shadow:
        6px 6px 0 #000,
        inset 0 0 20px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    animation: comicPulse 2s ease-in-out infinite;
}

.loader-word-dev::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background-image: radial-gradient(
        circle,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px
    );
    background-size: 6px 6px;
    pointer-events: none;
}

@keyframes comicPulse {
    0%,
    100% {
        transform: rotate(-2deg) scale(1);
    }
    50% {
        transform: rotate(-2deg) scale(1.04);
    }
}

.loader-word:nth-child(1) {
    color: #f75f60;
    text-shadow:
        4px 4px 0 #000,
        -2px 2px 0 #000;
    transform: translate(-50%, -50%) scale(0) rotate(-12deg);
}

.loader-word:nth-child(2) {
    color: #feed00;
    text-shadow:
        4px 4px 0 #000,
        -2px 2px 0 #000;
    transform: translate(-50%, -50%) scale(0) rotate(8deg);
}

.loader-word:nth-child(3) {
    color: #00c2ff;
    text-shadow:
        4px 4px 0 #000,
        -2px 2px 0 #000;
    transform: translate(-50%, -50%) scale(0) rotate(-5deg);
}

.loader-word:nth-child(4) {
    color: #ff6bff;
    text-shadow:
        4px 4px 0 #000,
        -2px 2px 0 #000;
    transform: translate(-50%, -50%) scale(0) rotate(10deg);
}

.loader-bar-track {
    width: 200px;
    height: 14px;
    background: #222;
    border-radius: 7px;
    border: 3px solid #feed00;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(254, 237, 0, 0.3);
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f75f60, #feed00, #f75f60);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

@media (max-width: 600px) {
    .loader-word {
        font-size: 72px;
    }
    .loader-bar-track {
        width: 140px;
        height: 10px;
    }
}

@media (max-width: 400px) {
    .loader-word-dev {
        font-size: 28px;
        padding: 6px 16px;
        letter-spacing: 2px;
    }
    .loader-word {
        font-size: 56px;
    }
    .loader-bar-track {
        width: 120px;
        height: 8px;
    }
}

/* ============================================
   GLOBAL CTA FOOTER
   ============================================ */

.cta-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #16213e 0%, #0f0c29 40%, #1a1a2e 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 4rem;
    color: #fff;
    margin: 20px 0 16px;
    font-family: "Bangers", cursive;
    letter-spacing: 3px;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-family: "Bangers", cursive;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #feed00, #e6c800);
    color: #111;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    font-family: "Bangers", cursive;
    letter-spacing: 2px;
    border: 3px solid #111;
    box-shadow: 6px 6px 0px #111;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px #111;
}

.cta-button:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px #111;
}

.cta-bubble {
    margin-top: 40px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.cta-bubble::after {
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
    .cta-section {
        padding: 60px 4%;
    }
    .cta-subtitle {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 14px 32px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    .cta-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .cta-button {
        padding: 12px 28px;
        font-size: 1rem;
        gap: 10px;
        box-shadow: 4px 4px 0px #111;
    }
    .cta-bubble {
        max-width: 90%;
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

/* ========== Site Footer ========== */
.site-footer {
    background: #111;
    border-top: 3px solid #feed00;
    padding: 18px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: "Bangers", cursive;
    letter-spacing: 1px;
}

.site-footer-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: #feed00;
}

@media (max-width: 480px) {
    .site-footer {
        justify-content: center;
        text-align: center;
    }
}

/* ========== SEO Breadcrumbs ========== */
.breadcrumb-nav {
    margin-bottom: 16px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Bangers", cursive;
    font-size: 1rem;
    letter-spacing: 2px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #feed00;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
    color: #feed00;
}
