/* Custom CSS untuk GLEH Landing Page */

:root {
    --red-primary: #d60000;
    --red-dark: #a50000;
    --red-light: #ff4444;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navbar */
.bg-red {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark)) !important;
}

.navbar-brand {
    font-size: 2rem !important;
    letter-spacing: 2px;
}

.btn-cta {
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* Colors */
.text-red {
    color: var(--red-primary) !important;
}

.bg-red {
    background-color: var(--red-primary) !important;
}

.bg-dark-red {
    background: linear-gradient(135deg, var(--red-dark), #800000) !important;
}

.btn-red {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
    color: white;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-red:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 0, 0, 0.3);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
}

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

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red-primary);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 40px;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(214, 0, 0, 0.3);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--red-primary);
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--red-primary);
}

.accordion-button:not(.collapsed) {
    background-color: #fff5f5;
    color: var(--red-primary);
    border-color: var(--red-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(214, 0, 0, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-icon {
        width: 40px;
        height: 40px;
    }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Badge styles */
.badge {
    border-radius: 20px;
    padding: 8px 16px;
}

/* Footer links */
footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item img {
    transition: all 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(214, 0, 0, 0.8), rgba(165, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

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

/* Carousel Styles */
.bg-gradient-red {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark)) !important;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(214, 0, 0, 0.3);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--red-primary);
    border: 2px solid white;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: white;
    border-color: var(--red-primary);
}

/* Company Profile Stats */
.display-6 {
    font-size: 2.5rem;
    line-height: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}