/* Variables CSS */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header-placeholder {
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

/* Layout */
.main-layout {
    /* display: grid;  */
    /* grid-template-columns: 250px 1fr 250px;  */
    gap: 2rem;
    margin-bottom: 3rem;
}

.sidebar {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar-text {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sidebar-services {
    margin-bottom: 1.5rem;
}

.service-item {
    margin-bottom: 0.5rem;
    cursor: default;
}

.main-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-2);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Accordion */
.software-accordion {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-accordion {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-accordion:hover {
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.category-header:hover {
    background: var(--bg-accent);
}

.category-header.active {
    background: var(--bg-accent);
    border-bottom-color: var(--border-color);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-sm);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-toggle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.category-toggle.rotated {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-secondary);
}

.category-content.active {
    max-height: 3000px;
}

.category-inner {
    padding: 2rem;
}

/* Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.software-group {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.software-group-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.software-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.software-link {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.software-link:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.software-link i {
    font-size: 0.75rem;
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e5f5 100%);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.services-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.services-content {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Navigation Links */
.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.nav-link {
    padding: 0.75rem 1rem;
    background: var(--bg-accent);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(4px);
}

.nav-link i {
    font-size: 1rem;
}

/* Footer */
.footer-placeholder {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-content.active .category-inner {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .category-icon {
        margin-right: 0;
    }
}