/* ==========================================================================
   CNC Corporate IT Services - Glassmorphism 3.0 & Extra-Ordinary Interactive Design
   ========================================================================== */

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

:root {
    --bg-main: #f8fafc;
    --bg-hero: linear-gradient(135deg, #090e1a 0%, #0f172a 100%);
    
    --glass-bg-light: rgba(255, 255, 255, 0.75);
    --glass-bg-card: rgba(255, 255, 255, 0.85);
    --glass-border: 1.5px solid rgba(255, 255, 255, 0.8);
    
    --primary-emerald: #059669;
    --primary-emerald-hover: #047857;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    --emerald-light: rgba(16, 185, 129, 0.12);
    --accent-blue: #0284c7;
    
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-full: 9999px;
    
    --shadow-glass: 0 10px 35px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    --shadow-glass-hover: 0 25px 55px rgba(15, 23, 42, 0.14), 0 0 35px rgba(16, 185, 129, 0.25);
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(2, 132, 199, 0.06) 0px, transparent 50%);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Floating Glass Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
}

.header-scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.09);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Seamless Transparent Logo Container */
.logo-badge {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logo-badge:hover {
    transform: scale(1.04);
    box-shadow: none;
    border: none;
}

.logo-img {
    height: 64px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    aspect-ratio: auto;
    display: block;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(241, 245, 249, 0.8);
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
}

.nav-link {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-emerald);
}

/* Glass Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    min-width: 290px;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    padding: 0.75rem;
    z-index: 1050;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    animation: glassFloat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes glassFloat {
    from { opacity: 0; transform: translate(-50%, -12px) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-dropdown-item:hover {
    background: var(--emerald-light);
    color: var(--primary-emerald);
    transform: translateX(5px);
}

.nav-dropdown-item i {
    color: var(--primary-emerald);
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.88rem 1.8rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-outline-dark {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-heading);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
}

.btn-outline-dark:hover {
    border-color: var(--primary-emerald);
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 0 110px 0;
    background: var(--bg-hero);
    color: #ffffff;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.5rem 1.35rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-title {
    font-size: 3.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1.35rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 620px;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

/* Glassmorphic Floating Hero Card */
.hero-card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #10b981;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: heroCardFloat 6s ease-in-out infinite;
    transition: var(--transition-smooth);
}

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-card-glass:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #10b981;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 0 35px rgba(16, 185, 129, 0.3);
}

/* Pulse Ping Indicator */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    animation: emeraldPing 2s infinite;
}

@keyframes emeraldPing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Stats Strip */
.stats-strip {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-y: 1.5px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--primary-emerald);
    font-family: var(--font-heading);
    line-height: 1;
    letter-spacing: -0.02em;
    display: block;
    opacity: 1 !important;
    transform: none !important;
}

.stat-label {
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0.6rem;
}

/* Marquee Brand Ticker */
.brand-slider-section {
    padding: 2.5rem 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.logo-slider {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    gap: 3.5rem;
    animation: scrollMarquee 26s linear infinite;
    white-space: nowrap;
}

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

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: var(--transition-smooth);
}

.logo-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-emerald);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.logo-item i {
    color: var(--primary-emerald);
    font-size: 1.3rem;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    color: var(--primary-emerald);
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

/* Glass Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: 0.7s ease;
}

.service-card:hover::after {
    left: 120%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #0284c7);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--primary-emerald);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glass-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--emerald-light);
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    color: var(--primary-emerald);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary-emerald);
    color: #ffffff;
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.service-title {
    font-size: 1.45rem;
    color: var(--text-heading);
    margin-bottom: 0.85rem;
}

.service-desc {
    color: var(--text-body);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Accordion FAQ Section */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-heading);
}

.faq-header i {
    color: var(--primary-emerald);
    transition: transform 0.3s ease;
}

.faq-body {
    display: none;
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-body);
    font-size: 1.02rem;
    line-height: 1.7;
    border-top: 1px solid var(--emerald-light);
}

.faq-item.active .faq-body {
    display: block;
    animation: slideDownFade 0.3s ease-out;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

/* Floating Quick Support Bar (Bottom Right) */
.floating-support-bar {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.3);
    transition: var(--transition-smooth);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.floating-support-bar:hover {
    transform: scale(1.05);
    border-color: #34d399;
}

/* PIN Support Modal Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-emerald);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Footer Section & Strictly Fixed Untouched Logo */
.footer {
    background: #090e1a;
    padding: 75px 0 35px 0;
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-brand .logo-badge {
    background: #ffffff;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 250px;
    margin-bottom: 1.25rem;
}

.footer-brand .logo-img {
    height: 52px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    aspect-ratio: auto;
    display: block;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a:hover {
    color: #34d399;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.7rem; }
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
