/* Custom Styles for ILDEX Vietnam Landing Page */

:root {
    --primary-color: #0066CC;
    --secondary-color: #004499;
    --accent-color: #FF6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
}

/* Global Styles */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    padding-top: 76px; /* Account for fixed navbar */
    position: relative;
}

/* Scrollspy section offsets */
section[id] {
    scroll-margin-top: 80px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.1em;
}

#navbarNav .nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Scrollspy active state */
#navbarNav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
}

/* Info Cards */
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.info-card i {
    transition: transform 0.3s ease;
}

.info-card:hover i {
    transform: scale(1.2);
}

/* Statistics Section */
#statistics {
    background:url("polygon-luminary.svg") no-repeat center center;
    background-size: cover;
}
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

/* Booth Cards */
#booths {
    background-attachment: fixed;
    background-image: url('background-img-slider.jpg');
    background-size: cover !important;
    background-position: 50% 0 !important;
    background-repeat: no-repeat;
}
.booth-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.pricing h3 {
    font-size: 2rem;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Organizer Cards */
.organizer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organizer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Info Section Cards */
.info-section-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Nav Pills */
.nav-pills .nav-link {
    border-radius: 8px;
    margin: 0 5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#navbarNav .nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(0, 102, 204, 0.1);
}

/* Contact Form */
.contact-form {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    padding: 12px 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #e0e0e0;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 2px solid #e0e0e0;
    border-radius: 0 0 15px 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    /* section {
        padding: 30px 0 0;
    } */

    .stat-card h3 {
        font-size: 2.5rem;
    }

    .navbar-brand {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll to Top Button (optional) */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Video Section */
.video-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0.375rem;
}

.video-wrapper #youtube-placeholder {
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper #youtube-placeholder img {
    opacity: 0.85;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrapper:hover #youtube-placeholder img {
    opacity: 1;
}

.video-wrapper #youtube-placeholder > div:last-child {
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-wrapper:hover #youtube-placeholder > div:last-child {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.video-wrapper #youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* List Styling */
.list-unstyled li {
    padding: 2px 0;
    display: flex;
    align-items: flex-start;
}

.list-unstyled li i {
    margin-right: 10px;
    flex-shrink: 0;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Text Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Loading Animation (if needed) */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

