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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: #1a1a1a;
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Dashboard Header */
header {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ddd;
}

/* Dashboard Sidebar */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    min-height: calc(100vh - 100px);
}

.sidebar {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.sidebar h3 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    text-decoration: none;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.sidebar-menu a.active {
    background: #1a1a1a;
    color: white;
}

/* Main Dashboard Content */
.main-content {
    padding-bottom: 2rem;
}

/* KPI Cards Section */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1a1a1a;
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kpi-title {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-icon {
    font-size: 1.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.kpi-change {
    font-size: 0.85rem;
    color: #666;
}

.kpi-change.positive {
    color: #28a745;
}

.kpi-change.negative {
    color: #dc3545;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f5;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.filter-btn:hover {
    background: #f5f5f5;
}

.filter-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Project Cards as Dashboard Widgets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-widget {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.project-widget:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.project-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.project-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.project-metrics {
    padding: 1.5rem;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.project-body {
    padding: 1.5rem;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-badge {
    background: #1a1a1a;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid #1a1a1a;
    background: white;
    color: #1a1a1a;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #1a1a1a;
    color: white;
}

.action-btn.primary {
    background: #1a1a1a;
    color: white;
}

.action-btn.primary:hover {
    background: #333;
}

/* Skills Dashboard */
.skills-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.skill-widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon-large {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    flex-shrink: 0;
}

.skill-widget h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
}

.skill-level {
    color: #666;
    font-size: 0.9rem;
}

.skill-items {
    list-style: none;
}

.skill-items li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-items li:last-child {
    border-bottom: none;
}

.skill-items li::before {
    content: "▸";
    color: #1a1a1a;
    font-weight: bold;
}

/* About Dashboard Card */
.about-dashboard {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #1a1a1a, #666666);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: #666;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.about-content-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-content-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.about-content-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Education & Certifications Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.education-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    flex-shrink: 0;
}

.education-content h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.education-institution {
    color: #666;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-location {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.education-year {
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1rem;
}

/* Contact Dashboard */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-info h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: #666;
    word-break: break-word;
}

.contact-info a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #666;
    text-decoration: underline;
}

.contact-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: #1a1a1a;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .about-dashboard {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: relative;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .kpi-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive (below 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .sidebar {
        display: none;
    }

    .kpi-section {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        min-width: 60px;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-status {
        align-self: flex-start;
    }

    .skills-dashboard {
        grid-template-columns: 1fr;
    }

    .about-dashboard {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-section {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .project-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

/* Extra Small Mobile (below 480px) */
@media (max-width: 480px) {
    .kpi-card {
        padding: 1rem;
    }

    .kpi-value {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .project-header h3 {
        font-size: 1.1rem;
    }

    .metric-value {
        font-size: 1.1rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .skill-icon-large {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}