/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #2b0a2b; /* Warna ungu gelap sesuai gambar */
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffffff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header/Navigation Styles */
.navbar {
    padding: 15px 5%;
    background-color: transparent;
    text-align: right;
}

.navbar nav a {
    margin-left: 20px;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #f1c40f; /* Warna kuning untuk hover dan active */
}

/* ANIMASI KLIK - Navbar Links */
.navbar nav a:active {
    animation: pulse 0.5s;
}

/* Blog Section Styles */

.blog-container {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.blog-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.blog-header h2 {
    font-size: 48px;
    color: #f4d72e;
    flex: 1;
}

.blog-header p {
    font-size: 18px;
    flex: 1;
    color: #e0e0e0;
}

.blog-header img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.digital-marketing-topics {
    background-color: #880b80;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 60px;
    text-align: center;
}

.digital-marketing-topics h3 {
    color: #f1c40f;
    font-size: 22px;
    margin-bottom: 10px;
}

.digital-marketing-topics h4 {
    font-size: 26px;
    margin-bottom: 30px;
}

.topics-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.topic-item {
    background-color: #f8eedf;
    color: #000;
    padding: 20px;
    border-radius: 15px;
    width: 180px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
}

.topic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ANIMASI KLIK - Topic Item */
.topic-item:active {
    animation: tada 0.5s;
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.7);
}

.topic-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* ANIMASI KLIK - Topic Item Image */
.topic-item img:active {
    animation: bounce 0.5s;
}

.topic-item h5 {
    margin: 0;
    font-size: 16px;
}

.latest-articles h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

.articles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.article-item {
    background-color: #fff;
    color: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    transform: scale(1.03);
}

/* ANIMASI KLIK - Article Item */
.article-item:active {
    animation: pulse 0.5s;
}

.article-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}

/* ANIMASI KLIK - Image dalam Article */
.article-item img:active {
    animation: zoomIn 0.5s;
}

.article-info {
    padding: 15px;
}

.article-info h4 {
    margin-top: 10px;
    font-size: 18px;
}

.article-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

/* Footer Styles */
footer {
    padding: 50px 5% 20px;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* ANIMASI KLIK - Logo Footer */
.footer-logo img:active {
    animation: heartBeat 0.7s;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    font-size: 14px;
    text-transform: uppercase;
}

/* ANIMASI KLIK - Footer Nav Links */
.footer-nav a:active {
    animation: rubberBand 0.5s;
    color: #f1c40f;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #f1c40f; /* Warna kuning saat hover */
}

/* ANIMASI KLIK - Social Icons */
.social-icons a:active {
    animation: tada 0.5s;
    background-color: #f1c40f;
}

.social-icons i {
    font-size: 20px;
    color: #fff;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 40%;
    margin: 0 auto 20px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 60%;
        margin-top: 30px;
    }

    .hello-section {
        flex-direction: column;
        text-align: center;
    }

    .hello-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        width: 60%;
        margin-bottom: 20px;
    }

    .footer-nav nav {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .intro-text h1 {
        font-size: 3rem;
    }

    .profile-image {
        width: 80%;
    }

    .gallery-item {
        width: 80%;
    }

    .hello-text h2 {
        font-size: 2rem;
    }
}

/* DEFINISI KEYFRAMES ANIMASI */

/* Pulse Animation */
@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.2, 1.2, 1.2);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

/* Tada Animation */
@keyframes tada {
  from {
    transform: scale3d(1, 1, 1);
  }

  10%, 20% {
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%, 50%, 70%, 90% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%, 60%, 80% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

/* Bounce Animation */
@keyframes bounce {
  from,
  20%,
  53%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0) scaleY(1.1);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0) scaleY(1.05);
  }

  80% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0) scaleY(0.95);
  }

  90% {
    transform: translate3d(0, -4px, 0) scaleY(1.02);
  }
}

/* RubberBand Animation */
@keyframes rubberBand {
  from {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

/* HeartBeat Animation */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

/* ZoomIn Animation */
@keyframes zoomIn {
  from {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }

  50% {
    opacity: 1;
    transform: scale3d(1.3, 1.3, 1.3);
  }
  
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Animate.css Custom Classes */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__infinite {
    animation-iteration-count: infinite !important;
}

/* Kecepatan animasi */
.animate__slow {
    animation-duration: 2s !important;
}

.animate__slower {
    animation-duration: 3s !important;
}

.animate__fast {
    animation-duration: 0.8s !important;
}

.animate__faster {
    animation-duration: 0.5s !important;
}

/* Scroll behavior halus */
html {
    scroll-behavior: smooth;
}