/* ==========================================================================
   NS Management - Corporate Enterprise Design System & Animation Engine
   Color Palette: Deep Navy (#030712, #0B132B), Electric Cyan (#00B4D8), Emerald Glow (#10B981)
   Typography: Outfit (Headings) + Plus Jakarta Sans (Body)
   Animation Tech: GSAP 3 + ScrollTrigger 60 FPS Replay Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary-navy: #0B132B;
    --navy-dark: #030712;
    --navy-light: #1C2541;
    --navy-card: rgba(15, 23, 42, 0.75);
    --accent-teal: #00B4D8;
    --teal-hover: #0096C7;
    --teal-light: rgba(0, 180, 216, 0.15);
    --emerald-green: #10B981;
    --emerald-hover: #059669;
    --emerald-light: rgba(16, 185, 129, 0.15);
    --light-custom: #F8FAFC;
    --muted-custom: #94A3B8;
    --border-secondary: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 180, 216, 0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--navy-dark) !important;
    color: var(--light-custom);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Background Utilities */
.bg-navy { background-color: var(--primary-navy) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }
.bg-navy-body { background-color: var(--navy-dark) !important; }

/* Text Utilities */
.text-teal { color: var(--accent-teal) !important; }
.text-emerald { color: var(--emerald-green) !important; }
.text-light-custom { color: var(--light-custom) !important; }
.text-muted-custom { color: var(--muted-custom) !important; }
.border-secondary-dark { border-color: var(--border-secondary) !important; }

/* Gradients */
.text-gradient-teal {
    background: linear-gradient(135deg, #38BDF8 0%, #00B4D8 50%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-navy {
    background: linear-gradient(135deg, #0B132B 0%, #1C2541 100%);
}

.bg-gradient-teal {
    background: linear-gradient(135deg, #00B4D8 0%, #10B981 100%);
}

.bg-gradient-emerald {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.text-navy { color: var(--primary-navy) !important; }
.text-navy-dark { color: var(--navy-dark) !important; }

/* Sticky Navigation Bar */
.custom-navbar {
    background-color: rgba(3, 7, 18, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-secondary);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.25rem 0;
}

.custom-navbar.scrolled {
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.9);
    padding: 0.85rem 0;
    background-color: rgba(3, 7, 18, 0.95) !important;
    border-bottom-color: rgba(0, 180, 216, 0.25);
}

/* Perfect Circular Logo Frame Styling */
.brand-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(0, 180, 216, 0.5);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3), inset 0 0 12px rgba(0, 180, 216, 0.2);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.brand-logo-frame:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.6), inset 0 0 16px rgba(0, 180, 216, 0.4);
    transform: scale(1.08) rotate(3deg);
}

.brand-logo-frame.lg-header {
    width: 70px;
    height: 70px;
}

@media (max-width: 576px) {
    .brand-logo-frame.lg-header {
        width: 56px;
        height: 56px;
    }
}

.brand-logo-frame.md-footer {
    width: 52px;
    height: 52px;
}

.brand-logo-frame.sm-inline {
    width: 44px;
    height: 44px;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.nav-link {
    color: var(--muted-custom) !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    white-space: nowrap !important;
}

.nav-link i,
.nav-link svg,
.navbar-icon-svg {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease, stroke 0.2s ease;
    flex-shrink: 0;
}

.nav-link:hover i,
.nav-link:hover svg,
.nav-link:hover .navbar-icon-svg {
    color: var(--accent-teal);
    stroke: var(--accent-teal);
    transform: translateY(-1px);
}

.nav-link.active svg,
.nav-link.active .navbar-icon-svg {
    stroke: currentColor;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent-teal);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--accent-teal);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px var(--accent-teal); }
    50% { box-shadow: 0 0 18px var(--accent-teal); }
}

.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.775rem !important; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.12em; }

/* Luxury Buttons with Shimmer & Glow Effects */
.btn-teal, .btn-emerald, .btn-navy, .btn-outline-teal, .btn-outline-emerald {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-teal::before, .btn-emerald::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.btn-teal:hover::before, .btn-emerald:hover::before {
    left: 140%;
}

.btn-teal {
    background: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
    color: #ffffff;
    border: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px -5px rgba(0, 180, 216, 0.4);
}

.btn-teal:hover {
    background: linear-gradient(135deg, #38BDF8 0%, #00B4D8 100%);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px -5px rgba(0, 180, 216, 0.7);
}

.btn-emerald {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px -5px rgba(16, 185, 129, 0.7);
}

.btn-navy {
    background-color: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: 1px solid var(--border-secondary);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background-color: var(--primary-navy);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    transform: translateY(-2px);
}

.btn-outline-teal {
    border: 1.5px solid var(--accent-teal);
    color: var(--accent-teal);
    background: transparent;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-teal:hover {
    background-color: var(--accent-teal);
    color: #ffffff;
    box-shadow: 0 8px 25px -5px rgba(0, 180, 216, 0.45);
    transform: translateY(-3px);
}

.btn-outline-emerald {
    border: 1.5px solid var(--emerald-green);
    color: var(--emerald-green);
    background: transparent;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-emerald:hover {
    background-color: var(--emerald-green);
    color: #ffffff;
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.45);
    transform: translateY(-3px);
}

.hover-lift {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
}

.shadow-teal {
    box-shadow: 0 10px 25px -5px rgba(0, 180, 216, 0.4);
}

/* Badges */
.bg-teal-subtle {
    background-color: var(--teal-light) !important;
    color: var(--accent-teal) !important;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.bg-emerald-subtle {
    background-color: var(--emerald-light) !important;
    color: var(--emerald-green) !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 88vh;
    background-color: var(--navy-dark);
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.38);
    z-index: 0;
    transition: transform 1.5s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 19, 43, 0.35) 0%, rgba(3, 7, 18, 0.96) 100%);
    z-index: 1;
    pointer-events: none;
}

.z-index-0 { z-index: 0; }
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }
.z-index-toast { z-index: 1080; }

/* Hero Carousel Fast Smooth Transition */
#heroCarousel.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out !important;
}

/* Hero Carousel Dots Indicators */
#heroCarousel .carousel-indicators {
    margin-bottom: 1.5rem;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    opacity: 0.4;
    transition: all 0.35s ease;
    border: none;
    margin: 0 5px;
}

#heroCarousel .carousel-indicators .active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    background-color: var(--emerald-green);
}

/* Glassmorphism Cards with 3D Tilt Capabilities */
.glass-card {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 180, 216, 0.25) !important;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
}

.glass-modal {
    background: rgba(11, 19, 43, 0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 180, 216, 0.35) !important;
    border-radius: 24px;
}

/* Cards & Tilt Hover Animations */
.service-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid var(--border-secondary) !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border-radius: 20px !important;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.service-card:hover {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 24px 50px -15px rgba(0, 180, 216, 0.4);
}

.card-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.35s ease;
}

.service-card:hover .card-icon-box i {
    transform: rotate(10deg) scale(1.2);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-square {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.icon-square i {
    transition: transform 0.35s ease;
}

.icon-square:hover i {
    transform: scale(1.25) rotate(-5deg);
}

.bg-cover {
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.service-preview-card:hover .bg-cover {
    transform: scale(1.06);
}

/* Image Animations & Hover Zoom */
img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.hover-zoom-img:hover {
    transform: scale(1.05);
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.28) !important;
    outline: none;
    transform: translateY(-2px);
}

/* Custom Accordion */
.custom-accordion .accordion-item {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--border-secondary) !important;
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.custom-accordion .accordion-item:hover {
    border-color: rgba(0, 180, 216, 0.35) !important;
}

.custom-accordion .accordion-button {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(0, 180, 216, 0.1) !important;
    color: var(--accent-teal) !important;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
    transition: transform 0.3s ease;
}

/* Footer Styling */
.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy-light);
    color: var(--muted-custom);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-secondary);
    transition: all 0.35s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    background: var(--accent-teal);
    color: #ffffff;
    border-color: var(--accent-teal);
    box-shadow: 0 0 18px rgba(0, 180, 216, 0.6);
    transform: translateY(-4px) rotate(8deg);
}

.hover-teal:hover { color: var(--accent-teal) !important; }
.avatar-img { width: 46px; height: 46px; object-fit: cover; }
.modal-icon-circle { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* Interactive Star Rating Selector */
.star-rating-select .star-icon {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.star-rating-select .star-icon:hover {
    transform: scale(1.35);
}

/* GSAP Replay Reveal Initial Classes */
.gsap-reveal-up,
.gsap-reveal-left,
.gsap-reveal-right,
.gsap-reveal-scale {
    will-change: opacity, transform;
}

/* ==========================================================================
   MOBILE & CROSS-DEVICE RESPONSIVE OPTIMIZATIONS
   Breakpoints: 320px, 375px, 390px, 414px, 430px, 576px, 768px, 992px, 1200px, 1440px, 1920px
   ========================================================================== */

/* Prevent any horizontal overflow globally */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

/* Base image & video responsive behavior */
img, video, svg {
    max-width: 100%;
    height: auto;
}

/* Paragraph readability across all viewports */
p {
    line-height: 1.65;
}

/* Touch input optimization: prevent iOS auto-zoom on inputs */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }
}

/* Navigation Bar Mobile Refinements */
@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-collapse {
        background: rgba(11, 19, 43, 0.98) !important;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--border-secondary);
        border-radius: 16px;
        padding: 1.15rem;
        margin-top: 0.65rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    }

    .brand-logo-frame.lg-header {
        width: 44px !important;
        height: 44px !important;
        border-width: 1.5px !important;
    }
    
    .display-brand {
        font-size: 1.15rem !important;
    }

    .brand-text .d-block {
        font-size: 0.65rem !important;
        letter-spacing: 0.08em !important;
    }

    .navbar-toggler {
        padding: 0.4rem 0.6rem !important;
        font-size: 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-link {
        padding: 0.65rem 1rem !important;
        width: 100%;
        border-radius: 10px;
    }

    .nav-link:hover, .nav-link.active {
        background-color: rgba(0, 180, 216, 0.12) !important;
    }

    .nav-link.active::after {
        display: none !important;
    }
}

/* Mobile Screen Sizes (320px - 576px: iPhone SE, Pro Max, Galaxy S, Pixel) */
@media (max-width: 575.98px) {
    /* Hero Badges */
    .hero-section .badge, 
    .hero-subpage .badge,
    .badge.bg-teal-subtle,
    .badge.bg-emerald-subtle {
        font-size: 0.725rem !important;
        padding: 0.35rem 0.75rem !important;
        letter-spacing: 0.05em !important;
        white-space: normal !important;
        text-align: center !important;
        max-width: 100% !important;
        line-height: 1.35 !important;
        margin-bottom: 0.85rem !important;
    }

    /* Hero Headings & Line Breaks */
    .hero-section h1,
    .hero-subpage h1,
    h1.display-1, h1.display-2, h1.display-3, h1.display-4 {
        font-size: 1.75rem !important;
        line-height: 1.28 !important;
        letter-spacing: -0.02em !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 0.85rem !important;
    }
    
    h2, .h1 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
    }

    h3, .h2 {
        font-size: 1.2rem !important;
        line-height: 1.35 !important;
    }

    /* Paragraph Readability & Spacing */
    p, .lead, .hero-section p.lead, .hero-subpage p.lead {
        font-size: 0.925rem !important;
        line-height: 1.65 !important;
        margin-bottom: 1.25rem !important;
        color: #CBD5E1 !important;
    }

    /* Hero Padding & Spacing */
    .hero-section, .hero-subpage {
        min-height: auto !important;
        padding-top: 2.75rem !important;
        padding-bottom: 3rem !important;
    }

    section {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .container {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }

    /* Stack Hero & Call-to-Action Buttons Full Width */
    .hero-buttons-wrap, 
    .btn-mobile-stack,
    .d-flex.flex-wrap.gap-3,
    .d-flex.flex-wrap.gap-2 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    .hero-buttons-wrap .btn, 
    .btn-mobile-stack .btn,
    .hero-section .btn,
    .hero-subpage .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.8rem 1.25rem !important;
        margin: 0 !important;
    }

    /* Card Padding & Spacing */
    .card, .glass-card, .service-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    .review-card-item .card {
        padding: 1.25rem !important;
    }

    .review-card-item p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        word-break: break-word !important;
    }

    /* Modal adjustments for small screens */
    .modal-dialog {
        margin: 0.5rem !important;
    }
    
    .modal-body, .modal-header, .modal-footer {
        padding: 1.25rem !important;
    }
    
    /* Counter numbers on mobile */
    .counter-value {
        font-size: 1.85rem !important;
    }
}

/* Tablet Devices (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    h1, .display-3, .display-4 {
        font-size: 2.25rem !important;
    }

    .hero-section {
        min-height: auto !important;
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }
}

/* Large Screens (1440px - 1920px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* Touch Performance: Disable 3D tilt hover on non-mouse touch devices */
@media (hover: none) {
    .service-card:hover, .glass-card:hover, .hover-lift:hover {
        transform: none !important;
    }
}


