/* ==========================================================================
   HIRE NESTOR - STATE-OF-THE-ART BRIGHT GLASSMOPHISM DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    --bg-primary: #F8FAFC; 
    --bg-secondary: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    
    --color-primary: #1E1B4B; /* Deep Indigo */
    --color-secondary: #4F46E5; /* Vibrant Royal Indigo */
    --color-accent: #06B6D4; /* Electric Cyan */
    --color-success: #10B981;
    --color-border: rgba(226, 232, 240, 0.7);
    
    /* Premium tech glows and glass shadows */
    --shadow-sm: 0 4px 10px -2px rgba(79, 70, 229, 0.03);
    --shadow-md: 0 12px 24px -4px rgba(79, 70, 229, 0.06), 0 4px 12px -2px rgba(6, 182, 212, 0.03);
    --shadow-lg: 0 25px 50px -12px rgba(79, 70, 229, 0.12), 0 8px 20px -6px rgba(6, 182, 212, 0.06);
    --glow-secondary: 0 0 20px rgba(79, 70, 229, 0.25);
    --glow-accent: 0 0 20px rgba(6, 182, 212, 0.25);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-smooth);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.03) 0px, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Header & Navigation Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 22px 0; /* More spacious padding */
}

.header.sticky-nav {
    background: #FFFFFF;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    padding: 14px 0; /* Sleek sticky height reduction */
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem; /* Optimized standard font size */
    font-weight: 600;
    padding: 6px 10px !important; /* Balanced padding */
    margin: 0 2px; /* Balanced spacing */
    position: relative;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    white-space: nowrap !important; /* Enforce single-row layout */
}

/* Sizing adjustments for medium viewports (tablets/laptops) to prevent vertical wrapping */
@media (min-width: 992px) and (max-width: 1240px) {
    .nav-link {
        font-size: 0.8rem !important;
        padding: 5px 6px !important;
        margin: 0 1px !important;
    }
    .site-logo {
        height: 38px !important;
    }
    .header .lh-1 {
        font-size: 1.15rem !important;
    }
    .site-logo-tagline {
        font-size: 0.55rem !important;
    }
}

/* Elegant bottom line indicator on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--color-secondary) !important;
}

.nav-link:hover::after {
    width: 80%; /* Expands the bottom bar on hover */
}

/* Big Logo & Subtitle Tagline Layout */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.site-logo {
    height: 42px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.site-logo-tagline {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1;
    white-space: nowrap;
}

/* Hero Slideshow styles - Brightened version */
.hero-slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.88) 0%, rgba(248, 250, 252, 0.65) 100%);
    z-index: 3;
}

.hero-content-wrapper {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Bright Glass Backdrop for Hero Text Visibility */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    color: var(--text-primary) !important;
}

.hero-title-shadow {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    color: var(--color-primary);
}

/* Custom Cards with Border sweeps */
.custom-card {
    background: var(--bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px; /* Smoother corner radius */
    padding: 26px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.custom-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-card:hover::after {
    transform: scaleX(1);
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Hover Pulse Effects on Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #6366F1 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* Bright Corporate Footer Design */
.custom-footer {
    position: relative;
    background-color: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    color: var(--text-secondary);
    padding: 70px 0 30px 0;
    overflow: hidden;
    z-index: 1;
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.14; /* Softer, whitish blend */
    filter: blur(2px);
    z-index: -1;
}

.custom-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lightened gradient overlay: very subtle blue-purple blending into solid white */
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.07) 0%, rgba(6, 182, 212, 0.04) 45%, rgba(255, 255, 255, 0.98) 100%);
    z-index: -1;
    pointer-events: none;
}


.footer-title {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link {
    color: var(--text-secondary);
    display: inline-block;
    padding: 4px 0;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}

/* Service Detail Modal Style */
.service-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    width: 90vw;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-detail-modal.active .service-modal-content {
    transform: scale(1);
}

/* Floating WhatsApp button */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

/* Infinite Marquee Partner Scroll */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.marquee-content {
    display: inline-flex;
    gap: 40px;
    animation: marquee-scroll 30s linear infinite;
    padding: 20px 0;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.marquee-item i {
    color: var(--color-secondary);
}

/* Nestor Hero Live Console Makeover */
.console-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.console-header {
    background: #0F172A;
    color: #F8FAFC;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.console-dot.red { background: #EF4444; }
.console-dot.yellow { background: #F59E0B; }
.console-dot.green { background: #10B981; }

.console-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    height: 250px;
    overflow-y: auto;
    background: #1E293B;
    color: #38BDF8;
    display: flex;
    flex-column-reverse: true;
    flex-direction: column;
    gap: 10px;
}

.console-line {
    border-left: 2px solid var(--color-accent);
    padding-left: 8px;
    animation: fadeInLine 0.5s ease-out forwards;
}

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

/* Floating AI Quick Actions Assistant & Cyberpunk Face UI */
.ai-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1999;
}

.ai-assistant-bubble {
    width: 75px;
    height: 90px;
    background-color: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.chatbot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: botAlive 3.5s ease-in-out infinite;
    display: block;
}

@keyframes botAlive {
    0% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-8px) scale(1.03) rotate(1.5deg); }
    100% { transform: translateY(0px) scale(1) rotate(0deg); }
}

.ai-assistant-bubble:hover {
    transform: scale(1.08) rotate(3deg);
}

/* 3D Float animation for Hero Image & Netflix Cards */
.netflix-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
    position: relative;
    height: 380px;
    justify-content: center;
    perspective: 1000px;
}

.netflix-row {
    display: flex;
    gap: 15px;
    width: max-content;
}

.netflix-row-left {
    animation: slideNetflixLeft 18s linear infinite;
}

.netflix-row-right {
    animation: slideNetflixRight 18s linear infinite;
    margin-left: -100px;
}

.netflix-badge-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.netflix-badge-card:hover {
    transform: scale(1.08) translateZ(20px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    background: #FFFFFF;
}

@keyframes slideNetflixLeft {
    0% { transform: translateX(0); }
    50% { transform: translateX(-40%); }
    100% { transform: translateX(0); }
}

@keyframes slideNetflixRight {
    0% { transform: translateX(-40%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(-40%); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.hero-floating-img {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

.ai-assistant-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.ai-panel-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 16px;
    font-weight: 700;
}

.ai-panel-body {
    padding: 16px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Business Maturity Quiz & Assessment Form Card Styles */
.assessment-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.assessment-header {
    background: var(--color-primary);
    color: white;
    padding: 20px;
    text-align: center;
}

.assessment-body {
    padding: 30px;
}

.quiz-option {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
}

.quiz-option:hover {
    border-color: var(--color-secondary);
    background: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected {
    border-color: var(--color-secondary);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

/* Quiet Admin Portal Toggle */
.quiet-admin-trigger {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.quiet-admin-trigger:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES (MOBILE, TABLET, LAPTOP)
   ========================================================================== */

/* Mobile & Tablet Overrides (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .header {
        padding: 10px 0;
    }
    
    /* Smooth animated mobile navigation sliding down */
    #navMenu {
        position: fixed !important;
        top: 65px !important;
        left: 0;
        width: 100%;
        margin-top: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--color-secondary) !important;
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease-in-out !important;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px !important;
        z-index: 999;
    }
    
    #navMenu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    #navMenu a {
        font-weight: 600;
        font-size: 1.05rem;
        padding: 10px;
        border-radius: 8px;
        color: var(--text-primary) !important;
        text-align: center;
        width: 100%;
    }

    #navMenu a:hover {
        background: rgba(37, 99, 235, 0.08);
        color: var(--color-secondary) !important;
    }

    /* Hero section padding and stacking */
    .hero-slideshow-container {
        height: auto !important;
        min-height: 100vh;
        padding-top: 110px;
        padding-bottom: 60px;
        display: flex;
        align-items: center;
    }

    .hero-content-wrapper {
        height: auto !important;
    }

    .hero-glass-card {
        padding: 24px !important;
        margin-bottom: 20px;
    }

    .hero-floating-img {
        max-height: 300px !important;
        object-fit: cover;
    }

    /* Global padding fixes */
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}

/* Specific Phone Overrides (max-width: 576px) */
@media (max-width: 576px) {
    .hero-glass-card h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .hero-glass-card p {
        font-size: 0.95rem !important;
    }

    .site-logo {
        height: 34px;
    }

    .site-logo-tagline {
        font-size: 0.55rem;
    }

    .whatsapp-floating-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
    }

    .ai-assistant-container {
        bottom: 20px;
        right: 20px;
    }

    .ai-assistant-bubble {
        width: 55px;
        height: 55px;
    }

    .ai-assistant-panel {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 70px;
    }

    .assessment-body {
        padding: 20px 15px;
    }

    .custom-footer {
        padding: 40px 0 20px 0;
    }
}

/* Deskop-only overrides for mobile navigation menu protection */
@media (min-width: 992px) {
    #navMenu {
        display: none !important;
    }
}

/* 3D Rectangular Industry Cards and Marquee Animations */
.marquee-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused !important;
}

.industry-card {
    position: relative;
    width: 260px;
    height: 170px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.industry-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 10px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 75%, transparent 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    letter-spacing: 0.03em;
    transform: translateZ(15px); /* Add 3D text depth */
}

/* 3D frame rotation/tilt and glow effect on hover */
.industry-card:hover {
    transform: scale(1.1) rotateX(10deg) rotateY(-10deg) translateZ(10px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4), 0 0 20px rgba(6, 182, 212, 0.35);
    border-color: var(--color-accent);
}

.industry-card:hover img {
    transform: scale(1.08);
}

/* Reverse Marquee Scroll for Systems & Hardware Providers (Left to Right) */
.marquee-content-reverse {
    display: inline-flex;
    gap: 40px;
    animation: marquee-scroll-reverse 24s linear infinite;
    padding: 20px 0;
}

.marquee-container:hover .marquee-content-reverse {
    animation-play-state: paused !important;
}

@keyframes marquee-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Mobile Responsiveness for Marquee and 3D Cards */
@media (max-width: 576px) {
    .industry-card {
        width: 180px !important;
        height: 120px !important;
        border-radius: 12px !important;
    }
    .industry-card-overlay {
        font-size: 0.85rem !important;
        padding: 8px 5px !important;
    }
    .marquee-content {
        gap: 15px !important;
    }
    .marquee-content-reverse {
        gap: 15px !important;
        padding: 10px 0 !important;
    }
    .marquee-item {
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
    }
    .marquee-item svg, .marquee-item i {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.9rem !important;
    }
    .marquee-item div {
        height: 14px !important;
        line-height: 14px !important;
        font-size: 0.55rem !important;
    }
}

