/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap");

/* Global Styling */
body {
    font-family: "Poppins", sans-serif;
}

/* Button Styles */
.btn-danger {
    background-color: #bd0001;
    border-radius: 10px;
    border-color: #bd0001;
    padding: 10px 45px;
    color: white;
}

.btn-outline-danger {
    background-color: transparent;
    border-radius: 10px;
    border-color: #bd0001;
    padding: 10px 45px;
    color: #bd0001;
}

/* Navbar Styles */
.nav-item .nav-link {
    font-size: 18px;
    margin-left: 5px;
    margin-right: 5px;
}

.scroll-nav-active {
    background-color: white;
    box-shadow: 1px 1px 11px -1px rgba(0, 0, 0, 0.08);
}

.text-nav-active {
    color: black;
}

/* Hero Section */
#hero {
    background-image: url("../image/bg-hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 600px;
}

.hero-title {
    padding-top: 200px;
}

/* Responsiveness */
@media screen and (min-width: 450px) {
    .hero-text {
        font-size: 35px;
        font-weight: 600;
    }
}

@media screen and (min-width: 800px) {
    .hero-text {
        font-size: 65px;
        font-weight: 600;
    }
}

/* Join Section */
.stripe {
    height: 5px;
    width: 40px;
    background-color: #bd0001;
}

/* Video Section */
#video {
    background-image: url("../../assets/image/bg-video.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
}

/* Foto Section */
.section-foto {
    background-attachment: fixed;
    background-position: top;
    background-size: cover;
    height: 500px;
    width: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax {
    background-image: url("../../assets/image/bg-video.jpg");
}

.stripe-putih {
    height: 5px;
    width: 40px;
    background-color: #ffffff;
}

/* Navbar Custom Styles */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #ebebeb;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: #212529 !important;
    font-weight: 500;
    margin-right: 15px;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #333 !important;
}

.btn-outline-danger {
    color: #333;
    border-color: #333;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #333;
    color: #fff;
}

.btn-danger {
    background-color: #333;
    border: none;
}

/* Button Toggler */
.navbar-toggler {
    border: none;
    outline: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

/* Navbar Toggler Icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0, 0, 0, 0.7)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 30px;
    height: 30px;
}

/* Berita Section */
#berita {
    background-color: #f9f9f9;
    padding: 20px 0;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

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

.card img {
    height: 200px;
    object-fit: cover;
}

/* Responsive Navbar Fixes - Removed legacy overrides to allow Bootstrap 5 defaults */

/* Utility Classes */
.transition-up {
    transition: all 0.3s ease;
}

.transition-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Utility Classes */
.transition-up {
    transition: all 0.3s ease;
}

.transition-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

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

/* Card Improvements */
.card {
    border-radius: 15px;
    overflow: hidden;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    letter-spacing: -0.5px;
}

/* Hero Section Refinement */
.hero-text {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Navbar Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #dc3545;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2.5rem;
    }
    
    #hero {
        height: 500px;
    }
    
    .hero-title {
        padding-top: 150px;
    }
}

/* Line Clamp for excerpt truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Offcanvas Sidebar Styles */
.offcanvas {
    width: 280px !important;
}

.offcanvas-start {
    border-right: none;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.offcanvas .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f8f9fa;
}

/* Gallery & Immersive Overlays */
.gallery-card img {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.translate-up {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .translate-up {
    transform: translateY(0);
}

/* Stripe Utility */
.stripe-danger {
    height: 4px;
    width: 50px;
    background-color: #dc3545;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-text {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-text {
        font-size: 2rem !important;
    }
    
    .btn-lg {
        padding: 1rem 2rem !important;
        font-size: 1rem;
    }
}

/* Ticker Animation */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-wrapper:hover .animate-ticker {
    animation-play-state: paused;
}

/* Text shadow for hero */
.text-shadow {
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Border utility for sidebar list */
.last-child-border-0:last-child {
    border-bottom: 0 !important;
}

/* Gallery Zoom Icon */
.gallery-card:hover .gallery-zoom-icon {
    opacity: 1 !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Futuristic 2030 Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.hover-border-danger:hover {
    border-color: rgba(220, 53, 69, 0.5) !important;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
}

.shadow-glow-danger {
    box-shadow: 0 0 40px rgba(220, 53, 69, 0.2);
}

.fw-black {
    font-weight: 900;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.blur-3xl {
    filter: blur(60px);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
    100% { transform: translate(0, 0); }
}

.animate-float {
    animation: float 10s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 15s ease-in-out infinite;
    animation-delay: -5s;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.hover-translate-x:hover {
    transform: translateX(10px);
}

.group-hover-scale:hover {
    transform: scale(1.1);
}

/* Navbar Dark Overrides */
.navbar-dark .nav-link.active {
    color: #fff !important;
}

@media (max-width: 991px) {
    .display-1 {
        font-size: 3.5rem;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hidden {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
