:root {
    --bg-dark: #0a0a12;
    --bg-secondary: #13131f;
    --bg-tertiary: #1c1c2e;

    --primary-color: #7b2cbf;
    /* Purple */
    --primary-glow: #9d4edd;

    --accent-color: #00f0ff;
    /* Cyan */
    --accent-glow: #00b8cc;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;

    --sidebar-width: 280px;
    --header-height: 60px;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    line-height: 1.6;
}

#app {
    display: flex;
    height: 100%;
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Login Screen */
#login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        linear-gradient(rgba(10, 10, 18, 1), rgba(10, 10, 18, 1));
    position: relative;
    overflow: hidden;
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-dark);
    /* Placeholder for particle effect, handled via complex CSS or JS, kept simple here as gradient mesh */
    opacity: 0.5;
    z-index: 0;
    background:
        linear-gradient(90deg, transparent 95%, rgba(0, 240, 255, 0.05) 96%, transparent 97%),
        linear-gradient(0deg, transparent 95%, rgba(123, 44, 191, 0.05) 96%, transparent 97%);
    background-size: 50px 50px;
}

.login-card {
    background: rgba(19, 19, 31, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s;
    animation: slideUp 0.6s ease-out;
}

.login-header {
    margin-bottom: 2rem;
}

.logo-icon-lg {
    font-size: 4rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px var(--accent-glow));
    margin-bottom: 1rem;
}

.login-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group ion-icon {
    position: absolute;
    right: 15px;
    /* RTL specific */
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 45px 12px 15px;
    /* RTL padding */
    color: #fff;
    font-family: var(--font-body);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(176, 0, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 25%);
}

/* Sidebar */
#sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-left: var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.new-chat-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-bottom: 2rem;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.1);
}

.new-chat-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
    text-shadow: 0 0 8px var(--accent-color);
    transform: translateY(-2px);
}

.history-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 5px;
}

/* History Item Layout */
.history-item {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    /* Space for delete btn */
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-item.active {
    background: rgba(176, 0, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(176, 0, 255, 0.1);
}

/* Delete Button */
.delete-chat-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    /* Larger hit area */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.7;
    /* Always visible but subtle */
}

.delete-chat-btn:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    opacity: 1;
}

.user-profile {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Custom: Typing Dots */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 5px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.avatar {
    width: 42px;
    height: 42px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Area */
#chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
}

.chat-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5, 5, 16, 0.8), transparent);
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    border: var(--glass-border);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.model-selector:hover {
    border-color: var(--text-secondary);
}

#messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 15%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: slideUp 0.3s ease forwards;
    max-width: 100%;
}

.message.outgoing {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--border-radius-md);
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.incoming .message-avatar {
    background: rgba(176, 0, 255, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.outgoing .message-avatar {
    background: var(--bg-tertiary);
    border: 1px solid #333;
    color: var(--text-secondary);
}

.message-content {
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    line-height: 1.6;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 80%;
    position: relative;
}

.incoming .message-content {
    border-top-right-radius: 2px;
    border-left: 2px solid var(--primary-color);
}

.outgoing .message-content {
    background: rgba(0, 240, 255, 0.05);
    border-top-left-radius: 2px;
    color: var(--text-primary);
    border-right: 2px solid var(--accent-color);
    border-color: rgba(0, 240, 255, 0.2);
}

/* Welcome / Start Menu */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.8s ease;
}

.welcome-logo {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    background: rgba(123, 44, 191, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.welcome-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    /* Stack vertically for simpler look */
    align-items: flex-start;
    /* Align left/right based on dir */
    justify-content: center;
    gap: 10px;
    text-align: right;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.welcome-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    /* Cyan */
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-block;
    margin-bottom: 5px;
}

/* ... existing styles ... */

.card-content {
    flex: 1;
}

.card-title {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    font-size: 1rem;
}

.card-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Mobile responsive for grid */
@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
    }
}

/* Input Area */
.input-area {
    padding: 2rem 15%;
    background: linear-gradient(to top, var(--bg-primary) 80%, transparent);
}

.input-wrapper {
    position: relative;
    /* Required for absolute positioned image preview */
    background: var(--bg-secondary);
    border: 1px solid #333;
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem;
    outline: none;
}

#send-btn,
.attach-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-btn {
    color: var(--text-secondary);
}

#send-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    text-shadow: 0 0 8px var(--accent-color);
}

.disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    opacity: 0.6;
}

/* --- Auth & Landing Overrides --- */
#login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(20, 20, 40, 0.8), transparent 90%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.02) 2px, rgba(0, 240, 255, 0.02) 4px);
    /* Scanline effect */
    z-index: 2000;
}

.login-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Tech Accent Line */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.input-group {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-md);
    padding: 0 1rem;
    border: 1px solid #333;
    transition: all 0.3s;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(176, 0, 255, 0.2);
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 1rem 0.5rem;
    outline: none;
    font-family: var(--font-body);
}

.login-btn {
    background: linear-gradient(135deg, #7b2cbf, var(--primary-color));
    color: white;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(176, 0, 255, 0.4);
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Custom: Typing Dots - Additional styles handled in main .typing-dots section */

/* Avatar Pulse (Active AI Feel) */
.message.incoming .message-avatar {
    position: relative;
    overflow: hidden;
}

.message.incoming .message-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(123, 44, 191, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(123, 44, 191, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(123, 44, 191, 0);
    }
}

/* Enhanced Hover Effects */
.history-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(5px);
}

.model-selector:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

/* Smooth Input Focus */
.input-wrapper {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Image Preview Clear Button Hover */
#clear-image:hover {
    background: rgba(255, 68, 68, 0.2) !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

/* --- Modal Styles --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(255, 68, 68, 0.3));
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.modal-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    border: none;
    font-size: 1rem;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

/* --- Hero Section with Background Image --- */
.hero-section {
    min-height: 90vh;
    /* Increased height for better impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    /* Gradient Overlay + Image */
    background: linear-gradient(to bottom, rgba(10, 10, 18, 0.6), rgba(10, 10, 18, 0.9)),
        url('../images/hero-bg.jpg');
    /* Note the ../images path relative to css folder */
    background-size: cover;
    background-position: center 25%;
    /* Adjusted for better framing */
    background-attachment: fixed;
    /* Parallax effect */
    box-shadow: inset 0 -100px 100px rgba(10, 10, 18, 1);
    /* Seamless blend at bottom */
}

/* --- Responsive Design (Mobile) --- */

/* Utility Classes for Responsive Display */
.hidden-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    .hidden-desktop {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    .desktop-only-text {
        display: none;
    }

    /* Layout Adjustments */
    #sidebar {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(100%);
        /* Start Hidden (Right side for RTL) */
        z-index: 1000;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    #sidebar.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    /* Chat Container Full Width */
    #chat-container {
        width: 100%;
        margin-right: 0;
    }

    /* Input Area */
    .input-area {
        padding: 1rem;
    }

    /* Message List */
    #messages-list {
        padding: 1rem 5%;
    }

    .message-content {
        max-width: 90%;
        font-size: 0.95rem;
    }

    /* Header Adjustments */
    .chat-header {
        padding: 1rem;
        gap: 10px;
    }

    .logo-container {
        justify-content: center;
    }

    /* Overlay */
    #sidebar-overlay {
        backdrop-filter: blur(2px);
    }

    /* Login Page Mobile */
    .login-card {
        padding: 2rem;
        margin: 1rem;
        width: 90%;
    }

    .logo-icon-lg {
        font-size: 3rem;
    }

    .login-header h1 {
        font-size: 2rem;
    }
}

/* --- Mobile Menu Styles (Restored) --- */
.mobile-menu-trigger {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-menu {
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.close-menu:hover {
    color: var(--accent-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.mobile-link ion-icon {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(10px);
}

.mobile-link.highlight-link {
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1));
    border-right: 2px solid var(--accent-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-trigger {
        display: block;
    }

    .logo-container {
        margin-right: auto;
    }
}