/* ========================================
   Global Styles
   ======================================== */

:root {
    --primary-cyan: #06b6d4;
    --primary-teal: #14b8a6;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
}

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

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    overflow-x: hidden;
}

/* ========================================
   Navbar
   ======================================== */

.glass-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-cyan) !important;
}

/* ========================================
   Buttons
   ======================================== */

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    border: none;
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.badge-custom {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sparkle {
    display: inline-block;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.fw-black {
    font-weight: 900;
}

.device-container {
    position: relative;
    animation: float-device 6s ease-in-out infinite;
}

@keyframes float-device {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.device-img {
    width: 60%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(6, 182, 212, 0.4));
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-indicator .fa-chevron-down {
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========================================
   Sections
   ======================================== */

section {
    position: relative;
    z-index: 1;
}

.bg-dark-gradient {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.badge {
    font-size: 0.9rem;
    padding: 8px 20px;
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
}

/* ========================================
   Cards
   ======================================== */

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

/* ========================================
   Locations Section
   ======================================== */

.location-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2);
}

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

.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.location-icon svg {
    stroke: white;
}

.location-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.location-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   Technology Section
   ======================================== */

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2);
}

.tech-number {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.alert-success-custom {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    color: #fff;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.step-content {
    flex: 1;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.feature-badge i {
    font-size: 1.5rem;
}

.security-reasons {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
}

.reason-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.reason-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.no-need-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
}

.no-need-item i {
    font-size: 1.25rem;
}

/* ========================================
   Downloads Section
   ======================================== */

.download-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
}

.download-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.download-icon svg {
    stroke: white;
}

.download-preview {
    display: none;
}

@media (min-width: 768px) {
    .download-preview {
        display: block;
        opacity: 0.3;
    }
}

.download-card .btn-gradient {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.download-card .btn-gradient:hover {
    transform: translateX(-5px);
}

/* ========================================
   Accordion (FAQ)
   ======================================== */

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px !important;
    margin-bottom: 15px;
}

.accordion-button {
    background: transparent;
    color: white;
    font-weight: 600;
    border: none;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    color: rgba(255, 255, 255, 0.95);
    padding: 20px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-cyan) !important;
}

.nawa-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.nawa-icon:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }
    
    .device-img {
        width: 80%;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 2rem !important;
    }
}

/* ========================================
   Utilities
   ======================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-muted {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Bold headings - make them bright white */
.fw-bold {
    color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Font Awesome Icons Styling */
.fas, .far, .fab {
    transition: all 0.3s ease;
}

.nav-link .fas {
    color: #fff;
}

.nav-link:hover .fas {
    color: var(--primary-cyan);
    transform: scale(1.1);
}

/* ========================================
   Registration Modal
   ======================================== */

.register-modal {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    color: #fff;
}

.register-modal .modal-header {
    padding: 1.5rem;
}

.register-modal .modal-body {
    padding: 1.5rem;
}

.register-modal .modal-footer {
    padding: 1.5rem;
}

.register-modal .btn-close-white {
    filter: brightness(0) invert(1);
}

.alert-info-custom {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 10px;
    color: #fff;
    padding: 1rem;
}

.alert-warning-custom {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    color: #fff;
    padding: 1rem;
    font-size: 0.9rem;
}

.branch-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 15px;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
