:root {
    --bg: #0a0e27;
    --surface: #151b3d;
    --surface-hover: #1e2757;
    --text: #e0e7ff;
    --text-secondary: #a5b4fc;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --border: #2d3561;
}

body {
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        var(--bg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text) !important;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 92, 246, 0.03) 2px,
            rgba(139, 92, 246, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
}

header h1 {
    color: var(--accent) !important;
}

.subtitle {
    color: var(--text-secondary) !important;
}

.template-toggle {
    background: rgba(139, 92, 246, 0.2) !important;
    border: 1px solid var(--accent) !important;
    color: var(--text) !important;
}

.template-toggle:hover {
    background: rgba(139, 92, 246, 0.3) !important;
    border-color: var(--accent-hover) !important;
}

.template-menu {
    background: rgba(21, 27, 61, 0.98) !important;
    border: 1px solid var(--accent) !important;
}

.template-menu-header {
    border-bottom: 1px solid var(--accent) !important;
    color: var(--accent) !important;
}

.template-option {
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.template-option:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: var(--accent) !important;
}

.template-option.active {
    background: rgba(139, 92, 246, 0.3) !important;
    border-color: var(--accent) !important;
}

.template-preview {
    border: 1px solid var(--border) !important;
}

footer {
    border-top: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-section {
    width: 100%;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Gradient backgrounds for each category */
.category-section#services,
.category-section[id="services"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.category-section#games,
.category-section[id="games"] {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(251, 146, 60, 0.1) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.category-section#webpages,
.category-section[id="webpages"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Subtle gradient overlay */
.category-section#services::before,
.category-section[id="services"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.category-section#games::before,
.category-section[id="games"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.category-section#webpages::before,
.category-section[id="webpages"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    position: relative;
    z-index: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    transform: translateX(4px);
    border-left-color: var(--accent-hover);
    background: var(--surface-hover);
    box-shadow: -4px 0 20px rgba(139, 92, 246, 0.3);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.service-category {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-url {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.dashboard-preview {
    background: #0a0e27;
    border: 1px solid #2d3561;
    border-left: 4px solid #8b5cf6;
    position: relative;
}

.dashboard-preview::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 8%;
    width: 20%;
    height: 20%;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
}

