* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html,body {
  height: 100%;
  scroll-behavior: smooth;
}   
:root {
  --primary-gradient: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  --secondary-color: #00f7ff;
    --primary-color: #fff;
  --text-color: #f0f0f0d3;
  --font-size: 1rem;
  --font-size-larger: 1.3rem;
    --font-weight: 700;
}

body {
  font-family: 'Gilroy', sans-serif;
  background-color: #0a0a0a;
  color: var(--primary-color);
  scroll-snap-type: y mandatory; 
}
section {
  height: 100vh; 
  scroll-snap-align: start; 
}

header {        
  position: fixed;
  top: 0;
  width: 500px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  z-index: 1000;
}
nav{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: rgb(26, 26, 26, 0.5);
  margin-top: 5%;
  backdrop-filter: blur(10px); 
  padding: 20px 30px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  border-radius: 10px;
}
ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-right: 25px;
  font-size: var(--font-size-larger);
}
#hide-icon {
  display: none;
}
ul li{
    font-weight: 500;
    text-decoration: none;
}
ul li a {
    position: relative;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
ul li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
ul li a:hover::after{
    width:100%;
}
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}
.img-container {
  width: 250px;
  height: 250px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0px 20px #00f7ff;
}
.img-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.img-container .icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}
.img-container a {  
    color: var(--primary-color);
    text-decoration: none;
}
.img-container i {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img-container a #btn-cv{   
    width: 220px;
    height: 50px;
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    bottom: 12%;
    background: #01c3c9;
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: var(--font-size-larger);
    outline: none;
    border: none;
    transition: background-color 0.3s ease;
}
.img-container a #btn-cv i {
    font-size: 20px;
}
.img-container a #btn-cv:hover {
    background-color: #039ca1;
    cursor: pointer;
}
#home main article {
    display: flex;
    justify-content: center;
    padding: 100px 40px;
    margin: 5% 0;
}

.about{
    display: flex;
    flex-direction: column;
}
.about p{
    max-width: 500px;
    text-align: justify;
    font-size: var(--font-size);
    line-height: 1.6;
    margin: 20px 50px;
    color: whitesmoke;
}
section h1 {
    margin: 50px 0 0 50px ;
    text-align: left;
    font-size: clamp(30px, 3.5vw, 60px);
    color: var(--secondary-color);
}

/* Projects Section */
#projects {
  padding: 60px 40px;
}
#projects h2 {
  margin-top: 5%;
  text-align: center;
  font-size: xx-large;
}
#projects h2 span {
  color: var(--secondary-color);
  padding: 0 10px;
}
.project-pg1 {
  padding: 20px;
  display: flex;
  justify-content: space-around;
}
.project-card{
  width: 500px;
  height: 550px;
  padding: 20px;
  background-color: #1a1a1a;
  transition: all 0.3s ease-in-out;
}
.project-card:hover {
  transform: translateY(-8px);
  transform: scaleY(1.02);
  box-shadow: 0 0px 10px #1a1a1a;
  background-color: #292828;
} 
.project-card img{
  width: 100%;
  height: 55%;
  object-fit: fill;
}
.project-card h3 {
  margin: 15px 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}
.project-card #description{
  font-size: var(--font-size);
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: justify;
}
.project-card #links {
  font-weight: var(--font-weight);
}
.project-card a {
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.3s ease;
}
.project-card a:hover {
  color: rgb(49, 49, 206);
}

/* certificate section  */
#certificates {
  height: 100dvh;
  padding: 60px 40px;
  margin-top: 60%;
}
.certificate-pg1 a{
  text-decoration: none;
}
#certificates h2 {
  margin-top: 5%;
  text-align: center;
  font-size: xx-large;
}
#certificates h2 span {
  color: var(--secondary-color);
  padding: 0 10px;
}
.certificate-pg1 {
  padding: 20px;
  display: flex;
  justify-content: space-around;
}
.certificate-card{
  width: 500px;
  height: 130px;
  padding: 20px;
  background-color: #1a1a1a;
  transition: all 0.3s ease-in-out;
}
.certificate-card h3 {
  padding: 5px 10px;
  font-size: 1.5rem;
  color: var(--primary-color);
}
.certificate-card p{
  font-size: var(--font-size);
  color: var(--text-color);
   padding: 10px;
  margin-bottom: 20px;
}
.certificate-card:hover {
  transform: translateY(-8px);
  transform: scaleY(1.02);
  box-shadow: 0 0px 10px #1a1a1a;
  background-color: #292828;
} 

/* contact page  */
#contact {
  padding: 16px 40px;
}
#contact h2 {
  margin-top: 5%;
  text-align: center;
  font-size: xx-large;
}
.container-connect {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.container-connect a{
  text-decoration: none;
}
.connect{
  width: 200px;
  height: 80px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1a;
  transition: all 0.3s ease-in-out;
}
.connect:hover {
  transform: translateY(-8px);
  transform: scaleY(1.02);
  box-shadow: 0 0px 10px #1a1a1a;
  background-color: #292828;
  cursor: pointer;
}
.connect i {
  font-size: 2rem;
  color: var(--secondary-color);
}
.connect p {
  padding: 0 15px;
  font-size: 1.6rem;
  color: var(--primary-color);
}

/* form  */
.form-container{
  height: 100dvh;
}
form{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 630px;
  margin: 5% 0;
  padding: 0 30px;
  background-color: #1a1a1a;
}

input{
  width: 550px;
  height: 50px;
  padding: 10px;
  margin: 10px 0px;
  font-size: larger;
  border: none;
  background-color: #3c3c3cc2;
  color: var(--primary-color);
}
label{
  color: var(--text-color);
}
form #inputs{
  display: flex;
  justify-content: space-between;
}
form #labels{
  display: flex;
  justify-content: flex-start;
  gap: 44%;
}
form h2{
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: left !important;
}
#subject{
  width: 100%;
}
textarea{
  width: 100%;
  height: 180px;
  padding: 10px;
  margin: 10px 0px;
  font-size: larger;
  border: none;
  background-color: #3c3c3cc2;
  color: var(--primary-color);
}
input:focus, textarea:focus{
  outline: 2px solid var(--secondary-color);
}
#submit{
    width: 220px;
    height: 50px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #01c3c9;
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: var(--font-size-larger);
    outline: none;
    border: none;
    transition: background-color 0.3s ease;
}
#submit:hover {
    background-color: #039ca1;
    cursor: pointer;
}
.errorEmail{
  position: relative;
  top: -2%;
  left: 52%;
}
#formSubmitted {
  position: relative;
  bottom: 9%;
  left: 60%;
  color: var(--secondary-color);
  font-size: var(--font-size-larger);
}

/* footer  */
footer{
  margin: 30% 0;
  text-align: center;
}
footer p {
  color: var(--text-color);
  font-size: var(--font-size);
} 
footer p span{
  color: var(--secondary-color);
}
