
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Raleway', system-ui, sans-serif;
}

/* ===== MAIN HEADER CONTAINER ===== */
.kcic-header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(79, 143, 132, 0.15);
}

.kcic-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 25px rgba(79, 143, 132, 0.2);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #FAFAFA;
    padding: 10px 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGO SECTION ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    max-width: 350px;
    margin-right: auto;
}

.logo-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    flex-shrink: 0;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-tagline {
    font-size: 12px;
    color: #5A9A8E;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 160px;
    margin: 0;
    text-align: left;
}

/* ===== HEADER INFO (CONTACT) ===== */
.header-info {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000000;
    padding: 10px 15px;
    border-radius: 25px;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    min-width: 180px;
    /* DRAMATIC RAISED EFFECT */
    box-shadow: 
        /* Soft outer shadow for depth */
        0 6px 16px rgba(0, 0, 0, 0.1),
        0 3px 8px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.06),
        /* Inner top highlight for raised effect */
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        /* Inner bottom shadow for more depth */
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
}

.info-item:hover {
    background: linear-gradient(to bottom, #40776e 0%, #36665e 100%);
    transform: translateY(-4px);
    /* Enhanced shadow on hover */
    box-shadow: 
        0 12px 30px rgba(79, 143, 132, 0.4),
        0 6px 15px rgba(79, 143, 132, 0.3),
        0 3px 8px rgba(79, 143, 132, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: #36665e;
}

.info-item:hover .animated-icon {
    transform: scale(1.2) rotate(10deg);
    color: white;
}

.info-item:hover small,
.info-item:hover strong {
    color: white;
}

/* Optional: Add a subtle gradient for more depth */
.info-item {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Add a thin border at the top for more realism */
.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px 25px 0 0;
    z-index: 1;
}

.info-item i {
    font-size: 20px;
    color: #7FB7AE;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-item small {
    font-size: 11px;
    color: #000000;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-item strong {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.2;
}

/* ===== NAVIGATION BAR WITH SLANT EFFECT - UPDATED ===== */
.nav-bar {
    background: #40776e;
    padding: 8px 0;
    position: relative;
    overflow: visible;
}

/* Background gradient that ends at social links area */
.nav-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 320px; /* Adjust to end before social links */
    height: 100%;
    background: #40776e;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0% 100%);
}

/* White background for social links and CTA section - WIDER */
.nav-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 420px; /* Increased width for social links + CTA */
    height: 100%;
    background: white;
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
}

/* ===== REORDERED LAYOUT ===== */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* ===== NAVIGATION LINKS - MOVED TO LEFT ===== */
.main-nav {
    display: flex;
    gap: 5px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
    margin-right: 0; /* Remove right margin */
}

.nav-link {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600; /* Increased weight */
    font-size: 16px; /* Increased font size */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Soft water-like glow effect for navigation links */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(242, 106, 141, 0.2) 0%, transparent 70%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
    z-index: -1;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Enhanced glow on hover */
.nav-link:hover::before {
    opacity: 1;
    transform: scale(1.5);
    background: radial-gradient(circle at center, rgba(242, 106, 141, 0.4) 0%, transparent 70%);
}

.nav-link i {
    font-size: 16px; /* Increased icon size */
    transition: transform 0.3s ease;
    color: white;
}

.nav-link:hover i {
    transform: scale(1.2);
    color: #F26A8D;
}

.nav-link span {
    transition: all 0.3s ease;
    color: white;
}

/* ===== RIGHT SECTION (SOCIAL LINKS + CTA) ===== */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* ===== SOCIAL MEDIA ICONS WITH GLOW EFFECT - MOVED TO RIGHT ===== */
.social-icons {
    display: flex;
    gap: 12px; /* Reduced gap */
    position: relative;
    z-index: 2;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #4F8F84;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #1a3c34;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Soft water-like glow effect for social icons */
.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 143, 132, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
    z-index: -1;
}

.social-icon:hover {
    background: #F26A8D;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 106, 141, 0.4);
}

/* Enhanced glow on hover */
.social-icon:hover::before {
    opacity: 1;
    transform: scale(1.8);
    background: radial-gradient(circle at center, rgba(79, 143, 132, 0.4) 0%, transparent 70%);
}

/* ===== CTA BUTTON - UPDATED ===== */
.btn-cta {
    background: #4F8F84;
    border: 2px solid #4F8F84;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 143, 132, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 1002 !important;
    white-space: nowrap;
}

/* Soft water-like glow effect for buttons */
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 143, 132, 0.2) 0%, transparent 70%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
    z-index: -1;
}

.btn-cta:hover {
    background: #40776e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 143, 132, 0.5);
    border-color: #40776e;
}

/* Enhanced glow on hover */
.btn-cta:hover::before {
    opacity: 1;
    transform: scale(1.8);
    background: radial-gradient(circle at center, rgba(79, 143, 132, 0.4) 0%, transparent 70%);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-cta:hover .btn-icon {
    transform: translateX(5px);
}

/* ===== DROPDOWN MENUS - UPDATED FOR HOVER ===== */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
    padding-right: 30px !important;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px; /* Increased width */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
    padding: 10px 0;
    border: 1px solid rgba(79, 143, 132, 0.1);
    pointer-events: none; /* Allow hover through to container */
}

/* HOVER TRIGGER FOR DROPDOWN */
.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Enable interaction when visible */
}

.dropdown-container:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(79, 143, 132, 0.1);
    color: #4F8F84;
    padding-left: 25px;
}

.dropdown-item.active {
    background: rgba(79, 143, 132, 0.15);
    color: #4F8F84;
    font-weight: 600;
    border-left: 3px solid #4F8F84;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4F8F84;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Ensure dropdown stays above content */
.kcic-header {
    z-index: 1000;
}

.dropdown-menu {
    z-index: 1002 !important;
}

/* ===== BUBBLE CONTAINER ===== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: bubbleFloat 1s ease-out forwards;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
    filter: blur(0.5px);
}

@keyframes bubbleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(calc(var(--tx, 0) * 0.5), calc(var(--ty, 0) * 0.5)) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.3) rotate(360deg);
    }
}

/* ===== ENHANCED BUBBLE EFFECTS - FIXED FOR SCROLL ===== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.bubble {
    position: fixed !important;
    border-radius: 50%;
    pointer-events: none;
    animation: bubbleFloat 1s ease-out forwards;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
    filter: blur(0.5px);
    z-index: 9999 !important;
}

@keyframes bubbleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(calc(var(--tx, 0) * 0.5), calc(var(--ty, 0) * 0.5)) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.3) rotate(360deg);
    }
}

/* Ensure bubble container stays on top of everything */
.bubble-container * {
    pointer-events: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .header-info {
        gap: 15px;
    }
    
    .info-item {
        padding: 8px 12px;
        min-width: 170px;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 15px; /* Adjusted for responsive */
    }
    
    .logo-tagline {
        font-size: 11px;
        max-width: 140px;
    }
    
    /* Adjust slant for smaller screens */
    .nav-bar::before {
        right: 320px;
    }
    
    .nav-bar::after {
        width: 320px;
    }
    
    .social-icons {
        gap: 10px;
    }
}

/* Medium screens */
@media (max-width: 1100px) {
    .info-item {
        min-width: 160px;
    }
    
    .info-item strong {
        font-size: 13px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 14px; /* Adjusted for responsive */
    }
    
    .nav-link span {
        font-size: 14px;
    }
    
    .nav-link i {
        font-size: 14px;
    }
    
    .logo-img {
        max-width: 160px;
    }
    
    /* Adjust slant for medium screens */
    .nav-bar::before {
        right: 300px;
    }
    
    .nav-bar::after {
        width: 300px;
    }
    
    .right-section {
        gap: 15px;
    }
}

/* Large tablet */
@media (max-width: 992px) {
    .header-info {
        gap: 10px;
    }
    
    .info-item {
        min-width: 150px;
        padding: 8px 10px;
    }
    
    .info-item i {
        font-size: 18px;
    }
    
    .info-item strong {
        font-size: 12px;
    }
    
    .info-item small {
        font-size: 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px; /* Adjusted for responsive */
    }
    
    .nav-link span {
        font-size: 13px;
    }
    
    .nav-link i {
        font-size: 13px;
    }
    
    .btn-cta {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .logo {
        max-width: 300px;
    }
    
    /* Adjust slant for large tablets */
    .nav-bar::before {
        right: 280px;
    }
    
    .nav-bar::after {
        width: 280px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Tablet - Switch to mobile-friendly layout */
@media (max-width: 850px) {
    .top-bar {
        padding: 15px 0;
    }
    
    .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        text-align: center;
        order: 1;
    }
    
    .logo-tagline {
        text-align: center;
        max-width: 200px;
    }
    
    .header-info {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        order: 2;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .info-item {
        min-width: 200px;
        justify-content: center;
        flex: 1;
        max-width: 250px;
    }
    
    /* Remove slant effect on tablet */
    .nav-bar {
        background: #40776e;
        position: relative;
    }
    
    .nav-bar::before,
    .nav-bar::after {
        display: none;
    }
    
    .nav-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        order: 1;
    }
    
    .right-section {
        flex-direction: column;
        gap: 15px;
        order: 2;
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
        width: 100%;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        justify-content: center;
    }
    
    /* Tablet dropdown hover behavior */
    .dropdown-container:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    
    .dropdown-toggle {
        cursor: pointer;
    }
}

/* Hide desktop header on mobile */
@media (max-width: 768px) {
    .kcic-header {
        display: none !important;
    }
    
    /* Show mobile header */
    .mobile-header {
        display: block !important;
    }
}

/* Responsive adjustments for dropdowns */
@media (max-width: 992px) {
    .dropdown-menu {
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 850px) {
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .dropdown-container {
        position: static;
    }
    
    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 90%;
        max-width: 300px;
        z-index: 1003 !important;
        display: none; /* Hide on mobile */
    }
    
    .dropdown-menu.active {
        display: block;
        transform: translateX(-50%) translateY(0);
    }
    
    /* Disable hover on mobile */
    .dropdown-container:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
}
