:root {
    --primary: #0066B3;
    --secondary: #003D7A;
    --accent: #FF9900;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --gray: #6C757D;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Top Bar - Hidden */
.top-bar {
    display: none;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.top-bar a:hover {
    color: var(--accent);
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.3rem 2%;
    width: 100%;
}

/* Logo image sizing - 50% of original height */
.logo_img {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo_img img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* KCGL Logo */
.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
    font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--secondary);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu > li {
    position: relative;
    flex-shrink: 0;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 0.8rem 0.9rem;
    display: block;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 10000;
    max-height: 600px;
    overflow-y: auto;
}

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

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 0.9rem 1.5rem;
    color: var(--dark);
    font-size: 18px;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown-header {
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--light);
    border-bottom: none !important;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 5px;
    margin-left: 0.3rem;
    font-size: 0.88rem !important;
}

.nav-cta:hover {
    background: var(--secondary) !important;
    color: white !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.85), rgba(0, 102, 179, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.slide-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #E68A00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 153, 0, 0.4);
}

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

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* About Section */
.about-section {
    padding: 6rem 5%;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 102, 179, 0.3);
}

.experience-badge h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.experience-badge p {
    font-size: 0.9rem;
    font-weight: 600;
}

.section-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    line-height: 1.2;
}

.about-content p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-weight: 600;
    color: var(--dark);
}

/* Services Section */
.services-section {
    padding: 6rem 5%;
    background: var(--light);
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* Stats Section */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 5rem 5%;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--accent);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Clients Section */
.clients-section {
    padding: 6rem 5%;
    background: white;
}

.clients-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.clients-grid {

    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: center;
}

.client-logo {
    width: auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 165px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #e8e8e8;
    /* position: relative; */
    overflow: hidden;
}

/* .client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 179, 0.15), transparent);
    transition: left 0.6s;
} */

.client-logo:hover::before {
    left: 100%;
}

/* .client-logo:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-12px) scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 102, 179, 0.35);
} */

.client-icon {
    /* width: 100%; */
    font-size: 3rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .client-logo:hover .client-icon {
    transform: scale(1.2);
    filter: brightness(0) invert(1);
} */

.client-name {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s;
    z-index: 1;
    margin-top: auto;
}

/* .client-logo:hover .client-name {
    color: white;
    transform: scale(1.1);
} */

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 5rem 5%;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h4{
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-brand h4 span {
    color: var(--accent);
}

.footer-brand p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 2.5rem 5% 1.5rem;
    text-align: center;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

/* Content Page Styles */
.content-section {
    padding: 5rem 5%;
    background: white;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-text {
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2rem;
}

.content-text h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    margin: 2rem 0 1rem;
}

.content-text h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
}

.content-text ul {
    margin: 1rem 0 1rem 2rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.8rem 0.7rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .nav-cta {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.7rem 0.6rem;
    }
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;          /* fixed so it always overlays everything */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: none;
        gap: 0;
        z-index: 99999;           /* always on top */
        overflow-y: auto;         /* scrollable when content is long */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Close button row at top of mobile menu */
    .nav-menu::before {
        content: '✕  Close Menu';
        display: block;
        position: sticky;
        top: 0;
        background: var(--primary);
        color: white;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding: 1rem 5%;
        z-index: 1;
        cursor: pointer;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .nav-menu > li > a {
        padding: 1.1rem 5%;
        font-size: 1rem;
        font-weight: 500;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: #f0f6ff;
        display: none;
        max-height: none;
        overflow-y: visible;
        border-left: 4px solid var(--primary);
        margin-left: 5%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.85rem 1.5rem;
        font-size: 0.92rem;
    }

    .nav-cta {
        margin: 1rem 5%;
        text-align: center;
        border-radius: 5px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        justify-content: center;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        position: static;
        margin-top: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}
/* Prevent horizontal overflow on all sections */
section {
    max-width: 100vw;
    overflow-x: hidden;
}

.slide-content {
    max-width: 90%;
    margin: 0 auto;
}

/* Ensure all containers stay within viewport */
.about-container,
.services-grid,
.stats-container,
.clients-grid,
.footer-content {
    max-width: 100%;
}

/* Ensure dropdowns are never clipped on DESKTOP only */
@media (min-width: 969px) {
    nav {
        overflow: visible !important;
    }
    .nav-container {
        overflow: visible !important;
    }
    .nav-menu {
        overflow: visible !important;
    }
    .dropdown:hover {
        z-index: 10001;
    }
}