/* --- CSS Custom Properties (Variables) --- */
:root {
    --bg-primary: #0D0D1A; /* Very dark desaturated blue/purple */
    --bg-secondary: #1A1A2E; /* Slightly lighter for cards/sidebar */
    --bg-tertiary: #2A2A40; /* Hover effects or accents */
    --accent-primary: #00F2EA; /* Bright cyan/teal */
    --accent-secondary: #9E00FF; /* Neon purple */
    --text-primary: #E0E0E0; /* Light gray for main text */
    --text-secondary: #A0A0B0; /* Medium gray for secondary text */
    --border-color: #3A3A5E; /* Subtle borders */
    --shadow-color: rgba(0, 242, 234, 0.1); /* Shadow based on accent */

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --sidebar-width: 260px;
    --header-height: 70px;
}

/* --- General Reset & Body Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    /* Optional: subtle texture background */
    /* background-image: url('../images/textures/noise.png'); */ /* Create a subtle noise texture */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* --- Dashboard Layout --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: 5px 0px 15px rgba(0,0,0,0.2);
    /* Glassmorphism effect (optional)
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    */
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header .logo {
    max-width: 100px;
    margin-bottom: 10px;
}

.sidebar-header h1 {
    font-size: 1.8rem;
    color: var(--text-primary); /* Or use an accent */
    letter-spacing: 1px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.sidebar-nav ul li a i {
    margin-right: 12px;
    width: 20px; /* Align icons */
    text-align: center;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li.active a {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateX(5px);
    box-shadow: 0 0 10px var(--shadow-color);
}

.sidebar-footer {
    margin-top: auto; /* Pushes to the bottom */
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.sidebar-footer a {
    color: var(--text-secondary);
}
.sidebar-footer a:hover {
    color: var(--accent-primary);
}

/* --- Main Content Area --- */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.main-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.main-header h2 {
    font-size: 2rem;
}

/* --- Portfolio Section --- */
.portfolio-section h3, .features-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-left: 4px solid var(--accent-secondary);
    padding-left: 10px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 5px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* Subtle border */
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 15px var(--accent-primary);
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Optional: subtle effect on image */
    /* filter: grayscale(50%) contrast(110%); */
    /* transition: filter 0.3s ease; */
}
/* .portfolio-card:hover img {
    filter: grayscale(0%) contrast(100%);
} */

.portfolio-card-content {
    padding: 20px;
}

.portfolio-card-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.portfolio-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-portfolio {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-portfolio:hover {
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* Small external link button next to portfolio items */
.btn-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.06);
    color: var(--accent-primary);
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s;
}
.btn-external:hover {
    background: rgba(0,242,234,0.08);
    color: var(--accent-secondary);
    transform: translateY(-2px);
}


/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.feature-card i {
    color: var(--accent-primary);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-card span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.feature-card:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.feature-card:hover i {
    transform: scale(1.2);
    color: var(--accent-secondary);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        /* For mobile, maybe make nav horizontal or toggleable */
    }
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap; /* Allow wrapping if too many items */
        justify-content: center;
    }
    .sidebar-nav ul li {
        margin: 5px;
    }
    .sidebar-nav ul li a {
        padding: 10px;
    }

    .main-content {
        padding: 20px;
    }
    .main-header h2 {
        font-size: 1.6rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .sidebar-header h1 {
        font-size: 1.5rem;
    }
    .main-header h2 {
        font-size: 1.4rem;
    }
    .feature-card {
        padding: 15px;
    }
    .feature-card span {
        font-size: 1rem;
    }
}