/**
 * SATC Theme Core Stylesheet
 * Contains design system variables, resets, layout alignment helpers, components, and animations.
 */

/* --- 1. Variables & Root Design System --- */
:root {
    /* Color Palette */
    --navy: #06122c;
    --navy-light: #0b1d3d;
    --blue: #005ae6;
    --blue-hover: #004dc4;
    --blue-glow: rgba(0, 90, 230, 0.15);
    --cyan: #00d2ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-glow-blue: 0 0 20px 2px rgba(0, 90, 230, 0.25);
    --shadow-glow-cyan: 0 0 20px 2px rgba(0, 210, 255, 0.3);
}

/* --- 2. Base Resets & Global Layout Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--slate-900);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--blue-hover);
}

/* Typography Helpers */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-navy { color: var(--navy) !important; }
.text-blue { color: var(--blue) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-slate-400 { color: var(--slate-400) !important; }
.text-slate-500 { color: var(--slate-500) !important; }
.text-slate-600 { color: var(--slate-600) !important; }
.text-slate-800 { color: var(--slate-800) !important; }
.text-white { color: var(--white) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }
.bg-light { background-color: var(--slate-50) !important; }

.text-gradient-cyan {
    background: linear-gradient(135deg, var(--white) 30%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Common Section Layouts */
.container {
    width: 100%;
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.section-title {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.title-decor {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
    border-radius: 2px;
}

.z-index-2 { z-index: 2; }
.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Background Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background-color: var(--blue);
    top: -100px;
    right: -100px;
}
.orb-2 {
    width: 300px;
    height: 300px;
    background-color: var(--cyan);
    bottom: -50px;
    left: -50px;
}
.orb-3 {
    width: 400px;
    height: 400px;
    background-color: var(--blue);
    top: 50%;
    left: -200px;
    transform: translateY(-50%);
}
.orb-4 {
    width: 350px;
    height: 350px;
    background-color: var(--cyan);
    bottom: -100px;
    right: -100px;
}

/* Custom Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.btn-blue {
    background-color: var(--blue);
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(0, 90, 230, 0.2);
}
.btn-blue:hover {
    background-color: var(--blue-hover);
    box-shadow: 0 6px 16px rgba(0, 90, 230, 0.35);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
}
.btn-outline-white:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}
.btn-blue:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-play-icon {
    font-size: 1.1rem;
    transition: transform var(--transition-normal);
}
.btn-outline-white:hover .btn-play-icon {
    transform: scale(1.15) rotate(5deg);
}

/* --- 3. Header Component Styling --- */
.site-header {
    background-color: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
    z-index: 1030;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Custom Text Logo */
.custom-text-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.logo-main {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1;
}
.logo-dot {
    color: var(--blue);
}
.logo-sub {
    font-size: 0.52rem;
    color: var(--slate-400);
    letter-spacing: 0.04em;
    margin-top: 2px;
    font-weight: 600;
}

/* Navigation Links */
.main-navigation ul,
.menu-primary-container ul {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a,
.menu-primary-container ul li a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    padding: 8px 0;
    opacity: 0.85;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.menu-primary-container ul li a:hover,
.menu-primary-container ul li.current-menu-item > a {
    opacity: 1;
    color: var(--white);
}

/* Indicator active border line */
.main-navigation ul li a::after,
.menu-primary-container ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue);
    transition: width var(--transition-fast);
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item > a::after,
.menu-primary-container ul li a:hover::after,
.menu-primary-container ul li.current-menu-item > a::after {
    width: 100%;
}

/* Header Action buttons */
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: 20px;
    text-decoration: none;
}
.header-phone i {
    color: var(--blue);
    font-size: 1rem;
}
.header-phone:hover {
    color: var(--blue);
}

.btn-header-cta {
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Mobile Toggle Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.hamburger-bar {
    width: 22px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-fast);
}

/* Mobile Navigation Drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 18, 44, 0.95);
    z-index: 1040;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}
.mobile-menu-overlay.active {
    transform: translateX(0);
}
.mobile-menu-inner {
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: var(--navy-light);
    float: right;
    padding: 30px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}
.menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu-inner ul {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}
.mobile-menu-inner ul li {
    margin-bottom: 20px;
}
.mobile-menu-inner ul li a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}
.mobile-menu-inner ul li.current-menu-item > a {
    color: var(--blue);
}

/* --- 4. Hero Section Component --- */
.hero-section {
    background: linear-gradient(185deg, #050e24 0%, var(--navy) 100%);
    min-height: 520px;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
}
.feat-item {
    font-weight: 500;
    opacity: 0.9;
}
.bullet-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
.bg-blue-glow {
    background-color: rgba(0, 90, 230, 0.2);
    border: 1px solid rgba(0, 90, 230, 0.4);
}

/* Right mock panel illustration */
.hero-mockup-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

/* Placeholder mockup graphics using CSS layers */
.hero-mockup-img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform var(--transition-slow);
}
.hero-mockup-img:hover {
    transform: scale(1.02) rotate(-1deg);
}

/* --- 5. Solutions Grid Component --- */
.solution-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.solution-card-header {
    height: 90px;
    border-bottom: 1px solid var(--slate-100);
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
}

.decor-bubble {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 90, 230, 0.08);
}
.bubble-1 {
    width: 60px;
    height: 60px;
    top: -20px;
    left: -10px;
}
.bubble-2 {
    width: 40px;
    height: 40px;
    bottom: -15px;
    right: 15px;
}

.sol-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 8px;
}

/* CSS mini hardware decoration */
.mini-hardware-illustration {
    opacity: 0.25;
}
.wireframe-line {
    width: 35px;
    height: 2px;
    background-color: var(--cyan);
}
.dot-green { width: 5px; height: 5px; border-radius: 50%; background-color: #10b981; display: inline-block; }
.dot-orange { width: 5px; height: 5px; border-radius: 50%; background-color: #f59e0b; display: inline-block; }

.solution-bullets li i {
    font-size: 0.7rem;
}

.solution-btn-arrow {
    transition: transform var(--transition-fast);
}
.btn-solution-more:hover .solution-btn-arrow {
    transform: translateX(5px);
}

/* --- 6. Key Metrics Component --- */
.metrics-section {
    background: linear-gradient(90deg, #050d20 0%, var(--navy) 100%);
}
.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
}
.metric-icon-accent {
    font-size: 0.9rem;
}

/* --- 7. Featured Projects Component --- */
.project-slider-container {
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.project-slider-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.project-slider-track {
    width: max-content;
}

.project-card {
    width: 280px;
    height: 180px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}
.project-card:hover {
    transform: translateY(-5px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 18, 44, 0.1) 20%, rgba(6, 18, 44, 0.85) 100%);
    transition: background var(--transition-normal);
}
.project-card:hover .project-overlay {
    background: linear-gradient(180deg, rgba(6, 18, 44, 0) 10%, rgba(6, 18, 44, 0.95) 100%);
}

.project-grid-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: radial-gradient(var(--white) 1px, transparent 0);
    background-size: 12px 12px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--slate-200);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}
.slider-nav:hover {
    background-color: var(--white);
    color: var(--blue);
    box-shadow: var(--shadow-md);
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* --- 8. Partners Logos Component --- */
.partner-logo-item {
    min-width: 110px;
    height: 45px;
    padding: 0 10px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter var(--transition-fast), opacity var(--transition-fast);
}
.partner-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Custom CSS partner logo fonts */
.logo-hikvision { font-family: sans-serif; font-size: 1rem; color: #000; }
.logo-dahua { font-family: sans-serif; font-size: 1.1rem; color: #000; }
.logo-dahua::before { content: 'a'; color: #dc2626; font-size: 1.2rem; }
.logo-ruijie { font-size: 1.2rem; }
.tplink-circle { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--cyan); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.tplink-dot { width: 4px; height: 4px; border-radius: 50%; background-color: var(--cyan); }
.logo-grandstream { font-size: 0.75rem; letter-spacing: 0.05em; }
.logo-y { font-size: 1.3rem; }
.logo-dell-circle { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.logo-dell-text { font-size: 0.65rem; color: var(--blue); }
.logo-hp-circle { width: 32px; height: 32px; border-radius: 50%; background-color: #0096d6; display: inline-flex; align-items: center; justify-content: center; }
.logo-hp-text { font-size: 1rem; color: var(--white); font-family: Georgia, serif; line-height: 1; margin-top: -3px; }
.ms-squares-grid { width: 14px; height: 14px; gap: 2px; }
.ms-sq { width: 6px; height: 6px; }
.ms-red { background-color: #f25022; }
.ms-green { background-color: #7fba00; }
.ms-blue { background-color: #00a4ef; }
.ms-yellow { background-color: #ffb900; }
.x-small { font-size: 0.6rem; }

/* --- 9. Why Choose Us Component --- */
.why-choose-section {
    background: linear-gradient(180deg, var(--navy) 0%, #050d1f 100%);
}
.why-feat-card {
    border-color: rgba(255, 255, 255, 0.05) !important;
}
.why-feat-card:hover {
    border-color: var(--blue) !important;
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-3px);
}
.x-small { font-size: 0.7rem; }

/* --- 10. Process Timeline Component --- */
.timeline-line-connector {
    position: absolute;
    top: 24px;
    left: 8.33%;
    right: 8.33%;
    height: 2px;
    background-color: var(--slate-100);
    z-index: 1;
}

.timeline-col {
    position: relative;
    z-index: 2;
}

.step-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: transform var(--transition-normal), background-color var(--transition-fast);
}

.process-step-node:hover .step-icon-bubble {
    transform: scale(1.1);
    background-color: var(--blue) !important;
    color: var(--white) !important;
}

.step-number-badge {
    font-size: 0.65rem;
}

/* --- 11. Contact Consultation Component --- */
.contact-image-wrap {
    height: 100%;
    position: relative;
}
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6,18,44,0.2) 0%, rgba(6,18,44,0.6) 100%);
}

.contact-form-card {
    background-color: rgba(11, 29, 61, 0.8);
    backdrop-filter: blur(10px);
}
.card-glow-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 90, 230, 0.08) 0%, rgba(0, 90, 230, 0) 50%);
    pointer-events: none;
}

.form-control::placeholder {
    color: var(--slate-500);
    font-size: 0.85rem;
}
.form-control:focus {
    box-shadow: 0 0 10px rgba(0, 90, 230, 0.4);
    border-color: var(--blue) !important;
}

/* --- 12. Footer Component --- */
.footer-logo {
    display: flex;
    flex-direction: column;
}
.logo-sub-text {
    letter-spacing: 0.02em;
}
.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}
.social-icon:hover {
    background-color: var(--blue);
    transform: translateY(-2px);
}

.footer-menu li a {
    color: var(--slate-400);
    transition: var(--transition-fast);
}
.footer-menu li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.qr-code-wrapper {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-white:hover {
    color: var(--white) !important;
}

/* --- 13. Right Sticky Sidebar --- */
.sticky-contact-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.sticky-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--navy);
    position: relative;
    justify-content: flex-start;
    width: 44px;
    height: 44px;
    overflow: hidden;
    transition: width var(--transition-normal), box-shadow var(--transition-fast);
}

.item-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--white);
}

.item-label {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    padding-right: 18px;
    padding-left: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

/* Item Color Specifics */
.item-zalo .item-icon-wrap { background-color: #0068ff; }
.item-hotline .item-icon-wrap { background-color: #ee2c2c; }
.item-email .item-icon-wrap { background-color: #ff9900; }
.item-chat .item-icon-wrap { background-color: #00aa6c; }

/* Sticky Item Hover Animations */
.sticky-item:hover {
    width: 160px; /* Expand horizontally */
    box-shadow: var(--shadow-lg);
}
.sticky-item:hover .item-label {
    opacity: 1;
}

/* Zalo SVG color correction in label */
.item-zalo .item-label { color: #0068ff; }
.item-hotline .item-label { color: #ee2c2c; }
.item-email .item-label { color: #ff9900; }
.item-chat .item-label { color: #00aa6c; }

/* --- 14. Responsive Layout Adjustments --- */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex; /* Show mobile burger */
    }
    .main-navigation .menu-primary-container,
    .main-navigation ul.menu {
        display: none; /* Hide standard nav list */
    }
    .timeline-line-connector {
        display: none; /* Hide process lines */
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    .section-title {
        font-size: 1.5rem !important;
    }
    .sticky-contact-sidebar {
        right: 10px;
    }
    .project-card {
        width: 250px;
        height: 160px;
    }
    .timeline-col {
        margin-bottom: 20px;
    }
}

/* Simple CSS scroll fade integrations */
.scrolled-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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