/*
 * @Author: Dicky Ermawan S 
 * @Profile: https://www.linkedin.com/in/dickyermawan/ 
 * @Date: 2025-12-26 09:14:00 
 * @Last Modified by: Dicky Ermawan S
 * @Last Modified time: 2025-12-26 09:14:00
 * 
 * Styles for site/index page
 */

/* ========== CSS Variables & Reset ========== */
:root {
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 50%, #fef3c7 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-hover-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #047857;
    --text-secondary: #059669;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========== Global Styles ========== */
/* Removed smooth scroll to fix lag */
/* * {
    scroll-behavior: smooth;
} */

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 600px;
    margin: 0 auto;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Activity Cards ========== */
.activity-container {
    position: relative;
    z-index: 2;
}

.card-activity {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 0;
    animation: fadeInCard 0.6s ease-out forwards;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-activity:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--card-hover-bg);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card-activity:hover::before {
    transform: scaleX(1);
}

.card-activity.closed {
    opacity: 0.5;
    filter: grayscale(100%);
}

.card-activity.closed:hover {
    opacity: 0.7;
    transform: translateY(-5px) scale(1.01);
}

/* Activity Tooltip */
.activity-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-activity.closed:hover .activity-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Poster */
.poster {
    height: 280px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.poster::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-activity:hover .poster::after {
    opacity: 1;
}

.poster::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.poster:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
}

/* Card Body */
.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.activity-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
    line-height: 1.4;
}

.activity-title:hover {
    color: var(--text-secondary);
    transform: translateX(5px);
    text-decoration: none;
}

.activity-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.activity-meta i {
    color: var(--text-secondary);
    font-size: 1rem;
}

.activity-description {
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== Loader ========== */
.loader {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    border-color: var(--text-secondary);
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader p {
    margin-top: 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
}

/* ========== Modal ========== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border: none;
    padding: 20px 20px 0;
}

.btn-close {
    background-size: 24px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ========== Scroll to Top Button ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    will-change: opacity, visibility, transform;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top i {
    color: white;
    font-size: 1.5rem;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-activity {
        margin-bottom: 20px;
    }

    .poster {
        height: 220px;
    }

    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top i {
        font-size: 1.25rem;
    }
}

/* ========== Utility Classes ========== */
.text-primary {
    color: var(--text-primary) !important;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}