/* ============================================
   VS VISION SYSTEM IT - Main Stylesheet
   Theme: Navy Blue with Green Accent (Tech)
   ============================================ */

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0f2440;
    --primary-gradient: linear-gradient(135deg, #0f2440 0%, #1a3a5c 40%, #1e5080 100%);
    --accent: #00e676;
    --accent-light: #69f0ae;
    --accent-dark: #00c853;
    --accent-blue: #00b0ff;
    --neon: #00e5ff;
    --dark: #0a1628;
    --dark-light: #132240;
    --text: #2d3748;
    --text-light: #718096;
    --bg-light: #f0f4f8;
    --bg-tech: #0d1b2a;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(26, 58, 92, 0.12);
    --shadow-lg: 0 10px 40px rgba(26, 58, 92, 0.2);
    --shadow-neon: 0 0 20px rgba(0, 230, 118, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

/* ============================================
   NAVBAR
   ============================================ */
#mainNav {
    background: transparent;
    transition: var(--transition);
    padding: 15px 0;
}
#mainNav.scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.4);
    padding: 8px 0;
}
.navbar-logo {
    height: 55px;
    object-fit: contain;
    transition: var(--transition);
}
#mainNav.scrolled .navbar-logo {
    height: 44px;
}
.brand-icon {
    font-size: 2rem;
    color: var(--accent);
}
.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.brand-tagline {
    font-size: 0.65rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
}
.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 60%;
}
.admin-btn {
    border-radius: 20px !important;
    margin-top: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 230, 118, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 176, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 229, 255, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, rgba(15, 36, 64, 0.2) 100%);
}
/* Tech grid overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}
.hero-particles .particle {
    position: absolute;
    background: rgba(0, 230, 118, 0.15);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--accent);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 230, 118, 0.15); }
    50% { box-shadow: 0 0 25px rgba(0, 230, 118, 0.3); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 600px;
    font-weight: 300;
}
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    border: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35);
    color: var(--dark);
}
.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 230, 118, 0.5);
    color: var(--dark);
}
.hero-buttons .btn-outline-light {
    border-radius: 30px;
    font-weight: 600;
    border-width: 2px;
}
.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}
.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Cards */
.hero-illustration {
    position: relative;
    height: 450px;
}
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(0, 230, 118, 0.03);
    animation: float 6s ease-in-out infinite;
}
.floating-card i {
    font-size: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.4));
}
.card-1 { top: 10%; left: 10%; animation-delay: 0s; }
.card-2 { top: 30%; right: 5%; animation-delay: 1s; }
.card-3 { top: 55%; left: 5%; animation-delay: 2s; }
.card-4 { top: 75%; right: 10%; animation-delay: 3s; }
.card-5 { top: 45%; left: 35%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(26, 58, 92, 0.08);
    transition: var(--transition);
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Tech section backgrounds */
#services {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}
#services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 176, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 230, 118, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
#clients {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}
#clients::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 58, 92, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 58, 92, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Tech divider between sections */
.tech-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--accent) 50%, var(--accent-blue) 80%, transparent 100%);
    opacity: 0.3;
}

/* ============================================
   PRODUCTS
   ============================================ */
.product-filters {
    display: inline-flex;
    gap: 10px;
    background: white;
    padding: 6px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.filter-btn {
    border: none;
    background: transparent;
    padding: 8px 24px;
    border-radius: 25px;
    font-family: 'Prompt', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(26, 58, 92, 0.06);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-neon);
    border-color: rgba(0, 230, 118, 0.15);
}
.product-card-header {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #e8edf3 0%, #dce8f5 100%);
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(26, 58, 92, 0.35);
    position: relative;
}
.product-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: linear-gradient(135deg, transparent, rgba(0, 230, 118, 0.3), transparent);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .product-icon-wrapper::after {
    opacity: 1;
}
.product-icon {
    font-size: 2.5rem;
    color: white;
}
.product-img {
    max-height: 130px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.product-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.product-card-body {
    padding: 24px;
    flex: 1;
}
.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}
.product-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}
.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-features li {
    font-size: 0.82rem;
    color: var(--text);
    padding: 4px 0;
}
.product-features li i {
    color: var(--accent-dark);
    font-size: 0.8rem;
}
.product-card-footer {
    padding: 0 24px 24px;
}
.product-card-footer .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}
.product-card-footer .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}
.product-item.hidden {
    display: none !important;
}

/* ============================================
   SERVICES
   ============================================ */
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-blue));
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 176, 255, 0.15);
}
.service-card:hover::before {
    opacity: 1;
}
.service-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(26, 58, 92, 0.3);
    transition: var(--transition);
    position: relative;
}
.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(26, 58, 92, 0.3), 0 0 20px rgba(0, 230, 118, 0.2);
}
.service-icon-wrap i {
    font-size: 2rem;
    color: white;
}
.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.service-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about-content {
    padding: 20px;
}
.about-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.about-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}
.about-placeholder {
    background: var(--primary-gradient);
    border-radius: var(--radius);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 15px;
    position: relative;
    overflow: hidden;
}
.about-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.about-placeholder i {
    font-size: 4rem;
    opacity: 0.6;
}
.about-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
}
.cmmi-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
    border: 2px solid var(--accent-dark);
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 500;
    box-shadow: var(--shadow), var(--shadow-neon);
}
.cmmi-badge i {
    color: var(--accent-dark);
    font-size: 1.3rem;
}
.cmmi-logo {
    height: 60px;
    object-fit: contain;
}

/* ============================================
   CLIENTS
   ============================================ */
.client-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}
.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 176, 255, 0.15);
}
.client-logo {
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(80%);
    transition: var(--transition);
}
.client-card:hover .client-logo {
    filter: grayscale(0%);
}
.client-placeholder {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-placeholder i {
    font-size: 1.5rem;
    color: var(--primary-light);
}
.client-name {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-info-card {
    background: var(--primary-gradient);
    border-radius: var(--radius);
    padding: 40px;
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.contact-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}
.contact-info-card h4 {
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}
.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--accent);
}
.contact-item strong {
    font-size: 0.85rem;
    opacity: 0.8;
}
.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}
.contact-form-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.contact-form-card h4 {
    color: var(--primary-dark);
    font-weight: 700;
}
.contact-form-card .form-control {
    border-radius: var(--radius-sm);
    border-color: #e2e8f0;
    font-family: 'Prompt', sans-serif;
}
.contact-form-card .form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 176, 255, 0.15);
}
.contact-form-card .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 12px;
}
.contact-form-card .btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-blue), var(--primary));
}
.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}
.footer-brand i, .footer-brand img {
    color: var(--accent);
}
.footer-logo {
    height: 35px;
    object-fit: contain;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}
.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
}
.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border-radius: var(--radius);
    border: none;
}
.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
}
.modal-header .btn-close {
    filter: brightness(0) invert(1);
}
.product-features-modal {
    list-style: none;
    padding: 0;
}
.product-features-modal li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-features-modal li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-dark);
}
.modal-footer .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 25px;
    padding: 8px 24px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--accent);
    border: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.4);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
}
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}
.admin-sidebar .sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-sidebar .sidebar-brand i {
    font-size: 1.8rem;
    color: var(--accent);
}
.admin-sidebar .sidebar-brand img {
    height: 35px;
    object-fit: contain;
}
.admin-sidebar .sidebar-brand span {
    font-weight: 700;
    font-size: 1rem;
}
.admin-sidebar .sidebar-brand small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.6;
}
.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(0, 230, 118, 0.08);
    color: var(--accent);
    border-left-color: var(--accent);
}
.sidebar-menu li a i {
    width: 20px;
    text-align: center;
}
.sidebar-menu .menu-label {
    padding: 15px 20px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #f5f7fa;
    min-height: 100vh;
}
.admin-topbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-topbar h4 {
    margin: 0;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}
.admin-content {
    padding: 30px;
}

/* Admin Cards */
.admin-stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 176, 255, 0.1);
}
.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}
.admin-stat-icon.bg-products { background: linear-gradient(135deg, #0f2440, #1a3a5c); }
.admin-stat-icon.bg-services { background: linear-gradient(135deg, #1a3a5c, #2a5a8c); }
.admin-stat-icon.bg-clients { background: linear-gradient(135deg, #00796b, #00c853); }
.admin-stat-icon.bg-messages { background: linear-gradient(135deg, #1565c0, #42a5f5); }

.admin-stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.admin-stat-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Admin Tables */
.admin-table-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.admin-table-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}
.admin-table-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--primary-dark);
}
.admin-table {
    width: 100%;
    margin: 0;
}
.admin-table th {
    background: var(--bg-light);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border: none;
}
.admin-table td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}
.admin-table tr:hover td {
    background: #f8faff;
}
.btn-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-action.btn-edit {
    background: rgba(26, 58, 92, 0.1);
    color: var(--primary);
}
.btn-action.btn-edit:hover {
    background: var(--primary);
    color: white;
}
.btn-action.btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}
.btn-action.btn-delete:hover {
    background: #dc3545;
    color: white;
}
.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add:hover {
    background: var(--primary-light);
    color: white;
}
.badge-active {
    background: rgba(0, 200, 83, 0.12);
    color: #00c853;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Admin Login */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    position: relative;
}
.admin-login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.admin-login-card {
    background: white;
    border-radius: var(--radius);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
}
.admin-login-card .login-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--accent);
    box-shadow: 0 8px 25px rgba(26, 58, 92, 0.3);
}
.admin-login-card h3 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.admin-login-card .login-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
}
.admin-login-card .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Prompt', sans-serif;
}
.admin-login-card .btn-login {
    background: var(--primary);
    border: none;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.admin-login-card .btn-login:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

/* Admin Form */
.admin-form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}
.admin-form-card .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary-dark);
}
.admin-form-card .form-control,
.admin-form-card .form-select {
    border-radius: var(--radius-sm);
    font-family: 'Prompt', sans-serif;
}
.admin-form-card .form-control:focus,
.admin-form-card .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 176, 255, 0.15);
}

/* Admin Message */
.message-unread {
    background: rgba(0, 176, 255, 0.04);
    font-weight: 600;
}
.unread-badge {
    background: var(--accent-dark);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 25px; }
    .section-title { font-size: 1.8rem; }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-buttons .btn { font-size: 0.85rem; padding: 10px 20px !important; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-number { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .product-card-header { min-height: 140px; padding: 20px; }
    .contact-info-card { padding: 25px; }
    .contact-form-card { padding: 25px; }
    .admin-content { padding: 15px; }
    .navbar-logo { height: 35px; }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.custom-toast {
    background: white;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s forwards;
}
.custom-toast.success { border-left: 4px solid var(--accent-dark); }
.custom-toast.error { border-left: 4px solid #dc3545; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   TECH DECORATIONS
   ============================================ */
.tech-line {
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: scanLine 3s infinite;
}
@keyframes scanLine {
    0% { opacity: 0; transform: translateY(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(200%); }
}
