/* Base Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    margin: 0;
}

.header {
    display: flex; 
    align-items: center; 
    padding: 10px; 
}

.header-image {
    max-width: 200px; 
    height: auto; 
    margin-right: 20px; 
}

.tagline {
    font-size: 24px;   /* Default font size */
    color: #ccc;       /* Tagline color */
    text-align: right; /* Default alignment */
    flex-grow: 1;      /* Allow tagline to grow */
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #222; 
    padding: 50px;
    color: white; 
}

.hero-content {
    max-width: 500px;
}

/* General Layout */
.hero-image img {
    max-width: 450px; 
    height: auto;
    filter: grayscale(100%); 
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff; 
}

h2 {
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    color: #777; 
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ddd; 
}

.logo-responsive {
  max-width: 100%;
  height: auto;
  width: 120px; /* optional: default size for desktops */
}

.tagline-neon {
    text-align: center;
    margin: var(--space-8) 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, transparent 70%);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
}

.neon-text {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 20px var(--primary-color);
    animation: flicker 3s infinite alternate;
    letter-spacing: 2px;
}

.glow {
    color: #ff8c42; /* Warm orange */
    text-shadow: 
        0 0 5px #ff8c42,
        0 0 10px #ff8c42,
        0 0 15px #ff8c42,
        0 0 20px #ff8c42,
        0 0 35px #ffb366;
    animation: happinessGlow 2s infinite;
}

.pulse {
    color: #4ecdc4;
    text-shadow: 
        0 0 5px #4ecdc4,
        0 0 10px #4ecdc4,
        0 0 15px #4ecdc4;
    animation: intensePulse 1.5s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes colorPulse {
    0%, 100% { 
        color: #ff8c42;
        text-shadow: 
            0 0 5px #ff8c42,
            0 0 10px #ff8c42,
            0 0 15px #ff8c42,
            0 0 20px #ff8c42;
    }
    50% { 
        color: #ffb366;
        text-shadow: 
            0 0 8px #ffb366,
            0 0 15px #ffb366,
            0 0 25px #ffb366,
            0 0 35px #ff8c42;
    }
}

@keyframes intensePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Bandar POS */
.bandarpos-feature {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bandarpos-feature:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.bandarpos-feature:active {
    transform: translateY(-2px) scale(1.01);
}

.bandarpos-feature .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 60, 114, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: inherit;
}

.bandarpos-feature.loading .loading-overlay {
    opacity: 1;
    visibility: visible;
}

/* Ripple effect on click */
.bandarpos-feature::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.bandarpos-feature.clicked::after {
    width: 300px;
    height: 300px;
}

/* Button Styles */
.btn {
    background-color: #555; 
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #777; 
}

.bandarpos-logo-card {
    display: inline-block;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-modern {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text-modern {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.brand-name {
    color: var(--dark-color);
}

.brand-pos {
    color: var(--primary-color);
    font-weight: 700;
}

/* Key Features Section */
.key-features {
    text-align: center;
    padding: 40px;
    background-color: #fff; 
    color: #000; 
}

.key-features h2{
    color: #222;
}

.feature-container {
    display: flex; 
    gap: 20px; 
}

.large-feature-box {
    flex: 2; 
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    display: flex; 
    flex-direction: column;
    justify-content: center;
}

.large-feature-box iframe {
    width: 80%; 
    height: auto; 
    aspect-ratio: 16/9; 
    border: none; 
}

.small-features {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    flex: 1; 
}

.feature-box {
    display: grid;                  
    place-items: center;           
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;                  
    text-align: center;                
}

.icon {
    font-size: 3rem; 
    margin-bottom: 10px;
}

.item {
    margin-bottom: 20px; 
}

.item h3 {
    font-size: 1.5rem; 
    margin: 10px 0; 
}

/* More Link Styles */
.more-link {
    color: #00bcd4; 
    text-decoration: none; 
    font-weight: bold; 
}

.more-link:hover {
    text-decoration: underline; 
}

/* Data Visualization Section */
.data-visualization {
    display: flex; 
    align-items: center; 
    background-color: #000; 
    color: #fff; 
    padding: 40px; 
}

.visualization-image {
    flex: 1; 
    max-width: 500px; 
}

.visualization-image img {
    width: 100%; 
    height: auto; 
}

.visualization-content {
    flex: 1; 
    padding-left: 20px; 
}

/* IT Solutions Section */
.it-solutions {
    display: flex; 
    align-items: center; 
    background-color: #fff; 
    padding: 40px; 
    gap: 40px; 
}

.it-solutions p{
    color: #222;
    line-height: 1.6;
    font-size: 1.1rem;
}

.solution-content {
    flex: 1; 
}

.solution-content h2 {
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    color: #111; 
}

.solution-content p {
    margin-bottom: 20px; 
}

/* Learn More Button */
.learn-more {
    display: inline-block; 
    padding: 10px 20px; 
    background-color: #00bcd4; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
}

.learn-more:hover {
    background-color: #008cba; 
}

/* Solution Image */
.solution-image {
    flex: 1; 
    max-width: 400px; 
}

.solution-image img {
    width: 100%; 
    height: auto; 
}

/* Advanced Solutions */
.advanced-solutions {
    display: flex; /* Default flex layout */
    background-color: #000; /* Background color */
    color: #fff; /* Text color */
    padding: 40px; /* Padding around section */
    gap: 40px; /* Space between image and text */
    flex-wrap: wrap; /* Allow items to wrap in case of small screens */
}

/* Solution Image */
.solution-image {
    flex: 1; /* Image takes one part of flex */
    border-radius: 8px; /* Rounded corners */
    display: flex; /* Flex layout for internal alignment */
    align-items: center; 
    justify-content: center; 
}

.solution-image img {
    width: 100%; 
    height: auto; 
}

/* Solutions Content */
.solutions-content {
    flex: 1; 
}

/* Solution Boxes */
.solution-boxes {
    display: grid; /* Use grid for solution boxes */
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px; /* Space between boxes */
}

.solution-box {
    background-color: #fff; 
    border-radius: 10px; 
    padding: 20px; 
    text-align: center; 
    color:#333;
}

/* Involvement Process */
.involvement-process {
    background-color: #f9f9f9; 
    padding: 40px; 
}

.process-content {
    display: flex; 
    align-items: flex-start; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.process-title {
    flex: 1; 
    padding-right: 20px; 
}

.process-title h2{
    color:#222;
}

.process-description {
    flex: 1; 
}

.process-description p {
    margin-bottom: 20px; 
    line-height: 1.6; 
    color: #222; 
    font-size: 1.1rem;
}

/* Learn More Button */
.learn-more {
    display: inline-block; /* Keep as inline block to maintain padding */
    padding: 10px 20px; /* Button padding */
    background-color: #00bcd4; /* Button color */
    color: #fff; /* White text */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Bold text */
    margin-top: 20px; /* Space above the button */
    width: fit-content; /* Make the button fit its content */
    text-align: center; /* Center text in the button */
}

.learn-more:hover {
    background-color: #008cba; 
}

/* Get In Touch Section */
.get-in-touch {
    background-color: #000; 
    color: #fff; 
    text-align: center; 
    padding: 40px; 
}

.get-in-touch h2 {
    font-size: 2.5rem; 
    margin-bottom: 10px; 
}

.get-in-touch p {
    margin-bottom: 40px; 
    line-height: 1.6; 
}

/* Contact Info Section */
.contact-info {
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.contact-card {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    padding: 20px; 
    width: 250px; 
    text-align: left; 
    transition: background 0.3s; 
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2); 
}

.contact-card-icon {
    font-size: 2rem; 
    margin-bottom: 10px; 
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Dark background */
}

/* Modal content */
.modal-content {
    position: relative; /* Make it a positioning context */    
    background-color: #1e1e2f; /* Dark gray background for a modern look */
    color: #ffffff; /* White text */
    margin: 10% auto; /* Center the modal with some space above */
    padding: 10px; /* Reduced padding */
    border-radius: 8px; /* Rounded corners */
    width: 90%; /* Responsive width */
    max-width: 550px; /* Further reduced max width */
    max-height: 80%; /* Maintain height limit for scrolling */
    overflow-y: auto; /* Allow vertical scroll if needed */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Soft shadow for depth */
}

/* Close button */
.close {
    position: absolute; /* Position absolute to place it in relation to modal */
    top: 10px; /* Space from the top */
    right: 10px; /* Space from the right */
    color: #ffffff; /* White icon color */
    background-color: #ff4d4f; /* Bright background color */
    border: none; /* No border */
    border-radius: 50%; /* Circular shape */
    width: 40px; /* Increased size */
    height: 40px; /* Increased size */
    display: flex; /* Center the icon */
    align-items: center; /* Vertical alignment */
    justify-content: center; /* Horizontal alignment */
    font-size: 24px; /* Larger font size for better visibility */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
}

/* Hover effect */
.close:hover,
.close:focus {
    background-color: #d92f2f; /* Darker shade on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Close icon */
.close::before {
    content: '✖'; /* Close icon */
    font-weight: bold; /* Make the icon bold */
    line-height: 1; /* Adjust line height for better vertical alignment */
}

/* Modal content specific styles */
.modal .modal-content h2 {
    color: #A0542B; /* Light blue color for h2 headings */
    font-size: 24px; /* Font size */
    margin-bottom: 15px; /* Space below */
}

.modal .modal-content h3 {
    color: #00bcd4; /* Light blue color for h3 headings */
    font-size: 20px; /* Font size */
    margin-top: 10px; /* Space above */
    margin-bottom: 10px; /* Space below */
}

.modal .modal-content p {
    color: #ffffff; /* White text color for paragraphs */
    font-size: 16px; /* Font size */
    line-height: 1.6; /* Improved line height for readability */
    margin-bottom: 10px; /* Space below paragraphs */
}

.modal .modal-content ul {
    color: #ffffff; /* White text color for lists */
    padding-left: 20px; /* Indentation for lists */
    margin-bottom: 10px; /* Space below lists */
}

.modal .modal-content a {
    color: #00bcd4; /* Light blue color for links */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s; /* Smooth color transition */
}

.modal .modal-content a:hover {
    color: #ff4d4f; /* Change color on hover */
}

.modal .modal-content .heading {
    font-size: 24px; /* Base font size for larger screens */
    text-align: center; /* Center-align the text */
    margin: 15px 0; /* Margin for spacing */
}

/* Logo styles */
.modal .modal-content .logo img {
    height: 60px; /* Maintain height on larger screens */
    max-width: 100%; /* Ensure the image is responsive */
    margin-left: 8px; /* Space between text and logo */
}

.modal .modal-content .service-list li {
    margin-bottom: 1rem; /* Adjust the spacing as needed */
}

/* Footer */
footer {
    background-color: #333; 
    color: #fff; 
    text-align: center; 
    padding: 20px 0; 
    position: relative; 
    bottom: 0; 
    width: 100%; 
    font-size: 1rem; 
}

footer p {
    margin: 0; 
}

.btn-quotation {
    display: inline-block;  /* Make the link behave like a button */
    background-color: #A0542B;  /* Button background color */
    color: white;  /* Text color */
    padding: 10px 20px;  /* Padding for the button */
    border-radius: 5px;  /* Rounded corners */
    text-decoration: none;  /* Remove underline from link */
    margin-top: 15px;  /* Space above the button */
    font-size: 16px;  /* Font size for button text */
    transition: background-color 0.3s;  /* Smooth background transition */
}

.btn-quotation:hover {
    background-color: #905029;  /* Darker shade on hover */
}

/* Media Queries */
/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column; /* Stack elements vertically */
        padding: 20px; /* Reduce padding */
    }

    .hero-content {
        max-width: 100%; /* Allow full width */
        text-align: center; /* Center text */
        margin: 0 auto; /* Center horizontally */
    }
    
    .hero-image img {
        max-width: 90%; /* Use most of the screen width */
        margin: 0 auto; /* Center the image */
        display: block; /* Ensure proper centering */
    }    
    
    .tagline {
        text-align: center; /* Center-align tagline on smaller screens */
        font-size: 20px;    /* Slightly reduce font size */
        margin: 10px 0;     /* Add margin for spacing */
    }    

    h1, h2 {
        font-size: 2rem; /* Smaller font for titles */
    }

    .key-features {
        padding: 20px; /* Reduce padding */
    }

    .feature-container {
        flex-direction: column; /* Stack features vertically */
        gap: 10px; /* Reduce spacing */
    }

    .small-features {
        grid-template-columns: 1fr; /* One column layout */
    }

    .data-visualization, .it-solutions, .advanced-solutions {
        flex-direction: column; /* Stack sections vertically */
        align-items: flex-start; /* Align text to the left */
    }

    .visualization-image, .solution-image {
        max-width: 100%; /* Ensure images are responsive */
    }
    
    .advanced-solutions {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .solution-image {
        max-width: 100%; /* Ensure image takes full width */
    }    

    .process-content {
        flex-direction: column; /* Stack the process layout */
        align-items: center; /* Center items */
        gap: 20px; /* Spacing between items */
    }

    .contact-info {
        flex-direction: column; /* Stack contact cards vertically */
        align-items: center; /* Center align cards */
    }

    .contact-card {
        width: 100%; /* Full width for cards */
        max-width: 300px; /* Add max width for mobile */
    }
    
    .close {
        width: 36px; /* Slightly smaller for mobile */
        height: 36px; /* Slightly smaller for mobile */
        font-size: 20px; /* Adjust font size for mobile */
    }
    
    .modal-content {
        padding: 5px; /* Consistent padding */
        max-width: 90%; /* Flexible for tablets */
    }

    .modal-content h2,
    .modal-content h3 {
        font-size: 14px; /* Adjusted heading font sizes */
        margin-top: 5px; /* Less space above headings */
        margin-bottom: 5px; /* Less space below headings */
    }

    .modal-content p {
        font-size: 12px; /* Smaller paragraph font size */
        margin-bottom: 2px; /* Space below paragraphs */
    }

    .modal-content ul {
        font-size: 12px; /* Adjusted list font size */
        margin-bottom: 2px; /* Space below lists */
    }

    .modal-content a {
        font-size: 12px; /* Adjusted link font size */
        display: block; /* Block display for better spacing */
        margin-bottom: 2px; /* Space below links */
    }
    
    .modal-content .heading {
        font-size: 20px; /* Reduced font size for tablets */
        margin: 12px 0; /* Adjust margin for smaller devices */
    }

    .modal-content .logo img {
        height: 50px; /* Slightly reduce logo height */
        margin-left: 5px; /* Less margin on smaller devices */
    }   
    .btn-quotation {
        margin-bottom:10px;  /* Darker shade on hover */
    } 
    
    .tagline,
    .tagline-text,
    .neon-text {
        font-size: var(--text-lg);
    }
    
    .tagline-badge {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
    }
    
    .badge-text {
        align-items: center;
    }
    
    .word {
        margin: var(--space-1);
        display: inline-block;
    }    
    
}

/* Mobile Styles */
@media (max-width: 480px) {
    .header {
        flex-direction: column; /* Stack header components vertically */
        align-items: center; /* Center items horizontally */
    }

    .header-image {
        max-width: 150px; /* Smaller header image */
    }
    
    .hero-image img {
        max-width: 100%; /* Full width for small screens */
    }    

    h2 {
        font-size: 1.8rem; /* Further reduce font size for mobile */
    }

    .learn-more {
        display: block; /* Change to block */
        margin: 20px auto; /* Center the button */
        max-width: 200px; /* Set a max width */
        width: 90%; /* Allow to take 90% of the screen up to max width */
    }

    .get-in-touch h2 {
        font-size: 2rem; /* Smaller font size on mobile */
    }

    p {
        font-size: 1rem; /* Smaller paragraphs */
    }
    
    .advanced-solutions {
        padding: 15px; /* Further reduce padding */
    }
    
    .solution-content h2 {
        font-size: 1.8rem; /* Smaller title font size */
        text-align: center; /* Center title */
    }

    .solution-content p {
        font-size: 1rem; /* Smaller paragraph font size */
        text-align: center; /* Center paragraph text */
    }
    
    .close {
        width: 32px; /* Further smaller button for very small screens */
        height: 32px; /* Further smaller button for very small screens */
        font-size: 18px; /* Further adjusted font size */
        right: 8px; /* Slightly adjust spacing for small screens */
        top: 8px; /* Slightly adjust spacing for small screens */
    }
    
    .modal-content {
        max-width: 90%; /* Flexible max-width for mobile */
        margin: 10% auto; /* Centering margin */
        padding: 5px; /* Reduced padding on mobile */
    }

    .modal-content h2 {
        font-size: 12px; /* Further reduced h2 font size */
    }

    .modal-content h3 {
        font-size: 10px; /* Further reduced h3 font size */
    }

    .modal-content p {
        font-size: 10px; /* Further reduced paragraph font size */
        line-height: 1.2; /* Adjusted line height for readability */
        margin-bottom: 2px; /* Space below paragraphs */
    }

    .modal-content ul {
        font-size: 10px; /* Smaller font size for lists */
    }

    .modal-content a {
        font-size: 10px; /* Smaller font size for links */
        display: block; /* Ensure good spacing */
        margin-bottom: 2px; /* Space below links */
    }
    
    .modal-content .heading {
        font-size: 18px; /* Further reduced font size for mobiles */
        margin: 10px 0; /* Adjust margin for mobile */
    }

    .modal-content .logo img {
        height: 40px; /* Further reduce logo height */
        margin-left: 3px; /* Adjust margin for mobile */
    }    
}