/* ===== NoorEldean Coaching - Modern Professional Design 2024 ===== */

/* ===== CSS Custom Properties (Variables) ===== */
:root {
    /* Primary Colors - Vibrant Blue */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --primary-gradient-reverse: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);

    /* Secondary Colors - Electric Cyan */
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent-light: #22d3ee;

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --backdrop-blur: blur(12px);

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --error: #ef4444;
    --error-light: #f87171;

    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #2563eb 100%);
    --gradient-hero-mesh: radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    --gradient-text: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

    /* Shadows - Layered for Depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 80px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 8px 30px rgba(37, 99, 235, 0.25);
    --shadow-primary-lg: 0 15px 50px rgba(37, 99, 235, 0.35);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.4);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Transitions - Smooth & Natural */
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ===== Base Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Headings use Tajawal */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Selection Style */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== Modern Utility Classes ===== */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
}

.glow {
    box-shadow: var(--shadow-glow);
}

/* ===== Modern Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: 12px 0;
    transition: var(--transition);
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10000;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 10001;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 280px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.nav-links>li {
    position: relative;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-links li a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-links li a.active {
    color: var(--primary);
    background: var(--primary-glow);
    font-weight: 700;
}

.nav-links li a.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* ===== Dropdown Menu ===== */
.nav-dropdown {
    position: relative !important;
}

.nav-dropdown>a {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.65em;
    margin-right: 4px;
    transition: var(--transition);
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    min-width: 240px;
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999999 !important;
    list-style: none !important;
    border: 1px solid #e2e8f0;
    pointer-events: none;
    margin: 0 !important;
}

.nav-dropdown:hover>.dropdown-menu,
.nav-dropdown:focus-within>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
    pointer-events: auto;
}

/* Bridge to prevent gap hover issue */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-menu li {
    width: 100% !important;
    list-style: none !important;
    max-width: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.dropdown-menu li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    text-align: right !important;
}

.dropdown-menu li a::before {
    display: none !important;
}

.dropdown-menu li a:hover {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb !important;
    padding-right: 25px !important;
}

/* Hidden Checkbox for Mobile Menu */
#menuToggle {
    display: none;
}

/* Menu Icon (Hamburger) */
.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 99999;
    position: relative;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.menu-icon:hover {
    background: var(--primary-glow);
}

.menu-icon:active {
    transform: scale(0.95);
}

.menu-icon span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    margin: 4px 0;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

/* Desktop Dropdown - Ensure it works on large screens */
@media (min-width: 769px) {
    .nav-dropdown {
        position: relative !important;
    }

    .dropdown-menu {
        display: block !important;
        position: absolute !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-dropdown:hover>.dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    .menu-icon {
        display: block !important;
    }

    .logo-img {
        width: 220px;
        height: 65px;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 99998 !important;
        padding: 20px !important;
    }

    /* Checkbox Hack - When menu is open */
    #menuToggle:checked~.navbar .nav-links {
        right: 0 !important;
    }

    #menuToggle:checked~.navbar .nav-links li {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .nav-links li {
        width: 100%;
        max-width: 300px;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
        list-style: none;
    }

    #menuToggle:checked~.navbar .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    #menuToggle:checked~.navbar .nav-links li:nth-child(2) {
        transition-delay: 0.15s;
    }

    #menuToggle:checked~.navbar .nav-links li:nth-child(3) {
        transition-delay: 0.2s;
    }

    #menuToggle:checked~.navbar .nav-links li:nth-child(4) {
        transition-delay: 0.25s;
    }

    #menuToggle:checked~.navbar .nav-links li:nth-child(5) {
        transition-delay: 0.3s;
    }

    #menuToggle:checked~.navbar .nav-links li:nth-child(6) {
        transition-delay: 0.35s;
    }

    #menuToggle:checked~.navbar .nav-links li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-links li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        padding: 16px 30px !important;
        color: var(--gray-800) !important;
        border-radius: var(--radius-xl) !important;
        text-align: center !important;
        background: var(--white) !important;
        box-shadow: var(--shadow-sm) !important;
        border: 1px solid var(--gray-200) !important;
        transition: var(--transition) !important;
        text-decoration: none !important;
    }

    .nav-links li a::before {
        display: none !important;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background: var(--gradient-primary) !important;
        color: var(--white) !important;
        border-color: transparent !important;
        transform: scale(1.02) !important;
        box-shadow: var(--shadow-primary) !important;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 8px 0 0 0 !important;
        min-width: auto !important;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        max-width: 280px;
        margin: 0 auto;
    }

    .dropdown-menu li a {
        font-size: 0.95rem !important;
        padding: 12px 20px !important;
        background: var(--gray-50) !important;
        border: 1px solid var(--gray-200) !important;
    }

    .dropdown-arrow {
        transition: var(--transition);
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Menu Icon X Transform */
    #menuToggle:checked~.navbar .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background: #ef4444;
    }

    #menuToggle:checked~.navbar .menu-icon span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    #menuToggle:checked~.navbar .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background: #ef4444;
    }
}

@keyframes slideInMobile {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

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

    .nav-links li a {
        font-size: 1rem;
        padding: 14px 25px;
    }
}

/* ===== Modern Hero Section ===== */
#hero-challenge-section {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0e7ff 100%);
    padding: 80px 30px;
    border-radius: var(--radius-2xl);
    margin: 100px auto 50px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

#hero-challenge-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#hero-challenge-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.5;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.text-highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-radius: var(--radius-full);
    z-index: -1;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 35px;
    line-height: 1.8;
}

.cta-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 18px 45px;
    border-radius: var(--radius-xl);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-primary-lg);
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-btn::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: 0.5s;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.stats-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 45px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 35px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 180px;
    padding: 20px 15px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-item p {
    margin: 0;
    color: var(--gray-800);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    word-wrap: break-word;
}

.hero-image-box {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-slow);
}

.hero-image-box:hover .hero-img {
    transform: perspective(1000px) rotateY(0deg) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.c-1 {
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.05);
    top: -50px;
    left: -50px;
}

.c-2 {
    width: 150px;
    height: 150px;
    background: rgba(37, 99, 235, 0.1);
    bottom: 20px;
    right: 20px;
}

/* ===== Modern Services Section ===== */
.free-services-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 100px 20px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.free-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.services-title {
    color: var(--gray-900);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.services-title span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-subtitle {
    color: var(--gray-500);
    font-size: 1.15rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 40px 28px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(37, 99, 235, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-box {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-primary);
}

.service-icon-box svg {
    width: 38px;
    height: 38px;
    fill: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon-box svg {
    fill: var(--white);
}

.service-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 28px;
    min-height: 50px;
}

.service-btn {
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    border: 2px solid transparent;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.service-btn:hover {
    color: var(--white);
    border-color: var(--primary);
}

.service-btn:hover::before {
    left: 0;
}

.ai-card {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, var(--white) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.ai-card::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 100%);
}

.ai-badge {
    position: absolute;
    top: -1px;
    right: 50%;
    transform: translateX(50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

/* ===== Pricing Section ===== */
:root {
    --primary: #3551ae;
    --dark-blue: #0f172a;
    --accent: #d32f2f;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-body: #334155;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success: #10b981;
}

.section-header {
    text-align: center;
    padding: 60px 20px 0px;
}

.main-title {
    font-size: 48px;
    font-weight: 900;
    color: #3551ae;
    margin: 0;
    line-height: 1.2;
}

.main-slogan {
    font-size: 18px;
    color: #0f172a;
    margin-top: 10px;
    font-weight: 700;
    opacity: 0.9;
}

.pricing-wrapper-clean {
    direction: rtl;
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card-clean {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    height: 100%;
    box-sizing: border-box;
    border-radius: 24px;
    padding: 40px 24px 32px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card-clean.featured {
    border: 2px solid #1343c7;
    background-color: #fff;
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 20px 25px -5px rgba(53, 81, 174, 0.15), 0 10px 10px -5px rgba(53, 81, 174, 0.04);
}

.pricing-card-clean:hover {
    transform: translateY(-8px);
    border-color: #3551ae;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    background: #fef2f2;
    color: #d32f2f;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    align-self: flex-start;
    border: 1px solid #fee2e2;
}

.pricing-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #0f172a;
    text-align: right;
    line-height: 1.2;
}

.pricing-price-box {
    text-align: right;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pricing-old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 600;
}

.pricing-new-price {
    font-size: 38px;
    font-weight: 900;
    color: #d32f2f;
    line-height: 1;
    letter-spacing: -1px;
}

.pricing-currency {
    font-size: 16px;
    color: #334155;
    font-weight: 700;
}

.pricing-subtitle {
    font-size: 15px;
    color: #475569;
    margin-bottom: 24px;
    text-align: right;
    font-weight: 700;
    min-height: 42px;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.selection-tag {
    font-size: 13px;
    font-weight: 800;
    color: #3551ae;
    margin-bottom: 4px;
    display: block;
    text-align: right;
}

.selection-slogan {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
    text-align: right;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none !important;
    background-color: #3551ae;
    color: #fff !important;
    text-align: center;
    margin-bottom: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(53, 81, 174, 0.3);
}

.pricing-btn:hover {
    background-color: #1e3a8a;
    box-shadow: 0 10px 15px -3px rgba(53, 81, 174, 0.4);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 14px;
    font-size: 14px;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    font-weight: 600;
}

.feature-icon {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
    margin-top: 2px;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    background-color: #f8fafc;
    font-family: 'Tajawal', sans-serif;
}

.testimonials-section .section-title {
    color: #1e40af;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.testimonials-section .section-subtitle {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.slider-container {
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
}

.cards-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 40px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding-inline-end: 20px;
    align-items: flex-start;
}

.cards-wrapper::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 350px;
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    text-align: center;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 400px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    border-color: #bfdbfe;
}

.img-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    position: relative;
}

.client-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2563eb;
    padding: 3px;
    background: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.quote-icon {
    font-size: 30px;
    color: #dbeafe;
    line-height: 1;
    margin-bottom: 15px;
}

.review-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 25px;
}

.client-info {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    width: 100%;
    padding-top: 15px;
}

.client-name {
    color: #1e40af;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.prev-btn {
    right: -70px;
}

.next-btn {
    left: -70px;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #2563eb;
    width: 35px;
    border-radius: 20px;
}

/* ===== FAQ Section ===== */
.faq-container-native {
    font-family: 'Cairo', sans-serif;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    direction: rtl;
}

.faq-title {
    text-align: center;
    color: #3551ae;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.faq-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

details.faq-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

details.faq-card:hover {
    border-color: #3551ae;
    box-shadow: 0 5px 15px rgba(53, 81, 174, 0.1);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    color: #3551ae;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
}

details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
    color: #fff;
}

details[open] summary {
    background-color: #3551ae;
    color: #fff;
}

.faq-content {
    padding: 20px;
    color: #555;
    line-height: 1.7;
    background-color: #f8faff;
    border-top: 1px solid #eee;
}

details[open] .faq-content {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ===== Page Header (Service Pages) ===== */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    padding: 140px 20px 60px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Calculator Section ===== */
.calculator-section {
    padding: 60px 20px;
    background: #f8fafc;
}

#noor-advanced-calc {
    --brand-color: #2563eb;
    --brand-light: #eff6ff;
    --text-main: #1e293b;
    --radius: 16px;

    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    color: var(--text-main);
}

#noor-advanced-calc * {
    box-sizing: border-box;
    outline: none;
}

.nc-header {
    text-align: center;
    margin-bottom: 25px;
}

.nc-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.nc-group {
    margin-bottom: 15px;
}

.nc-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
}

.required-star {
    color: #ef4444;
    margin-right: 3px;
}

.nc-row {
    display: flex;
    gap: 15px;
}

.nc-col {
    flex: 1;
}

.nc-input,
.nc-select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    transition: 0.2s;
}

.nc-input:focus,
.nc-select:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.nc-input.error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.3s;
}

@keyframes shake {

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

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Toggle & Custom Section */
.toggle-container {
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    z-index: 2;
    transition: 0.3s;
    border-radius: 10px;
    color: #94a3b8;
}

.toggle-option.active {
    color: #2563eb;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.calc-section {
    display: none;
    animation: calcFadeIn 0.4s ease;
}

.calc-section.active {
    display: block;
}

@keyframes calcFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.custom-box {
    background: #eff6ff;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #bfdbfe;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* Calculator Button */
#calc-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    margin-top: 20px;
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.4);
    transition: 0.2s;
}

#calc-btn:hover {
    transform: translateY(-2px);
}

/* Results */
#result-area {
    display: none;
    margin-top: 25px;
    border-top: 2px dashed #e2e8f0;
    padding-top: 20px;
}

.res-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
}

.res-card.warning {
    background: #fffbeb;
    border-color: #fcd34d;
}

.main-num {
    font-size: 42px;
    font-weight: 900;
    color: #16a34a;
    line-height: 1;
}

.res-card.warning .main-num {
    color: #d97706;
}

.stats-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    flex: 1;
    background: #f8fafc;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-val {
    font-weight: 800;
    color: #334155;
    display: block;
}

.stat-lbl {
    font-size: 11px;
    color: #64748b;
}

#warning-txt {
    display: none;
    color: #b45309;
    font-size: 12px;
    margin-top: 10px;
    font-weight: 700;
}

#email-msg {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
    display: none;
}

@media (max-width: 500px) {
    .nc-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Smart Meal Builder ===== */
#smart-meal-builder {
    --primary: #2563eb;
    --bg-body: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --radius: 16px;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);

    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--bg-body);
    padding: 20px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

#smart-meal-builder * {
    box-sizing: border-box;
    outline: none;
}

.sm-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.sm-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    color: #0f172a;
}

.sm-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 5px;
}

.input-card {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
    position: relative;
    z-index: 50;
    flex-wrap: wrap;
}

.search-group {
    flex: 2;
    min-width: 200px;
    position: relative;
}

.label-txt {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.main-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.main-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    padding: 5px;
    z-index: 100;
}

.menu-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item:hover {
    background: #eff6ff;
}

.item-name {
    font-weight: 800;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.item-macros {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 700;
}

.badge {
    padding: 3px 8px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.b-cal {
    background: #e0f2fe;
    color: #0284c7;
}

.weight-group {
    flex: 1;
    min-width: 100px;
}

.meal-group {
    flex: 1;
    min-width: 100px;
}

.meal-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.add-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.meal-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.empty-state {
    text-align: center;
    color: #cbd5e1;
    padding: 40px 20px;
    border: 2px dashed #f1f5f9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meal-group-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eff6ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meal-group-title span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    background: #e0f2fe;
    padding: 4px 8px;
    border-radius: 6px;
}

.food-card {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    animation: foodFadeIn 0.3s ease;
}

@keyframes foodFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.fc-info {
    display: flex;
    flex-direction: column;
}

.fc-name {
    font-weight: 800;
    font-size: 14px;
    color: #334155;
}

.fc-weight {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    margin-top: 4px;
}

.fc-macros-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-cals {
    font-weight: 900;
    font-size: 15px;
    color: var(--primary);
    min-width: 50px;
    text-align: left;
}

.fc-macro-item {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    gap: 4px;
}

.del-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-summary {
    background: #1e293b;
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
}

.total-box {
    display: flex;
    flex-direction: column;
}

.tb-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.tb-num {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.macros-row {
    display: flex;
    gap: 25px;
    text-align: center;
}

.m-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m-val {
    display: block;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.2;
}

.m-lbl {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 700;
    margin-top: 2px;
}

.c-blue {
    color: #60a5fa;
}

.c-yel {
    color: #fbbf24;
}

.c-red {
    color: #f87171;
}

.copy-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    height: 45px;
}

.copy-btn:hover {
    background: #059669;
}

@media (max-width: 600px) {
    .input-card {
        gap: 10px;
    }

    .search-group {
        width: 100%;
        flex: auto;
        order: 1;
    }

    .weight-group {
        flex: 1;
        max-width: none;
        order: 2;
    }

    .meal-group {
        flex: 1;
        max-width: none;
        order: 3;
    }

    .add-btn {
        width: 100%;
        height: 45px;
        order: 4;
    }

    .footer-summary {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .total-box {
        width: 100%;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

    .macros-row {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }

    .m-val {
        font-size: 24px;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Footer ===== */
.footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
    font-family: 'Cairo', sans-serif;
}

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

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-weight: 800;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

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

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s;
    color: white;
}

.social-link svg {
    fill: white;
    transition: all 0.3s;
}

.social-link:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.social-link:hover svg {
    fill: white;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.footer-contact p a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-contact p a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 1100px) {
    .pricing-wrapper-clean {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-title {
        font-size: 36px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats-wrapper {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        justify-content: center;
    }

    .service-card {
        max-width: 100%;
        width: 300px;
    }

    .nav-btn {
        display: none;
    }

    .cards-wrapper {
        padding-inline: 20px;
    }

    .card {
        flex: 0 0 85%;
        max-width: 85%;
    }

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

@media (max-width: 700px) {
    .pricing-wrapper-clean {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .main-title {
        font-size: 32px;
    }

    .main-slogan {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul {
        text-align: center;
    }
}

/* ===== Modern Animations & Effects ===== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Glow Pulse */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.5);
    }
}

/* Floating Animation */
@keyframes floating {

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

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

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

/* Animate In Class */
.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: var(--white);
    z-index: 1;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Text Gradient Animation */
.animated-gradient-text {
    background: linear-gradient(90deg, var(--primary), #7c3aed, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow);
}

/* Neon Glow */
.neon-glow {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5),
        0 0 20px rgba(37, 99, 235, 0.3),
        0 0 30px rgba(37, 99, 235, 0.1);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s;
}

/* Modern Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 8px 14px;
    background: var(--gray-900);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Pricing Card Popular Badge Glow */
.popular-badge {
    animation: glowPulse 2s infinite;
}

/* Hero Image Float */
.hero-img {
    animation: floating 6s ease-in-out infinite;
}

/* Print Styles */
@media print {

    .navbar,
    .footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    * {
        box-shadow: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

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

    .hero-img {
        animation: none;
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    /* Reserved for dark mode styles */
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

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

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

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary-lg);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 90px;
        left: 15px;
    }

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

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 15px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}