/* Body and general styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-user-select: none;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

/* Disable image dragging */
img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Header Styling */
header {
    background-color: #0073e6;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content at the top initially */
    height: 100px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu */
#hamburger-menu {
    display: none;
    cursor: pointer;
    position: absolute; /* Position it absolutely within the header */
    top: 10px; /* Adjust this value to position it vertically */
    left: 20px; /* Adjust this value to position it horizontally */
    z-index: 999; /* Ensure it is above other elements */
}

#hamburger-menu .line {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 6px 0;
    transition: 0.3s;
}

/* Navigation Menu */
#nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;  /* Position menu at the bottom */
    width: 100%;  /* Ensure it spans the full width of the header */
}

/* Remove the default list style */
#nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Make the <ul> itself a flex container */
    flex-direction: row; /* Arrange items in a row */
}

#nav-links li {
    margin-right: 20px; /* Add space between menu items */
}

#nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

/* Hover effect */
#nav-links a:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* Active Menu Item Highlight */
#nav-links a.active {
    background-color: #ff5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.7);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
}


/* Login Button */
#login-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: absolute; /* Position absolutely */
    bottom: 10px; /* Vertically align at the bottom */
    right: 20px; /* Align it to the right */
}

/* Hover effect for better visibility */
#login-btn:hover {
    background: #bf360c;
    transform: translateY(-2px);
}

#login-btn:active {
    scale: 0.97;
}

/* Focus effect to enhance accessibility */
#login-btn:focus {
    outline: none;
    box-shadow: 0 0 5px #ff5722;
}

/* Top Bar for Date, Time, IP, and Location */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 998;
}

#ip-location {
    font-size: 14px;
    padding: 0 30px;
    text-align: left; /* Align text to the left */
}

#ip-location .label {
    color: white; /* White color for IP: and Location: */
    font-weight: bold;
}

#ip-location .value {
    color: #39FF14; /* Light neon green color for IP numbers and location */
}

/* Add padding to #ip-location when hamburger menu is visible */
#top-bar.hamburger-visible #ip-location {
    padding-left: 60px; /* Adjust this value as needed */
}

#language-switcher {
    display: flex;
    padding: 0 30px;
}

.flag {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden;
}

/* Modal Styles */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

#modal {
    background-color: white;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box; /* Prevents overflow from padding */
    overflow: hidden; /* Ensures no extra scrollbars */
}

.wide-modal {
    width: 950px !important; /* Wider size for Terms & Privacy */
    max-width: 90%;
}

#modal-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px; /* Add extra right padding for scrollbar clearance */
    box-sizing: border-box;
}

#close-modal {
    position: absolute;
    top: 5px;
    right: 5px; /* Move a bit further from the edge */
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    z-index: 10; /* Ensure it's above modal content */
}

/* Modal Overlay Animations */
#modal-overlay {
    display: none;
    opacity: 0;
    pointer-events: none;
    animation: none;
}
#modal-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
#modal-overlay.closing {
    animation: overlayFadeOut 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; pointer-events: auto; }
}
@keyframes overlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

/* Modal Animations */
#modal {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    animation: none;
}
#modal.active {
    animation: modalIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
#modal.closing {
    animation: modalOut 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(60px) scale(0.97);}
    to { opacity: 1; transform: translateY(0) scale(1);}
}
@keyframes modalOut {
    from { opacity: 1; transform: translateY(0) scale(1);}
    to { opacity: 0; transform: translateY(60px) scale(0.97);}
}

/* Enhance modal for better readability and UX/UI */
.terms-privacy-modal {
    max-width: 950px !important; /* Increase the width to 900px */
    width: 90%;
    padding: 20px; /* Add padding outside the modal content */
    box-sizing: border-box; /* Ensure padding doesn't affect the width */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
}

.terms-privacy-modal #modal-content {
    max-height: 600px; /* Increase the height for better readability */
    overflow-y: auto;
    padding: 20px; /* Add padding for better readability */
    line-height: 1.8; /* Improve line height for readability */
    font-size: 18px; /* Increase font size for better readability */
    background-color: white; /* Ensure the background color is white */
    border-radius: 10px; /* Add border radius for better aesthetics */
    text-align: left; /* Align text to the left */
    color: #333; /* Set text color for better contrast */
}

/* Login Form Styling */
#login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-form label {
    display: block;
    width: 80%;
    text-align: left;
    margin-top: 10px;
}

#login-form input {
    width: calc(100% - 20px); /* Adjust width to fit inside modal */
    max-width: 300px; /* Prevents excessive width */
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

#login-form button {
    width: calc(100% - 20px); /* Ensures button stays within modal */
    max-width: 150px;
    margin-top: 15px;
    padding: 10px;
    background: #ff5722;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
}

#login-form button:hover {
    background: #bf360c;
}

#login-form button:active {
    transform: scale(0.97);
}

#webmail-header {
    width: 100%; /* Make it fit the modal width */
    max-width: 150px; /* Prevent it from being too large */
    display: block;
    margin: 0 auto 15px; /* Center it and add space below */
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 10px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Space between the text and the image */
    align-items: center; /* Align vertically */
    margin-top: auto;
    box-sizing: border-box; /* Ensure padding doesn't affect layout */
    overflow: hidden; /* Prevent overflow */
}



footer a {
    color: #0073e6;
    text-decoration: none;
}

/* Footer Links Hover Effect */
footer a:hover {
    text-decoration: underline;
}



/* Responsive Design */
@media (max-width: 768px) {
    #hamburger-menu {
        display: block;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start; /* Align items to the left */
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust this value to match the height of your header */
        left: 0;
        background-color: #0073e6;
        z-index: 999;
        transition: transform 0.3s ease-in-out;
        padding: 10px 0; /* Add padding to the top and bottom */
    }

    #nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    #nav-links li {
        margin-bottom: 10px;
        width: 100%; /* Ensure the menu items take the full width */
    }

    #nav-links a {
        font-size: 22px;
        width: 100%; /* Ensure the links take the full width */
        padding: 10px 20px; /* Add padding to the links */
    }

    #hamburger-menu {
        display: block;
        position: absolute;
        top: 10px; /* Adjust this value to match the desired alignment */
        left: 20px; /* Adjust this value to match the desired alignment */
    }

    #hamburger-menu.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #hamburger-menu.active .line:nth-child(2) {
        opacity: 0;
    }

    #hamburger-menu.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    #login-btn {
        position: absolute;
        top: 10px; /* Adjust this value to match the desired alignment */
        right: 20px; /* Adjust this value to match the desired alignment */
    }

    footer {
        flex-direction: column; /* Stack text and image vertically on small screens */
        text-align: center; /* Center the text */
    }

    .footer-content {
        flex-direction: column; /* Stack content vertically on small screens */
    }

    footer .img-fluid {
        margin-top: 10px; /* Add space when stacked */
    }
}

/* Tech Stats Section */
#tech-stats {
    padding: 60px 0 60px 0;
    text-align: center;
}

.stats-card {
    background: #fff;
    padding: 48px 40px 40px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(58,123,213,0.10);
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    transition: box-shadow 0.3s;
}

/* Make Browser Stat Card span two columns */
#browser-info {
    grid-column: span 2; /* Occupy both columns */
}

/* Make Speed Gauge span two columns */
.gauge-container {
    grid-column: span 2; /* Occupy both columns */
}

.stats-card h2 {
    font-size: 2.6rem;
    color: #3a7bd5;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -1px;
    grid-column: span 2;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(120deg, #f0f4ff 70%, #eaf6ff 100%);
    padding: 22px 24px;
    border-radius: 14px;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(58,123,213,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.stat-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(58,123,213,0.13);
}

.stat-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin-right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(58,123,213,0.10));
}

.stat-content h3 {
    font-size: 1.18rem;
    color: #3a7bd5;
    margin-bottom: 4px;
    font-weight: 600;
    text-align: left;
}

.stat-content p {
    font-size: 1.08rem;
    color: #444;
    margin: 0;
    text-align: left;
}

.gauge-container {
    grid-column: span 2;
    margin-top: 28px;
    text-align: center;
    /* Remove background, border-radius, box-shadow, and padding here */
}

.gauge-inner {
    max-width: 340px;
    margin: 0 auto;
    padding: 18px 24px;
    background: linear-gradient(90deg, #f0f4ff 60%, #eaf6ff 100%);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(58,123,213,0.07);
}

.gauge-container h3 {
    color: #3a7bd5;
    font-size: 1.18rem;
    margin-bottom: 10px;
}

/* Speed Gauge */
.gauge {
    margin: 0 auto;
    font-size: 1.18rem;
    font-weight: 600;
    color: #3a7bd5;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#3a7bd5 0%, #eaf6ff 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #3a7bd5;
    box-shadow: 0 4px 10px rgba(58,123,213,0.10);
    position: relative;
    overflow: hidden;
}

/* Inner Circle for Gauge */
.gauge::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
}

.gauge span {
    position: absolute;
    z-index: 2;
    font-size: 1.2rem;
    color: #3a7bd5;
    font-weight: bold;
}

@keyframes gauge-fill {
    from {
        background: conic-gradient(#3a7bd5 0%, #eaf6ff 0%);
    }
    to {
        background: conic-gradient(#3a7bd5 var(--percentage, 0%), #eaf6ff var(--percentage, 0%));
    }
}

.gauge {
    animation: gauge-fill 1s ease-out forwards;
}


@media (max-width: 1000px) {
    .stats-card {
        padding: 32px 10px 28px 10px;
        max-width: 100%;
        gap: 18px;
    }
    .stat-item, .gauge-container {
        max-width: 100%;
        padding: 16px 10px;
    }
}

@media (max-width: 768px) {
    .stats-card {
        grid-template-columns: 1fr;
    }
    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }
    .stat-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    #browser-info,
    .gauge-container, .stats-card h2 {
        grid-column: span 1;
    }
}

/* About Card Styles */
.about-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    padding: 48px 40px 40px 40px;
    margin: 48px auto;
    max-width: 1100px;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card:hover {
    box-shadow: 0 8px 48px rgba(0,0,0,0.13);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1 1 340px;
    min-width: 260px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: #3a7bd5;
}

.about-text ul {
    margin: 12px 0 0 0;
    padding-left: 24px;
    list-style-position: inside;
}

.about-image {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-features {
    background: linear-gradient(90deg, #f0f4ff 60%, #eaf6ff 100%);
    border-radius: 14px;
    padding: 18px 22px 14px 22px;
    margin: 22px 0 0 0;
    box-shadow: 0 2px 12px rgba(58,123,213,0.06);
}

.about-features strong {
    display: block;
    margin-bottom: 8px;
    color: #3a7bd5;
    font-size: 1.08rem;
}

.about-features ul {
    margin: 0;
    padding-left: 20px;
    font-size: 1.08rem;
    list-style-position: inside;
}

@media (max-width: 800px) {
    .about-content {
        flex-direction: column;
        gap: 24px;
    }
    .about-image {
        flex: 1 1 100%;
        margin-top: 16px;
    }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Fade Out Animation */
.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0);}
    to { opacity: 0; transform: translateY(20px);}
}

/* Slide In Animation */
.slide-in {
    animation: slideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(80px);}
    to { opacity: 1; transform: translateX(0);}
}

/* Services Card Styles */
.services-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    padding: 48px 40px 40px 40px;
    margin: 48px auto;
    max-width: 1100px;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-title {
    font-size: 2.6rem;
    margin-bottom: 18px;
    color: #3a7bd5;
    font-weight: 700;
    letter-spacing: -1px;
}

.services-intro {
    font-size: 1.22rem;
    color: #444;
    margin-bottom: 38px;
    text-align: center;
    max-width: 650px;
}

.service-cards {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: center;
    margin-top: 18px;
}

.service-card {
    background: linear-gradient(120deg, #f0f4ff 70%, #eaf6ff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(58,123,213,0.07);
    padding: 36px 28px 28px 28px;
    flex: 1 1 320px;
    max-width: 360px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(58,123,213,0.13);
    transform: translateY(-8px) scale(1.03);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(58,123,213,0.10));
}

.service-card h3 {
    font-size: 1.32rem;
    color: #3a7bd5;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .service-cards {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }
    .service-card {
        max-width: 100%;
        width: 100%;
    }
}

/* Modal FAQ, Support, Contact Styles */
.modal-faq, .modal-support, .modal-contact {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 18px;
    background: transparent;
    border-radius: 16px;
    font-size: 1.12rem;
    color: #333;
}

.modal-faq h2, .modal-support h2, .modal-contact h2 {
    color: #3a7bd5;
    font-size: 2rem;
    margin-bottom: 18px;
    font-weight: 700;
    text-align: center;
}

.faq-list {
    margin-top: 18px;
}

.faq-item + .faq-item {
    margin-top: 16px;
}

.faq-item h3 {
    color: #0073e6;
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-form label {
    font-weight: 600;
    color: #3a7bd5;
    margin-bottom: 4px;
    text-align: left;
}

.modal-form input,
.modal-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #b3c6e0;
    font-size: 1rem;
    background: #f0f4ff;
    transition: border-color 0.2s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #3a7bd5;
    outline: none;
}

.modal-form button {
    background: #ff5722;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    width: 50%;
    align-self: center;
}

.modal-form button:hover {
    background: #bf360c;
}

.modal-form button:active {
    transform: scale(0.97);
}

/* Slide out to left animation */
@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-80px);
    }
}
.slide-out-left {
    animation: slideOutLeft 0.5s cubic-bezier(0.4,0,0.2,1) both;
}


/* Support modal */
#modal.support-modal-width {
    max-width: 500px !important;
    width: 95% !important;
    padding: 20px !important;
    box-sizing: border-box;
}
#modal.support-modal-width #modal-content {
    max-height: 600px !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

/* Contact modal */
#modal.contact-modal-width {
    max-width: 500px !important;
    width: 95% !important;
    padding: 20px !important;
    box-sizing: border-box;
}
#modal.contact-modal-width #modal-content {
    max-height: 600px !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

/* Responsive enhancements for tablet and mobile */

/* Tablet (max-width: 1000px) */
@media (max-width: 1000px) {
    .stats-card, .about-card, .services-card {
        padding: 24px 8px 18px 8px;
        max-width: 98vw;
        border-radius: 16px;
    }
    .service-cards {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .about-content {
        flex-direction: column;
        gap: 18px;
    }
    .about-image {
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }
    header {
        padding: 10px 0 0 0;
        height: auto;
        min-height: 60px;
    }
    #top-bar {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.95rem;
        padding: 6px 2vw;
    }
    #ip-location, #language-switcher {
        padding: 0;
        margin-bottom: 4px;
    }
    #nav-links ul {
        flex-direction: column;
        align-items: stretch;
    }
    #nav-links li {
        margin: 0 0 8px 0;
    }
    #nav-links a {
        font-size: 20px;
        padding: 12px 0;
    }
    .stats-card, .about-card, .services-card {
        padding: 12px 2vw 12px 2vw;
        border-radius: 12px;
        max-width: 99vw;
    }
    .stat-item, .service-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8em;
        text-align: center;
    }
    .stat-icon, .service-icon {
        margin: 0 auto 10px auto;
    }
    .about-content {
        flex-direction: column;
        gap: 12px;
    }
    .about-image img {
        max-width: 90vw;
    }
    .modal-faq, .modal-support, .modal-contact {
        padding: 12px 4px;
        border-radius: 10px;
        font-size: 1rem;
    }
    #modal, .terms-privacy-modal, .support-modal-width, .contact-modal-width {
        max-width: 98vw !important;
        width: 98vw !important;
        min-width: 0;
        border-radius: 12px;
        padding: 2vw !important;
    }
    #modal-content {
        max-height: 80vh;
        padding: 2vw;
        font-size: 1rem;
    }
    .modal-form input, .modal-form textarea {
        font-size: 1rem;
        padding: 0.7em;
        border-radius: 0.5em;
    }
    .modal-form button {
        font-size: 1rem;
        padding: 0.8em 0;
        border-radius: 0.5em;
        width: 90%;
        margin: 1em auto 0 auto;
    }
    footer, .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1vw;
        padding: 2vw 1vw;
        font-size: 0.95rem;
        text-align: center;
    }
    footer .img-fluid {
        margin: 10px auto 0 auto;
        max-width: 90vw;
        max-height: 40px;
    }
}

/* --- HAMBURGER MENU & NAVIGATION --- */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 60px;
        padding-top: 60px; /* Make space for top-bar and hamburger */
        flex-direction: column;
        align-items: stretch;
    }
    #top-bar {
        position: static;
        width: 100vw;
        box-sizing: border-box;
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 10px 0 10px;
        font-size: 0.98rem;
        gap: 4px;
    }
    #ip-location, #language-switcher {
        padding-left: 55px;
        margin-bottom: 8px;
        width: 100%;
        text-align: left;
    }
    #hamburger-menu {
        display: block !important;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 999;
        background: #0073e6;
        border-radius: 8px;
        padding: 4px 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    #nav-links {
        display: none !important;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: fixed;
        top: 65px;
        left: 0;
        background-color: #0073e6;
        z-index: 2000;
        padding: 16px 0 16px 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border-radius: 0 0 12px 12px;
        
    }
    #nav-links.active {
        display: flex !important;
    }
    #nav-links ul {
        flex-direction: column;
        width: 100%;
    }
    #nav-links li {
        margin: 0 0 10px 0;
        width: 100%;
    }
    #nav-links a {
        font-size: 20px;
        width: 100%;
        padding: 12px 24px;
        border-radius: 0;
        text-align: left;
    }
    #login-btn {
        position: static;
        margin: 12px 16px 0 auto;
        width: auto;
        font-size: 16px;
        padding: 10px 18px;
        display: block;
        align-self: flex-end;
    }
}

/* --- HAMBURGER MENU ICON VISUAL ENHANCEMENT --- */
@media (max-width: 768px) {
    #hamburger-menu {
        background: #0073e6;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    #hamburger-menu .line {
        background: #fff;
        height: 4px;
        margin: 5px 0;
        border-radius: 2px;
    }
}

/* --- MODALS ON MOBILE --- */
@media (max-width: 768px) {
    #modal, .terms-privacy-modal, .support-modal-width, .contact-modal-width {
        max-width: 98vw !important;
        width: 98vw !important;
        min-width: 0;
        border-radius: 12px;
        padding: 2vw !important;
        left: 1vw;
        right: 1vw;
        top: 4vw;
    }
    #modal-content {
        max-height: 70vh;
        padding: 2vw;
        font-size: 1rem;
    }
    .modal-form input, .modal-form textarea {
        font-size: 1rem;
        padding: 0.7em;
        border-radius: 0.5em;
    }
    .modal-form button {
        font-size: 1rem;
        padding: 0.8em 0;
        border-radius: 0.5em;
        width: 90%;
        margin: 1em auto 0 auto;
    }
    #webmail-header {
        max-width: 100px;
        margin-bottom: 10px;
    }
}

/* --- TOP BAR: FORCE WRAP AND SHRINK ON SMALL SCREENS --- */
@media (max-width: 480px) {
    #top-bar {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.92rem;
        padding: 6px 4vw 0 4vw;
        gap: 2px;
    }
    #ip-location, #language-switcher {
        font-size: 0.92rem;
        padding-left: 45px;
        padding-bottom: 5px;
        margin-bottom: 2px;
        width: 100%;
        text-align: left;
        word-break: break-all;
    }
}

/* --- FOOTER ON MOBILE --- */
@media (max-width: 768px) {
    footer, .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px;
        padding: 2vw 1vw;
        font-size: 0.95rem;
        text-align: center;
    }
    footer .img-fluid {
        margin: 10px auto 0 auto;
        max-width: 90vw;
        max-height: 40px;
    }
}

/* Limit mobile nav height and allow scrolling */
@media (max-width: 768px) {
    #nav-links {
        max-height: 40vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    #nav-links {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
    #nav-links ul {
        width: 100%;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
    #nav-links li {
        width: 100%;
        margin: 0 0 10px 0;
    }
    #nav-links a {
        width: 100%;
        display: block;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Hide mobile-only by default, show on mobile; hide desktop-only on mobile */
.mobile-only { display: none !important; }
.desktop-only { display: list-item !important; }

@media (max-width: 900px) {
    .mobile-only { display: list-item !important; }
    .desktop-only { display: none !important; }
}

/* Center footer text, SiteLock floats right but text always centered */
.footer-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.text-content {
    margin: 0 auto;
    text-align: center;
    width: 100%;
    font-size: 14px;
    z-index: 1;
}

.footer-content .img-fluid {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 150px;
    max-height: 50px;
    margin-right: 10px;
    z-index: 2;
    display: block;
    pointer-events: auto;
}

/* Mobile: stack vertically, center everything */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: unset;
    }
    .footer-content .img-fluid {
        position: static;
        transform: none;
        margin: 10px auto 0 auto;
        max-width: 90vw;
        max-height: 40px;
        display: block;
    }
}