* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e0033 0%, #3d2c58 100%) fixed;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
}


.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: start;
}

header {
    background: rgba(35, 25, 66, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #f0f0f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #d1d1d1;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 14px;
    text-transform: uppercase;
}
.logo span span { color: #00c6ff; }
.nav-menu a:hover {
    color: #667eea;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #f0f0f0;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.wheel-container:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e0033 0%, #3d2c58 100%) fixed;
    padding: 20px;
}

.wheel-container:fullscreen .wheel-wrapper {
    width: 80vmin;
    height: 80vmin;
}
.wheel-bottom-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 11; /* Above wheel, below center */
}
.wheel-bottom-controls .icon-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.wheel-bottom-controls .icon-btn:hover {
    background: #fff;
}
.wheel-bottom-controls .icon-btn.active {
    background-color: #e6f7ff;
    border-color: #667eea;
}
.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 20px 0;
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    /* The idle animation will be applied here */
    overflow: hidden; 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}
.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: background-color 0.3s;
}
.wheel-center.spinning {
    background-color: #555;
}

.wheel-pointer { 
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px; 
    height: 40px;
    background-color: #8A2BE2; /* Fallback color */
    z-index: 5;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transition: background-color 0.3s ease;
}

.spin-button {
    background: linear-gradient(45deg, #8A2BE2, #4682B4);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.spin-button:active {
    transform: translateY(0);
}

.spin-button:disabled, .spin-button.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.controls {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.controls-header h2 {
    margin-bottom: 0;
}

.controls-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
    color: #e0e0e0;
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.icon-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.icon-btn.active {
    background-color: rgba(0, 198, 255, 0.3);
    border-color: #00c6ff;
}

#panelToggleBtn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 101; /* Above header */
    background: #667eea;
    color: white;
    border: none;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
#panelToggleBtn:hover { transform: translateY(-50%) scale(1.1); }
.controls h2 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

.control-group input:not([type="checkbox"]), .control-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.control-group input:focus, .control-group select:focus {
    outline: none;
    border-color: #00c6ff;
}

.input-group-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group-row .add-segment-btn {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
    padding: 10px 15px;
}
.input-group-row .add-segment-btn:hover {
    background: #40c057;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.segments-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    background: rgba(0,0,0,0.1);
}

.segment-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 5px;
    transition: background-color 0.2s, box-shadow 0.2s;
    gap: 8px;
}
.segment-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.segment-item input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

.segment-item .segment-image-preview {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #e9ecef;
}

.segment-item input[type="number"] {
    padding: 4px;
    height: 28px;
    font-size: 12px;
    border-radius: 4px;
}

.segment-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.segment-text {
    flex: 1;
    font-size: 14px;
    color: #f0f0f0;
}

.remove-btn {
    background: #e6194B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    flex-shrink: 0;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}
.remove-btn:hover {
    background-color: #c7103e;
    transform: scale(1.1);
}

.duplicate-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}
.duplicate-btn:hover {
    background-color: #888;
    transform: scale(1.1);
}

.segment-item .drag-handle {
    cursor: grab;
    color: #ccc;
    padding: 0 5px;
    touch-action: none; /* for mobile */
}

.segment-item.dragging {
    opacity: 0.4;
    background: #3d2c58;
}

body.dragging-active {
    cursor: grabbing !important;
}

.btn-small {
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 0;
    width: auto;
}
.btn-danger {
    background-color: #e6194B;
    color: white;
}
.btn-danger:hover { background-color: #e6194B; }

.add-segment-btn {
    background: #00b894;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%; /* Used on other pages */
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 10px; /* Used on other pages */
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.setting-row + input[type="range"] {
    width: 100%;
    margin-top: 5px;
}
.setting-note {
    font-size: 12px;
    color: #b0b0b0;
    width: 100%;
    margin-top: -10px;
    margin-bottom: 15px;
    padding-left: 5px;
}
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.setting-row label {
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 0;
}

.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 28px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #00b894; }
input:checked + .slider:before { transform: translateX(22px); }

.palette-group {
    margin-bottom: 20px;
}
.palette-group:last-child {
    margin-bottom: 0;
}
.palette-group label {
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}
.color-palette {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    transition: border-color 0.2s, background-color 0.2s;
}
.color-palette:hover { border-color: #667eea; background-color: #f8f9fa; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }

/* Save/Load Styles */
.save-wheel-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.save-wheel-form input {
    flex-grow: 1;
}
.save-wheel-form button {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
    padding: 10px 15px;
}
.saved-wheels-list {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
}
.saved-wheel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
}
.saved-wheel-item span {
    font-weight: bold;
}
.saved-wheel-item .actions button {
    margin-left: 8px;
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.saved-wheel-item .load-btn { background: #00b894; color: white; }
.saved-wheel-item .delete-btn { background: #e6194B; color: white; }
/* Ensure control group in tabs has correct styling */
.share-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.share-controls input {
    flex-grow: 1;
}

/* Full Width Settings Accordion */
.full-width-settings-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 40px auto; 
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.settings-toggle-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #f0f0f0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}
.settings-toggle-header:hover { background-color: rgba(255, 255, 255, 0.05); }
.settings-toggle-header .toggle-icon {
    width: 20px;
    height: 20px;
    fill: #00c6ff;
    transition: transform 0.3s ease;
}
.full-width-settings-container.active .toggle-icon {
    transform: rotate(180deg);
}
.settings-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 25px;
}
.full-width-settings-container.active .settings-content-wrapper {
    max-height: 1000px; /* Adjust if content is taller */
    padding: 25px;
}

/* Vertical Tabs */
.wheel-settings-tabs {
    display: flex;
    gap: 30px;
}
.vertical-tabs-nav {
    flex: 0 0 200px;
    border-right: 1px solid #dee2e6;
    padding-right: 20px;
}
.tab-btn {
    width: 100%;
    padding: 15px;
    text-align: left;
    border-radius: 8px;
    margin-bottom: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    color: #d1d1d1;
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;
}
.tab-btn:hover { background-color: rgba(255, 255, 255, 0.05); }
.tab-btn.active { background-color: rgba(0, 198, 255, 0.2); color: #fff; border-left: 3px solid #00c6ff; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: rgba(35, 25, 66, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    max-width: 450px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s;
}
.modal-overlay.visible .modal-content {
    transform: scale(1);
}
.modal-close { 
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    font-size: 28px;
    cursor: pointer;
    color: #aaa; line-height: 1;
}
.modal-close:hover { color: #ff00ff; }
.modal-body h2 { font-size: 2.8rem; margin-bottom: 10px; font-weight: bold; word-wrap: break-word; }
.modal-body p { color: #d1d1d1; margin-bottom: 25px; font-size: 1rem; }
.modal-actions button { width: auto; padding: 12px 25px; margin-top: 0; }

/* History Modal Specifics */
#historyModal .modal-content {
    max-width: 500px;
}
#historyModal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    padding: 0 5px;
}
#historyModal .modal-body {
    text-align: left;
}
#historyModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#historyModal .modal-header h2 {
    color: #f0f0f0;
}
.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #f0f0f0;
}
.history-item .history-image-preview { width: 24px; height: 24px; object-fit: cover; border-radius: 4px; background-color: #e9ecef; }
.history-item .history-color { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }

.tab-pane .control-group {
    margin-bottom: 0;
}
.tab-pane .control-group label {
    display: block;
}

.sound-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sound-toggle {
    background: #495057;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.sound-toggle.active {
    background: #51cf66;
}

.text-container {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f0f0f0;
}
.text-container h1, .text-container h2 {
    text-align: center;
    margin-bottom: 20px;
}
.text-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.text-container img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.accordion-container {
    margin-top: 40px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #f0f0f0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    fill: #00c6ff;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: transparent;
}

.accordion-content-inner {
    padding: 0 25px 20px;
    line-height: 1.6;
}

.text-container ul {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.text-container li {
    position: relative;
    padding: 15px 20px 15px 45px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00c6ff;
}

.text-container li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 14px;
    font-size: 20px;
    font-weight: bold;
    color: #00c6ff;
}
.features-section {
    margin-top: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #00c6ff;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card ul, .feature-card ol {
    padding-left: 20px;
    margin: 15px 0 0 0;
    list-style: revert;
}

.feature-card li {
    position: static;
    padding: 0;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    line-height: 1.5;
}

.feature-card li::before {
    content: none;
}
footer {
    background: rgba(0,0,0,0.3);
    color: #f1f1f1;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #f1f1f1;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: #00c6ff;
}
.copyright {
    font-size: 12px;
    color: #aaa;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .wheel-container {
        padding: 20px;
    }
    
    .controls {
        padding: 20px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .burger {
        display: block;
    }

    .burger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .burger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 67px; /* Adjust based on header height */
        gap: 0;
        flex-direction: column;
        background-color: rgba(35, 25, 66, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}