body, html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Applies to all sections */
section {         
  display: flex;              
  align-items: center;
  justify-content: center;
  scroll-margin-top: 80px;    
}

.page-tag{
    flex: auto;
    color: rgb(57, 207, 122);
    font-size: 24px;
}

.title-second{
    flex: auto;
    color: white;
    font-size: 50px;
}

/* Home section styling */
.home {
  background-color: rgb(59, 84, 13);
  padding: 50px;
}

.flex-container {
  display: flex;
}

.left-text{
    padding: 50px;
}

#full-name {
  flex: auto;
  color: aliceblue;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 100px;
}

#work-title{
    flex: auto;
    color: aliceblue;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 30px;
}

.icon {
    flex: auto;
    width:24px; 
    padding: 40px;
}

.socials {
    display: flex;            /* activate flexbox */
    justify-content: left;  /* center icons horizontally */
    gap: 40px;                /* space between icons */
    margin-top: 20px;         /* optional spacing from content */
}

#display-picture{
    flex: auto;
    width: 150px;
}

/*------------------ Resume section--------------------- */

#resume{
    display: flex;  
    flex-direction: column;
    justify-content: center;
    background-color: rgb(18, 17, 15);
    padding: 50px;
}


#profile-text{
    flex: auto;
    color: rgb(136, 129, 121);
    height: 150px;
}

/* below the title, intro and tag */

#skill-profile{
    display: flex;
    align-items: flex-start;
    gap: 50px;
    justify-content: space-between; /* puts space between the blocks */
}

#skill-section{
    flex: auto;
}

#profile-section{
    flex: auto;
}

.subtext{
  color: rgb(136, 129, 121);
}

.subtitle{
  color: white;
  font-size: 35px;
}

.skilltext{
  color: rgb(136, 129, 121);
  font-size: 20px;
}

/*-----------------------------experience section ----------------*/
#experience{
    display: flex;
    flex-direction: column;
    height: 600px;
}

#experience .title-second{
    color: #161616;
}
.left{
    width: 150px;
    padding: 20px;
}
.right{
    width: 300px;
    padding: 20px;
}

#job-container {
  display: grid;
  grid-template-columns: 1fr 2px 2fr; /* left | divider | right */
  gap: 20px; /* horizontal spacing */
  align-items: start;
}

.job-title, .company {
  padding: 10px 0;
}
/* ---------------projects--------------- */

#projects{
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.project-content {
  padding: 15px;
}

.project-title {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.project-description {
  font-size: 0.95rem;
  color: #555;
  margin: 10px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; 
  margin-top: 2rem;
  width: 100%;
  max-width: 1200px; 
}


/* CONTACT---------------------------------------------------------------------- */

.title-third{
    flex: auto;
    color: black;
    font-size: 50px;
}

#contact{
    display: flex;  
    flex-direction: column;
    justify-content: center;
    background-color: rgb(18, 17, 15);
    padding: 50px;
    height: 500px;
    gap:5px;
}

#contact-bar{
    display: flex;  
    gap: 50px;
    padding-top: 100px;
    margin-top: 0;  
}

.contact-cat{
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: auto;
  align-items: center;
  width: 200px;       
  text-align: center; 
  margin: 0;   
  line-height: 1.2;
  gap: 6px;

}

.contact-title{
    flex: auto;
    color: rgb(57, 207, 122);
    font-size: 25px;
}

.contact-text{
    color: rgb(136, 129, 121);
    font-size: 16px;
    text-decoration: none;
}

.contact-images{
  flex: auto;
  width: 80px;
  height: 80px;
  object-fit: contain; 
}

/*footer-------------------------------------------------------------------------*/
footer {
  display: flex;
  background-color: #161616;
  color: white;
  text-align: center;
  position: relative; 
  bottom: 0;
  width: 100%;
  height: 80px;
  justify-content: center;
  align-items: center;
}

.footer-text{
  flex: auto;
  color: rgb(136, 129, 121);
  text-decoration: none; /* remove underline */
}

a {
  text-decoration: none;
}





