* {
  box-sizing: border-box;
}


body{
    background: #1f242d;
}
a{
    text-decoration: none;
    color: #fff;
}
.navbar {
    position: static;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.navbar ul {
    list-style: none;
    display: flex;
    padding: 0;
}
.navbar ul li {
    list-style: none;
    margin-left: 35px;
}
.navbar .logo {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

.navbar ul li a {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.5s ease;
}
.navbar ul li a:hover,
.navbar ul li.active a {
    color: #3498db;
}
.home{
    display: flex;
    gap: 50px;
    align-items: center;
    height: 100vh;
    padding: 60px 9% 0;
    color: #fff;

}

.home-info h2 span{
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px #3498db;
    animation: display-text 12s linear infinite;
    animation-delay: calc(-3s * var(--i));
}
@keyframes display-text {
    25%,100% {
        display: none;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.home-info h1{
    font-size: 55px;
}
.home-info h2{
    font-size: 32px;
    font-family: 'Courier New', Courier, monospace;
    margin-top: -10px;
}
.home-info p{
    font-size: 26px;
    margin-top: 10px 0 25px ;
}
.home-info .btn-sci{
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.btn{
    display: inline-block;
    padding: 10px 30px;
    background-color: #3498db;
    border: 2px solid #3498db;
    border-radius: 8%;
    box-shadow: 0 0 10px #3498db;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    transition: .5s;
}
.btn:hover{
    background-color: transparent;
    color: #3498db;
    box-shadow: none;
}
.home-info .btn-sci .sci {

    margin-left: 20px;
}
.home-info .btn-sci .sci a {
    display: inline-flex;
    background-color: #3498db;
    border-radius: 50%;
    padding: 8px;
    border: 2px solid #3498db;
    font-size: 20px;
    margin: 0 8px;
    transition: 0.5s;

}
.home-info .btn-sci .sci a:hover {
    background-color: transparent;
    color: #1f242d;
    box-shadow: 0 0 10px #3498db;
}
.home-img .img-box{
    width: 20vw;
    height:20vw;
    border-radius: 9%;
    background-color: #3498db;
    padding: 3px;
}
.home-img .img-box .img-items{
    width: 100%;
    position: relative;
    height: 100%;
    border-radius: 9%;
    overflow: hidden;
    background-color: #1f242d;
    display: flex;
    justify-content: center;
    overflow: hidden;

}
.home-img .img-box .img-items img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.education {
  margin-top: 150px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #1f242d;
  color: #3498db;
  padding: 40px;
  line-height: 1.6;
}

section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #3498db;
}

.education p {
  font-size: 18px;
  margin-bottom: 30px;
  color: azure;
}

.hobbies ul {
  list-style-type: square;
  padding-left: 20px;
  margin-bottom: 30px;
  color: azure;
}

.hobbies li {
  font-size: 18px;
  margin-bottom: 8px;
}
section {
  margin-bottom: 50px;
}

.favourites table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #1f242d;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.favourites th,
.favourites td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid #1f242d;
}

.favourites thead {
  background-color: #3498db;
  color: white;
}

.favourites tbody tr:hover {
  background-color: #a2b1cd;
}
.hobbies{
    margin-top: 50px;
    margin-bottom: 30px;
}
.hobby-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hobby-content ul {
  flex: 1;
  min-width: 250px;
}

.hobby-image-box {
  flex: 1;
  max-width: 200px;
  text-align: center;
  transform: translateY(-20px);
}

.hobby-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.hobby-image-box figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}
@media screen and (max-width: 1024px) {
  .home {
    flex-direction: column;
    gap: 30px;
    padding: 40px 5%;
    text-align: center;
  }

  .home-info h1 {
    font-size: 40px;
  }

  .home-info h2 {
    font-size: 26px;
  }

  .home-info p {
    font-size: 20px;
  }

  .home-img .img-box {
    width: 40vw;
    height: 40vw;
  }

  .navbar {
    padding: 20px 5%;
  }

  .navbar ul li {
    margin-left: 20px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 24px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .navbar ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .home-info .btn-sci {
    flex-direction: column;
    gap: 10px;
  }

  .home-info .btn-sci .sci {
    margin-left: 0;
    justify-content: center;
  }

  .home-img .img-box {
    width: 60vw;
    height: 60vw;
  }

  .hobby-content {
    flex-direction: column;
    align-items: center;
  }

  .hobby-image-box {
    max-width: 80%;
  }

  .favourites table,
  .favourites th,
  .favourites td {
    font-size: 14px;
  }

  .education p,
  .hobbies li {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .home-info h1 {
    font-size: 30px;
  }

  .home-info h2 {
    font-size: 20px;
  }

  .home-info p {
    font-size: 16px;
  }

  .btn {
    padding: 6px 20px;
    font-size: 12px;
  }

  .favourites table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .navbar .logo {
    font-size: 24px;
  }

  .navbar ul li a {
    font-size: 16px;
  }

  .home-img .img-box {
    width: 70vw;
    height: 70vw;
  }
}
.projects {
  text-align: center;
  padding: 50px 10%;
  background: inherit;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.project-image {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  margin-top: 10px;
  background-color: #0078ff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.btn:hover {
  background-color: #005fcc;
}
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
