/* Variabel CSS untuk konsistensi */
:root {
    --main-color: #00e5ff;
    --main-color-shadow: rgba(0, 229, 255, 0.5);
    --main-color-glow: rgba(0, 229, 255, 0.8);
    --main-color-bg: rgba(0, 229, 255, 0.1);
    --navbar-bg: rgba(22, 28, 36, 0.8);
    --footer-bg: rgba(22, 28, 36, 0.8);
    --section-bg: rgba(44, 62, 80, 0.7);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --text-color: #fff;
    --text-light: rgba(255, 255, 255, 0.7);
    --text-lighter: rgba(255, 255, 255, 0.6);
    --text-lightest: rgba(255, 255, 255, 0.3);
    --text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-lighter: rgba(255, 255, 255, 0.2);
    --box-shadow-sm: 0 5px 15px rgba(0,0,0,0.2);
    --box-shadow-md: 0 8px 25px rgba(0,0,0,0.3);
    --box-shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
    --accent-color: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #000; /* Warna dasar sebelum background dimuat */
    background-image: url('/img/Backround\ \(1\).png');
    background-repeat: no-repeat;
    background-position: top center; /* Ubah ke top center */
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    z-index: -1;
}

/* ===== EFEK HUJAN ===== */
.rain-container, .rain-footer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    will-change: opacity;
}

.rain-footer {
    top: auto;
    bottom: 0;
    height: 35%;
    z-index: 0;
}

.rain-drop {
    position: absolute;
    width: 1px;
    height: 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 100%);
    opacity: 0.6;
    animation: rain-fall linear infinite;
    will-change: transform;
}

@keyframes rain-fall {
    from {
        transform: translateY(-100vh);
    }
    to {
        transform: translateY(100vh);
    }
}

@keyframes rain-fall-angled {
    0% {
        transform: translateY(-100vh) translateX(0);
    }
    50% {
        transform: translateY(0vh) translateX(10px);
    }
    100% {
        transform: translateY(100vh) translateX(0);
    }
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--navbar-bg);
    padding: 0.6rem 2rem; /* Kurangi padding */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow-sm);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100px;
    right: 100px;
    height: 1px;
    background-color: var(--text-lightest);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--main-color);
    text-decoration: none;
    text-shadow: 0 0 10px var(--main-color-shadow);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--main-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem; /* Kurangi padding */
    position: relative;
    z-index: 2;
}

.section {
    margin-bottom: 2rem; /* Kurangi margin */
    padding: 1.8rem; /* Kurangi padding */
    border-radius: 15px;
    background-color: var(--section-bg);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color-bg) 0%, transparent 50%);
    pointer-events: none;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem; /* Kurangi margin */
    color: var(--text-color);
    position: relative;
    text-shadow: var(--text-shadow);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem; /* Kurangi margin */
    color: var(--text-color);
    position: relative;
    text-shadow: var(--text-shadow);
}

/* ===== ABOUT SECTION ===== */
.about-header {
    margin-bottom: 1.2rem; /* Kurangi margin */
    text-align: left;
    padding-left: 1.5rem;
    margin-top: 0.3rem; /* Kurangi margin */
}

.highlight {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color-shadow);
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Kurangi gap */
    align-items: flex-start;
    width: 100%;
}

.profile-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem; /* Kurangi gap */
    width: 100%;
    margin-top: -0.5rem; /* Ubah margin */
}

.profile-left {
    flex: 0 0 220px; /* Kurangi ukuran */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    position: relative;
}

.profile-image-container {
    flex: 0 0 220px; /* Kurangi ukuran */
    height: 220px; /* Kurangi ukuran */
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: var(--box-shadow-sm), 0 0 0 5px var(--main-color-bg);
    transition: all 0.5s ease;
    position: relative;
}

.profile-image-container:hover {
    transform: scale(1.05);
    border-color: var(--main-color-shadow);
    box-shadow: var(--box-shadow-md), 0 0 15px var(--main-color-shadow);
}

.profile-image {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

.profile-right {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bio-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding-top: 0;
}

.bio-text p {
    margin-bottom: 1.2rem; /* Kurangi margin */
    font-size: 1.05rem; /* Kurangi font-size */
    line-height: 1.6; /* Kurangi line-height */
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== EMAIL & INSTAGRAM LINKS ===== */
.email-instagram {
    display: flex;
    gap: 1.5rem; /* Kurangi gap */
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.email-instagram a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow-sm);
}

.email-instagram a:hover {
    color: var(--main-color);
    background-color: var(--main-color-bg);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.email-instagram i {
    color: var(--main-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* ===== EDUCATION SECTION ===== */
.education-section {
    padding: 1.8rem; /* Kurangi padding */
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Kurangi gap */
}

.education-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.2rem; /* Kurangi gap */
}

.education-card {
    flex: 1;
    min-width: 200px; /* Kurangi ukuran minimum */
    max-width: 250px; /* Kurangi ukuran maksimum */
    position: relative;
    text-align: center;
    transition: all 0.5s ease;
    margin-bottom: 1.5rem; /* Kurangi margin */
    will-change: transform, opacity;
}

.education-card.dimmed {
    filter: brightness(0.5);
    transform: scale(0.95);
}

.education-card:hover {
    transform: translateY(-10px);
    z-index: 5;
}

.location-pin {
    position: absolute;
    top: -15px;
    left: 20px;
    z-index: 10;
    color: var(--accent-color);
    font-size: 1.8rem;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.7));
    transition: all 0.3s ease;
}

.education-card:hover .location-pin {
    transform: scale(1.2) translateY(-5px);
    color: #ff6b6b;
}

.school-frame {
    width: 100%;
    height: 150px; /* Kurangi height */
    position: relative;
    transition: all 0.5s ease;
    margin-bottom: 0.8rem; /* Kurangi margin */
}

.school-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    position: relative;
    border: 3px solid var(--border-lighter);
    transition: all 0.3s ease;
}

.education-card:hover .school-image {
    border-color: var(--main-color);
    box-shadow: var(--box-shadow-lg), 0 0 15px var(--main-color-shadow);
}

.school-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.education-card:hover .school-image img {
    transform: scale(1.1);
}

.school-info {
    margin-top: 1rem; /* Kurangi margin */
    text-align: center;
    transition: all 0.3s ease;
}

.school-info h3 {
    font-size: 1.1rem; /* Kurangi font-size */
    margin-bottom: 0.4rem; /* Kurangi margin */
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.education-card:hover .school-info h3 {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color-shadow);
}

.year-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ccc;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.education-card:hover .year-container {
    background-color: var(--main-color-bg);
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    color: var(--text-color);
}

.year-container i {
    color: var(--main-color);
    transition: all 0.3s ease;
}

.education-description {
    margin-top: 1.2rem; /* Kurangi margin */
    font-size: 1rem; /* Kurangi font-size */
    line-height: 1.6; /* Kurangi line-height */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    padding: 1.2rem; /* Kurangi padding */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: var(--box-shadow-sm);
    transition: all 0.3s ease;
}

.education-description:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--box-shadow-md);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: 1.8rem; /* Kurangi padding */
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Kurangi gap */
    margin-top: 1.5rem; /* Kurangi margin */
}

.experience-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Kurangi gap */
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.4s ease;
    padding: 1rem;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--box-shadow-sm);
    will-change: transform, opacity;
}

.experience-card:hover {
    transform: translateY(-8px);
    background-color: var(--card-hover-bg);
    box-shadow: var(--box-shadow-lg);
}

.experience-card.reverse {
    flex-direction: row-reverse;
}

.experience-image {
    flex: 0 0 280px; /* Kurangi ukuran */
    max-width: 280px; /* Kurangi ukuran */
    height: 180px; /* Kurangi height */
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--border-lighter);
    box-shadow: var(--box-shadow-sm);
    transition: all 0.4s ease;
    position: relative;
}

.experience-card:hover .experience-image {
    border-color: var(--main-color);
    box-shadow: var(--box-shadow-md);
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.experience-card:hover .experience-image img {
    transform: scale(1.1);
}

.experience-arrow {
    position: absolute;
    font-size: 1.5rem;
    left: 300px; /* Sesuaikan dengan ukuran baru */
    color: var(--main-color);
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    z-index: 5;
}

.experience-card:hover .experience-arrow {
    transform: scale(1.2) translateX(-5px);
    text-shadow: 0 0 15px var(--main-color-glow);
}

.experience-logo {
    width: 80px; /* Kurangi ukuran */
    height: 80px; /* Kurangi ukuran */
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-lighter);
    box-shadow: var(--box-shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    z-index: 5;
}

.experience-card:hover .experience-logo {
    transform: scale(1.1);
    border-color: var(--main-color);
    box-shadow: var(--box-shadow-md);
}

.experience-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.experience-description {
    flex: 1;
    min-width: 300px;
    font-size: 1rem; /* Kurangi font-size */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem; /* Kurangi padding */
    border-radius: 10px;
    box-shadow: var(--box-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.experience-card:hover .experience-description {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--box-shadow-md);
    transform: translateY(-5px);
}

.experience-description p {
    line-height: 1.7; /* Kurangi line-height */
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 1.5rem 0 1rem; /* Kurangi padding */
    margin-top: 2rem; /* Kurangi margin */
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--main-color-bg), transparent);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem; /* Kurangi margin */
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px var(--main-color-shadow);
}

.footer-logo p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; /* Kurangi ukuran */
    height: 34px; /* Kurangi ukuran */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social .social-btn:hover {
    background-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--main-color-shadow);
}

.footer-social .social-btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.footer-social .social-btn:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 0.8rem; /* Kurangi padding */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .education-cards {
        justify-content: center;
    }
    
    .experience-card, .experience-card.reverse {
        justify-content: center;
    }
    
    .experience-arrow {
        display: none;
    }
}

@media (max-width: 992px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-left {
        margin-bottom: 1.5rem; /* Kurangi margin */
    }
    
    .profile-right {
        width: 100%;
        text-align: center;
    }
    
    .bio-text {
        text-align: center;
    }
    
    .email-instagram {
        justify-content: center;
    }
    
    .about-header {
        text-align: center;
        padding-left: 0;
    }
    
    .experience-image {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.8rem; /* Kurangi padding */
    }
    
    .navbar::after {
        left: 20px;
        right: 20px;
    }
    
    .logo {
        margin-bottom: 0.8rem; /* Kurangi margin */
    }
    
    .nav-links {
        margin: 0.8rem 0; /* Kurangi margin */
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 8px;
    }
    
    .section {
        padding: 1.2rem 0.8rem; /* Kurangi padding */
    }
    
    .education-card {
        max-width: 100%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 1.2rem; /* Kurangi gap */
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .experience-card, .experience-card.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .experience-logo {
        margin: 0 auto;
    }
    
    .education-description, .experience-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem; /* Kurangi font-size */
    }
    
    h2 {
        font-size: 1.5rem; /* Kurangi font-size */
    }
    
    .education-cards {
        gap: 2.5rem; /* Kurangi gap */
    }
    
    .email-instagram {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem; /* Kurangi gap */
    }
    
    .section {
        padding: 1rem 0.7rem; /* Kurangi padding */
    }
    
    .education-card {
        min-width: 180px; /* Kurangi min-width */
    }
}

/* ===== KELAS OPTIMASI PERFORMA ===== */
.animation-paused * {
    animation-play-state: paused !important;
}

.low-performance .rain-drop {
    display: none;
}

.low-performance .rain-drop:nth-child(3n) {
    display: block;
}

.low-performance .experience-card:hover,
.low-performance .education-card:hover,
.low-performance .section:hover {
    transform: none;
}

.low-performance .school-image img,
.low-performance .profile-image,
.low-performance .experience-image img {
    transition: none;
}

/* ===== KELAS ANIMASI REVEAL ===== */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(20px); /* Kurangi jarak transformasi */
    transition: all 0.5s ease-out; /* Percepat transisi */
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay animasi */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }


/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.active {
    opacity: 0.8;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
}

.loading-indicator.active {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00e5ff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {transform: rotate(360deg);}
}

/* Optimasi: Animasi scroll yang lebih efisien */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(20px); /* Kurangi dari 30px menjadi 20px */
    transition: all 0.5s ease-out; /* Percepat dari 0.6s menjadi 0.5s */
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optimasi: Menyederhanakan delay */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Optimasi: Animasi kartu pendidikan yang lebih efisien */
.education-card {
    opacity: 0;
    transform: translateY(15px); /* Kurangi dari 20px menjadi 15px */
    transition: all 0.4s ease-out; /* Percepat dari 0.5s menjadi 0.4s */
    will-change: opacity, transform;
}

.education-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optimasi: Animasi kartu pengalaman yang lebih efisien */
.experience-card {
    opacity: 0;
    transform: translateY(15px); /* Kurangi dari 30px menjadi 15px */
    transition: all 0.5s ease-out; /* Percepat dari 0.6s menjadi 0.5s */
    will-change: opacity, transform;
}

.experience-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Static Navbar Styles */
.navbar {
    position: static;
    z-index: 100;
}

/* Optimasi: Kelas untuk performa rendah */
.low-performance .rain-drop {
    display: none;
}

.low-performance .rain-drop:nth-child(3n) {
    display: block;
}

/* Animasi paused ketika halaman tidak terlihat */
.animation-paused * {
    animation-play-state: paused !important;
}