html {
  scroll-behavior: smooth;
}

body {
    padding-top: 160px;
    font-family: inter;
    padding-left: 15%;
    padding-right: 15%;
    background-image: url("assets/bg.png");
    background-color: black;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: white;
}


.explore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;              
    width: fit-content;    
    margin: 140px auto 0;    
    background-color: #4e637d;
    color: white;            
    padding: 12px 14px;      
    border-radius: 100px;
    font-size: 14px;
    font-family: inter;
    transition: transform 0.2s ease;
    text-decoration: none;
    border-top: 1px solid #8099ba;
    border-bottom: 1px solid #8099ba;
}
.explore-btn:hover {
    transform: scale(1.1);  
    box-shadow: 0px 5px 20px #2c2d2e;
}
@media (max-width: 767px) {
  /* For the mobile phones */
  body {
    padding-left: 4%;
    padding-right: 4%;
    padding-top: 4%;
    background-image: url("assets/bg-mobile.png");
  }
  .explore-btn {
    margin: 80px auto 0;
  }
}
.name-title {
    display: flex;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally (optional) */
    font-family: 'JetBrains Mono';
    font-size: 40px;
    font-weight: bold;
    color: #fff;
}
#first-title {
    margin-top: 50px;
}
#second-title {
    margin-top: -22px;
}
.hero-p {
    display: flex;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally (optional) */    
    text-align: center;
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
    font-family: 'Inter';
    color: #ffffff80;
    margin-top: 15px;
}

nav {
    margin-top: -165px;
    display: flex;
    justify-content: center;
    align-items: center;
    float: none;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    background-color: #2d2d2d94;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid #bfbfbf34;
    border-radius: 50px;
    border-bottom: 1px solid #bfbfbf34;
    box-shadow: inset 0 0 25px rgb(38 41 44 / 95%);
    z-index: 9999;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 20px;
    margin: 20px;
}

.nav-list li{
    display: inline-block;   
}


.nav-list-btn {
    text-decoration: none;
    font-size: 16px;
    color: rgb(255, 255, 255);
}

.mobile-burger {
    display: none;
}

.burger-btn {
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  display: none;
}


@media (max-width: 767px) {
  /* For the mobile phones */
  .nav-list {
    display: none;
  } 
  .burger-btn {
    display: block;
  }
}

.menu-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1111118c; 
  z-index: 9999;
  backdrop-filter: blur(50px);  
  -webkit-backdrop-filter: blur(50px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-overlay.open {
  display: flex; 
}

.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 16px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 30px; 
  text-align: center;
}

.menu-links a {
  color: #fff;
  text-decoration: none;
  font-size: 32px; 
  font-weight: bold;
}

.menu-links a:hover {
  color: #ccc; 
}

.section-title {
    font-size: 25px;
    margin-top: 65px;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono';
    font-weight: 700;
}

.card {
    border-radius: 25px;
    background-color: #2d2d2d94;  
    border-top: 1px solid #bfbfbf34;
    border-bottom: 1px solid #bfbfbf34;  
    transition: transform 0.2s ease;
}

.card-description {
    color: #ffffffa8;
}

.card:hover {
    transform: scale(1.02);  
    box-shadow: 0px 5px 20px #2c2d2e9c;
}

.card-content {
    padding: 20px;
    gap: 10px;
    display: grid;
}

.card-title {
    font-weight: 700;
    font-size: 18px;
}

.card-skills {
    color: #92b1db;
}

.cards-skills span {
    font-weight: 700;
}

.cards-container {
    gap: 10px;
    display: grid;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
  /* For the mobile phones */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

img[src="assets/figma.webp"] {
    width: 35px;
}


.card-title,
.card-date,
.card-description,
.card-skills {
    margin: 0;
}

.skill {
    border-radius: 25px;
    background-color: #2d2d2d94;    
    border-top: 1px solid #bfbfbf34;
    border-bottom: 1px solid #bfbfbf34;
    transition: transform 0.2s ease;
    padding: 20px;
    height: 105px;
    gap: 7px;
    display: grid;
}
.skill-icon {
    width: 50px;
}

.skill-level {
    color: #ffffffa8;
}
.skill:hover {
    transform: scale(1.02);  
    box-shadow: 0px 5px 20px #2c2d2e9c;
}

.span-title {
    color:#92b1db;
}

footer {
    background-color: #2d2d2d94;
    padding: 20px;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 65px;
    margin-left: -22%;
    margin-right: -22%;
    margin-bottom: -5%;
}

@media (max-width: 767px) {
  /* For the mobile phones */
    footer {
        margin-left: -7%;
        margin-right: -7%;
    }
}

.footer-p {
    margin: 5px
}

#contact-form {
    display: grid;
    gap: 10px;
    margin-top: 40px;
}
#contact-form input {
    border-radius: 25px;
    background-color: #2d2d2d94;
    border-top: 1px solid #bfbfbf34;
    border-bottom: 1px solid #bfbfbf34;
    transition: transform 0.2s ease;
    padding: 11px;
    color: white;
    border-right: 0;
    border-left: 0;
    width: 100%;
    box-sizing: border-box; 
}

#contact-form textarea {
    border-radius: 25px;
    background-color: #2d2d2d94;
    border-top: 1px solid #bfbfbf34;
    border-bottom: 1px solid #bfbfbf34;
    transition: transform 0.2s ease;
    padding: 11px;
    color: white;
    resize: none;
    border-right: 0;
    border-left: 0;
    width: 100%;
    box-sizing: border-box; 
}

form button {
    background-color: #4e637d;
    color: white;
    padding: 12px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-family: inter;
    transition: transform 0.2s ease;
    text-decoration: none;
    border-top: 1px solid #8099ba;
    border-bottom: 1px solid #8099ba;
    border-right: 0;
    border-left: 0;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

form button:hover {
    transform: scale(1.04);  
    box-shadow: 0px 5px 20px #2c2d2e;   
}

.name-email {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.name-email-content {
    display: grid;
    gap: 8px;
    min-width: 0; 
}

@media (max-width: 767px) {
    .name-email {
        grid-template-columns: 1fr;
    }
}

.dark-bg {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background-color: #00000061;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.confirmation-popup {
    padding: 20px;
    border-radius: 25px;
    background-color: #2d2d2d;
    border-top: 1px solid #bfbfbf34;
    border-bottom: 1px solid #bfbfbf34;
    color: white;
    font-family: Inter, sans-serif;
    text-align: center;
    min-width: 300px;
    transition: transform 0.2s ease;
    margin: 4%;
}

.confirmation-popup h1 {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.confirmation-popup p {
    color: #ffffffa8;
    margin: 10px 0 20px;
}

.confirmation-popup button {
    background-color: #4e637d;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border: 0;
    border-top: 1px solid #8099ba;
    border-bottom: 1px solid #8099ba;
    transition: transform 0.2s ease;
}

.confirmation-popup button:hover {
    transform: scale(1.04);  
    box-shadow: 0px 5px 20px #2c2d2e;   
}

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.socials div {
    border-radius: 25px;
    background-color: #2d2d2d94;
    border-top: 1px solid #bfbfbf34;
    border-bottom: 1px solid #bfbfbf34;
    transition: transform 0.2s ease;
    display: flex;
    padding-right: 30px;
    padding-left: 30px;
    align-items: center;
    gap: 10px;
}
.socials-btn a {
    text-decoration: none;
    color: white;
}

.socials div:hover {
    transform: scale(1.04);  
    box-shadow: 0px 5px 20px #2c2d2e9c;    
}

.or {
    display: flex;
    flex-direction: row;
    font-size: 16px;
}
        
.or:before, .or:after {
    content: "";
    flex: 1 1;
    border-bottom: 2px solid #496386;
    margin-right: 0;
    margin-left: 0;
    margin-top: auto;
    margin-bottom: auto;
}



.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card */
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 25px;
    background-color: #2d2d2d;
    border-top: 1px solid #bfbfbf34;
    border-bottom: 1px solid #bfbfbf34;
    color: white;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: scale(1.02);  
    box-shadow: 0px 5px 20px #2c2d2e9c;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    height: auto;
}

.project-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    flex: 1;
}

.project-body h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.project-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffffa8;
    flex: 1; 
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    color: #ffffffcc;
    background-color: #ffffff14;
}

.project-link {
    align-self: flex-start;
    padding: 12px 20px;
    border-radius: 100px;
    background-color: #4e637d;
    color: white;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #8099ba;
    border-bottom: 1px solid #8099ba;
    transition: transform 0.2s ease;
}

.project-link:hover {
    transform: scale(1.04);
    box-shadow: 0px 5px 20px #2c2d2e;   
}    
