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

body { 
    font-family: 'Cairo', sans-serif;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00ffff;
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(100px, -100px); }
    50% { transform: translate(-100px, 100px); }
    75% { transform: translate(50px, 50px); }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 1s ease;
}

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

.logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 30px rgba(255, 165, 0, 0.6));
}

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

h1 {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #00ffff 0%, #00ff88 50%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    line-height: 1.3;
}

h1 .small-line {
    font-size: 32px;
    font-weight: 600;
    display: block;
    margin-top: 8px;
}

.subtitle {
    font-size: 20px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.service-card:hover::before {
    top: 100%;
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00ffff;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3),
                inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s infinite;
}

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

.service-card:hover .service-icon {
    animation: spin 0.5s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Neon Button */
.neon-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.btn-cyan {
    color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-cyan:hover {
    background: #00ffff;
    color: #000000;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6),
                inset 0 0 20px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-pink {
    color: #ff00ff;
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.btn-pink:hover {
    background: #ff00ff;
    color: #000000;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.6),
                inset 0 0 20px rgba(255, 0, 255, 0.3);
    transform: scale(1.05);
}

/* Register Section */
.register-section {
    text-align: center;
    margin-top: 100px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #00ff88, #ff00ff, #00ffff);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

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

.register-title {
    font-size: 36px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.register-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.register-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.register-btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    min-width: 200px;
    display: inline-block;
}

.btn-captain {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #667eea;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.btn-captain:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(102, 126, 234, 0.6);
}

.btn-delivery {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: 2px solid #f093fb;
    box-shadow: 0 0 30px rgba(240, 147, 251, 0.4);
}

.btn-delivery:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(240, 147, 251, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h1 .small-line { font-size: 22px; }
    .logo { width: 120px; height: 120px; }
    .subtitle { font-size: 16px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .register-title { font-size: 28px; }
    .register-buttons { flex-direction: column; }
    .register-btn { width: 100%; }
}

/* --- Sidebar Styles --- */

/* Toggle Button (Side Handle) */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(10, 10, 15, 0.9);
    border: 2px solid #ff00ff; /* Changed to Pink */
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #ff00ff; /* Changed to Pink */
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(255, 0, 255, 0.2); /* Pink Shadow */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    width: 50px;
    background: rgba(255, 0, 255, 0.1); /* Pink Hover */
    box-shadow: -5px 0 25px rgba(255, 0, 255, 0.4); /* Pink Glow */
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    right: -200px; /* Hidden by default (adjusted for narrower width) */
    width: 180px; /* Narrower width to match cards */
    height: 100%;
    background: #050505;
    border-left: 2px solid #00ff88;
    box-shadow: -10px 0 50px rgba(0, 255, 136, 0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 15px 10px; /* Reduced padding */
}

.sidebar.active {
    right: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    flex-direction: column-reverse; /* Stack close button above title */
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h3 {
    color: #fff;
    font-size: 18px; /* Smaller font */
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #00ff88, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    align-self: flex-start; /* Align close button to start */
}

.sidebar-close:hover {
    color: #ff00ff;
}

/* Sidebar Content (Centered Stacked Squares) */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Important: Enables smooth momentum scrolling on iOS */
    touch-action: pan-y; /* Improves touch response */
    scrollbar-width: none; /* Firefox: Hide scrollbar */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    gap: 20px; /* Space between cards */
    padding: 20px 0;
}

/* Hide scrollbar for Chrome/Safari */
.sidebar-content::-webkit-scrollbar {
    display: none;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 140px; /* Fixed width for square look */
    height: 140px; /* Fixed height for square look */
    text-align: center;
    padding: 10px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.15);
}

.menu-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-radius: 50%;
    color: #00ffff;
    font-size: 22px;
    margin-bottom: 12px;
    margin-left: 0;
    transition: all 0.3s;
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.menu-item:hover .menu-icon {
    background: linear-gradient(135deg, #00ffff, #00ff88);
    color: #000;
    transform: scale(1.1) rotate(5deg);
}

.menu-text {
    width: 100%;
}

.menu-text h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Hide description */
.menu-text span {
    display: none;
}

/* Sidebar Footer */
.sidebar-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}


/* --- Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
    margin: 15px;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    text-align: right;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-modal {
    color: #aaa;
    float: left; /* Left side for RTL */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #ff00ff;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

.modal-header h2 {
    color: #00ffff;
    font-size: 24px;
    margin: 0;
}

.modal-body {
    color: #eee;
    line-height: 1.8;
    font-size: 16px;
}

.intro-text {
    margin-bottom: 20px;
    font-size: 17px;
}

.intro-text strong {
    color: #00ff88;
}

.feature-box {
    background: rgba(0, 255, 255, 0.05);
    border-right: 4px solid #00ffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.feature-box h3 {
    color: #00ffff;
    font-size: 18px;
    margin-bottom: 10px;
}

.modal-body h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: #00ff88;
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.footer-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
}

/* --- Terms Modal Styles --- */
.terms-body {
    text-align: right;
    padding: 10px;
}

.terms-intro {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 20px;
}

.terms-intro h3 {
    color: #fff;
    margin-bottom: 10px;
}

.status-badge {
    background: rgba(255, 0, 255, 0.2);
    color: #ff00ff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(255, 0, 255, 0.4);
}

.term-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.term-section h4 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 18px;
    border-right: 3px solid #00ffff;
    padding-right: 10px;
}

.term-section p, .term-section ul {
    color: #ddd;
    font-size: 15px;
    line-height: 1.8;
}

.term-section ul {
    list-style-type: none;
    padding-right: 15px;
}

.term-section ul li {
    margin-bottom: 10px;
    position: relative;
}

.term-section ul li::before {
    content: "•";
    color: #00ff88;
    font-weight: bold;
    margin-left: 10px;
}

.warning-box {
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.2);
}

.warning-box h4 {
    color: #ff5555;
    border-color: #ff5555;
}

/* --- Main Footer Styles --- */
.main-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    position: relative;
}

.main-footer p {
    margin: 0;
    letter-spacing: 1px;
}

/* Add a subtle glow effect */
.main-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 10px #00ffff;
}

/* --- Install Modal Styles --- */
.install-modal {
    display: none;
    position: fixed;
    z-index: 3000; /* Highest priority */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.install-modal.active {
    display: flex;
}

.install-content {
    background: #111;
    border: 2px solid #00ffff;
    border-radius: 25px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.install-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.install-header h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 22px;
}

.install-header p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
}

.install-steps {
    margin-bottom: 30px;
    text-align: right;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
}

.step-num {
    background: #00ffff;
    color: #000;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 10px;
    flex-shrink: 0;
}

.step p {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

.close-install-btn {
    background: transparent;
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-install-btn:hover {
    background: #00ffff;
    color: #000;
}
