:root {
    /* 60-30-10 Color Palette */
    --primary-color: #3096d3;
    /* 60% - Brand Teal */
    --secondary-color: #ffffff;
    /* 30% - White */
    --accent-color: #FF9E6D;
    /* 10% - Soft Peach */
    --text-dark: #444444;
    --text-light: #898989;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header-container {
    position: relative;
}

.header-top {
    background-color: var(--primary-color);
    height: 50px;
    width: 100%;
    position: relative;
    z-index: 1;
    border-bottom: none;
}

/* Logo Container */
.logo-container {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
    pointer-events: none;
    /* Allow clicks to pass through */
}

.logo-img {
    width: 150px;
    height: auto;
    margin-bottom: 5px;
    pointer-events: auto;
    /* Re-enable clicks on the logo itself */
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
    text-align: center;
    margin-top: 0;
}

/* Navigation */
.navbar {
    padding: 0;
    background-color: transparent !important;
    box-shadow: none !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 2;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav-left,
.navbar-nav-right {
    display: flex;
    height: 100%;
    align-items: center;
}

.navbar-nav-left {
    margin-right: auto;
    padding-left: 30px;
}

.navbar-nav-right {
    margin-left: auto;
    padding-right: 30px;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-link {
    color: white !important;
    font-weight: 400;
    padding: 0.5rem 1.5rem;
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-item.active .nav-link::after {
    transform: scaleX(1);
}

/* Mega Menu Style - Main Navigation */
.nav-item.has-submenu {
    position: relative;
}

.mega-menu-container {
    position: absolute;
    left: 0;
    top: 50px;
    z-index: 9999;
    display: none;
}

.mega-menu {
    display: flex;
    position: relative;
}

.nav-item.has-submenu:hover .mega-menu-container {
    display: block;
}

/* First Level Menu */
.mega-menu-column {
    width: 240px;
    background-color: whitesmoke;
    padding: 0;
    position: relative;
    z-index: 9999;
    border-radius: 1%;
}

.mega-menu-item {
    position: relative;
}

/* Fix for menu line formatting */
.mega-menu-link {
    color: black;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Arrow styling */
.mega-menu-link .arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 8px;
}

/* Second Level Menu */
.submenu-column {
    width: 240px;
    background-color: whitesmoke;
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 9999;
    border-radius: 1%;
}

.mega-menu-item:hover .submenu-column {
    display: block;
}

/* Third Level Menu */
.third-level-column {
    width: 250px;
    background-color: whitesmoke;
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 9999;
    border-radius: 1%;
}

.submenu-item:hover .third-level-column {
    display: block;
}

/* Mobile menu */
.navbar-toggler {
    position: absolute;
    right: 15px;
    top: 10px;
    border: none;
    padding: 0;
    z-index: 4;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #f0f0f0;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #444;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.mobile-nav-link {
    display: inline-block;
    padding: 15px 20px;
    color: #444444;
    text-decoration: none;
    font-weight: 400;
    width: calc(100% - 50px);
}

.mobile-nav-link.active-link {
    color: var(--primary-color);
}

.dropdown-arrow {
    float: right;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: #999;
    padding: 15px 20px;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
}

/* Mobile Submenu Styling */
.mobile-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f8f8;
}

.mobile-submenu-item {
    position: relative;
    border-bottom: 1px solid #eee;
}

.mobile-submenu-link {
    display: inline-block;
    padding: 15px 20px 15px 35px;
    color: #444444;
    text-decoration: none;
    width: calc(100% - 50px);
}

/* Mobile Sub-submenu Styling */
.mobile-subsubmenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f0f0f0;
}

.mobile-subsubmenu-item {
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-subsubmenu-link {
    display: block;
    padding: 15px 20px 15px 50px;
    color: #444444;
    text-decoration: none;
}

/* Open State for Mobile Menus */
.mobile-nav-item.open>.dropdown-arrow,
.mobile-submenu-item.open>.dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-nav-item.open>.mobile-submenu,
.mobile-submenu-item.open>.mobile-subsubmenu {
    display: block;
}

/* Mobile menu trigger button */
.mobile-menu-trigger {
    display: none;
    position: absolute;
    right: 15px;
    top: 0;
    background: none;
    border: none;
    z-index: 5;
    cursor: pointer;
}

.mobile-menu-trigger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* FIXED MOBILE MENU STYLES */
@media (max-width: 991px) {
    .header-top {
        height: 30px;
    }

    /* Fix for logo position on mobile */
    .logo-container {
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }

    .logo-img {
        width: 120px;
    }

    .logo-tagline {
        display: none;
        /* Hide tagline on mobile */
    }

    .navbar-toggler {
        display: none;
    }

    .mobile-menu-trigger {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .navbar-collapse {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .logo-img {
        width: 100px;
    }
}

@media (max-width: 576px) {

    .header-top,
    .navbar {
        height: 30px;
    }

    .logo-img {
        width: 90px;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
}


.compact-footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 50px 0 0;
    margin-top: 80px;
    text-align: left;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.footer-container {
    position: relative;
    width: 100%;
}

.compact-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.logo-border-extension {
    position: absolute;
    top: -55px;
    left: 15px;
    background-color: transparent;
    padding: 0 30px 20px;
    border-radius: 0 0 25px 25px;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 280px;
}

.footer-logo {
    width: 140px;
    height: auto;
    margin-top: 5px;
    filter: hue-rotate(0deg) brightness(1) saturate(1);
}

.brand-info {
    margin-top: 20px;
}

.logo-spacer {
    height: 80px;
}

.brand-tagline {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-style: italic;
}

.brand-text {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links.single-column {
    width: 100%;
    max-width: none;
}

.compact-footer .row {
    margin-left: 0;
    margin-right: 0;
}

.compact-footer .col-lg-3,
.compact-footer .col-lg-2,
.compact-footer .col-lg-5 {
    padding-left: 15px;
    padding-right: 15px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info p {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.office-locations {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.office-locations .row {
    margin-left: 0;
    margin-right: 0;
}

.office-locations .col-lg-3 {
    padding-left: 0;
    padding-right: 30px;
}

.office-locations .col-lg-3:last-child {
    padding-right: 0;
}

.location-title {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.location-text {
    color: #d0d0d0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-bottom {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #d0d0d0;
    font-size: 0.85rem;
    margin: 0;
    text-align: left;
}

.powered-by {
    color: #d0d0d0;
    font-size: 0.85rem;
    margin: 0;
}

.heart {
    color: #ff4d4d;
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.legal-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.legal-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (min-width: 2000px) {
    .compact-footer .container {
        max-width: 1400px;
    }

    .logo-border-extension {
        left: calc(50% - 700px + 15px);
        /* Centers based on container width */
    }
}

@media (min-width: 1600px) and (max-width: 1999px) {
    .compact-footer .container {
        max-width: 1300px;
    }

    .logo-border-extension {
        left: calc(50% - 650px + 15px);
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .logo-border-extension {
        left: calc(50% - 600px + 15px);
    }
}

@media (max-width: 1199px) {
    .compact-footer .container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .compact-footer {
        padding: 40px 0 0;
    }

    .compact-footer .container {
        max-width: 720px;
    }

    .footer-title {
        margin-top: 20px;
    }

    .office-locations {
        margin-top: 30px;
    }

    .logo-border-extension {
        left: 15px;
        top: 0;
        transform: translateY(-28%);
    }
}

@media (max-width: 767px) {
    .compact-footer .container {
        max-width: 540px;
    }

    .legal-links {
        justify-content: center;
        margin-top: 10px;
    }

    .copyright {
        text-align: center;
    }

    .location-text {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .compact-footer .container {
        max-width: 100%;
    }

    .logo-border-extension {
        left: 0;
        padding: 0 20px 15px;
        top: 0;
        transform: translateY(-33%);
    }

    .footer-logo {
        width: 120px;
    }

    .social-links {
        margin-bottom: 30px;
    }
}

.floating-social-container {
    position: fixed;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    z-index: 1000;
}

.social-icons-bar {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 8px;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    gap: 10px;
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.social-icons-bar:hover {
    box-shadow: 0 6px 20px rgba(0, 204, 191, 0.15);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%) rotate(45deg);
    transition: all 0.3s ease;
}

.social-icon:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 204, 191, 0.4);
    background: #00b3a9;
}

.social-icon.facebook:hover {
    background: #3b5998;
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-icon.twitter:hover {
    background: #1da1f2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

/* Additional responsive adjustments */
.floating-social-container {
    transition: all 0.3s ease;
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .floating-social-container {
        top: 50%;
    }

    .social-icons-bar {
        padding: 5px 4px;
        gap: 6px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* High DPI screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .social-icons-bar {
        backdrop-filter: blur(12px);
    }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    .social-icon:active {
        transform: scale(0.95);
    }
}

/* Facebook icon - maintain brand colors on hover */
.social-icon.facebook:hover {
    background: #3b5998;
}

/* Instagram icon */
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* LinkedIn icon */
.social-icon.linkedin:hover {
    background: #0077b5;
}

/* Twitter icon */
.social-icon.twitter:hover {
    background: #1da1f2;
}

/* Medium screens - Tablets landscape */
@media (max-width: 1024px) {
    .floating-social-container {
        right: 0;
    }

    .social-icons-bar {
        padding: 8px 6px;
        gap: 10px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Tablets portrait and large phones */
@media (max-width: 768px) {
    .floating-social-container {
        right: 0;
        top: 50%;
        transform: none;
    }

    .social-icons-bar {
        flex-direction: column;
        padding: 8px 6px;
        border-radius: 10px 0 0 10px;
        gap: 10px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Medium phones landscape */
@media (max-width: 576px) {
    .floating-social-container {
        right: 0;
        bottom: auto;
        top: 40%;
    }

    .social-icons-bar {
        padding: 6px 5px;
        gap: 8px;
    }

    .social-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .floating-social-container {
        top: 45%;
    }

    .social-icons-bar {
        padding: 5px 4px;
        gap: 6px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .social-icons-bar {
        padding: 4px 3px;
        gap: 5px;
    }

    .social-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .social-icons-bar {
        padding: 10px 8px;
        gap: 12px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Ultra wide screens */
@media (min-width: 1600px) {
    .social-icons-bar {
        padding: 12px 9px;
        gap: 12px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.whatsapp-svg-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

.whatsapp-text {
    position: absolute;
    right: 70px;
    background-color: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-whatsapp {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-svg-icon {
        width: 28px;
        height: 28px;
    }
}