/****************************
**** DESKTOP STYLE **********
****************************/

/* BODY OF THE WEBSITE */

body {
  background-color: #121313;
  color: #E8C7A5;
  font-family: "Manrope", "Raleway", sans-serif;
  margin: 0px;
  padding: 0px;
}
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#E8C7A5;
  color:#121313;
  padding:8px 12px;
  border-radius:6px;
  z-index:10000;
}
.skip-link:focus{ 
  left:10px; 
}

h2{
  font-size: 30px;
  text-align: center;
  margin: 90px 0 80px;
  font-weight: 800;
  color:#E8C7A5;
}

/* NAVIGATION (logo + buttons + social media pictures)_*/

#Allog {
  height: 15px;
  width: auto;
}
#nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 60px;
  background: rgba(7, 37, 47, 0.666);
  position: fixed;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  top: 0; 
  left: 0;
  right: 0;
  z-index: 9999;
}
.BlackPictures{
  filter: invert(1);
}

#nav li {
  flex: 0 0 auto;
}

#nav li:nth-child(2) {
  margin-left: auto;
}

#nav li:nth-child(8) {
  margin-left: auto;
}

#nav a {
  display: block;
  padding: 0px 10px;
  text-decoration: none;
  color: #E8C7A5;
  white-space: nowrap;
  margin: 15px 10px;
}

#nav a:hover {
  transform: scale(1.1);
  transition: 0.3s ease;
  filter: drop-shadow(0 0 8px #E8C7A5);

}

.BlackPictures:hover {
  transition: 0.3s ease;
  filter: invert(1) drop-shadow(0 0 8px #E8C7A5);
  transform: scale(1.1);
}


/* HERO SECTION (Background + buttons) */

.Buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: auto;
  margin-bottom: 25%;
  margin-right: 5%;
}
.Button{
  text-decoration: none;
  padding: 10px 50px;
  border-radius: 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}
.Button:hover {
transform: scale(1.1);
transition: 0.3s ease;
filter: drop-shadow(0 0 8px #E8C7A5);
}

.offer{
  background: linear-gradient(180deg, #D8B57A, #B8894B);
  color: #121313;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.learn{
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(232,199,165,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

#background1 {
  width: 100%;
  min-height: 600px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("https://raw.githubusercontent.com/MrPerfeccct/Git-tutorial/main/christopher-gower-m_HRfLhgABo-unsplash.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: white;
  text-align: center;
  font-style: inherit;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}
.ButtonsHeader {
  font-size: 45px;
}

/*  ABOUT ME SECTION */

#AboutBack {
  width: min(90%, 1300px);
  margin: 0 auto; 
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(7, 37, 47, 0.28),
    rgba(7, 37, 47, 0.16)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#About, 
#AboutLine2,
#AboutMe {
  margin: 0;
}

#AboutMe {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  text-align: center;
}
#AboutMe2 {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  margin: 22px 0 0;
  text-align: center;
}

.Pavel-text,
.Anton-text,
.Ekaterina-text,
.Evgeny-text,
.about-text {
  background: rgba(7, 37, 47, 0.55);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(232, 199, 165, 0.10);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.45), 
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex: 1 1 250px;
  
}

.Pasha {
  margin-top: 60px;
}

#Anton-photo,
#about-photo,
#Pavel-photo,
#Ekaterina-photo,
#Evgeny-photo {
  width: 150px;
  height: auto;
  border-radius: 100px;
  box-shadow: 0px 0px 10px #E8C7A5;
}

/* EXPERIENCE SECTION */

#ExpSection {
  background-image: url(https://raw.githubusercontent.com/MrPerfeccct/Git-tutorial/main/new%20back.png);
  min-height: 750px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start; 
  
}

.ExpHeaders {
  font-size: 22px;
  font-weight: 800;
  color:#E8C7A5;
  text-align: left;
}

.ExpMe{
width: 70%;
margin-right: 20px;
}

.MainInfo{
  padding-top: 1%;
  margin-right: 20px;
  width: 70%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  grid-auto-flow: row;
  grid-template-rows: repeat(3, auto);
}
/* PROJECT SECTION */

#ProjectsSection {
  background: linear-gradient(
    180deg,
    rgba(7, 37, 47, 0.28),  
    rgba(7, 37, 47, 0.16)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px;
  border-radius: 18px;
  width: min(90%, 1300px);
  margin: 0 auto;
  margin-bottom: 90px;
}

#ProjectsSection ul{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#ProjectsSection li{
  background: rgba(7, 37, 47, 0.55);
  border: 1px solid rgba(232, 199, 165, 0.14);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#ProjectsSection li:hover{
  transform: translateY(-4px);
  border-color: rgba(232, 199, 165, 0.35);
  box-shadow:
    0 26px 70px rgba(0,0,0,0.50),
    0 0 0 3px rgba(216, 181, 122, 0.12);
}

#ProjectsSection li a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  width: 100%;
}



/* PROJECTS SECTION */

#ProjectsSection {
  width: min(90%, 1300px);
  margin: 0 auto;
}

#ProjectsSection ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

#ProjectsSection li {
  background: rgba(7, 37, 47, 0.55);
  border: 1px solid rgba(232, 199, 165, 0.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    0 18px 45px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: 0.3s ease;
}

#ProjectsSection li:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 15px rgba(232, 199, 165, 0.25),
    0 18px 45px rgba(0,0,0,0.45);
}

#ProjectsSection a {
  color: #E8C7A5;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

#ProjectsSection a:hover {
  filter: drop-shadow(0 0 8px #E8C7A5);
}
/* SKILLS SECTION */

#skills {
  display: flex;
  flex-direction: column;
  width: min(90%, 1300px);
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(7, 37, 47, 0.28),  
    rgba(7, 37, 47, 0.16)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex: 1 auto;
}

#skills > h2 {
  background-color: #121313;
  width: 100%;
  margin: 0;
  padding-bottom: 80px;
}

#skills > ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
  gap: 20px;
  padding: 22px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

#skills > ul > li {
  background: rgba(7, 37, 47, 0.55);
  border: 1px solid rgba(232, 199, 165, 0.10);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.45), 
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  text-align: center;
  min-height: 70px; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  flex-direction: column;
  font-size: 25px;
  gap: 12px;
}
.skill-icon{
  font-size: 120px;
  color: #E8C7A5;
  line-height: 1;
}

/* SOCIALS SECTION */

#Socials {
  background-image:
  linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
  url("https://raw.githubusercontent.com/MrPerfeccct/Git-tutorial/main/NewBack.png");
  height: 750px;
  background-position: center;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 200px min-content;
  align-content: end;
  justify-items: center;
  font-size: 60px;
} 

#JustHead {
  grid-row: 1;
  grid-column: 1 / -1;
  width: 70%;
  text-align: center;
  justify-self: start;

}

.ContInfo{
  grid-row: 2;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  justify-self: start;
  width: 60%;
  margin: 40px;
}

.SocialMedia {
  text-decoration: none;
  background-color: #E8C7A5;
  color: white;
  padding: 5px 25px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 5px -5px 5px #d2863583;
}

.SocialMedia:hover {
  transform: scale(1.1);
  transition: 0.3s ease;
  filter: drop-shadow(0 0 8px #E8C7A5);
}
/* LEAVE A MESSAGE SECTION */

#backForm {
  background-image: url("https://raw.githubusercontent.com/MrPerfeccct/Git-tutorial/main/Back_for_form_x3.png");
  background-position: left;
  background-size: cover;
  min-height: 750px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 60px;
  box-sizing: border-box;
}

#leave_message {
  background: rgba(7, 37, 47, 0.038);
  border: 1px solid rgba(232, 199, 165, 0.10);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.45), 
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);  
  border-radius: 10px;
  width: max(40%, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.form-header {
  background: linear-gradient(
    180deg,
    rgba(7, 37, 47, 0.22),
    rgba(7, 37, 47, 0.08)
  );
  border-bottom: 1px solid rgba(232, 199, 165, 0.12);
  height: 120px;
  display: flex;
  width: 100%;
  color: #E8C7A5;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 20px;
  justify-content: center;
  align-items: center;  
}

.form-body{
  width: 100%;
  padding: 22px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full{
  grid-column: 1 / -1;
}

.form-body label{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 199, 165, 0.85);
}

.form-body input,
.form-body textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;

  background: rgba(7, 37, 47, 0.45);
  border: 1px solid rgba(232, 199, 165, 0.18);
  color: #E8C7A5;

  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 24px rgba(0,0,0,0.25);
}

.form-body textarea{
  resize: vertical;
  min-height: 140px;
}

.form-body input::placeholder,
.form-body textarea::placeholder{
  color: rgba(232, 199, 165, 0.45);
}

.form-body input:focus,
.form-body textarea:focus{
  border-color: rgba(216, 181, 122, 0.7);
  box-shadow:
    0 0 0 3px rgba(216, 181, 122, 0.18),
    0 10px 24px rgba(0,0,0,0.25);
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.submit-btn{
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  background: linear-gradient(180deg, #D8B57A, #B8894B);
  color: #121313;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.submit-btn:hover{
  transform: scale(1.05);
  transition: 0.3s ease;
  filter: drop-shadow(0 0 8px #E8C7A5);
}

#messages {
  width: min(90%, 1300px);
  margin: 40px auto 80px;
}

#messages ul {
  list-style: none;
  padding: 0;
  margin: 0; 
  display: grid;
  gap: 14px;
}

#messages li{
  background: rgba(7, 37, 47, 0.55);
  border: 1px solid rgba(232, 199, 165, 0.10);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 14px;
  align-items: center

}

#messages li a:hover{
  text-decoration: underline;
}

#messages li span{
  color: rgba(232, 199, 165, 0.85);
  line-height: 1.4; 
}

#messages li button{
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(232,199,165,0.30);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  width: max(10%, 80px);
  justify-self: end;
}

#messages li button:hover{
  transform: scale(1.1);
  transition: 0.3s ease;
  filter: drop-shadow(0 0 8px #E8C7A5);
}

#messages li span,
#messages li a{
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* FOOTER SECTION */

footer {
  text-align: center;
  font-size: 0.85rem;
  color: #e8c7a574;
  padding: 20px 0px;
}

/****************************
**** MOBILE STYLE **********
****************************/

  @media(max-width: 500px) {
#nav {
    padding: 0 0px;
  }

#nav li { 
    display: none;
  }

#nav li:nth-child(1),
#nav li:nth-child(8),
#nav li:nth-child(9),
#nav li:nth-child(10){
    display: flex;
  }

.ButtonsHeader {
  font-size: 35px;
}
.Buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 65%;
  margin-left: 5%;
  margin-right: 5%;
}
.Button {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  text-align:center;
  padding: 14px 0;
  box-sizing: border-box;
}

#AboutMe {
  flex-direction: column;
}
#AboutMe2 {
  flex-direction: column;
}
#ExpSection {
  backdrop-filter: blur(10px);
  background-image: url(https://raw.githubusercontent.com/MrPerfeccct/Git-tutorial/main/new%20back.png);
  background-position: left;
  background-size: cover;
  min-height: 750px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; 
  font-size: 16px;
  
}

.ExpHeaders {
  font-size: 20px;  
  text-align: left;
}

.ExpMe{
width: 90%;
margin-right: 5px;
}

.MainInfo{
  margin-right: 5px;
  width: 90%;
  gap: 5px;
}
#Socials {
  max-height: 750px;
  background-position: 80% center;
  grid-template-rows: 200px min-content;
  justify-items: center;
  font-size: 50px;
} 

#backForm {
  background-position: 30% center;
  padding: 20px;
  justify-content: center;
  
}

#JustHead {
  width: 90%;
  justify-self: center;
}

.ContInfo{
  width: 90%;
  justify-content: center;
  margin: 0 0 15px 16px;
  gap: 10px;
}

.SocialMedia {
  padding: 1px 3px;
}
.form-header {
  text-align: center; 
}
.form-body{
    grid-template-columns: 1fr;
  }
.actions{
    justify-content: center;
  }
  }

/****************************
**** TABLET STYLE **********
****************************/

@media (min-width: 501px) and (max-width: 1000px) {

#nav li { 
  display: none;
}

#nav li:nth-child(1),
#nav li:nth-child(2),
#nav li:nth-child(3),
#nav li:nth-child(4),
#nav li:nth-child(5),
#nav li:nth-child(6){
    display: flex;
  }

.ButtonsHeader {
  font-size: 45px;
  margin-top: 10%;
}

.Buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 35%;
  justify-content: center;
  margin: 10% 10% 0 10%;
}

.about-text,
.Pavel-text,
.Anton-text,
.Ekaterina-text,
.Evgeny-text {
  flex: 1 1 0;
}

#ExpSection {
  background-size: cover;
  min-height: 750px;
  background-repeat: no-repeat;
  width: 100%;
  align-items: flex-end;
  font-size: 15px;
}

.ExpMe{
width: 65%;
margin-right: 5%;
margin-top: 3%;
}

.MainInfo{
  margin-right: 5%;
  width: 65%;
  gap: 10px;
}

.ExpHeaders {
  font-size: 20px;  
  text-align: left;
  margin-top: -8px;
}
#Socials {
  max-height: 750px;
  background-position: 80% center;
  grid-template-rows: 200px min-content;
  font-size: 60px;
} 
#backForm {
  background-position: 30% center;
}

.ContInfo{
  width: 90%;
  justify-content: flex-start;
  margin: 0 0 15px 15px;
  gap: 20px;
}

.SocialMedia {
  padding: 5px 25px;
}

}

/****************************
**** SMALL LAPTOP STYLE **********
****************************/

@media (min-width: 1001px) and (max-width: 1700px) {

  .ExpHeaders {
  font-size: 22px;  
  margin-top: 11px;
}
}

/****************************
**** BIG SCREENS STYLE **********
****************************/

@media (min-width: 1701px) and (max-width: 4000px) {
#nav {
  font-size: 30px;
}
h2{ 
  font-size: 50px;
}
#Allog {
  height: 30px;
  width: auto;
}
.ButtonsHeader {
  font-size: 120px;
  min-height: 500px;
  padding-top: 5%;
}
.Buttons {
  font-size: 40px;
  display: flex;
  gap: 50px;
  margin-bottom: 40%;
  margin-left: 20%;
  margin-right: 20%;
}
.Button {
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  text-align:center;
  padding: 30px 200px;
  font-size: 40px;
  box-sizing: border-box;
}

.about-text,
.Pavel-text,
.Anton-text,
.Ekaterina-text,
.Evgeny-text {
  font-size: 30px;
}

#ExpSection {
  background-image: url(https://raw.githubusercontent.com/MrPerfeccct/Git-tutorial/main/new%20back.png);
  background-position: left;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 1200px;
  align-items: flex-end;
  justify-content: flex-start; 
  font-size: 30px;
}

.ExpHeaders {
  font-size: 50px;  
  text-align: left;
  margin-top: 25px;

}

.ExpMe{
width: 80%;
margin-right: 2%;
}


.MainInfo{
  width: 80%;
  margin-right: 2%;
  gap: 25px;
}

#Socials {
  min-height: 1200px;
  background-repeat: no-repeat;
  background-size: cover;
} 
#backForm {
  min-height: 1200px;
  background-repeat: no-repeat;
  background-size: cover;
}

#JustHead {
  font-size: 80px;
  width: 60%;
}

.SocialMedia {
  padding: 10px 80px;
}

}
