html {
    scroll-behavior: smooth;
}

:root {
    --dev-green: #39ff14;
    --background-primary: #0a0a0a;
    --background-secondary: #1a1a1a;
    --background-card: #1E1E1E;
    --text-primary: #EAEAEA;
    --text-secondary: #BBBBBB;
    --border-color: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-size: 16px;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6, .section-title, .experience-title {
    font-family: 'Fira Code', monospace;
}

/* Sidebar */
.sidebar {
    background-color: var(--background-secondary);
    border-right: 1px solid var(--border-color);
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.header {
    margin-bottom: 2rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-secondary);
    margin-bottom: 1.5rem; /* Added margin */
}

h1.h3 {
    font-weight: 500;
    font-size: 1.8rem; /* Increased font size */
    color: var(--text-primary);
    margin-top: 0.5rem; /* Reduced margin */
    margin-bottom: 0.5rem; /* Added margin */
}

h2.h5 {
    font-weight: 500;
    font-size: 1.1rem; /* Slightly increased font size */
    color: var(--text-secondary);
    margin-bottom: 1.5rem; /* Adjusted margin */
}

/* Navigation */
.nav {
    margin-bottom: auto;
}

.nav-item {
    margin-bottom: 0.5rem; /* Space between bordered items */
    border: 1px solid var(--border-color); /* Full border around each item */
    border-radius: 5px; /* Rounded corners for the item */
    overflow: hidden; /* To keep the border-radius effective */
}

.nav-link {
    color: var(--text-secondary);
    font-size: 1.15rem; /* Slightly increased font size */
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s, background-color 0.2s;
    /* Removed border-radius, margin, and borders from here */
    display: block; /* Make the link fill the item */
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--border-color);
}

.nav-link.active {
    color: var(--dev-green);
    background-color: #333;
}

/* Footer in sidebar */
.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color); /* Add a separator */
    margin-top: 2rem; /* Add some space above */
}

.company-logo-bg {
    background-color: #ffffff;
    width: 3rem; /* Adjusted for bigger logo */
    height: 3rem; /* Adjusted for bigger logo */
    border-radius: 0; /* Square corners */
    display: flex; /* Use flex to center the image */
    align-items: center;
    justify-content: center;
}

.company-logo {
    height: 2.2rem; /* Even bigger logo */
    width: auto;
}

.company-link {
    text-decoration: none;
    color: var(--text-secondary); /* Default color */
    transition: color 0.2s;
    display: flex; /* Make the link a flex container */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}

.company-link:hover {
    color: var(--dev-green); /* Hover color */
}

.company-link p {
    color: inherit; /* Inherit color from the link */
    font-size: 1.1rem; /* Matched social-text size */
    font-weight: 300; /* Kept default weight */
    margin-top: 0.5rem; /* Space between logo and name */
    margin-bottom: 0; /* Remove default paragraph margin */
    font-family: 'Fira Code', monospace; /* Matched social-text font */
}

.company-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
}




.social-links {
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}

.social-links a {
    color: var(--text-primary); /* Light color, brighter */
    font-size: 1rem; /* Base font size for the whole link */
    margin: 0.4rem 0; /* Vertical margin */
    transition: color 0.2s;
    text-decoration: none;
    display: flex; /* Make links flex for icon and text alignment */
    align-items: center; /* Align icon and text vertically */
}

.social-links a i {
    margin-right: 0.6rem;
    font-size: 2.2rem; /* Even bigger icons */
}

.social-links a:hover {
    color: var(--text-primary); /* New hover color */
}

.social-text {
    font-size: 1.1rem; /* Slightly larger text for balance */
    font-family: 'Fira Code', monospace;
}


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

.section {
    padding-bottom: 1.5rem; /* Further reduced spacing between sections */
}

.section-title {
    font-weight: 500;
    font-size: 3rem; /* Increased font size */
    color: var(--text-primary);
    margin-bottom: 1rem; /* Further reduced margin */
    text-align: left;
}

.about-text {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem; /* Further reduced margin */
}

.experience-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--dev-green);
}

.experience-title {
    font-weight: 500;
    font-size: 1.45rem; /* Increased font size */
    color: var(--text-primary);
    margin-bottom: 0.75rem; /* Reduced margin */
}

.experience-role {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.experience-card ul {
    padding-left: 20px;
    font-weight: 300;
    line-height: 1.6; /* Increased line-height */
}

.skills-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem; /* Reduced padding */
    height: 100%; /* Make cards same height */
    transition: transform 0.2s, border-color 0.2s;
}

.skills-card:hover {
    transform: translateY(-5px);
    border-color: var(--dev-green);
}

.skills-card h4 {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 1.35rem; /* Increased font size */
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skill-badge {
    display: inline-block;
    background-color: #2c2c2c;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    margin: 0.25rem;
    font-size: 0.95rem;
    font-weight: 300;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.skill-badge:hover {
    color: var(--dev-green);
    border-color: var(--dev-green);
    background-color: #3a3a3a; /* Slightly lighter background on hover */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar-sticky {
        position: static;
        height: auto;
        padding: 2rem 1rem;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .main-content {
        padding-top: 1rem;
    }
    .section-title {
        text-align: center;
        font-size: 2.5rem; /* Adjusted for smaller screens */
    }
}

/* Custom width for large screens */
@media (min-width: 992px) {
    .sidebar {
        flex: 0 0 auto;
        width: 20%; /* Custom width for sidebar, slightly wider than 18% */
    }
    .main-content {
        flex: 0 0 auto;
        width: 80%; /* Remaining width for main content */
        margin-left: auto; /* Re-enable default margin for centering/spacing */
    }
}