/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    border : 0;
}

/* CSS Variables for Theming */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #5a9bff;
    --accent-hover: #4285f4;
    --border: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --sidebar-width: 350px;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-image: url(../img/side-font.jpg);
    background-size: cover;
    background-position: center;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 2rem 0;
}

.sidebar-header {
    text-align: center;
    padding: 0 3rem 3rem;
}

.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #9b59b6);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

.sidebar-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.sidebar-header p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.nav-menu a:hover {
    background: var(--bg-primary);
    transform: translateX(5px);
}

.nav-menu a.active {
    background: var(--accent);
    color: white;
}

.sidebar-footer {
    padding: 0 2rem;
    margin-top: 2rem;
}

.theme-toggle {
    width: 100%;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.page {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p.lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.15) rotate(10deg);
    background: var(--accent-hover);
    color: white;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow);
}

.card-img-top {
    height: 200px;
    background: linear-gradient(135deg, var(--accent), #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
}

.card-text {
    color: var(--text-secondary);
}

.card-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Badges/Tags */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Resume Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
}

.timeline-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--text-secondary);
}

/* Page Headers */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }
}

/* Dark theme for Bootstrap components */

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-header {
    border-bottom-color: var(--border);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner-border {
    color: var(--accent);
}