:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #a8dadc;
    --light-color: #f1faee;
    --dark-color: #457b9d;
    --green-color: #10ff00;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c1121f;
    border-color: #c1121f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1283&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
}

.section-title {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background-color: var(--primary-color);
}

.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.partner-logo {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.contact-info-box {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 10px;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--accent-color);
}

/* Video Section Styles */
.video-section {
    background-color: var(--light-color);
    padding: 80px 0;
    position: relative;
    height: 1100px;
}

@media (min-width: 769px) {
    .video-section {
        height: 1100px;
    }
    .video-container {
        height: 750px;
    }

    .video-container {            
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        width: fit-content;
        place-self: anchor-center;
    }

    .video-container video {
        width: 600px;
        display: block;
        place-self: center;
    }

    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s;
    }

    .video-overlay:hover {
        background-color: rgba(0,0,0,0.4);
    }

    .video-play-button {
        width: 80px;
        height: 80px;
        background-color: var(--primary-color);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s;
        position: inherit;
    }

    .video-play-button:hover {
        transform: scale(1.1);
        background-color: #c1121f;
    }

    .video-play-button i {
        color: white;
        font-size: 2rem;
        margin-left: 5px;
    }
}

@media (max-width: 768px) {
    .video-section {
        height: 770px;
    }
    .video-container {
        height: 376px;
    }

    .video-container {            
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        width: 350px;
        height: 500px;
        place-self: anchor-center;
    }

    .video-container video {
        width: 600px;
        display: block;
        place-self: center;
    }

    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s;
    }

    .video-overlay:hover {
        background-color: rgba(0,0,0,0.4);
    }

    .video-play-button {
        width: 80px;
        height: 80px;
        background-color: var(--primary-color);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s;
        position: inherit;
    }

    .video-play-button:hover {
        transform: scale(1.1);
        background-color: #c1121f;
    }

    .video-play-button i {
        color: white;
        font-size: 2rem;
        margin-left: 5px;
    }
}

/* Chatbot styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 350px;
    transition: all 0.3s ease;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-body {
    background-color: white;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.chatbot-body.active {
    height: 400px;
    border-bottom: 1px solid #ddd;
}

.chatbot-messages {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
}

.bot-message {
    background-color: #f1f1f1;
    align-self: flex-start;
}

.user-message {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-color: var(--green-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

.chatbot-toggle i {
    font-size: 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 30%;
    }
    
    .chatbot-container {
        width: 90%;
        right: 5%;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
}

/* Gallery 3D Rotation Styles */
.gallery-container {
    perspective: 1500px;
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slider {
    position: absolute;
    width: 220px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotateGallery 40s linear infinite;
}

@keyframes rotateGallery {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.gallery-item {
    position: absolute;
    inset: 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(350px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-slider {
        width: 160px;
        height: 220px;
    }

    .gallery-item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(250px);
    }
}

li.tombol-wa {
    background: #10ff00; 
    margin-bottom: 5px;
    border-radius: 8px;    
}

li.tombol-ig {
    background: #fd0080; 
    margin-bottom: 5px;
    border-radius: 8px;
}

li.tombol-fb {
    background: #002bff; 
    margin-bottom: 5px;
    border-radius: 8px;
}

li.tombol-wa a:hover,
li.tombol-ig a:hover,
li.tombol-fb a:hover {
    border-radius: 8px;
}