@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* font */
    --primary-font-family: "Roboto", sans-serif;;
    
    /* color */
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --third-color: #4751f6;
}


body {
    margin: 0px;
    font-family: var(--primary-font-family);
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0px;
}

.container {
    display: flex;
    justify-content: center;
}

.inner-container {
    width: calc(100vw - 40px);
    max-width: 1200px;
    padding: 20px;
}

nav {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px;
    background: var(--primary-color);
    box-shadow: 0px 4px 4px rgba(29,140,242,0.08);
}

nav > div {
    width: 100vw;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav > div > div {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: grey;
    transition: 0.3s;
}

nav a:hover {
    color: var(--third-color);
}

.btn-blue {
    text-decoration: none;
    display: block;
    height: fit-content;
    font-weight: bold;
    color: var(--primary-color);
    background: var(--third-color);
    border: 2px solid var(--third-color);
    border-radius: 10px;
    padding: 10px 15px;
    transition: 0.3s;
}

.btn-blue:hover {
    color: var(--third-color);
    background: var(--primary-color);
}

#main .inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap-reverse;
    padding-bottom: 0px;
}

#main .left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 3;
    align-items: flex-start
}

#main .right {
    flex: 2;
    width: 100%;
    max-width: 400px;
}

.dots-bg {
  position: relative;
  background: #ffffff; /* base color */
}

.dots-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,0)),
    radial-gradient(circle, rgba(0, 0, 0, 0.5) 2px, transparent 1px);

  background-size: 100% 100%, 40px 40px;
  background-repeat: no-repeat, repeat;

  pointer-events: none; /* important */
  z-index: 0;
}

/* ensure content stays above */
.dots-bg > * {
  position: relative;
  z-index: 1;
}

.flying-dots-bg {
  background-color: #ffffff;
  /*background-image: radial-gradient(rgb(0, 0, 0) 1px, transparent 1px);*/
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 2px, transparent 1px);
  background-size: 40px 40px;

  /* The magic: call the animation */
  animation: moveBackground 2s linear infinite;
}

@keyframes moveBackground {
  from {
    /* Starting position */
    background-position: 0 0;
  }
  to {
    /* Moving 100% of the grid size creates a seamless loop */
    background-position: 40px 80px;
  }
}

#skill {
    color: var(--primary-color);
    background-color: var(--third-color);
}
#skill .inner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;;
    padding: 20px;
    gap: 30px;
}

#experience .inner-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
}
#experience .left, #experience .right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}
#experience .card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}
#experience .card:hover {
    border: 2px solid var(--third-color);
    transform: scale(1.05);
}
#experience .card > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#experience .card > div .year, #experience .card .description {
    color: grey;
}
#experience .card > div .year {
    text-align: right;
}
#experience .card .company {
    color: var(--third-color);
}






#certificate {
    color: white;
    background: var(--third-color);
}

#certificate .list {
    display: flex;
    justify-content: center;;
    gap: 15px;
    flex-wrap: wrap;
}

#certificate img {
    width: 285px;
    aspect-ratio: 3/2;
    border-radius: 10px;
}






#project .inner-container > h1 {
    text-align: center;
    color: var(--third-color);
}
#project .card-list {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#project .card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    
}
#project .card img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3/2;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}
#project .card:hover img {
    border: 2px solid var(--third-color);
    transform: scale(1.05);
}
#project .card h5 {
    color: grey;
}





#contact {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    background: var(--third-color);
}

footer {
    padding: 20px;
    text-align: center;
}


form > div {
    display: flex;
    flex-direction: column;
}

form input, form select, form textarea {
    font-family: var(--primary-font-family);
    font-size: 14px;
    padding: 7px;
    border-radius: 5px;
    border: 1px solid black;
    width: fit-content;
}










.bg01 {
   background: 
   linear-gradient(to right, rgba(71, 85, 105, 0.15) 1px, transparent 1px) 0% 0% / 40px 40px, 
   linear-gradient(rgba(71, 85, 105, 0.15) 1px, transparent 1px) 0% 0% / 40px 40px, 
   radial-gradient(circle at 50% 60%, rgba(236, 72, 153, 0.15) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 70%) 0% 0% / 100% 100% white;
}

.bg02 {
    background: 
    linear-gradient(90deg, rgba(19, 117, 197, 0.25) 1px, transparent 0px) 0% 0% / 40px 40px, 
    linear-gradient(rgba(19, 117, 197, 0.25) 1px, transparent 0px) 0% 0% / 40px 40px, 
    repeating-linear-gradient(45deg, rgba(19, 117, 197, 0.2) 0px, rgba(19, 117, 197, 0.2) 2px, transparent 2px, transparent 6px) 0% 0% / 40px 40px rgb(255, 255, 255);
}