@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('assets/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('assets/IBMPlexSansArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('assets/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('assets/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===================================
   CSS VARIABLES & DESIGN TOKENS
   =================================== */
:root {
    /* Brand Colors */
    --primary-color: #cd4b30;
    --primary-dark: #a33b24;
    --primary-light: #e56b4f;
    --primary-glow: rgba(205, 75, 48, 0.3);

    /* Neutral Colors */
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.8);
    --bg-card-hover: rgba(30, 30, 30, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #cd4b30 0%, #e56b4f 100%);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a0f0d 100%);
    --gradient-orb-1: radial-gradient(circle, rgba(205, 75, 48, 0.15) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, rgba(229, 107, 79, 0.1) 0%, transparent 70%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-glow-strong: 0 0 50px rgba(205, 75, 48, 0.5);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] .link-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .link-button:hover .link-arrow {
    transform: scaleX(-1) translateX(-5px);
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;

    /* Wavy pattern overlay */
    background-color: transparent;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 Q 25 30, 50 50 T 100 50' stroke='rgba(205, 75, 48, 0.2)' stroke-width='0.5' fill='none'/%3E%3Cpath d='M0 60 Q 25 40, 50 60 T 100 60' stroke='rgba(205, 75, 48, 0.06)' stroke-width='0.5' fill='none'/%3E%3Cpath d='M0 70 Q 25 50, 50 70 T 100 70' stroke='rgba(205, 75, 48, 0.04)' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-orb-1);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-orb-2);
    bottom: -10%;
    left: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-orb-1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===================================
   MAIN CONTAINER
   =================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===================================
   PROFILE CARD
   =================================== */
.profile-card {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-text {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 20px var(--primary-glow));
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-icon {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 4px 20px var(--primary-glow));
    animation: logoRotate 20s linear infinite;
}


@keyframes logoRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ===================================
   MENU SECTION
   =================================== */
.menu-section {
    width: 100%;
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.menu-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.menu-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

.menu-card:hover {
    border-color: rgba(205, 75, 48, 0.3);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(205, 75, 48, 0.15);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item:first-child {
    padding-top: 0;
}

.menu-item:hover {
    padding-left: var(--spacing-xs);
    padding-right: var(--spacing-xs);
}

.menu-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

.menu-item:hover .menu-item-name {
    color: var(--primary-light);
}

.menu-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    transition: all var(--transition-fast);
}

.menu-item:hover .menu-item-price {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ===================================
   LINKS CONTAINER
   =================================== */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* ===================================
   LINK BUTTONS
   =================================== */
.link-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease backwards;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 0;
}

.link-button:hover::before {
    left: 0;
    opacity: 0.1;
}

.link-button:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.link-button:active {
    transform: translateY(-2px);
}

/* Stagger animation for links */
.link-button:nth-child(1) {
    animation-delay: 0.1s;
}

.link-button:nth-child(2) {
    animation-delay: 0.2s;
}

.link-button:nth-child(3) {
    animation-delay: 0.3s;
}

.link-button:nth-child(4) {
    animation-delay: 0.4s;
}

.link-button:nth-child(5) {
    animation-delay: 0.5s;
}

.link-button:nth-child(6) {
    animation-delay: 0.6s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link Icon */
.link-icon {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.link-button:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

/* Link Content */
.link-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.link-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Link Arrow */
.link-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.link-button:hover .link-arrow {
    transform: translateX(5px);
    color: var(--primary-light);
}

/* Special styling for location button */
.location-button {
    border: 2px solid var(--primary-color);
    background: rgba(205, 75, 48, 0.05);
}

.location-button:hover {
    background: rgba(205, 75, 48, 0.15);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: fadeIn 1s ease 0.8s backwards;
}

.footer .developer {
    font-size: 10px;
}

.developer a {
    color: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer p {
    margin-bottom: var(--spacing-sm);
}

.footer-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-sm);
}

.footer-icon {
    width: 60px;
    height: auto;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all var(--transition-normal);
}

.footer-icon:hover {
    opacity: 0.6;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .logo-text {
        width: 220px;
    }

    .logo-icon {
        width: 30px;
    }

    .brand-name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .link-button {
        padding: var(--spacing-md);
    }

    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-subtitle {
        font-size: 0.8rem;
    }

    .menu-title {
        font-size: 1.5rem;
    }

    .menu-item-name {
        font-size: 1rem;
    }

    .menu-item-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        width: 180px;
    }

    /* .logo-icon {
        width: 50px;
        top: var(--spacing-sm);
        left: var(--spacing-sm);
    } */

    .brand-name {
        font-size: 1.75rem;
    }

    .link-button {
        gap: var(--spacing-sm);
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.link-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}