/* Creating custom CSS with Semsar brand colors and animations */
:root {
    /* Semsar Brand Colors */
    --primary-color: #047573;
    --secondary-color: #fffbf5;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --gray-dark: #919191;
    --gray-medium: #b0b0b0;
    --gray-light: #eaeaea;
    --danger-color: #d85a5a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --whatsapp-color: #25D366;
}



* {
    font-family: "Cairo", sans-serif;
}

/* Custom Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #05a8a6;
    border-color: #05a8a6;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Bootstrap Component Enhancements */
.btn {
    font-family: "Lato", sans-serif;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-lg {
    padding: 12px 32px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
    border-radius: 10px;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #05a8a6 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    color: var(--white);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-element-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 251, 245, 0.3);
    bottom: 10%;
    right: 5%;
    animation-delay: 1s;
}

.bg-element-3 {
    width: 500px;
    height: 500px;
    background: rgba(7, 212, 209, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
}

.hero-badge {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.text-gradient {
    background: linear-gradient(135deg,
            var(--secondary-color),
            var(--white),
            var(--secondary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(7, 212, 209, 0.25);
}

/* Floating Dots Animation */
.floating-dots {
    position: relative;
    height: 50px;
}

.floating-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: bounce 2s ease-in-out infinite;
}

.dot-1 {
    background: var(--primary-color);
    left: 25%;
    animation-delay: 0s;
}

.dot-2 {
    background: var(--secondary-color);
    right: 33%;
    animation-delay: 0.3s;
}

.dot-3 {
    background: var(--tertiary-color);
    right: 25%;
    animation-delay: 0.7s;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(7, 212, 209, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-card:hover .category-icon {
    background: rgba(7, 212, 209, 0.2);
    transform: rotate(6deg);
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(7, 212, 209, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg,
            rgba(7, 212, 209, 0.1),
            rgba(255, 251, 245, 0.3));
    border: 1px solid rgba(7, 212, 209, 0.2);
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced Form Controls */
.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-family: "Lato", sans-serif;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(7, 212, 209, 0.15);
    background-color: white;
}

/* Enhanced Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(7, 212, 209, 0.1);
    color: var(--primary-color) !important;
}

/* Enhanced badge and alert components */
.badge {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.alert {
    border: none;
    border-radius: 12px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #721c24;
}

/* Enhanced dropdown and modal components */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(7, 212, 209, 0.1);
    color: var(--primary-color);
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(7, 212, 209, 0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Enhanced progress and pagination components */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: rgba(7, 212, 209, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color));
    border-radius: 10px;
}

.pagination .page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: rgba(7, 212, 209, 0.1);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Enhanced table and list group components */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table thead th {
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--secondary-color));
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(7, 212, 209, 0.05);
}

.list-group {
    border-radius: 12px;
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(7, 212, 209, 0.05);
    padding-left: 1.5rem;
}

/* Enhanced utility classes for Semsar branding */
.text-gradient-primary {
    background: linear-gradient(135deg,
            var(--primary-color),
            #05a8a6);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
    background-clip: text !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg,
            var(--primary-color),
            #05a8a6) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg,
            rgba(7, 212, 209, 0.1),
            rgba(255, 251, 245, 0.3)) !important;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
}

.shadow-primary {
    box-shadow: 0 8px 25px rgba(7, 212, 209, 0.2) !important;
}

.shadow-secondary {
    box-shadow: 0 8px 25px rgba(255, 251, 245, 0.3) !important;
}

/* Enhanced responsive design improvements */
@media (max-width: 576px) {
    .btn-lg {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .display-3 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Enhanced accessibility improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced loading and skeleton states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }

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

/* Print styles for better document printing */
@media print {

    .navbar,
    .btn,
    .floating-dots,
    .bg-element {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .text-primary {
        color: #000 !important;
    }

    .bg-primary {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
}

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

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

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
}

@keyframes bounce {

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

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

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

.text-lg-start {
    text-align: start !important;
}

.img-con {
    position: relative;
    align-items: end;
    display: flex;
}

.hero-img {
    max-height: 500px;
    margin-right: auto;
}

.hero-img-2 {
    position: absolute;
    max-height: 500px;
    right: -20px;
    scale: 1.1;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .floating-dot {
    left: auto;
    right: 25%;
}

[dir="rtl"] .dot-1 {
    right: 25%;
    left: auto;
}

[dir="rtl"] .dot-2 {
    left: 33%;
    right: auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    line-height: 1;
}

/* RTL Support for WhatsApp Button */
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* Benefit Cards (Why Choose Section) */
.benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #05a8a6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(7, 212, 209, 0.2);
}

.benefit-card:hover::after {
    transform: scaleX(1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(7, 212, 209, 0.1), rgba(7, 212, 209, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, rgba(7, 212, 209, 0.2), rgba(7, 212, 209, 0.3));
    transform: scale(1.1) rotate(5deg);
}

.benefit-card:hover .benefit-icon i {
    transform: scale(1.1);
}

/* Step Cards (How It Works Section) */
.step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #05a8a6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(7, 212, 209, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 20px rgba(7, 212, 209, 0.4);
}

/* Register Sections */
.register-illustration i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

/* Statistics Section */
.stat-item {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Background Gradient Utilities */
.bg-gradient-light {
    background: linear-gradient(135deg, rgba(7, 212, 209, 0.05), rgba(255, 251, 245, 0.2)) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #05a8a6) !important;
}

/* Animations for new sections */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

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

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .benefit-icon {
        width: 60px;
        height: 60px;
    }

    .benefit-icon i {
        font-size: 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .register-illustration i {
        font-size: 7rem !important;
    }
}

@media (max-width: 576px) {
    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .register-illustration i {
        font-size: 5rem !important;
    }
}
