/* Custom Styles for Undangan Khitanan */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Amiri', serif;
    letter-spacing: 0.025em;
}

.font-arabic {
    font-family: 'Amiri', serif;
}

.font-script {
    font-family: 'Great Vibes', cursive;
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

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

/* Section Styles */
section {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0));
    z-index: 1;
    pointer-events: none;
}

/* Card Styles */
.card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
}

/* Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover:after {
    width: 300%;
    height: 300%;
}

/* Profile Image Styles */
.profile-image {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.profile-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 60%, rgba(16, 185, 129, 0.1) 100%);
}

/* Gallery Styles */
.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.03);
}

.gallery-image img {
    transition: transform 0.5s ease;
}

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

/* Form Styles */
.form-input {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Music Player Styles */
.music-control {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: scale(1.05);
}

.music-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #0ea5e9;
    color: white;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background-color: #0284c7;
    transform: scale(1.1);
}

/* Modal Styles */
.invitation-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecfdf5;
    background-image: url('../assets/pattern.png');
    background-size: cover;
    background-position: center;
    transition: opacity 0.9s ease;
}

/* Islamic Pattern Styles */
.islamic-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

/* Scroll Button Styles */
.scroll-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #0ea5e9;
    color: white;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.scroll-btn:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.scroll-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.scroll-btn:hover:after {
    left: 100%;
}

/* Bank Card Styles */
.bank-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.bank-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bank-card-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    height: 2rem;
    width: auto;
}

.bank-card-chip {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 0.25rem;
    opacity: 0.7;
}

.bank-card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1f2937;
    margin: 1.5rem 0;
}

.bank-card-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.bank-card-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

/* Wishes Card Styles */
.wish-card {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.wish-card:hover {
    background-color: #f8fafc;
    transform: translateX(5px);
    border-left: 3px solid #0ea5e9;
    padding-left: 0.75rem;
}

/* Footer Styles */
footer {
    background-color: #1f2937;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .profile-image {
        width: 6rem;
        height: 6rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #0ea5e9;
    border-color: #0ea5e9 transparent #0ea5e9 transparent;
    animation: loading 1.2s linear infinite;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
}

.countdown-label {
    font-size: 0.75rem;
    color: #64748b;
}

/* Decorative Elements */
.decorative-line {
    position: relative;
    height: 2px;
    width: 100px;
    background-color: #0ea5e9;
    margin: 1rem auto;
}

.decorative-line:before,
.decorative-line:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0ea5e9;
    top: 50%;
    transform: translateY(-50%);
}

.decorative-line:before {
    left: -4px;
}

.decorative-line:after {
    right: -4px;
}

/* Ornamental Borders */
.ornamental-border {
    position: relative;
    padding: 2rem;
}

.ornamental-border:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #0ea5e9;
    border-radius: 0.5rem;
    opacity: 0.3;
    pointer-events: none;
}

.ornamental-border:after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid #0ea5e9;
    border-radius: 0.25rem;
    opacity: 0.2;
    pointer-events: none;
}

/* Dual Profile Styles */
.dual-profile-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* Joined Profile Images */
.joined-profile-container {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto;
}

.joined-profile-left {
    position: absolute;
    left: 0;
    width: 100px;
    height: 100px;
    border-radius: 50% 0 0 50%;
    overflow: hidden;
    border: 4px solid white;
    border-right: 2px solid white;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
}

.joined-profile-right {
    position: absolute;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 0 50% 50% 0;
    overflow: hidden;
    border: 4px solid white;
    border-left: 2px solid white;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.joined-profile-left img,
.joined-profile-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.joined-profile-left:hover,
.joined-profile-right:hover {
    z-index: 10;
    transform: scale(1.05);
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-divider {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: rgba(16, 185, 129, 0.2);
    margin: 2rem 0;
}

.profile-divider:before {
    content: '&';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: #0ea5e9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .profile-divider {
        width: 2px;
        height: 100%;
        margin: 0;
    }
    
    .profile-divider:before {
        content: '&';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.joined-profile {
  display: flex;
  align-items: center;
  position: relative;
}

.joined-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.second-img {
  margin-left: -20px; /* membuat efek tumpang tindih (join) */
}
