/* Header Styles */
.header {
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    top: 0;
    left: 0;
}

.header img{
    height: 60px;
    background-color: #1c4c6c;
    border-radius: 2rem;
    border: 1px solid #ffffff;
}

.header .name {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header .tagline {
    font-size: 1.2rem;
    color: #bbb;
}

.nav a {
    margin: 0 15px;
    color: #fff;
    font-size: 1.2rem;
}

.nav a:hover {
    text-decoration: underline;
}

/* Class thing */
.box-row {
    margin: auto 5px;
}


/* Spacing */
.center{
    align-items:center;
}

.gap1r{
    gap: 1rem;
}

.w-80 {
    width: 80%;
}

.p-3 {
    padding: 1rem;
}

.m-auto {
    margin: auto;
}

.m-header {
    margin: auto 10vh;
}

.m-zeroA {
    margin: 0 auto;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mr-0-auto {
    margin: auto 0 auto auto;
}

.mr-3 {
    margin-right: 1rem;
}

.ml-auto {
    margin-left: auto;
}

.m-r-auto {
    margin: auto 0 auto auto;
}

.ml-3 {
    margin-left: 1rem;
}

.mt-0 {
    margin-top: 0 !important;
}

.al-an-c {
    align-self: anchor-center !important;
}

.no-wr{
    display: flex;
    flex-wrap: nowrap;
}


/* Section Styles */
section {
    height: 100%;
    min-height: 90vh;
    width: 98%;
    margin: auto;
    display: flex;
    margin-bottom: 1rem;
    border-radius: 10px;
}
.container {
    width: 90%;
    max-width: 1200px;
}

.card {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    width: 527px;
    height: 40vh;
    margin: 10px;
}


.card-body {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem;

}

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.h2about{
    color: #fff;
    text-align: left;
    font-size: 3rem;
    margin-left: 7rem;
    animation : fontColorChange 3s;
}

.pabout::selection, .h2about::selection{
    color: #266189;
    background-color: black;
}

.aabout{
    text-align: left;
    margin: 3rem auto auto 7rem;
}

.aabout, .aabout2 .btn-primary{
    animation: opacityUp 6s;
}

.pabout {
    color: #fff;
    font-size: 1.2rem;
    text-align: left;
    max-width: 600px;
    margin-left: 7rem;
    animation : fontColorChange 6s;
}

.h2about2{
    color: #fff;
    text-align: right;
    font-size: 3rem;
    margin-right: 7rem;
    animation : fontColorChange 3s;
}

.aabout2{
    text-align: right;
    margin: 1rem 0;
    text-align-last: end;
    padding-right: 7rem;

}

.pabout2{
    color: #fff;
    font-size: 1.2rem;
    text-align: right;
    margin-right: 7rem;
    animation : fontColorChange 6s;
}

.about-section,
.projects-section,
.contact-section,
.social-section {
    padding: 50px 0;
}

.about-section,
.social-section{
    background: linear-gradient(
        rgba(0, 0, 0, 0.8), 
        rgba(0, 0, 0, 0.8)
      ),
      url('../image/wp-bl.jpg'); //https://wallpapercat.com/matte-black-wallpapers#load
    background-size: cover;
    background-position: center;
    color: white;
}

.projects-section,
.contact-section {
    background-color: #fff;
}

.projects-section h2,
.social-section h2,
.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

#citrus{
    display: block;
}

.contact-section h3 {
    text-align: center;
}

#contact {
    height: fit-content !important;
    min-height: 0;
}

#contact h3 {
    margin-bottom: 2vh;
}

#mybooklist .gambar img{
    width: 23.5%;
    height: 150px;
    border-radius: 15px;
    cursor: pointer;

}

#projects .container {
    height: -webkit-fill-available;
}

.judul {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 15px;
}

#projects h3 {
    min-height: 40px;
    align-content: center;
}

#projects .dropdown-content .btn{
    justify-self: end;
    background-color: inherit;
    border-radius: 10px;
    color:rgb(0, 0, 0);
    border: 2px solid #000 !important;
    min-width: 75px;
}

#projects .dropdown-content p{
    margin-bottom: 1rem;
    color: #000;
}

.project-list {
    display: block;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: 20px;
    height: 50%;
}

.project-card {
    background: #f4f4f4;
    padding: 20px;
    border: 1px solid #313030;
    border-radius: 8px;
    width: 251px;
    height: -webkit-fill-available;
    box-shadow: 5px 10px #6e6969;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-card h3, p, a{
    height: 33%;
}

.project-card p {
    font-size: 1rem;
}

/* Contact Section */
.contact-section p {
    font-size: 1.2rem;
    text-align: center;
}

.email-link {
    display: block;
    text-align: center;
    margin: 20px 0;
    color: #007bff;
    font-size: 1.2rem;
}

.email-link:hover {
    text-decoration: underline;
}

/* Action */

.acc {
    opacity: 0;
    /* Hidden initially */
    transform: scale(0.9);
    /* Slightly shrunk initially */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Smooth transition */
    pointer-events: none;
    /* Prevent interaction when hidden */
}

.acc:hover {
    text-decoration: underline;
}

.btn:hover {
    opacity: 80%;
    font-style: italic;
}

.toggle-container {
    width: 50px;
    height: 25px;
    background-color: #f0f0f0;
    border-radius: 15px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.porto-container {
    width: fit-content;
    height: 25px;
    background-color: #1c2535;
    border-radius: 15px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 10px;
    cursor: pointer;
}

.porto-container:hover {
    background-color:rgb(17, 20, 26);
}

.toggle-container.dark {
    background-color: #1c2535;
    justify-content: flex-end;
}

.toggle-knob {
    width: 20px;
    height: 20px;
    background-color: #1c2535;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.toggle-knob.darknob {
    background-color: #f0f0f0;
}

.toggle-knob .icon {
    font-size: 12px;
    color: #000;
}

.toggle-container.dark .toggle-knob .icon {
    color: #fdd835;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: -240%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    /* content: ""; */
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.none{
    display:none;
}

.visible {
    opacity: 1;
    /* Fully visible */
    transform: scale(1);
    /* Original size */
    pointer-events: auto;
    /* Enable interaction when visible */
}

.dropdown {
    margin: 0 auto;
    text-align: left;
    position: relative;
    display: block; /* Ensure it takes full width */
    margin-left: 5px;
  }

  /* "See More" button */
  .dropdown-toggle {
    background-color: transparent;
    color: black;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown-toggle:hover {
    background-color: #00000040;
  }

  /* Icon */
  .dropdown-toggle .icon {
    transition: transform 0.3s ease;
  }

  /* Rotate icon when open */
  .dropdown-toggle.open .icon {
    transform: rotate(180deg);
  }

  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    color: #000;
    margin: 1rem auto;
    width: 80%;
    padding: 16px;
    transition: ease-in;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  }

  /* Visible dropdown content */
  .dropdown-content.shows {
    display: block;
  }

  .show{
    display: block;
  }


  /* Image Preview */
  .preview {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

/* Modal content (image) */
.preview-content {
    margin: 4rem auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

/* Close button */
.close {
    position: absolute;
    right: 35px;
    color:rgb(255, 0, 0);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    border: solid 1px;
    border-radius: 100px;
    width: 70px;
    height: 70px;
    text-align: center;
    font-size: 2.6rem;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.flip{
    animation: flip 1.5s;
}

/* keyframes */
@keyframes fontColorChange {
    0%   { color: #000; }   /* red */
    100% { color: #fff; }   /* green */
  }

@keyframes opacityUp{
    0% {opacity: 0%}
    100% {opacity: 100%}
}

@keyframes flip{
    0%{transform: scaleX(1);} 
    10%{transform: scaleX(-1);}
    20%{transform: scaleY(1);} 
    30%{transform: scaleY(-1);}
    40%{transform: scaleX(1);} 
    50%{transform: scaleX(-1);}
    60%{transform: scaleY(1);} 
    70%{transform: scaleY(-1);}
    80%{transform: scaleX(1);} 
    90%{transform: scaleY(-1);}
    100%{transform: scaleY(1);}
}