/* Dashboard CSS - Minimalistic Design */

/* CSS Custom Properties for theming - Modern Dashboard Style */
:root {
    --primary-color: #1a1d29;
    --accent-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-light: #64748b;
    --text-dark: #0f172a;
    --text-muted: #94a3b8;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-danger: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Main app container - Grid layout */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--bg-light);
}

/* Sidebar styles */
.sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    min-height: 100vh;
    height: 100%;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 0 2rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.sidebar-header .image.avatar {
    display: block;
    margin: 0 auto 1rem auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.sidebar-header .image.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.sidebar-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Navigation menu */
.nav-menu {
    flex: 1;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    margin: 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.nav-link i {
    margin-right: 1rem;
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Main content area */
.main-content {
    padding: 2rem 3rem;
    background: var(--bg-light);
    min-height: 100vh;
    overflow-y: auto;
}

/* Page system */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page headers */
.page-header {
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Stats grid for dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-icon {
    margin-right: 1.5rem;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: inherit;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Recent activity section */
.recent-activity {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.recent-activity h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.activity-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.activity-icon {
    margin-right: 1rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.activity-content small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.project-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: auto;
    align-self: flex-start;
}

.project-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Resume page */
.resume-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.job {
    margin-bottom: 1.5rem;
}

.job h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.job h4 {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.job p {
    color: var(--text-light);
    line-height: 1.6;
}

.resume-actions {
    margin-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-category h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Blog page */
.blog-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.coming-soon i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.coming-soon h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.coming-soon p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Contact page */
.contact-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced hover effects */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.stat-card:hover::before {
    left: 100%;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-link:focus,
.button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Enhanced project card animations */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(52, 152, 219, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.project-card:hover::after {
    transform: translateX(100%);
}

/* Medium screens */
@media (max-width: 1200px) {
    .main-content {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem 0;
        order: 1;
    }
    
    .sidebar-header {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 0 1rem 1rem 1rem;
    }
    
    .sidebar-header .image.avatar {
        margin: 0 1rem 0 0;
        width: 60px;
        height: 60px;
    }
    
    .nav-menu {
        padding: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1rem;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: none;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-left: none;
    }
    
    .nav-link i {
        margin-right: 0.5rem;
    }
    
    .sidebar-footer {
        padding: 1rem;
        margin-top: 0;
    }
    
    .main-content {
        padding: 1rem;
        order: 2;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}