/* -------- Base Layout -------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: white;
}


.container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* -------- Top Navbar -------- */
.sidebar {
    width: 100%;
    background: #1a1a1a;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

.sidebar {
    justify-content: space-between; 
}

.sidebar h1 {
    font-size: 1.2rem;
    color: #bbb;
    margin: 0;
    white-space: nowrap;
    order: -1; /* Add this to force it to the left */
}

.sidebar ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}

.sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: white;
}

/* -------- Main Content -------- */
main {
    padding: 30px;
}

/* ---------Profile picture------- */
.profile-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* space between photo and name */
  margin-bottom: 20px;
}

.profile-photo {
    width: 100px;       
    height: 100px;    
    border-radius: 50%;
    border: 1px solid #c5ecc1; 
    object-fit: cover;  
    box-shadow: 0px 0px 5px  #10f12a;   
}

/* -------- Project Scroll Section -------- */
.projects-scroll {
    display: flex;
    flex-direction: column;
    gap: 30px; /* space between the two horizontal rows */
}

.projects-row {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    justify-content: left; /* Add this line */
}

.projects-row::-webkit-scrollbar {
    height: 6px;
}
.projects-row::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* -------- Project Cards -------- */
.project-card {
    flex: 0 0 250px;
    aspect-ratio: 1 / 1;        /* makes them perfect square */
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    box-shadow: 0px 0px 5px  #10f12a;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.project-content {
    padding: 10px;
}

.project-content h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #facc15;
}

.project-content p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0; /* FIXED: Added margin reset */
}

/* -------- Other sections -------- */

.contact p a{
    padding: 40px;
    color: #ffffff;
    font-size: large;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.about h2, .contact h2 {
    font-size: 2em;
    color: #bbb;
}

html {
    scroll-behavior: smooth;
}