:root {
    --primary-color: #21AFFB;
    --bg-dark: #0D1117;
    --text-primary: #FFFFFF;
    --text-secondary: #c0c0c0;
    --border-light: rgba(255, 255, 255, 0.15);
    --border-dark-subtle: rgba(255, 255, 255, 0.1); 
}

body.mobile-menu-open {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 20px;
    left: 0; /* Make it start from the left edge */
    right: 0; /* Make it end at the right edge */
    width: 100%; /* Ensure it spans the full width */
    z-index: 1001;
    transition: opacity 0.4s ease, visibility 0s;
    
    /* WE REMOVED: transform, left: 50%, max-width, and padding */
}
.site-header.hidden { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    
    /* --- ADDED LINES --- */
    max-width: 1440px;  /* Constrain the content width */
    margin: 0 auto;     /* Horizontally center the content */
    padding: 0 10px;    /* Add side padding so content doesn't touch the edges */
}
.logo a { text-decoration: none; display: inline-block; }
.logo a img { height: 35px; display: block; }

.main-nav { background: rgba(30, 30, 33, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 50px; padding: 12px 30px; position: relative; }
.main-nav::before { content: ''; position: absolute; inset: 0; border-radius: 50px; padding: 1px; background: linear-gradient(90deg, rgba(178, 137, 255, 0.5), rgba(63, 191, 255, 0.5)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 40px;}
.main-nav a { color: var(--text-secondary); text-decoration: none; font-size: 16px; padding: 0; position: relative; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.active { color: var(--text-primary); }
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px; /* This was changed from -12px */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}


ul{
	padding: 0;
}
.services-chevron { font-size: .8em; margin-left: 5px; transition: transform 0.3s; }
.btn-contact {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    padding: 14px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    
    /* --- ADDED LINES --- */
    position: relative; /* Needed for the ::before pseudo-element */
    z-index: 1; /* Ensures it sits correctly */
    overflow: hidden; /* Clips the ::before element neatly */
    background: rgba(30, 30, 33, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* --- REMOVED LINE --- */
    /* border: 1px solid rgba(63, 191, 255, 0.8); */ /* We replace this with the gradient border */
}

/* This creates the gradient border, copied from .main-nav::before */
.btn-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(90deg, rgba(178, 137, 255, 0.5), rgba(63, 191, 255, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.btn-contact:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    /* border-color: var(--primary-color); */ /* This line is no longer needed */
}

.mobile-submenu { display: none; }
.ml-2{ margin-left: 10px; }
.sidebar-top{ margin-top: 10px; }

.mega-menu-component { position: fixed; top: 20px; left: 50%; width: 100%; max-width: 1256px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-10px) translateX(-50%); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s; }
.mega-menu-component.active { opacity: 1; visibility: visible; transform: translateY(0) translateX(-50%); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s; }
.mega-menu-content { background-color: var(--bg-dark); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 24px; border: 1px solid var(--primary-color); overflow: hidden; padding: 16px; }

/* ✅ MODIFICATION START: Aligning header elements with content grid */
.header-tab { 
    display: flex; 
    align-items: center; 
    gap: 40px; /* This gap matches the gap in the content area */
}
.header-tab .logo {
    flex: 0 0 24%; /* This makes the logo container take the same width as the sidebar */
}
.header-tab .main-nav {
    
    margin-right: auto; /* This pushes the "Contact us" button to the far right */

}

/* ✅ MODIFICATION: Underline hover effect re-added */
.main-nav li:hover > a::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}
.menu-layout-container { display: flex; gap: 40px; }
.menu-sidebar { flex: 0 0 24%;  height: 411px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-title { font-size: 28px; font-family: 'Courier New', Courier, monospace; font-weight: light; color: var(--text-primary); }
.menu-main-content { flex-grow: 1; margin-top: 40px; }
.main-content-grid { display: grid; grid-template-columns: 24% 1fr; gap: 40px; }
.category-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }

.category-links a { display: flex; align-items: center; height: 56px; width: 100%; padding: 0 16px; color: var(--primary-color); text-decoration: none; border: 1px solid var(--border-dark-subtle); border-radius: 12px; background-color: rgba(255, 255, 255, 0.05); transition: all 0.3s; }
.category-links a i:last-child { margin-left: auto; }
.category-links a:hover, .category-links a.active { color: var(--primary-color); border-color: var(--primary-color); background-color: rgba(33, 175, 251, 0.1); }
.category-links a i {  font-size: 14px;  text-align: center; transition: color 0.3s; }
.category-links a:hover i, .category-links a.active i { color: var(--primary-color); }

.service-content-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 40px; opacity: 0; transition: opacity 0.3s ease-in-out; }
.service-content-panel.active { display: grid; opacity: 1; }
.service-links { list-style: none; }
.service-links li { border-bottom: 1px solid #252525; }
.service-links li:last-child { border-bottom: none; }
.service-links a {     display: block;
    padding: 16px 0;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s 
ease;
    font-size: 12px; }
.service-links a:hover { color: var(--primary-color); }
.social-links { list-style: none; display: flex; gap: 10px; padding-top: 30px; }
.social-links a { color: var(--primary-color); background-color: rgba(130, 177, 255, 0.24); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--primary-color); color: var(--bg-dark); }

.services-chevron { transition: transform 0.3s ease; font-size: 0.75em; margin-left: 8px; position: relative; top: -1px; }
.services-trigger.menu-open > a > .services-chevron { transform: rotate(90deg); }

.hamburger-menu { display: none; background: none; border: 1px solid var(--primary-color); border-radius: 50px; width: 40px; height: 40px; cursor: pointer; z-index: 1002; padding-left: 9px; }
.hamburger-menu span { display: block; width: 20px; height: 2px; background-color: var(--text-primary); margin: 4px auto; transition: all 0.3s ease-in-out; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


@media (max-width: 992px) {
    .site-header { max-width: 100%; top: 15px; padding-top: 0px !important; }
    .body { padding-top: 90px; }
    
    .main-nav { background: none; backdrop-filter: none; border-radius: 0; padding: 0; }
    .main-nav::before { display: none; }
    .header-cta, .mega-menu-component { display: none; }
    .hamburger-menu { display: block; }

    .main-nav {
        position: fixed;
        top: -15px;
        right: -100%;
        width: 100%;
        height: 100vh;
       
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 100px 16px 16px;
        transition: right 0.4s ease-in-out;
        overflow-y: auto;
    }

    .submenu-trigger.active{
        padding: 8px;
    }
	
	.logo a img{
		width: 180px;
	}

    
    
    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .main-nav ul li {
        width: 100%;
        /* border-bottom: 1px solid var(--border-dark-subtle); */
    }
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    .main-nav ul li a {
        display: block;
        padding: 8px;
        font-size: 16px;
        color: var(--text-primary);
        width: 100%;
    }
    .main-nav a::after {
        display: none;
    }
    
    .has-submenu > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .services-chevron {
        margin-left: 10px;
        font-size: 16px;
        position: static;
        transition: transform 0.3s ease;
    }
    
    .has-submenu.active > a .services-chevron {
        transform: rotate(90deg);
        
    }

    .has-submenu.active > a {
    color: var(--primary-color);
}
.has-submenu.active > a .services-chevron {
    color: var(--text-primary);
}

    .mobile-submenu {
        display: block;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-radius: 8px;
		padding-left: 24px;
       
    }

    .mobile-submenu .submenu-item:first-child {
        border-top: none;
    }
    .submenu-item {
   margin-top: 5px;
    padding: 0;
    
}
    .submenu-item:last-child {
        border-bottom: none;
    }

    .submenu-trigger {
		 display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
        background-color: transparent;
        border: none !important; /* Forcefully removes the border */
        padding-left: 15px; /* Adjust padding to align with other menu items */
        padding-right: 15px;
    }

.submenu-trigger.active {
        border: none !important;
    }

    

.submenu-trigger i {
    transition: transform 0.3s ease;
}

/* Style the active state (chevron rotation) */
.submenu-trigger.active .accordion-chevron {
    transform: rotate(90deg);
    background-color: none;
    
}

/* Add spacing for the new layout */
.submenu-trigger .accordion-chevron {
     flex-shrink: 0; 
	margin-left: 16px;
}
.submenu-trigger i:not(.accordion-chevron) {
    margin-right: 10px; /* Space AFTER the main icon */
}
    .submenu-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        width: 328px;
        justify-self: center;
        margin-top: 5px;
    
    }
    
    .submenu-panel .service-links li {
        border-color: rgba(255,255,255,0.05);
    }
     .submenu-panel .service-links a {
        font-size: 15px;
        padding: 12px 0 12px 20px;
        color: var(--text-secondary);
    }
    .logo{  
          z-index: 100;
        }
.submenu-trigger i:not(.accordion-chevron),
    .submenu-trigger svg {
        display: none;
    }
	
	.submenu-panel .service-links li a {
  padding: 12px 0px 12px 0px !important;
}

	.service-links {
		padding-left: 26px;
	}
	
	.submenu-trigger .submenu-trigger-text {
    /* This tells the text to not expand and push other items away */
     flex-grow: 1;
}
	
	button.hamburger-menu:hover,
button.hamburger-menu:active,
button.hamburger-menu.is-active {
  background-color: #007bff; /* <-- REPLACE WITH YOUR PRIMARY COLOR */
}
       
}