/* 1. Define Theme Variables at the top of your CSS */

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
}


/* 2. Light Theme Overrides */

[data-theme="light"] {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
}


/* 3. Apply variables to your existing sections */

body,
.services-section {
    background-color: var(--bg-color) !important;
    color: var(--text-color);
    transition: background 0.5s ease, color 0.3s ease;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}


/* 4. UI Controls Styling (Fixed Bottom Right) */

.ui-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}


/* Hide Back to Top initially */

#back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.control-btn:hover {
    transform: scale(1.1);
    background: #fff;
}


/* Mobile Adjustments */

@media screen and (max-width: 768px) {
    .ui-controls {
        bottom: 20px;
        right: 20px;
    }
    .control-btn {
        width: 45px;
        height: 45px;
    }
}