*, ::after, ::before {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Logo styling */
.logo {
    font-weight: bold;
    font-size: 24px;
    color: white;
    text-decoration: none;
    display: inline-block;
}

/* Topbar styling */
.topbar {
    background-color: #222;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    padding: 9px 0px;
    justify-content: center; 
}
.topbar-inner {
    width: calc(100% - 20px); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}
.login {
    background-color: #333;
    border: 1px solid gray;
    padding: 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    margin-left: 10px; 
    transition: all 0.3s ease;
}
.login:hover {
    background-color: #444;
}
.language-select {
    display: flex;
    align-items: center;
}
.fas { 
    color: white;
    margin-right: 5px;
}

/* Header and navigation styling */
.header {
    background-color: #333;
    z-index: 99;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 58px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 100%;
    width: 1100px;
    margin: 0px auto;
    padding: 0px 20px;
}

/* Main navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Submenu toggle button */
.submenu-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    position: absolute;
    right: 0;
    top: 10px;
    font-size: 14px;
    display: none;
}

/* Submenu styling */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 5px 0;
    margin-top: 5px;
}

.menu-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    list-style: none;
}

.submenu-link {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.submenu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 20px;
}

.hamburger-line {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 9px;
}

.hamburger-line:nth-child(3) {
    top: 18px;
}

/* Main content */
.main-content {
    margin-bottom: 60px;
    margin-top: 158px;
    flex: 1 0 auto;
}

.main-content a:hover {
    opacity: .8;
}

/* Language switcher */
.polylang_langswitcher {
    margin: 0px;
    list-style: none;
    background-color: #333;
    border: 1px solid gray;
    padding: 0px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    margin-left: 10px;
    z-index: 999;
    position: absolute;
    display: none;
}
.polylang_langswitcher li {
    padding: 6px 10px;
    min-width: 116px;
}
.polylang_langswitcher li:hover {
    background-color: #222222;
}
.polylang_langswitcher a {
    color: white;
    text-decoration: none;
}
.currentlang {
    margin: 0px;
    list-style: none;
    background-color: #333;
    border: 1px solid gray;
    padding: 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    margin-left: 10px;
    z-index: 999;
    cursor: pointer;
    display: flex; 
    align-items: center;
    gap: 22px;
    justify-content: space-between;
    min-width: 118px;
}

/* Service boxes */
.service-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.service-box {
    flex: 1;
    min-width: 300px;
    background-color: #444;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.service-box h2 {
    margin-top: 0;
    font-size: 24px;
}

.service-box p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    width: 100%;
    bottom: 0;
    background-color: #222; 
    font-size:13px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-left, .footer-right {
    width: 100%;
}

.footer-left {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.copyright {
    margin-bottom: 5px;
}

.footer-right {
    font-size: 12px;
}

.footer-right a, .copyright a {
    color: #f44336;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    text-decoration: underline;
}

.load-time {
    font-size: 11px;
    color: #999;
    display: block !important;
    margin-top: 3px;
}

/* Show dropdown on mobile */
.show-submenu .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Active mobile menu */
.menu-active .mobile-menu-toggle .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

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

.menu-active .mobile-menu-toggle .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Responsive styles */
@media (min-width: 768px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-left, .footer-right {
        width: auto;
    }
    
    .footer-left {
        margin-bottom: 0;
    }
    
    .copyright {
        margin-bottom: 0;
    }
    
    .footer-right {
        text-align: right;
    }
}

/* Mobile menu styles */
@media screen and (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: #222;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        padding: 60px 0 20px 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    body.menu-active .main-nav {
        right: 0;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        text-align: left;
    }
    
    .menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
        position: relative;
    }
    
    /* Center-align menu items with submenu */
    .has-submenu {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Adjust menu links for proper vertical alignment */
    .menu-link {
        padding: 15px 20px;
        font-size: 16px;
        color: white;
        display: block;
        text-align: left;
        width: 100%;
    }
    
    /* Adjust the submenu toggle position for vertical centering */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        z-index: 10;
        color: white;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #1c1c1c;
        margin-top: 0;
        display: none;
        padding: 0;
        border-radius: 0;
        width: 100%;
        text-align: left;
    }
    
    .submenu-link {
        padding: 12px 20px 12px 30px;
        font-size: 15px;
        color: white;
        text-align: left;
        display: block;
    }
    
    .submenu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
    }
    
    .submenu-item:last-child {
        border-bottom: none;
    }
    
    /* Adjust spacing for mobile */
    .header {
        padding: 15px 0;
    }
    
    .main-content {
        margin-top: 140px;
    }
    
    /* Service boxes for mobile */
    .service-box {
        min-width: 100%;
    }
    
    /* Style for active submenus */
    .menu-item.show-submenu {
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .menu-item.show-submenu > .menu-link {
        font-weight: 600;
    }
}

/* Desktop menu styles - no arrows */
@media screen and (min-width: 901px) {
    /* Hide the toggle button on desktop */
    .submenu-toggle {
        display: none;
    }
}

/* Class to show language dropdown */
.showd {
    display: block !important;
}

/* Hero section styling */
.hero {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Button styling */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #f44336;
    color: white;
}

.btn-primary:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Section styling */
.section {
    margin-bottom: 80px;
    padding: 20px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

/* Global infrastructure styling */
.global-infrastructure {
    position: relative;
}

.datacenter-map {
    position: relative;
    margin-top: 30px;
}

.datacenter-map img {
    width: 100%;
    border-radius: 8px;
}

.world-map-svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.world-map-svg path {
    transition: fill 0.3s ease;
}

.world-map-svg path:hover {
    fill: #555;
}

.datacenter-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.datacenter-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #f44336;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

/* Product grid styling */
.products {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    background-color: #444;
    border-radius: 8px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: #f44336;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-card p {
    margin-bottom: 20px;
    color: #ccc;
}

.product-features {
    margin-bottom: 20px;
}

.product-features ul {
    padding-left: 20px;
}

.product-features li {
    margin-bottom: 8px;
    color: #ddd;
}

.product-price {
    margin-bottom: 20px;
    margin-top: auto;
}

.price {
    font-size: 32px;
    font-weight: 700;
}

.period {
    color: #ccc;
}

/* Feature grid styling */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #444;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: #f44336;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-item p {
    color: #ccc;
    line-height: 1.6;
}

/* Testimonial styling */
.testimonial-carousel {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial {
    background-color: #444;
    border-radius: 8px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #ddd;
    line-height: 1.6;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.author-info p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
}

/* CTA styling */
.cta {
    background-color: #222;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .product-card, .feature-item, .testimonial {
        min-width: 100%;
    }
}