/* Base styles */
body {
    margin: 0;
    padding-top: 180px;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #FF4B6B, #FF8585);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?q=80&w=2070&auto=format&fit=crop') center/cover;
    opacity: 0.1;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}
body {
  background: linear-gradient(135deg, 
    rgba(255, 243, 224, 0.97) 0%, /* Warm cream */
    rgba(255, 204, 188, 0.97) 35%, /* Peach */
    rgba(255, 171, 145, 0.97) 65%, /* Salmon */
    rgba(255, 138, 101, 0.97) 100% /* Coral */
  ),
  url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#loginpart, #hoverText {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.text-justify, .display-4, .lead {
  color: #263238;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
}

/* Content spacing and layout */
.row {
    margin: 1.5rem -0.75rem;
    animation: fadeInUp 0.6s ease-out;
}

.row:first-child {
    margin-top: 50px;
}

.col {
    padding: 0.75rem;
}

#loginpart {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.75rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

#searchResult {
    padding: 1.5rem 0;
    animation: fadeInUp 0.8s ease-out;
}

#searchResult .row {
    margin-top: -5rem;
}

.text-justify {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-outline-light {
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.15; }
    100% { opacity: 0.1; }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-align: center;
    padding: 5px;
    animation: headerSlideDown 0.6s ease-out;
    color: white;
    background: linear-gradient(to bottom, #f7711e38 0%, #f9d6b588 100%);
    background-color: rgba(250,30,0,0.2);
    margin-bottom: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header content styling */
header .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 15px auto;
    padding: 3px 20px;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hover text styling */
#hoverText {
    display: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    min-height: 24px;
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

#hoverText.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}

header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

header h1:hover {
    transform: scale(1.02);
}

header p.lead {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 0.75rem;
    line-height: 1.6;
}

header nav {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 1rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

header .btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1.25rem;
}

header .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.display-4 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Form styling */
.form-control {
    background: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transform: translateY(0);
}

.form-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    outline: none;
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

form {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

form:not(.d-none) {
    animation: formSlideIn 0.4s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form .btn-primary {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    border: none;
    padding: 14px 40px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(255,65,108,0.3);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,65,108,0.4);
    background: linear-gradient(135deg, #FF4B2B, #FF416C);
}

select.form-control {
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
                      linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                    5px 5px;
    background-repeat: no-repeat;
}

select.form-control option {
    background: #0072ff;
    color: white;
}

/* Card styling */
.card {
    border-radius: 25px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 2;
    cursor: pointer;
    /* background: rgba(255, 255, 255, 0.35); */
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.4);
}

.card h5 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    margin-bottom: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}
.bg-red {
    background: linear-gradient(135deg, #FF3366, #FF6B6B);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: cardPulse 2s ease-in-out infinite;
    box-shadow: 0 15px 45px rgba(255,51,102,0.3);
}

.bg-green {
    background: linear-gradient(135deg, #00B894, #38EF7D);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: cardPulse 2s ease-in-out infinite;
    animation-delay: 0.4s;
    box-shadow: 0 15px 45px rgba(0,184,148,0.3);
}

.bg-orange {
    background: linear-gradient(135deg, #FF9F43, #FFA41B);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: cardPulse 2s ease-in-out infinite;
    animation-delay: 0.8s;
    box-shadow: 0 15px 45px rgba(255,159,67,0.3);
}

.bg-blue {
    background: linear-gradient(135deg, #0ABDE3, #48DBF8);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: cardPulse 2s ease-in-out infinite;
    animation-delay: 1.2s;
    box-shadow: 0 15px 45px rgba(10,189,227,0.3);
}

.bg-purple {
    background: linear-gradient(135deg, #A55EEA, #8854D0);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: cardPulse 2s ease-in-out infinite;
    animation-delay: 1.6s;
    box-shadow: 0 15px 45px rgba(165,94,234,0.3);
}

.bg-yellow {
    background: linear-gradient(135deg, #FED330, #F7B731);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: cardPulse 2s ease-in-out infinite;
    animation-delay: 2s;
    box-shadow: 0 15px 45px rgba(254,211,48,0.3);
}

/* Tooltip styling */
.tooltip-text {
    visibility: hidden;
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
    text-align: center;
    border-radius: 15px;
    padding: 10px 20px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

/* Hover untuk menampilkan tooltip */
a:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.5); }
}

/* WhatsApp icon styling */
img[src*="WhatsApp"] {
    width: 180px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25)); */
    border-radius: 60px;
    padding: 0px;
    backdrop-filter: blur(12px);
    border: 4px solid rgba(37, 211, 102, 0.5);
    z-index: 5;
    position: relative;
    display: block;
    animation: float 1s ease-in-out infinite;
    cursor: pointer;
}

img[src*="WhatsApp"]:hover {
    transform: scale(1.1) rotate(-10deg) translateY(-5px);
    filter: drop-shadow(0 25px 45px rgba(37, 211, 102, 0.4));
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.8);
    border-radius: 60px;
    animation: glow 1.5s ease-in-out infinite;
}
