@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'Moon Heavy';
    src: url(fonts/moon_get-Heavy.otf) format('opentype');
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-image: url(/img/BgComms.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* ===== NAVIGATION ===== */
nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 350px;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    transition: transform 0.4s ease;
}

.logo:hover img {
    transform: rotate(-10deg);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-links a {
    display: block;
    padding: 30px 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 19px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Left to right underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 25px;
    left: 16px;
    background-color: white;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: calc(100% - 32px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    width: 100%;
    position: relative;
}

/* ===== HERO SECTION ===== */
.hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.hero.active-page {
    display: flex;
}

.hero-content {
    color: white;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    max-width: 1000px;
    width: 90%;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.hero-content h1 {
    font-size: 20px;
    margin-top: 15px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

.hero-content p {
    font-size: 20px;
    margin-top: 15px;
    font-weight: 300;
    text-align: center;
}

.hero-content p::after {
    content: '';
    display: block;
    margin: 15px auto 0;
    width: 75%;
    height: 3px;
    background-color: white;
}

/* ===== HERO SECTION 2 ===== */
.hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.hero-content2 {
    color: white;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    max-width: 1000px;
    width: 90%;
    padding: 0 20px;
}

.hero-content2 h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.hero-content2 h1 {
    font-size: 20px;
    margin-top: 15px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

.hero-content2 p {
    font-size: 20px;
    margin-top: 15px;
    font-weight: 300;
    text-align: center;
}

.hero-content2 p::after {
    content: '';
    display: block;
    margin: 15px auto 0;
    width: 45%;
    height: 3px;
    background-color: white;
}

/* ===== CONTACTS STYLING ===== */

.contacts {
    display: flex;
    padding-top: 25px;
    gap: 35px;
    width: 65%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

/* Style untuk tombol yang bisa diklik seluruhnya */
.discord-server, .contact-me {
    display: flex;
    align-items: center;
    padding: 9px 19px;
    font-size: 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.discord-server {
    background-image: linear-gradient(180deg, #f3f3f3, #bebebe);
}

.discord-server span {
    text-decoration: none;
    margin-left: 5px;
    color: rgb(41, 41, 41);
    font-weight: 600;
}

.discord-server i {
    color: rgb(41, 41, 41);
}

.contact-me {
    background-image: linear-gradient(180deg, #7289DA, #3758d3);
}

.contact-me i {
    margin-right: 7px;
    color: white;
}

.contact-me span {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

/* Tambahkan ini di CSS utama terlebih dahulu */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.7); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 30px rgba(150, 150, 150, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.7); }
}

@keyframes discord-pulse {
    0% { box-shadow: 0 0 5px rgba(114, 137, 218, 0.7); }
    50% { box-shadow: 0 0 25px rgba(114, 137, 218, 0.9), 0 0 35px rgba(66, 89, 170, 0.6); }
    100% { box-shadow: 0 0 5px rgba(114, 137, 218, 0.7); }
}

@keyframes icon-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Efek hover neon untuk discord-server */
.discord-server:hover {
    background-image: linear-gradient(180deg, #ffffff, #c9c9c9);
    animation: pulse-glow 1.5s infinite;
    transform: translateY(-3px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discord-server:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 1.5s infinite;
}

.discord-server:hover i {
    animation: icon-shake 0.5s ease infinite;
}

/* Efek hover neon untuk contact-me */
.contact-me:hover {
    background-image: linear-gradient(180deg, #8fa5ff, #3758d3);
    animation: discord-pulse 1.5s infinite;
    transform: translateY(-3px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-me:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 1.5s infinite;
}

.contact-me:hover i {
    animation: icon-shake 0.5s ease infinite;
}

/* Animasi shine untuk efek cahaya melintas */
@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.contacts div:hover a {
    text-shadow: 0 0 8px currentColor;
    transition: text-shadow 0.3s ease;
}

/* ===== TRANSITION COMPONENT ===== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTON STYLING ===== */

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.btn-next {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-next:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* ===== CARD STYLES ===== */
.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px; /* Anda bisa ubah ini */
    margin: 40px auto;
    padding: 0 20px;
}

/* VARIABEL UKURAN CARD - SILAKAN UBAH SESUAI KEINGINAN */
:root {
    --card-height: 200px;       /* Tinggi card baris pertama */
    --card-width: 100%;         /* Lebar card otomatis */
    --fullwidth-height: 190px;  /* Tinggi card baris kedua */
    --card-gap: 25px;           /* Jarak antar card */
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: var(--card-height);    /* Menggunakan variabel */
    width: var(--card-width);      /* Menggunakan variabel */
}

/* Card Lebar Penuh (baris kedua) */
.card.full-width {
    grid-column: span 2;
    height: var(--fullwidth-height);  /* Menggunakan variabel */
}

.card-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar menutupi card tanpa distorsi */
    transition: transform 0.5s ease;
}

/* Efek Hover */
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.card:hover img {
    transform: scale(1.05); /* Zoom in gambar saat hover */
}

/* Efek untuk card aktif - ANIMASI LEBIH SMOOTH */
.card.active {
    border-color: #ffffff;
    border-width: 3px;
    box-shadow: 
        0 0 35px rgba(255, 255, 255, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.15);
    animation: selectAnimation 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animasi smooth saat card dipilih */
@keyframes selectAnimation {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 0px rgba(255, 255, 255, 0),
            inset 0 0 0px rgba(255, 255, 255, 0);
        border-color: rgba(255, 255, 255, 0.15);
    }
    60% {
        transform: scale(0.96);
        box-shadow: 
            0 0 45px rgba(255, 255, 255, 0.5),
            inset 0 0 50px rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: scale(0.98);
        box-shadow: 
            0 0 35px rgba(255, 255, 255, 0.4),
            inset 0 0 40px rgba(255, 255, 255, 0.15);
    }
}

/* Animasi saat card di-unselect */
.card:not(.active) {
    animation: deselectAnimation 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes deselectAnimation {
    0% {
        transform: scale(0.98);
        border-color: #ffffff;
        border-width: 3px;
        box-shadow: 
            0 0 35px rgba(255, 255, 255, 0.4),
            inset 0 0 40px rgba(255, 255, 255, 0.15);
    }
    100% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.15);
        border-width: 2px;
        box-shadow: none;
    }
}

/* Overlay dengan animasi fade in (lebih subtle) */
.card.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    animation: overlayFade 0.3s ease-out forwards;
}

@keyframes overlayFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Hover effect dengan transisi yang lebih smooth */
.card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:not(.active):hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.card:not(.active):hover img {
    transform: scale(1.08);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animasi untuk gambar di dalam card */
.card-image img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pastikan gambar tetap di atas overlay */
.card-image {
    position: relative;
    z-index: 1;
}

.card.animating {
    pointer-events: none; /* Nonaktifkan klik selama animasi */
}

/* Style dasar card tanpa checkmark dan ripple */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hapus semua pseudo-elements yang tidak perlu */
.card::before {
    display: none; /* Hapus checkmark */
}

/* ===== FOOTER ===== */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-text {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 4px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Active state for hamburger menu */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== BLUR EFFECT FOR NAVIGATION ON SCROLL ===== */
nav.scrolled {
    background: #ffffff15 !important;
    backdrop-filter: blur(9px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-links a {
    color: white;
}

nav.scrolled .nav-links a::after {
    background-color: white;
}

nav.scrolled .hamburger .bar {
    background-color: white;
}

/* Ensure smooth scrolling accounts for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    nav {
        padding: 0 200px;
    }
}

@media (max-width: 1200px) {
    nav {
        padding: 0 100px;
    }
    
    .nav-links a {
        font-size: 17px;
        padding: 30px 12px;
    }
}

@media (max-width: 992px) {
    nav {
        padding: 0 50px;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 30px 10px;
    }
    
    .hero-content h2 {
        font-size: 35px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-content h1 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        flex-wrap: nowrap;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        height: 80px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        display: none;
        padding: 80px 0 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        justify-content: center;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        text-align: center;
        font-size: 24px;
        padding: 20px 16px;
        width: 100%;
        font-weight: 400;
    }

    .nav-links a::after {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Hero content mobile adjustments */
    .hero-content {
        padding: 20px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-top: 10px;
        line-height: 1.4;
    }
    
    .hero-content h1 {
        font-size: 16px;
        margin-top: 20px;
        line-height: 1.6;
    }
    
    .button-container {
        margin-top: 25px;
        gap: 15px;
    }
    
    .btn-next {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 100px;
    }
    
    html {
        scroll-padding-top: 60px;
    }
    
    nav.scrolled .nav-links {
        background-color: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
}

@media (max-width: 576px) {
    nav {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-content h1 {
        font-size: 15px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .button-container {
        margin-top: 20px;
        gap: 10px;
    }
    
    .btn-next {
        font-size: 13px;
        padding: 8px 15px;
        min-width: 90px;
    }
    
    .nav-links a {
        font-size: 20px;
        padding: 18px 16px;
    }
    
    .footer-text {
        font-size: 12px;
        padding: 10px;
    }
    
    html {
        scroll-padding-top: 50px;
    }
}

@media (max-width: 400px) {
    .hero-content h2 {
        font-size: 22px;
    }
    
    .hero-content h1 {
        font-size: 14px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .logo img {
        width: 35px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn-next {
        font-size: 13px;
        padding: 8px 18px;
        width: 80%;
    }
}

/* Untuk layar sangat tinggi */
@media (min-height: 800px) {
    .hero-content {
        padding-top: 50px;
    }
}

/* Landscape orientation untuk mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-content {
        padding-top: 10px;
    }
    
    .hero-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-top: 5px;
    }
    
    .hero-content h1 {
        font-size: 14px;
        margin-top: 10px;
        line-height: 1.4;
    }
    
    .btn-next {
        margin-top: 15px;
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .nav-links {
        padding: 60px 0 10px 0;
    }
}

/* Perbaikan untuk konten yang pendek */
@media (max-height: 500px) {
    .hero-content {
        transform: scale(0.9);
        padding-top: 0;
    }
    
    .hero-content h2 {
        margin-bottom: 5px;
    }
    
    .hero-content p {
        margin-top: 5px;
    }
    
    .hero-content p::after {
        margin-top: 10px;
    }
}

/* ===== CARD RESPONSIVE STYLES ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .card-container {
        max-width: 90%;
        gap: 20px;
        margin: 30px auto;
    }
    
    :root {
        --card-height: 180px;
        --fullwidth-height: 170px;
        --card-gap: 20px;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 25px auto;
        padding: 0 15px;
    }
    
    :root {
        --card-height: 160px;
        --fullwidth-height: 150px;
        --card-gap: 15px;
    }
    
    .card {
        border-width: 1.5px;
        border-radius: 10px;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    .card.active {
        border-width: 2.5px;
    }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
    .card-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 20px auto;
        padding: 0 12px;
    }
    
    .card.full-width {
        grid-column: span 1;
    }
    
    :root {
        --card-height: 140px;
        --fullwidth-height: 130px;
        --card-gap: 12px;
    }
    
    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    
    .card:not(.active):hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    /* Perbaikan animasi untuk perangkat mobile */
    @keyframes selectAnimation {
        0% {
            transform: scale(1);
        }
        60% {
            transform: scale(0.98);
        }
        100% {
            transform: scale(0.99);
        }
    }
}

/* Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
    .card-container {
        gap: 10px;
        padding: 0 10px;
    }
    
    :root {
        --card-height: 120px;
        --fullwidth-height: 110px;
    }
    
    .card {
        border-radius: 8px;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .card {
        cursor: default;
    }
    
    .card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }
    
    .card.active:active {
        transform: scale(0.98);
    }
    
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        border-width: 1.5px;
    }
    
    .card.active {
        border-width: 2.5px;
    }
}

/* ===== CONTACTS RESPONSIVE STYLES ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .contacts {
        width: 80%;
        gap: 30px;
        padding-top: 20px;
    }
    
    .discord-server, .contact-me {
        padding: 8px 16px;
        font-size: 24px;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    .contacts {
        width: 90%;
        gap: 25px;
        padding-top: 15px;
        flex-wrap: wrap;
    }
    
    .discord-server, .contact-me {
        padding: 7px 14px;
        font-size: 20px;
        min-width: 180px;
        justify-content: center;
    }
    
    /* Kurangi intensitas animasi untuk performa mobile */
    .discord-server:hover,
    .contact-me:hover {
        animation-duration: 2s;
    }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
    .contacts {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 15px 20px 0;
    }

    .hero-content2 p {
        font-size: 10px;
    }
    
    .discord-server, .contact-me {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 18px;
        justify-content: center;
        border-radius: 40px;
    }
    
    .discord-server span,
    .contact-me span {
        font-size: 16px;
    }
    
    /* Nonaktifkan animasi kompleks untuk baterai mobile */
    .discord-server:hover::before,
    .contact-me:hover::before {
        animation: none;
    }
    
    .discord-server:hover i,
    .contact-me:hover i {
        animation: none;
    }
}

/* Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
    .contacts {
        padding: 10px 15px 0;
        gap: 12px;
    }
    
    .discord-server, .contact-me {
        max-width: 250px;
        padding: 8px 16px;
        font-size: 16px;
        border-radius: 35px;
    }
    
    .discord-server span,
    .contact-me span {
        font-size: 14px;
    }
}

/* Touch Device Optimization untuk Contacts */
@media (hover: none) and (pointer: coarse) {
    .discord-server:active,
    .contact-me:active {
        transform: translateY(-1px);
        transition: transform 0.1s ease;
    }
    
    .discord-server:hover,
    .contact-me:hover {
        animation: none;
        transform: none;
    }
    
    /* Efek feedback saat ditekan */
    .discord-server:active {
        background-image: linear-gradient(180deg, #e0e0e0, #a8a8a8);
    }
    
    .contact-me:active {
        background-image: linear-gradient(180deg, #677bc4, #3a4a8a);
    }
}

/* Landscape Orientation untuk Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .contacts {
        padding-top: 10px;
        gap: 15px;
    }
    
    .discord-server, .contact-me {
        padding: 5px 12px;
        font-size: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .discord-server {
        background-image: linear-gradient(180deg, #e0e0e0, #a0a0a0);
    }
    
    .contact-me {
        background-image: linear-gradient(180deg, #5a6fb8, #324489);
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .card,
    .discord-server,
    .contact-me {
        transition: none !important;
        animation: none !important;
    }
    
    .card:hover,
    .discord-server:hover,
    .contact-me:hover {
        transform: none !important;
    }
    
    .card-image img {
        transition: none !important;
    }
    
    .card.active {
        animation: none !important;
    }

}

