@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{

background:#c4d6b5;
color:#343a3f;

}


/* HEADER */

.header{

position:fixed;
top:0;
width:100%;
padding:20px 10px;
background:#6f7f6b;
z-index:100;

}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* on recentre */
}


.menu-toggle {
  position: absolute;
  right: 20px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: #343a3f;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}


/* PAGE STRUCTURE */

.home{

display:flex;
justify-content:center;

padding-top:140px;
padding-bottom:100px;

}


/* CENTRAL COLUMN */

.center-column{

background:#263a37;

width:900px;
max-width:90%;

padding:70px;

border-radius:20px;

display:flex;
flex-direction:column;
align-items:center;

gap:35px;

text-align:center;

color:white;

box-shadow:0 15px 40px rgba(0,0,0,0.25);

}


/* TITLES */

.home-title h1{

font-size:52px;
font-weight:800;
color:white;

}

.home-title h3{

font-size:30px;
font-weight:400;
color:#c4d6b5;

}


/* PROFILE PHOTO */

.home-photo{

width:200px;
height:200px;

border-radius:50%;

object-fit:cover;

border:4px solid #c4d6b5;

box-shadow:0 8px 20px rgba(0,0,0,0.3);

}




/* TEXT */

.home-text{

max-width:650px;
line-height:1.6;

display:flex;
flex-direction:column;
gap:15px;

font-size:16px;

}


/* BUTTONS */

.btn-box{

display:flex;
gap:15px;
margin-top:10px;

}

.btn-box a{

background:#c4d6b5;
color:#263a37;

padding:12px 25px;

border-radius:8px;

font-weight:600;

text-decoration:none;

transition:0.3s;

}

.btn-box a:hover{

transform:translateY(-2px);
background:white;

}


/* PROJECTS */

.home-projects{

margin-top:40px;

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:25px;

width:100%;

}

.home-projects img{

width:100%;

border-radius:16px;

box-shadow:0 10px 25px rgba(0,0,0,0.3);

transition:0.3s;

}

.home-projects img:hover{

transform:scale(1.05);

}


/* SOCIAL ICONS */

.home-sci{

margin-top:25px;

display:flex;
gap:15px;

}

.home-sci a{

width:40px;
height:40px;

display:flex;
align-items:center;
justify-content:center;

border-radius:50%;

border:2px solid #c4d6b5;   

color:#c4d6b5;

transition:0.3s;

}

.home-sci a:hover{

background:#c4d6b5;
color:#263a37;

}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.home-projects a img {
  cursor: pointer;
  transition: 0.3s;
}

.home-projects a:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}


/* RESPONSIVE */

@media(max-width:768px){

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #6f7f6b;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px 0;
    text-align: center;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .center-column{
    padding:40px 25px;
  }

  .home-title h1{
    font-size:34px;
  }

  .home-title h3{
    font-size:22px;
  }

  .home-text{
    font-size:14px;
  }

  .btn-box{
    flex-direction:column;
    width:100%;
  }

  .btn-box a{
    width:100%;
  }

  .home-projects{
    grid-template-columns:1fr;
  }

}