html {
  scroll-behavior: smooth;
}

body {
  background-color: #f9f7ef; 
}

/*-----Declare font-------*/
@font-face {
    font-family: 'Migosta';
    src: url('font/migosta.otf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adelle Sans Bold';
    src: url('font/fonnts.com-Adelle_Sans_Bold.otf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adelle SemiBold';
    src: url('font/fonnts.com-Adelle_Sans_Cnd_Semibold.otf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adelle Sans Regular';
    src: url('font/fonnts.com-Adelle_Sans_ARA_Regular.otf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Adelle Sans Italic';
    src: url('font/fonnts.com-Adelle_Sans_Light_Italic.otf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/*-----Color Consistency-------*/
:root {
    --primary-color: #dc5756;
    --secondary-color: #2b2e7d;
    --third-color: #f9f7ef;
}

.btn-outline-primary {
  color: var(--secondary-color);               
  border: 1px solid var(--secondary-color);    
  background-color: transparent; 
  border-radius: 50px;           
  padding: 8px 24px;             
  font-family: 'Adelle Sans Regular', sans-serif;
  font-size: 14pt;
  transition: all 0.3s ease;     
}

.btn-outline-primary:hover {
  background-color: var(--secondary-color);     
  color: var(--third-color);                  
  border-color: var(--secondary-color);        
}

.btn-outline-primary-small {
  color: var(--secondary-color);              
  border: 1px solid var(--secondary-color);     
  background-color: transparent; 
  border-radius: 50px;           
  padding: 4px 14px;             
  font-family: 'Adelle Sans Regular', sans-serif;
  font-size: 12pt;
  transition: all 0.3s ease;     
}

.btn-outline-primary-small:hover {
  background-color: var(--secondary-color);     
  color: var(--third-color);                   
  border-color: var(--secondary-color);         
}

/*-----Navigation bar setting-------*/
.navbar {
    backdrop-filter: blur(5px);
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
}

.navbar .nav-link {
  color: #2b2e7d;
  font-weight: 500; 
}

.navbar .nav-link:hover {
  font-family: 'Adelle Sans Bold', sans-serif; 
}

.navbar .nav-link.active {
  color: #2b2e7d; 
  font-weight: 700;
}

.navbar-brand img {
  vertical-align: middle;
}

.navbar-nav {
  align-items: center;
}

.navbar {
  margin-top: -15px; 
}

.navbar-nav .nav-item {
  margin-right: 30px; 
}

.navbar-nav .nav-link {
  padding: 8px 0; 
}

.navbar {
  margin: 0 auto;
  width: 100%; 
}

/*-----Header image setting-------*/ 
#home {
  padding-top: 70px; 
}

/*-----Marquee setting-------*/
#home .marquee {
  margin-top: 60px;
}

.marquee {
  position: relative;
  bottom: 0;
  width: 100%;
  background-color: #f9f7ef;
  overflow: hidden;
  border-top: 1px solid #2b2e7d;   
  border-bottom: 1px solid #2b2e7d; 
  padding: 25px 0;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-content::after {
  content: attr(data-duplicate);
  display: flex;
}

.marquee-content span {
  display: flex;
  align-items: center;
  gap: 2rem; 
  margin: 0 1rem; 
  font-size: 1rem;
  color: #2b2e7d;
  white-space: nowrap;
}

.icon {
  width: 20px;  
  height: 20px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/*-----Span class bold-------*/
.bold-text {
  font-family: 'Adelle Sans Bold', sans-serif;
  color: var(--secondary-color);
}

.red-text {
  color: var(--primary-color);
}

.white-text {
  color: var(--third-color);
}

.blue-text {
  color: var(--secondary-color);
}

/*-----About me font-------*/
.greeting {
  font-family: 'Migosta', sans-serif;
  font-size: 90pt;
  color: var(--primary-color);
  margin-bottom: 1px;
}

.name {
  font-family: 'Migosta', sans-serif;
  font-size: 30pt;
  color: var(--primary-color);
  margin-top: -20px;
  margin-bottom: 30px;
}

.section-title {
  font-family: 'Adelle Sans Bold', sans-serif;
  font-size: 14pt;
  color: var(--secondary-color);
  margin-top: 0px;
  margin-bottom: 10px;
}

#aboutme p {
  font-family: 'Adelle Sans Regular', sans-serif;
  line-height: 1.5;
  font-size: 12pt;
  color: var(--secondary-color);
  margin-bottom: 10px;
  margin-right: 100px;
}

.contact-list,
.contact-list p {
  font-family: 'Adelle Sans Regular', sans-serif;
  font-size: 8pt;
  color: var(--primary-color) !important;
  margin-top: 5px;
  margin-bottom: 10px;
  text-align: left;
  margin-left: 60px;
}

.contact-list i {
  margin-right: 8px;
}

.about-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 100px;
  margin-left: 150px;
}

.sub-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Migosta', sans-serif;
  font-size: 30pt;
  color: var(--primary-color);
}

.sub-title .icon {
  width: 30px; 
  height: auto;
}

.item {
  font-family: 'Adelle Sans Regular', sans-serif;
  font-size: 11pt;
  line-height: 1.6;
}

/*-----Garis timeline dot-------*/
.timeline {
  position: relative;
  margin-left: 15px;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 6px;
  width: 1px;
  height: calc(100% + 30px);
  background-color: var(--secondary-color);
}

.timeline-item .dot {
  position: absolute;
  left: -23px;
  top: 5px;
  width: 7px;
  height: 7px;
  background-color: #2d2a8c;
  border-radius: 50%;
}

.timeline-item:last-child::before {
  content: none;;
}

/*-----skills and aptitudes-------*/
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.skills-list span {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 2px 16px;
  border-radius: 50px;
  font-family: 'Adelle Sans SemiBold', sans-serif;
  font-size: 11pt;
  letter-spacing: 0.3px;
}

.aptitudes-img {
  margin-left: -17%;
}

/*-----Project-------*/
#projects {
  scroll-margin-top: 80px; 
  padding-top: 100px;       
}

.project-section {
  background-color: var(--third-color);
  padding: 100px 0;
  text-align: center;
}

.project-section .title {
  color: var(--primary-color);
  font-family: 'Migosta', serif;
  font-size: 40pt;
  margin-bottom: 3rem;
  display: inline-flex;      
  align-items: center;      
  gap: 10px;  
}

.title .icon {
  width: 40px;              
  height: auto; 
  margin: 20px;
}

.project-gallery {
  display: flex;    
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 60px;
  justify-content:flex-start;
  align-items: center;
  padding: 3rem 0;
  scroll-behavior: smooth;
  perspective: 1000px;
  -webkit-overflow-scrolling: touch;
}

.project-gallery::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 280px;
  height: 400px;
  background: #fff;
  border-radius: 20px;
  scroll-snap-align: center;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  opacity: 0.4;
  filter: blur(1px);
  transform: scale(0.9);
  cursor: pointer;
}

.project-card:hover {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  z-index: 2;
}

.project-card img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.project-card h3 {
  font-family: 'Migosta', serif;
  color: var(--secondary-color);
  margin-top: 15px;
  font-size: 1.4rem;
}

.project-card p {
  font-family: 'Adelle Sans Regular', sans-serif;
  font-size: 0.9rem;
  color: var(--secondary-color);
  padding: 0 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .project-card {
    flex: 0 0 220px;
    height: 320px;
  }
}

/*-----Project Detail-------*/
.project-card {
  text-decoration: none;    
  color: inherit;          
}

.project-detail {
  position: fixed;
  inset: 0; 
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px); 
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 9999;
  overflow-y: auto; 
  padding: 40px 0;
}

.category-title {
  font-family: 'Migosta', sans-serif;
  font-size: 40pt;
  color: var(--primary-color);
  padding-top: 20px;
}

.project-detail:target {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.project-detail-content {
  background-color: var(--third-color);
  padding: 2rem;
  border-radius: 20px;
  max-width: 1100px;
  max-height: 90vh;
  width: 85vw;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: popup 0.3s ease-out;
}

.project-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}

/* Tombol close */
.project-detail .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  text-decoration: none;
  color: #f9f7ef;
  font-weight: bold;
  transition: 0.2s;
}

.project-detail .close:hover {
  color: #ffffff;
  transform: scale(1.2);
}

/* Animasi */
@keyframes popup {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*-----Project Detail content-------*/
.project-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  flex-wrap: wrap;
  padding-left: -20px;
}

#branding .project-content {
  margin-top: -50px;
}

.project-info {
  flex: 1; 
  min-width: 320px;
  text-align: left;
  margin-left: -30px;
}

.project-image img {
  width: 90%;
  max-width: 550px;
  border-radius: 12px;
}

.project-subtitle {
  font-family: 'Adelle Sans Bold', sans-serif;
  font-size: 12pt;
  color: var(--secondary-color);
  margin-bottom: -5px;
}

.project-title {
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 32pt;
  font-family: 'Migosta', sans-serif;
  color: var(--secondary-color);
}

.title-star{
  width: 30px;
  height: auto;
  transform: translateY(-3px);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: -15px;
}

.tags-biru {
  border: 1px solid var(--secondary-color);
  border-radius: 50px;
  padding: 3px 14px;
  font-size: 10pt;
  color: var(--secondary-color);
}

.tags-putih {
  border: 1px solid var(--third-color);
  border-radius: 50px;
  padding: 3px 14px;
  font-size: 10pt;
  color: var(--third-color);
}

.project-software {
  margin-bottom: 10px;
  padding-top: 10px;
}

.project-software p{
  display: inline-block;
  font-family: 'Adelle Sans Regular', sans-serif;
  font-size: 11pt;
  margin-bottom: 5px;
  color: var(--secondary-color);
  margin-right: 8px;
}

.software-biru{
  background-color: var(--secondary-color);
  color: var(--third-color);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 10pt;
}

.software-putih{
  background-color: var(--third-color);
  color: var(--secondary-color);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 10pt;
}

.project-desc{
  font-family: 'Adelle Sans Regular', sans-serif;
  font-size: 11pt;
  margin-bottom: 5px;
  color: var(--secondary-color);
}


/*-----extra item-------*/
.project-extra {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 20px; 
  flex-wrap: wrap; 
  margin-top: -100px;
}

.project-extra .extra-item {
  flex: 1;
  max-width: 300px; 
  text-align: center;
}

.project-extra .extra-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.project-extra .extra-item.text {
  max-width: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  flex-direction: column;
}

.project-extra .extra-item.text p {
  font-size: 10pt;
  color: var(--secondary-color);
  line-height: 1.6;
  font-family: 'Adelle Sans Regular', sans-serif;
}

.project-extra .extra-item.text h3 {
  font-size: 11pt;
  color: var(--secondary-color);
  line-height: 1.6;
  font-family: 'Adelle Sans Bold', sans-serif;
  margin-bottom: -5px;
}

.project-extra .extra-item.text h2 {
  font-size: 18pt;
  color: var(--secondary-color);
  line-height: 1.6;
  font-family: 'Migosta', sans-serif;
  margin-bottom: -5px;
}

.project-desc.tambahan {
  font-family: 'Adelle Sans Italic', sans-serif;
  font-size: 9pt;
}

.foto-others {
  width: 800px;
  margin: 0 auto;
}

/*-----illustration customized design content project-------*/
.project-info.cb .project-title {
  margin-bottom: 20px;
  margin-top: 7px;
}


/*-----UIUX customized design content project-------*/
#uiux .project-content img {
  max-width: 600px;
  display: inline-block;
}

#uiux .project-content {
  display: flex;
  justify-content: center; 
  align-items: center;      
}

/*-----Motion customized design content project-------*/
#motiongraphics .project-content {
  display: flex;
  justify-content: center; 
  align-items: center;     
}

.motion-video {
  max-width: 800px;
  width: 100%;
  height: auto;
}

#motiongraphics .project-info {
  margin-left: 110px;
  margin-right: 70px;
  margin-bottom: 50px;
}

/*-----Contact-------*/
#contact.py-5 {
  padding-bottom: 0 !important;
}

#contact {
  background-color: var(--third-color); 
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.contact-top {
  background-color: var(--third-color);
  padding: 60px 0 40px;
  flex-shrink: 0;
}

#contact .icon-contact{
  width: 13%;        
  max-width: 900px;  
  height: auto;      
  display: block;   
  margin: 0 auto;  
}

#contact .thank-you{
  width: 70%;       
  max-width: 900px;  
  height: auto;      
  display: block;    
  margin: 0 auto;  
}

#contact p{
    font-family: 'Adelle Sans Regular';
    font-size: 14pt;
    color: var(--secondary-color);
    text-align: center;
}

.contact-info {
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap; 
  color: var(--third-color);
  padding: 40px 0 80px;
}

.contact-info div {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.contact-info i {
  color: var(--third-color);
  padding: 6px;
  margin-right: 10px;
  font-size: 0.9rem;
}

.contact-info div,
.contact-info p,
.contact-info i {
  margin-bottom: 0;
  padding-bottom: 0;
}