@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
   🎨 Modern Design System - Variables
   =================================== */
:root {
    /* Primary Colors - Modern Purple/Blue Gradient */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;

    /* Secondary Colors */
    --secondary-color: #0ea5e9;
    --secondary-dark: #0284c7;
    --secondary-light: #38bdf8;

    /* Accent Colors */
    --accent-color: #f43f5e;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);

    /* Neutral Colors */
    --dark-color: #0f172a;
    --dark-secondary: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;

    /* Success/Warning/Error */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(244, 63, 94, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
}

/* ===================================
   🔄 Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   🧭 Header & Navigation
   =================================== */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.header-scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo Styles */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon-wrapper {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.logo-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: var(--transition-slow);
    opacity: 0;
}

.logo:hover .logo-icon-wrapper::before {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

.logo:hover .logo-icon-wrapper {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-secondary);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 16px;
    left: 16px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 220px;
    display: none;
    z-index: 1000;
    border: 1px solid var(--gray-200);
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.dropdown-menu a:last-child {
    margin-bottom: 0;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    min-width: 200px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.search-form:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-form input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--dark-color);
    font-family: 'Cairo', sans-serif;
    width: 100%;
}

.search-form input::placeholder {
    color: var(--gray-400);
}

.search-form button {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-right: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-form button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Action Buttons */
.btn-login,
.btn-register,
.btn-new-order,
.btn-logout {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-register {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-new-order {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-new-order:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-accent);
}

.btn-logout {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
}

.btn-logout:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.logout-form {
    display: inline-block;
    margin: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--gray-100);
    border: none;
    font-size: 22px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   🚨 Alerts
   =================================== */
.alert {
    padding: 16px 24px;
    margin: 20px;
    border-radius: var(--radius);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert ul {
    margin: 10px 0 0 0;
    padding-right: 20px;
}

/* ===================================
   🦸 Hero Section
   =================================== */
.hero {
    padding: 200px 0 140px;
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--light-color), transparent);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.85);
}

.highlight {
    color: #fbbf24;
    font-weight: 700;
    position: relative;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.1);
    animation: floatIcon 8s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.1;
    }

    25% {
        opacity: 0.2;
    }

    50% {
        transform: translateY(-30px) rotate(15deg) scale(1.1);
        opacity: 0.15;
    }

    75% {
        opacity: 0.2;
    }
}

/* CTA Button */
.cta-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::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: var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* ===================================
   📝 Section Title
   =================================== */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-color);
    margin-bottom: 16px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title p {
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===================================
   🛠️ Services Section
   =================================== */
.services {
    padding: 120px 0;
    background-color: var(--gray-100);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--gray-200);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card:hover::after {
    opacity: 0.03;
}

.service-icon {
    font-size: 56px;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--dark-color);
    font-weight: 700;
}

.service-card p {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   💻 Technologies Section
   =================================== */
.technologies {
    padding: 120px 0;
    background: white;
    position: relative;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 50px;
}

.tech-card {
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    width: 160px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tech-icon {
    font-size: 48px;
    margin-bottom: 14px;
    color: var(--primary-color);
    transition: var(--transition);
}

.tech-card:hover .tech-icon {
    transform: scale(1.2);
    color: var(--primary-dark);
}

.tech-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* ===================================
   ⭐ Features Section
   =================================== */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, white 0%, var(--gray-100) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 28px;
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    font-size: 32px;
    margin-left: 20px;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.feature-item:hover .feature-icon {
    color: var(--primary-dark);
    transform: scale(1.15);
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 700;
}

.feature-content p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===================================
   📞 Contact Section
   =================================== */
.contact {
    padding: 120px 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(244, 63, 94, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.contact .section-title h2,
.contact .section-title p {
    color: white;
}

.contact .section-title p {
    opacity: 0.8;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.contact-info {
    padding: 60px 50px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.contact-info>p {
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 40px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-detail:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-8px);
}

.contact-detail i {
    font-size: 24px;
    margin-left: 16px;
    color: #fbbf24;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.contact-detail h4 {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-detail p {
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-form {
    padding: 60px 50px;
    background: white;
}

/* ===================================
   📝 Form Styles
   =================================== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: var(--gray-100);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 18px;
    padding-left: 48px;
}

/* ===================================
   🦶 Footer
   =================================== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo span {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
}

.footer-about p {
    opacity: 0.7;
    margin-bottom: 24px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: var(--shadow-glow);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 28px;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    bottom: 0;
    right: 0;
    border-radius: var(--radius-full);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '←';
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.copyright a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ===================================
   📊 Dashboard Stats
   =================================== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--gradient-primary);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 8px;
    font-weight: 900;
}

.stat-card p {
    opacity: 0.9;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Different colors for stat cards */
.stat-card:nth-child(2) {
    background: var(--gradient-secondary);
}

.stat-card:nth-child(3) {
    background: var(--gradient-accent);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ===================================
   📦 Order Styles
   =================================== */
.order-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.order-status {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.order-status.accepted {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.order-status.in_progress {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.order-status.completed {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    color: #047857;
}

.order-status.delivered {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
    color: #3730a3;
}

.order-status.cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ===================================
   ✨ Animation Classes
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in:nth-child(6) {
    transition-delay: 0.6s;
}

/* ===================================
   📱 Responsive Design
   =================================== */

/* Large Screens */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .search-form {
        min-width: 180px;
    }

    .btn-login span,
    .btn-register span,
    .btn-new-order span,
    .btn-logout span {
        display: none;
    }

    .btn-login,
    .btn-register,
    .btn-new-order,
    .btn-logout {
        padding: 12px 16px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile Landscape and Tablet Portrait */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        right: 16px;
        left: 16px;
        bottom: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-xl);
        border-radius: var(--radius-lg);
        border: 1px solid var(--gray-200);
        z-index: 9999;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex;
        animation: mobileMenuSlide 0.3s ease;
    }

    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 14px;
        border-radius: var(--radius);
    }

    .nav-links a:hover {
        background: var(--gray-100);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--gray-100);
        color: var(--primary-color);
        z-index: 1001;
    }

    .nav-actions {
        gap: 8px;
        margin-left: auto;
        /* Push to right (LTR) or left (RTL) */
        margin-right: 10px;
    }

    .search-form {
        display: none;
        /* Hide search bar on mobile to save space, or make it an icon */
    }

    .btn-new-order span,
    .btn-logout span,
    .btn-login span,
    .btn-register span {
        display: none;
        /* Hide text, show only icons */
    }

    .btn-new-order,
    .btn-logout,
    .btn-login,
    .btn-register {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
        border-radius: 50%;
    }

    .hero {
        padding: 160px 0 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services,
    .technologies,
    .features,
    .contact {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a::before {
        display: none;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 12px 0;
    }

    .logo-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .logo-name {
        font-size: 22px;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 15px;
    }

    .service-card,
    .contact-info,
    .contact-form {
        padding: 28px 20px;
    }

    .tech-card {
        width: 130px;
        padding: 20px 16px;
    }

    .stat-card {
        padding: 24px;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 0 16px 0;
    }

    .feature-item::before {
        width: 100%;
        height: 4px;
        transform: scaleX(0);
        transform-origin: center;
    }

    .feature-item:hover {
        transform: translateY(-8px);
    }

    .feature-item:hover::before {
        transform: scaleX(1);
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .logo-text {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .btn-login,
    .btn-register,
    .btn-new-order,
    .btn-logout {
        padding: 10px 12px;
    }
}

/* ===================================
   🎪 Special Effects
   =================================== */

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Hover Lift */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   🖨️ Print Styles
   =================================== */
@media print {

    header,
    footer,
    .floating-icons,
    .cta-button,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

    .hero {
        background: white;
        color: black;
        padding: 40px 0;
    }

    .service-card,
    .tech-card,
    .feature-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}