/* Custom Properties for easy theme changes */
:root {
    --primary-color: #ff0055; /* Be Musix Accent Color (Magenta/Pink) */
    --secondary-color: #00e0ff; /* Secondary Accent (Cyan) */
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-light: #ffffff;
    --text-faded: #a0a0a0;
    --font-family: 'Poppins', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* For particle background */
}

/* Particle Background Setup */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Below the content */
    opacity: 0.2; /* Subtle effect */
}

.container {
    position: relative;
    z-index: 10; /* Above the particles */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Styling --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-bg); /* Subtle separator */
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Optional: Round logo */
    margin-right: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5); /* Lighting effect on logo */
}

.logo-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.main-nav a {
    color: var(--text-faded);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.8); /* Glow on hover */
}

/* --- Main Content: Tools Section --- */
.tools-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    letter-spacing: 1px;
    /* Gradient Text Effect */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tool Card Design - Unique & Professional */
.tool-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--card-shadow);
    /* Animation & Lighting Effect Setup */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.tool-card:hover::before {
    opacity: 1; /* Subtle light tracking effect */
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02); /* 3D lift effect */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-color, 0.4);
    border: 1px solid var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.tool-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.8);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content p {
    color: var(--text-faded);
    font-size: 0.95rem;
}

/* Specific Card Styling (to highlight important tools) */
.promo-card { border-left: 5px solid var(--primary-color); }
.analytics-card { border-left: 5px solid var(--secondary-color); }

/* --- Footer Styling --- */
.main-footer {
    padding: 20px 0;
    border-top: 1px solid var(--card-bg);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-faded);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-faded);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.separator {
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }
    .main-nav {
        margin-top: 15px;
    }
    .main-nav a {
        margin: 0 10px;
    }
    .section-title {
        font-size: 2rem;
    }
}