/* ============================================================
   K K Management Solution — Reconstructed Theme & Animations
   Colors Extracted from KK Final Logo:
   - Primary Navy: #131B4D
   - Magenta Accent: #C8216A
   - Emerald Accent: #4E9C68
   - Midnight Dark: #0B102B
   - Light Background: #F4F6FA
   ============================================================ */

:root {
    --brand-navy: #131B4D;
    --brand-magenta: #C8216A;
    --brand-emerald: #4E9C68;
    --brand-dark: #0B102B;
    --brand-light: #F4F6FA;
}

/* ---- Dynamic Hero Gradient Mesh ---- */
.hero-gradient {
    background: linear-gradient(135deg, #0B102B 0%, #131B4D 45%, #251640 75%, #0B102B 100%);
    background-size: 200% 200%;
    animation: gradient 12s ease infinite;
    position: relative;
}

/* Ambient glow blobs */
.glow-blob-magenta {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(200, 33, 106, 0.25) 0%, rgba(200, 33, 106, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.glow-blob-emerald {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(78, 156, 104, 0.25) 0%, rgba(78, 156, 104, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* ---- Modern Dotted Grid Pattern Utilities ---- */
.bg-dot-pattern {
    background-image: radial-gradient(rgba(19, 27, 77, 0.09) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}
.bg-dot-pattern-light {
    background-image: radial-gradient(rgba(200, 33, 106, 0.12) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}
.bg-dot-pattern-dark {
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}
.bg-dot-pattern-emerald {
    background-image: radial-gradient(rgba(78, 156, 104, 0.14) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}
.bg-grid-mesh {
    background-image: 
        radial-gradient(rgba(200, 33, 106, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(to right, rgba(19, 27, 77, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(19, 27, 77, 0.03) 1px, transparent 1px);
    background-size: 24px 24px, 48px 48px, 48px 48px;
}

/* Decorative Dotted Matrix Corner Graphic */
.dots-decorative {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    opacity: 0.35;
    pointer-events: none;
}
.dots-decorative span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
}

/* ---- Animated Card Background & Shimmer Effects ---- */
.animated-card-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(19, 27, 77, 0.75) 0%, rgba(11, 16, 43, 0.9) 50%, rgba(26, 19, 56, 0.85) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.animated-card-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(200, 33, 106, 0.18), transparent 45%),
                radial-gradient(circle at 70% 70%, rgba(78, 156, 104, 0.18), transparent 45%);
    animation: rotateCardMesh 14s linear infinite;
    pointer-events: none;
}
.animated-card-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    pointer-events: none;
}
.animated-card-bg:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 33, 106, 0.5);
    box-shadow: 0 15px 35px rgba(200, 33, 106, 0.2), 0 0 20px rgba(78, 156, 104, 0.15);
}
.animated-card-bg:hover::after {
    left: 160%;
}

@keyframes rotateCardMesh {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animated Card Background for Light Canvas */
.animated-card-bg-light {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #FAF5F8 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(19, 27, 77, 0.05);
}
.animated-card-bg-light::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(200, 33, 106, 0.08), transparent 45%),
                radial-gradient(circle at 70% 70%, rgba(78, 156, 104, 0.08), transparent 45%);
    animation: rotateCardMesh 16s linear infinite;
    pointer-events: none;
}
.animated-card-bg-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 33, 106, 0.06), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    pointer-events: none;
}
.animated-card-bg-light:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 33, 106, 0.35);
    box-shadow: 0 15px 35px rgba(19, 27, 77, 0.1), 0 0 20px rgba(200, 33, 106, 0.1);
}
.animated-card-bg-light:hover::after {
    left: 160%;
}

/* Radiant Logo Glow Filter for Dark Canvas */
.logo-dark-glow {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 18px rgba(200, 33, 106, 0.4));
}

/* ---- Navbar ---- */
.navbar-transparent {
    background: transparent;
}
.navbar-transparent .nav-logo-text,
.navbar-transparent .nav-logo-sub {
    color: white;
}
.navbar-transparent .logo-img {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.75)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.navbar-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(19, 27, 77, 0.08);
}
.navbar-solid .nav-logo-text {
    color: #131B4D;
}
.navbar-solid .nav-logo-sub {
    color: #C8216A;
}
.navbar-solid .logo-img {
    filter: none;
}
.navbar-hidden {
    transform: translateY(-100%);
}

/* Nav Links */
.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.85);
}
.navbar-transparent .nav-link:hover,
.navbar-transparent .nav-link.active {
    color: #C8216A;
    background: rgba(255, 255, 255, 0.1);
}
.navbar-solid .nav-link {
    color: #131B4D;
}
.navbar-solid .nav-link:hover,
.navbar-solid .nav-link.active {
    color: #C8216A;
    background: rgba(200, 33, 106, 0.08);
}

/* Hamburger */
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    margin: 2.5px 0;
    transition: all 0.3s ease;
}
.navbar-transparent .hamburger-line {
    background: white;
}
.navbar-solid .hamburger-line {
    background: #131B4D;
}
.hamburger-open .top {
    transform: rotate(45deg) translate(3.5px, 3.5px);
}
.hamburger-open .middle {
    opacity: 0;
}
.hamburger-open .bottom {
    transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* Mobile Menu */
.mobile-menu-closed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-open {
    max-height: 600px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: white;
    background: linear-gradient(90deg, rgba(200, 33, 106, 0.25) 0%, rgba(78, 156, 104, 0.15) 100%);
}

/* ---- Typewriter ---- */
.typewriter-cursor {
    animation: blink 1s step-end infinite;
    color: #C8216A;
    font-weight: 400;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ---- Marquee ---- */
.marquee-container {
    overflow: hidden;
    position: relative;
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}
.marquee-item {
    flex-shrink: 0;
}

/* ---- Interactive Cards & Animations ---- */
.animated-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
.animated-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(19, 27, 77, 0.12);
}
.animated-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}
.animated-card:hover::before {
    left: 150%;
}

/* ---- Filter Buttons ---- */
.filter-btn {
    padding: 0.6rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #131B4D;
    background: white;
    border: 1px solid #E2E8F0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #131B4D 0%, #C8216A 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(200, 33, 106, 0.4);
}

/* ---- FAQ Accordion ---- */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-content {
    max-height: 300px;
}
.faq-item.open .fa-plus {
    transform: rotate(45deg);
    color: #C8216A;
}

/* ---- CTA Gradient ---- */
.cta-gradient {
    background: linear-gradient(135deg, #131B4D 0%, #C8216A 70%, #4E9C68 100%);
}
.cta-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.04) 20px,
        rgba(255, 255, 255, 0.04) 40px
    );
    animation: movePattern 25s linear infinite;
}
@keyframes movePattern {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

/* ---- WhatsApp Pulse ---- */
.animate-pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    pointer-events: none;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ---- Service Card Hidden ---- */
.service-card.hidden-card {
    display: none;
}

/* ---- Timeline (About page) ---- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #C8216A, #4E9C68, #131B4D);
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline-line {
        left: 1.5rem;
    }
}

/* ---- Masonry Grid ---- */
.masonry-grid {
    columns: 1;
    column-gap: 1.5rem;
}
@media (min-width: 640px) {
    .masonry-grid { columns: 2; }
}
@media (min-width: 1024px) {
    .masonry-grid { columns: 3; }
}
.masonry-grid .masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* ---- Glassmorphism Card Utility ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---- Scroll to Top ---- */
#scrollTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Bulletproof Suppression of Google Translate Banner & Top Bar ---- */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe[src*="translate.google.com"],
iframe[class*="goog-te"],
*[class*="VIpgJd"],
*[class*="goog-te"],
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.goog-te-menu-frame,
.goog-te-menu2-frame,
.goog-tooltip,
.goog-tooltip:hover,
div.skiptranslate,
body > div.skiptranslate,
body > iframe {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0px !important;
    width: 0px !important;
    max-height: 0px !important;
    max-width: 0px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: -99999 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

html {
    top: 0px !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ---- Toast ---- */
#toast.show {
    transform: translateX(0);
}

/* ---- Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F4F6FA;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C8216A 0%, #131B4D 100%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #131B4D;
}

/* ---- Admin Styles ---- */
.admin-sidebar {
    transition: transform 0.3s ease;
}
.admin-sidebar-hidden {
    transform: translateX(-100%);
}
.admin-card {
    transition: all 0.3s ease;
}
.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(19, 27, 77, 0.1);
}
