/* font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;

}

body {
    overflow-x: hidden;
    background-color: #cacdc2;
}

/* navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    color: white;
    background: transparent;
    z-index: 1000;
}

 .navbar.scrolled { /* pinned */
    background: #6f7d74;
    transition: background 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.menu-icon i {
    font-size: 22px;
}

/* underline di navbar */
.nav-links a, .mobile-menu a {
    position: relative;
    text-decoration: none;
    padding: 5px 0;
}

.nav-links a::after, .mobile-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.nav-links a.active::after {
    width: 100%;
    left: 0;
}

/* menu di laptop */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

/* sembunyikan hamburger menu & mobile menu di laptop */
.menu-icon,
.mobile-menu {
    display: none;
}

/* hamburger menu */
@media screen and (max-width: 1024px) {
    .nav-links {
        display: none; /* sembunyikan menu utama */
    }

    .menu-icon {
        display: block; /* tampilkan hamburger menu */
        font-size: 22px;
        cursor: pointer;
    }

/* mobile menu (topbar) */
    .mobile-menu {
        display: inline-block;
        position: absolute;
        top: 63px;
        right: 19.8px;
        width: 93.4%;
        background: rgba(99, 123, 120, 0.8);
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.5s;
    }

    .mobile-menu.active {
        display: block;
        max-height: 400px;
    }

    @keyframes transform {
        0% {
          transform: translateX(5px);
          opacity: 0;
        }
        100% {
          transform: translateX(0);
          opacity: 1;
        }
      }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
    }

    .mobile-menu li {
        text-align: center;
        margin: 20px 0;
    }

    .mobile-menu a {
        text-decoration: none;
        color: white;
        font-size: 18px;
        display: block;
    }
        
    .mobile-menu a:hover::after {
        width: 10%;
        left: 260px;
    }

    .mobile-menu a.active::after {
        width: 10%;
        left: 260px;
    }
}

/* sembunyikan hamburger menu di laptop */
.menu-icon {
    display: none;
}

/* tampilkan hamburger menu hanya di tablet dan handphone */
@media screen and (max-width: 1024px) {
    .menu-icon {
        display: block;
    }
}

/* hero sections */
.hero {
    width: 100%;
    height: 100vh;
    background: url('../img/bgg.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
}

/* dynamic text (typing mode) */
.specialized {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.dynamic-text {
    display: inline-block;
    font-weight: inherit;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid white; /*simulasi kursor*/
    padding-left: 5px;
    width: 0;
    animation: typing 8s steps(100) infinite alternate, blink 0.8s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: inherit; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* scroll down icon */
.scroll-down {
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    animation: bounce 1.5s infinite;
}

.scroll-down i {
    font-size: 24px;
    color: white;
}

/* animasi bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* about me section */
.about-section {
    padding: 82px 20px;
    background-color: #fff;
}
  
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
  
.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: -20px 50px 0px rgba(99, 123, 120, 0.1);
}
  
.about-text {
    flex: 1; 
    min-width: 300px;
}
  
.about-content .about-text h2 {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 5px;
}
  
.about-text h4 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #444;
}
  
.about-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}
  
.social-icons {
    margin: 20px 0;
}
  
.social-icons a {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 5px;
    font-size: 16px;
    color: #fff;
    background-color: #000;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
  
.social-icons a:hover {
    background-color: #333;
    transform: scale(1.1);
}
  
.download-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
  
.download-btn:hover {
    background-color: #333;
}
  
/* responsive about me */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .about-content .about-text h2, .about-text h4 {
        text-align: left;
    }

    .about-content .about-text h2 {
        font-size: 35px;
        margin-top: 20px;
        margin-bottom: -10px;
    }
  
    .about-text p {
        text-align: left;
        font-size: 15px;
        text-align: justify;

    }
  
    .about-image img {
        max-width: 100%;
        height: auto;
    }
  
    .social-icons {
        justify-content: center;
    }
  
    .social-icons a {
        margin: 6px;
        font-size: 16px;
        padding: 8px;
    }
  
    .download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
    

/* servises sections */
#services {
    background-color: #cacdc2;
    text-align: center;
    padding: 45px 20px;
}

#services h3 {
    font-size: 18px;
    font-weight: 400;
    color: #435138;
    margin-top: 30px;
    margin-bottom: 10px;
}

#services h2 {
    font-size: 30px;
    font-weight: bold;
    color: #101d01;
    margin-bottom: 40px;
}

/* service items */
.service {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
}

.service-item {
    max-width: 300px;
    text-align: center;
}

.service-icon {
    cursor: pointer;
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    transition: 1s;
    border: 0.02px solid black;
}

.service-icon:hover {
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
}

.service-icon i {
    font-size: 30px;
    color: #101d01;
}

.service-item h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
    color: #5d6c50;
    line-height: 1.6;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: url('../img/bgg.jpg') center/cover no-repeat;
    padding: 50px 20px;
    color: white;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item i {
    font-size: 40px;
    margin-bottom: 10px;
}

.counter {
    font-size: 30px;
    font-weight: bold;
}

/* work (portofolio) */
#work {
    text-align: center;
    padding: 50px 0;
    background-color: #cacdc2;
}

.container h2 {
    font-size: 15px;
    margin-top: 30px;
    color: #616a58;
}
.container h3 {
    font-size: 27px;
    color: #101d01;
}

.work-menu ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.work-menu li {
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    font-weight: bold;
}

.work-menu li {
    position: relative;
    text-decoration: none;
    padding: 5px 0;
    color: #101d01;
}

.work-menu li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: black;
    transition: width 0.3s ease, left 0.3s ease;
}

.work-menu li.active::after,
.work-menu li:hover::after {
    width: 100%;
    left: 0;
}

.work-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 5px; 
    margin: auto;
}

.item {
    position: relative;
    margin: 10px;
    width: 300px;
    overflow: hidden;
    border-radius: 5px;
}

.item a img, .item a span {
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.item a span {
    display: block;
    width: 80%;
    height: 80%;
    background-color: rgba(184, 191, 152, 0.5);
    position: absolute;
    top: 2rem;
    right: 2rem;
    text-align: center;
    line-height: 240px;
    color: rgb(26, 46, 8);
    font-weight: 800;
    text-shadow: 1px 1px 1px 31, 20, 9;
    transform: scale(0);
    transition: .3s;
}

.item:hover span {
    transform: scale(1.1);
}

.clear {
    clear: both;
}

.overlay {
    display: none;
    width: 0;
    height: 0;
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    z-index: 9999;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 0 0 5px 5px;
    opacity: 0;
    transition: .3s;
}

.overlay:target {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .8);
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay img {
    max-height: 100%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .5);
}

.overlay:target img {
    animation: zoomAfade 1s;
}

.overlay .close {
    position: absolute;
    top: 90px;
    left: 41.8%;
    color: rgb(38, 34, 29);
    font-size: 12px;
    text-decoration: none;
    background-color: rgb(190, 183, 128);
    border: solid 1px rgb(38, 34, 29);
    line-height: 14px;
    padding: 3px;
    opacity: 0;
}

.overlay:target .close {
    animation: slide .5s .5s forwards;
}

.next, .prev {
    width: 115px;
    height: 93px;
    position: absolute;
    text-indent: -9999px;
    top: 40%;
    left: 475px;
    opacity: 0;
    z-index: 999999;
}

.next {
    background-image: url(../gallery/thumbs/next.png);
    left: 800px;
}

.prev {
    background-image: url(../gallery/thumbs/prev.png);
    left: 570px;
}

.overlay:target .next {
    animation: fader .5s .5s forwards;
    -webkit-animation: fader .5s .5s forwards;
}

.overlay:target .prev {
    animation: fadel .5s .5s forwards;
    -webkit-animation: fadel .5s .5s forwards;
}

/* animasi prev next */
@keyframes fader { /* fade right */
    0% {
        opacity: 0;
        margin-left: -20px;
    }
    100% {
        opacity: 1;
        margin-left: 7%;
    }
}

@keyframes fadel { /* fade left */
    0% {
        opacity: 0;
        margin-left: -120px;
    }
    100% {
        opacity: 1;
        margin-left: -25%;
    }
}

@keyframes zoomAfade {
    0% {
        transform: scale(0);
        opacity: 0;
}
    100% {
        transform: scale(1);
        opacity: 1;
}
}

@keyframes slide {
    0% {
        opacity: 0;
        margin-top: 120px;
        margin-left: 230px;
    }
    100% {
        opacity: 1;
        margin-top: 0;
        margin-left: 266px;
    }
}

/* responsive tanda panah */
@media (max-width:768px) {
    .overlay .close {
        position: absolute;
        top: 90px;
        left: 33.5%;
        color: rgb(38, 34, 29);
        font-size: 12px;
        z-index: 99999;
        text-decoration: none;
        background-color: rgb(190, 183, 128);
        border: solid 1px rgb(38, 34, 29);
        line-height: 14px;
        padding: 3px;
        opacity: 0;
    }

    .next, .prev {
        width: 115px;
        height: 93px;
        background-image: url(../gallery/thumbs/next.png);
        position: absolute;
        text-indent: -9999px;
        top: 40%;
        left: 475px;
        opacity: 0;
        z-index: 999999;
    }
    
    .prev {
        background-image: url(../gallery/thumbs/prev.png);
        left: 155px;
    }
}
  
/* animasi auto-scroll */
@keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
}
}
  
/* blog sections */
.blog-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #e7ede6;
    cursor: pointer;
}

.blog-section h3, .blog-section h2 {
    margin: -5px auto;
}
  
.blog-section h3 {
    font-size: 16px;
    color: #555;
    letter-spacing: 2px;
}
  
.blog-section h2 {
    font-size: 38px;
    margin-bottom: 40px;
    font-weight: bold;
}
  
.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
  
.blog-card {
    background-color: #c3d7ca;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
  
.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    overflow: hidden;
    border-radius: 8px;
}
  
.blog-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog-image img:hover {
    transform: scale(1.1);
}
  
.blog-content {
    padding: 20px;
    text-align: left;
}
  
.blog-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}
  
.blog-content p {
    font-size: 14px;
    color: #555;
}
  
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
}
  
.blog-footer a {
    color: #001106;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.blog-footer a:hover {
    color: #063128;
}

.blog-section .container .view-more button {
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    padding: 10px;
    margin-top: 5%;
    margin-left: -1%;
    color: #c3d7ca;
    background-color: #05190d;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.blog-section .container .view-more button:hover {
    color: #05190d;
    background-color: #e7ede6;
}
  
/* responsif blog sections */
@media (max-width: 1024px) {
    .blog-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    .blog-cards {
        grid-template-columns: 1fr;
        transition: none;
    }
      
    .blog-card:hover {
        transform: none;
    }

    .hide-on-mobile {
        display: none;
    }
    

    .blog-section .container .view-more button {
        border-radius: 10px;
        background-color: #05190d;
    }

    .blog-section .container .view-more button:hover {
        color: #05190d;
        background-color: #e7ede6;
    }
}
  
/* testimoni section */
.testimonial-container {
    position: relative;
    background: url('image.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 60px 20px;
    background-image: url(../img/bgg.jpg);
}

.testimonial {
    max-width: 600px;
    margin: auto;
}

.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: auto;
    border: 5px solid white;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    color: rgba(33, 40, 38, 0.3);
    text-shadow: 0 2px 2px rgba(47, 60, 60, 0.5);
    font-size: 28px;
    font-weight: bold;
    margin-top: 15px;
}

.testimonial-role {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 14px;
    font-weight: 501;
    line-height: 1.5;
    opacity: 0.8;
}

/* indicator bullets */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
    width: 14px;
    height: 14px;
}

/* contact sections */
.contact {
    max-width: 800px;
    margin: 100px auto;
    padding: 90px 20px;
    text-align: center;
    margin-bottom: -30px;
}

h2 {
    font-size: 16px;
    color: #444;
    text-transform: uppercase;
}

h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

#contactForm {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.form-group {
    flex: 1 1 45%;
    position: relative;
    text-align: left;
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 16px;
    background: transparent;
    outline: none;
}

textarea {
    height: 80px;
    resize: none;
}

.underline {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: background 0.3s;
}

input:focus + .underline,
textarea:focus + .underline {
    background: #000;
}

#contactForm button {
    text-align: center;
    margin-top: 20px;
    background: #222;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.full-width {
    flex: 1 1 100%;
    text-align: center; 
}

#contactForm button:hover {
    background: #1c3103;
}

/* responsif contact sections */
@media (max-width: 768px) {
    #contact h1 {
        font-size: 28px;
    }
    
    #contactForm {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .form-group textarea {
        height: 50px;
    }
}

/* jika input salah */
.form-group.error input,
.form-group.error textarea {
  border-bottom-color: red;
}

.form-group.error .underline {
  background-color: red;
}

.form-group .error-message {
  font-size: 14px;
  color: red;
  margin-top: 6px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* submit message */
.success-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6f7d74;
    color: rgb(9, 31, 3);
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 16px;
    z-index: 9999;
    display: none;
    animation: fadeInOut 4s ease forwards;
}
  
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* footer sections */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: inline-flex;
    gap: 90px;
}

.footer-content h3 {
    font-size: 18px;
    font-weight: 100;
}

.footer-content h4 {
    font-size: 14px;
    font-weight: 100;
    margin-top: 10px;
}

/* responsif footers */
@media (max-width: 760px) {
    .footer-content {
        display: block;
    }
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #444;
    padding-top: 30px;
    font-size: 12px;
}