/* CSS Variables untuk konsistensi */
:root {
    --main-color: #00e5ff;
    --main-color-shadow: rgba(0, 229, 255, 0.5);
    --main-color-light: rgba(0, 229, 255, 0.2);
    --main-color-border: rgba(0, 229, 255, 0.3);
    --navbar-bg: rgba(22, 28, 36, 0.8);
    --section-bg: rgba(44, 62, 80, 0.7);
    --card-bg: rgba(22, 28, 36, 0.8);
    --form-bg: rgba(255, 255, 255, 0.1);
    --form-border: rgba(255, 255, 255, 0.2);
    --text-color: #fff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-lighter: rgba(255, 255, 255, 0.8);
    --text-lightest: rgba(255, 255, 255, 0.7);
    --text-faded: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.3);
    --border-light: rgba(255, 255, 255, 0.2);
    --border-lighter: rgba(255, 255, 255, 0.1);
    --border-lightest: rgba(255, 255, 255, 0.08);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --box-shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease-out;
    --transition-slow: all 0.6s ease-out;
}

/* Base Styles */
* {
    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: center 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: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

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

.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 {
    from {
        transform: translateY(-100vh) translateX(-10px);
    }
    to {
        transform: translateY(100vh) translateX(10px);
    }
}

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

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

.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: var(--transition-fast);
}

.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: var(--transition-fast);
}

.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: 2rem 1rem;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 180px);
}

.section {
    width: 100%;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--section-bg);
    position: relative;
}

/* ===== CONTACT HEADING ===== */
.contact-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.contact-heading h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-lighter);
}

.heading-underline {
    width: 120px;
    height: 4px;
    background-color: var(--main-color);
    margin: 0 auto;
    position: relative;
}

.heading-underline::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background-color: var(--main-color);
    right: -60px;
    top: 0;
}

/* ===== CONTACT CONTAINER ===== */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
}

.info-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-lighter);
    letter-spacing: 1px;
}

.info-section a {
    color: var(--main-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.info-section a:hover {
    color: #4df8ff;
    text-decoration: underline;
}

/* ===== PROFILE IMAGES ===== */
.profile-images {
    min-width: 300px;
    position: relative;
    height: 350px;
    margin: 1rem 0;
}

.back-image {
    position: absolute;
    width: 80%;
    height: 90%;
    background-color: var(--main-color-light);
    border-radius: 15px;
    top: 10%;
    left: 0;
}

.front-image {
    position: absolute;
    width: 80%;
    height: 90%;
    background-color: rgba(44, 62, 80, 0.5);
    border-radius: 15px;
    overflow: hidden;
    top: 0;
    right: 0;
    box-shadow: var(--box-shadow-medium);
}

.front-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--form-bg);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--main-color);
    transform: translateY(-3px);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    flex: 2;
    min-width: 350px;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
}

.contact-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-lighter);
}

.required {
    color: var(--main-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 8px var(--main-color-shadow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--main-color-light);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 1rem;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: var(--main-color);
    color: #161c24;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    margin-top: 3rem;
}

.testimonials-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--main-color-shadow);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--main-color);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-lightest);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--navbar-bg);
    color: var(--text-color);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-lighter);
}

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

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

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

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

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--form-bg);
    color: var(--text-color);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--main-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-lightest);
}

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

/* ===== ANIMATION CLASSES ===== */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
    will-change: opacity, transform;
}

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

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

.form-row, .form-group.full-width {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-medium);
    will-change: opacity, transform;
}

.form-row.active, .form-group.full-width.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
    will-change: opacity, transform;
}

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

/* Optimasi: Paused animation when not visible */
.animation-paused * {
    animation-play-state: paused !important;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .navbar::after {
        left: 20px;
        right: 20px;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        margin: 1rem 0;
    }
    
    .nav-links li {
        margin: 0 8px;
    }
    
    .section {
        padding: 1.5rem 1rem;
    }
    
    .contact-heading h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-logo {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.9rem;
    }
    
    .nav-links li {
        margin: 0 5px;
    }
    
    .contact-heading h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .profile-images {
        height: 300px;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }
    
    .info-section a {
        font-size: 1rem;
    }
}

/* ===== OPTIMASI PERFORMA ===== */
.low-performance .rain-drop {
    display: none;
}

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

.low-performance .submit-btn:hover,
.low-performance .form-group input:focus,
.low-performance .form-group textarea:focus,
.low-performance .social-links a:hover,
.low-performance .info-section a:hover,
.low-performance .footer-social a:hover {
    animation: none;
    transform: none;
}

/* ===== PAGE TRANSITION ===== */
.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: var(--main-color);
    animation: spin 1s linear infinite;
}

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


/* 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: Scroll animation */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    will-change: opacity, transform;
}

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

/* Optimasi: Animation delays */
.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: Form animations */
.form-row, .form-group.full-width {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
    will-change: opacity, transform;
}

.form-row.active, .form-group.full-width.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optimasi: Testimonial animations */
.testimonial {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
    will-change: opacity, transform;
}

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

/* Optimasi: Low performance mode */
.low-performance .rain-drop {
    display: none;
}

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

/* Paused animations when not visible */
.animation-paused * {
    animation-play-state: paused !important;
}

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

/* Pesan terima kasih */
.thank-you-message {
    display: none;
    text-align: center;
    padding: 2rem;
    margin-top: 1rem;
    background-color: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.thank-you-message.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.thank-you-message i {
    font-size: 3rem;
    color: #00e5ff;
    margin-bottom: 1rem;
}

.thank-you-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.thank-you-message p {
    color: rgba(255, 255, 255, 0.9);
}

/* Untuk menyembunyikan form */
.form-hidden {
    display: none;
}