/* Home Page Custom Styles */

/* Home Slider Welcome Title - Reduced Font Size - ULTRA SPECIFIC */
#home .slider-wrapper .slide.active .slide-content .slide-title.slider-animate,
.slider-wrapper .slide.active .slide-content .slide-title.slider-animate,
.slider-container .slide.active .slide-content .slide-title.slider-animate,
#home .slide-title,
.slider-wrapper .slide-title,
.slider-container .slide-title,
.slide-title {
    font-size: 45px !important;
    color: #ffffff !important;
    text-shadow: none !important;
    background: none !important;
    background-image: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    animation: none !important;
    filter: none !important;
}

/* Override ::before pseudo-element */
#home .slider-wrapper .slide.active .slide-content .slide-title.slider-animate::before,
.slider-wrapper .slide.active .slide-content .slide-title.slider-animate::before,
.slider-container .slide.active .slide-content .slide-title.slider-animate::before,
.slide-title::before {
    display: none !important;
}

/* All Other Slider Descriptions - Set to 22px */
.slide:not([data-slide="0"]) .slide-description,
.slider-wrapper .slide:not([data-slide="0"]) .slide-description,
#home .slide:not([data-slide="0"]) .slide-description,
.main-slider .slide:not([data-slide="0"]) .slide-description,
.slider-container .slide:not([data-slide="0"]) .slide-description {
    font-size: 22px !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Popup Button - Set to solid #6c757d */
.popup-cta {
    background: #6c757d !important;
    color: #ffffff !important;
    background-image: none !important;
}

.popup-cta:hover {
    background: #5a6268 !important;
    background-image: none !important;
}

/* Network Nodes - Grey #6c757d with no border */
.network-hero-section .network-node,
.network-hero-section .node-wrapper .network-node,
.network-node,
.node-wrapper .network-node {
    background: #6c757d !important;
    border: none !important;
}

.network-hero-section .network-node:hover,
.network-node:hover {
    background: #5a6268 !important;
}
.node-popup .discover-more-btn,
.network-hero-section .discover-more-btn,
.network-node .discover-more-btn,
.node-wrapper .discover-more-btn {
    background: #6c757d !important;
    background-color: #6c757d !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

.discover-more-btn:hover,
.node-popup .discover-more-btn:hover,
.network-hero-section .discover-more-btn:hover,
.network-node .discover-more-btn:hover,
.node-wrapper .discover-more-btn:hover {
    background: #5a6268 !important;
    background-color: #5a6268 !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Brand Section Buttons - Solid #6c757d Grey */
.brand-btn {
    background: #6c757d !important;
    background-color: #6c757d !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

.brand-btn.active {
    background: #5a6268 !important;
    background-color: #5a6268 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

.brand-btn:hover {
    background: #5a6268 !important;
    background-color: #5a6268 !important;
    background-image: none !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Remove empty space below brand buttons */
.brand-selector {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#brand .brand-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#brand .brand-selector + .brand-section,
#brand .brand-selector ~ .brand-section {
    margin-top: -20px !important;
    padding-top: 0 !important;
}

/* Align Our Brand content to the left and same font size */
#brand .brand-section,
#brand .brand-section .building-info-section,
#brand .brand-section .building-content,
#brand .brand-section .building-text,
#brand .brand-section p,
#brand .brand-section h3,
#brand .brand-section h4 {
    text-align: left !important;
}

#brand .brand-section p,
#brand .brand-section .building-text p,
#brand .brand-section .hotel-text p,
#brand .brand-section .resort-text p {
    font-size: 16px !important;
}

#resorts .hotel-info-section {
    background: #ffffff !important;
}

/* Our Brand section - Reset position */
#brand .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#brand .section-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Page Visibility Fix */
.page {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Footer Duplication Fix */
.footer {
    clear: both;
    width: 100%;
    display: block;
    position: relative !important;
    background: #6c757d !important;
    bottom: 0 !important;
    margin-top: 300px !important;
    padding-top: 15px !important;
    padding-bottom: 10px !important;
}

/* Networking Animation Section Gap */
.network-hero-section {
    margin-top: 150px !important;
    margin-bottom: 150px !important;
    padding: 70px 0 !important;
}

.footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, #6c757d, transparent) !important;
    animation: shimmer 3s ease-in-out infinite !important;
}

/* Ensure only one footer instance */
footer + footer {
    display: none !important;
}

/* Prevent any footer cloning */
body > footer:not(:last-of-type) {
    display: none !important;
}

/* Enhanced Networking Animation Styles */
.network-hero-section {
    margin-top: 150px !important;
    margin-bottom: 150px !important;
    padding: 70px 0 !important;
    position: relative !important;
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.1), rgba(220, 220, 220, 0.05)) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}

.network-container {
    position: relative !important;
    width: 100% !important;
    height: 400px !important;
    margin: 0 auto !important;
}

.network-canvas {
    position: absolute !important;
    top: 150px !important;
    left: 0 !important;
    width: 100% !important;
    height: 200px !important;
    z-index: 1 !important;
    opacity: 0.8 !important;
}

.network-node {
    position: absolute !important;
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    animation: none !important;
}

.network-node:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #5a6268, #343a40) !important;
}

.node-icon {
    font-size: 24px !important;
    color: white !important;
    animation: none !important;
}

.node-popup {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: white !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
    min-width: 200px !important;
    text-align: center !important;
}

.network-node:hover .node-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-10px) !important;
}

.node-popup h4 {
    margin: 0 0 10px 0 !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.discover-more-btn {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

.discover-more-btn:hover {
    background: linear-gradient(135deg, #5a6268, #343a40) !important;
    transform: translateY(-2px) !important;
}

/* Scroll Animation Styles - Enhanced for both directions */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    will-change: opacity, transform;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reset animation for scroll up - works both directions */
.scroll-animate.fade-out {
    opacity: 0;
    transform: translateY(50px);
}

/* Enhanced overview section animation */
.overview-section {
    overflow: hidden; /* Prevent layout shifts */
}

/* Remove immediate visibility - allow scroll animation */
.overview-section .scroll-animate {
    opacity: 0;
    transform: translateY(50px);
}

.overview-section .scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Slide-up effect for better visual */
.scroll-animate.slide-up {
    transform: translateY(50px) translateZ(0);
}

.scroll-animate.slide-up.visible {
    transform: translateY(0) translateZ(0);
}

/* Fade-in effect alternative */
.scroll-animate.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.scroll-animate.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Service Card Hover Fix - Remove Icon Flip, Add Card Hover */
.service-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(108, 117, 125, 0.3) !important;
}

.service-card:hover::before {
    opacity: 1 !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6c757d 0%, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    transition: all 1.5s ease !important; /* Reduced to 1.5 seconds */
}

.service-card:hover .service-icon {
    transform: scale(1.1) !important;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    /* REMOVED: rotateY(180deg) - No more icon flip */
}

/* Enhanced card hover effect */
.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    padding: 40px 30px !important;
    text-align: center !important;
    transition: all 1.5s ease !important; /* Reduced to 1.5 seconds */
    transform-style: preserve-3d !important;
    position: relative !important;
}

.service-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%) !important;
    border-radius: 20px !important;
    opacity: 0 !important;
    transition: opacity 1.5s ease !important; /* Reduced to 1.5 seconds */
}

/* Service Cards for Scroll Up/Down Animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease !important; /* Slower animation - 0.3 seconds */
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.fade-out {
    opacity: 0;
    transform: translateY(30px);
}

/* Staggered Service Card Animation - All Together */
.service-card:nth-child(1) {
    animation-delay: 0s !important;
    transition-delay: 0s !important;
}

.service-card:nth-child(2) {
    animation-delay: 0s !important; /* Changed from 1s to 0s */
    transition-delay: 0s !important; /* Changed from 1s to 0s */
}

.service-card:nth-child(3) {
    animation-delay: 0s !important; /* Changed from 2s to 0s */
    transition-delay: 0s !important; /* Changed from 2s to 0s */
}

.service-card:nth-child(4) {
    animation-delay: 0s !important; /* Changed from 3s to 0s */
    transition-delay: 0s !important; /* Changed from 3s to 0s */
}

/* Service Icon All Together */
.service-card:nth-child(1) .service-icon {
    transition-delay: 0s !important;
}

.service-card:nth-child(2) .service-icon {
    transition-delay: 0s !important; /* Changed from 1s to 0s */
}

.service-card:nth-child(3) .service-icon {
    transition-delay: 0s !important; /* Changed from 2s to 0s */
}

.service-card:nth-child(4) .service-icon {
    transition-delay: 0s !important; /* Changed from 3s to 0s */
}

/* Service Card Before Pseudo-element All Together */
.service-card:nth-child(1)::before {
    transition-delay: 0s !important;
}

.service-card:nth-child(2)::before {
    transition-delay: 0s !important; /* Changed from 1s to 0s */
}

.service-card:nth-child(3)::before {
    transition-delay: 0s !important; /* Changed from 2s to 0s */
}

.service-card:nth-child(4)::before {
    transition-delay: 0s !important; /* Changed from 3s to 0s */
}

/* Slider Animation Styles */
.slider-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slider-animate.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delays for slider elements */
.slide.active .slider-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.slide.active .slide-title.slider-animate {
    transition-delay: 0.2s;
}

.slide.active .slide-buttons.slider-animate {
    transition-delay: 0.4s;
}

.slide.active .slide-description.slider-animate {
    transition-delay: 0.3s;
}

/* Slide transition animations */
.slide {
    transition: all 0.6s ease-in-out;
}

.slide.active {
    z-index: 10;
}

.slide.prev {
    transform: translateX(-100%) scale(0.8);
    opacity: 0.5;
    z-index: 1;
}

/* Button hover animations */
.btn-primary, .btn-secondary {
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Slider Dots - Centered with Gap */
.slider-dots {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 100 !important;
    padding: 10px 20px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 25px !important;
    backdrop-filter: blur(10px) !important;
}

.slider-dots .dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    margin: 0 !important;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.slider-dots .dot.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
}

/* Info cards - heading and paragraph alignment */
.highlight-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.highlight-item h4,
.highlight-item p {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.highlight-item h4 {
    margin-bottom: 10px !important;
}

.highlight-item .highlight-icon {
    margin-bottom: 15px !important;
    margin-right: 0 !important;
    float: none !important;
}

.highlight-item > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
}
