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

body {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style:normal;
  letter-spacing: 1px;
  padding: 0 96px;
  background-color: #1e1e1e;
}

header {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: right;
}

header ul {
    display: flex;
    list-style: none;
}

header li {
    margin-right: 24px;
}

header a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight:normal;
}

.about-link {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.about-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.about-link:hover::after {
    width: 100%;
    left: 0;
}

.active-link {
    color: #ffffff;
    font-weight: bolder;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
}

#menu-button {
    display: none;
    background-color: #ffffff;
    color: rgb(255, 255, 255);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

#menu-button:focus {
    outline: none;
}

.main-section {
      display: flex;
      justify-content:center;
      align-items: center;
      height: auto;
      gap:24px;
      margin:48px 0;
    }


    .text-area {
      flex: 3;
    }

    .text-area h1 {
      color: #fff;
      font-size: 84px;
      line-height: 1.2;
      margin-bottom: 24px;
    }

    .text-area p {
      color: #b8b8b8;
      font-size: 14px;
      margin-bottom: 24px;
    }

    .scroll-down {
      color: #b8b8b8;
      font-size: 14px;
      opacity: 0.7;
      animation: float 2s ease-in-out infinite;
    }
    
     @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    
    .image-area {
      display: flex;
      justify-content: space-between;
      align-items:center;
      border-radius: 16px;
      background-color: #fff;
      padding: 24px;
      flex-wrap: wrap;
      gap: 24px;
      height: auto;
    }
    
    .image-area .left-image {
      flex: 5;
      min-width: 200px;
      max-width: 100%;
      padding: 0;
    }
    
    .image-area .left-image img {
      width: 100%;
      height: 100%;
      border-radius: 16px;
      object-fit:contain;
    }
    
    .image-area .right-text {
      flex: 5;
      min-width: 250px;
      color: #1e1e1e;
    }
    
    .image-area .right-text h2 {
      font-size: 36px;
      margin-bottom: 12px;
    }
    
    .image-area .right-text p {
      font-size: 14px;
      line-height: 1.6;
      word-break: break-word;
    }
    
  .card-section {
  margin: 48px 0;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #1e1e1e;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.card-time {
  font-size: 12px;
  color: #666;
}

.card hr {
  margin: 12px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.card-list {
  padding-left: 24px;
}

.card-list li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.info-section {
  display: flex;
  gap: 24px;
  margin: 48px 0;
  align-items: stretch;
  flex-wrap: wrap;   
}

.edu-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #ffffff;
  border-left: 4px solid #ffffff;
  padding-left: 12px;
}

.edu-list {
  list-style: none;
  padding-left: 0;
}

.edu-list li {
  margin-bottom: 24px;
}

.edu-list h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #ffffff;
}

.edu-time {
  font-size: 14px;
  color: #b8b8b8;
}

.edu-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  transition: transform 0.3s ease;
}

.edu-image:hover {
  transform: scale(1.01);
}

.skill-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height:100%;              
  align-items: center;
  justify-items: center; 
}

.icon-item {
  background-color: #ffffff;
  width: 30%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}

.icon-item img {
   width: 60%;  
  height: auto;
  transition: transform 0.3s ease;
}

.icon-item:hover {
  transform: scale(1.05);
}

.certificate-section {
  margin: 48px 0;
}

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

.certificate-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #1e1e1e;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
}


.certificate-card .card-header {
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  gap: 4px;         
}

.certificate-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.certificate-card .card-time {
  font-size: 14px;
  color: #666;
}

.certificate-card hr {
  margin: 12px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.certificate-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: 1px  solid #fff;
    background-color: #1e1e1e;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top:hover {
    background-color: #4e4e4e;
}

.back-to-top.show {
    opacity: 1;
}

footer {
    background-color: #1e1e1e;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-top: 2px solid #333;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 36px;
}

.footer-item {
    text-align: center;
}

.footer-item a {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer img {
    width: 40px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

footer a:hover img {
    transform: translateY(-5px);
}

footer p {
    margin: 0;
    font-size: 12px;
    color: #ffffff;
}

.copyright{
  font-size: 8px;
  color: #ffffff;
  text-align: center;
}

@media (max-width: 768px) {
   body {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   } 

    header {
        height: 40px;

    }

    header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 45px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        padding:10px;
        text-align: right;
        transition: max-height 0.5s ease-out;
        overflow: hidden;
        max-height: 0;
        z-index: 10000;
    }
    
    header ul.show {
        display: flex;
        max-height: 300px;
    }
    
    header li {
        display: flex;
        margin: 10px 0;
        padding-left: 15px;
        font-size: 12px;
        text-align: right;
    }

    header li :hover{
        background-color: rgba(100, 100, 100, 0.9);
    }

    .active-link {
        text-align: right;
        width: fit-content;
    }

    #menu-button {
        display: block;
        background-color: rgba(255, 255, 255, 0);
        color: rgb(255, 255, 255);
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        position: relative;
        border-radius: 100px;
    }

    #menu-button .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: rgb(255, 255, 255);
        transition: all 0.3s;
        border-radius: 100px;
    }

    #menu-button.change .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        border-radius: 100px;
    }

    #menu-button.change .bar2 {
        opacity: 0;
        border-radius: 100px;
    }

    #menu-button.change .bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
        border-radius: 100px;
    }
    .main-section {
        width: 100%;
        flex-direction: column;
        padding: 24px 0;
        margin: 24px 0;
    }

    .text-area {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .text-area h1 {
        font-size: 40px;
    }

    .text-area p {
        font-size: 14px;
    }

    .image-area {
      flex-direction: column;
      padding: 0;
      height: auto;
      gap: 0;
    }
  
    .image-area .left-image,
    .image-area .right-text {
      width: 100%;
      padding: 16px;
    }
  
    .image-area .left-image img {
      width: 100%;
      height: auto;
    }
  
    .image-area .right-text h2 {
      font-size: 32px;
      text-align: center;
    }
  
    .image-area .right-text p {
      font-size: 12px;
      line-height: 1.6;
    }

     .card-section {
  margin: 24px 0;
}

  .card {
    padding: 16px;
  }

  .card-header h3 {
    font-size: 16px;
  }

  .card-time {
    font-size: 12px;
  }

  .card-list li {
    font-size: 12px;
    line-height: 1.5;
  }

  .info-section {
    flex-direction: column;
    margin: 24px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .skill-grid {
    gap: 16px;
  }

  .icon-item {
    border-radius: 8px;
  }

  .certificate-section {
  margin: 24px 0;
}
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .back-to-top:hover {
        background-color: #101010;
    }

}

.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #000000, #101010, #000000);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1.5s ease; 
}

#svg {
    height: 300px;
    width: 300px;
    stroke: white;
    fill-opacity: 0;
    stroke-width: 1px;
    stroke-dasharray: 4500;
    animation: draw 3s ease;
}

@keyframes draw {
    0% {
        stroke-dashoffset: 4500;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.name-container {
    height: 30px;
    overflow: hidden;
}

.logo-name {
    color: #fff;
    font-size: 20px;
    letter-spacing: 12px;
    text-transform: uppercase;
    font-weight: bolder;
}

#loading-page, .logo-name {
    transition: none;
}