/* --- NECTRA BRAND GUIDELINES --- */
:root {
    --void-black: #050505;  /* Deep Space Black */
    --nectra-neon: #00E5FF; /* Rahu's Electric Blue */
    --cyber-silver: #E0E0E0;
    --dark-surface: rgba(10, 10, 10, 0.8);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--void-black);
    color: var(--cyber-silver);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* All direct content sits above particles background */
main, section, header, footer, article, .container {
    position: relative;
    z-index: 1;
}

/* PARTICLES CONTAINER */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}
#particles-js canvas {
    pointer-events: none;
    position: relative;
    z-index: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, .navbar-brand, .btn-nectra {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.text-neon { color: var(--nectra-neon); text-shadow: 0 0 15px rgba(0, 229, 255, 0.6); }

/* NAVBAR */
.navbar {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    z-index: 1030;
}
.nav-link { color: #fff !important; transition: 0.3s; font-size: 0.9rem; text-transform: uppercase; }
.nav-link:hover { color: var(--nectra-neon) !important; text-shadow: 0 0 8px var(--nectra-neon); }
.navbar-collapse { transition: all 0.3s ease; }
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(5, 5, 5, 0.98);
        padding: 20px;
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(0, 229, 255, 0.1);
        border-top: none;
        margin-top: 10px;
    }
    .navbar-nav .nav-item { margin-bottom: 5px; }
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        border-radius: 6px;
        font-size: 0.85rem;
    }
    .navbar-nav .nav-link:hover { background: rgba(0, 229, 255, 0.05); }
    .navbar-nav .ms-lg-4 { margin-left: 0 !important; margin-top: 10px; }
    .navbar-nav .btn-nectra { width: 100%; text-align: center; }
}

/* BUTTONS (Mars Energy) */
.btn-nectra {
    border: 1px solid var(--nectra-neon);
    color: var(--nectra-neon);
    background: transparent;
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-nectra:hover {
    background: var(--nectra-neon);
    color: #000;
    box-shadow: 0 0 25px var(--nectra-neon);
}

/* CARDS */
.service-card {
    background: rgba(20, 20, 20, 0.6); /* Semi-transparent */
    border: 1px solid #333;
    padding: 2.5rem;
    border-radius: 8px;
    transition: 0.4s;
    height: 100%;
    backdrop-filter: blur(5px);
}
.service-card:hover {
    border-color: var(--nectra-neon);
    transform: translateY(-7px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

/* FORMS */
.form-control, .form-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    color: #fff;
    padding: 15px;
}
.form-control:focus, .form-select:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--nectra-neon);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
    color: #fff;
}

/* STATS SECTION */
.stats-card {
    position: relative;
}
.stats-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(0, 229, 255, 0.3);
    border-radius: 2px;
}

/* TECHNOLOGY GRID */
.tech-grid {
    perspective: 1000px;
}
.tech-badge {
    padding: 12px 22px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.tech-badge:hover {
    border-color: var(--nectra-neon);
    color: var(--nectra-neon);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}
.tech-badge i, .tech-badge span {
    margin-right: 6px;
}

/* PROCESS SECTION */
.process-card {
    background: rgba(15, 15, 15, 0.5);
    transition: all 0.3s ease;
}
.process-card:hover {
    border-color: var(--nectra-neon) !important;
    transform: translateY(-3px);
}
.process-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(0, 229, 255, 0.08);
    font-family: var(--font-heading);
    line-height: 1;
}

/* RESULT CARDS */
.result-card {
    background: rgba(15, 15, 15, 0.7);
    transition: all 0.3s ease;
}
.result-card:hover {
    border-color: var(--nectra-neon) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transform: translateY(-3px);
}

/* TESTIMONIALS */
.testimonial-card {
    background: rgba(15, 15, 15, 0.5);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    border-color: var(--nectra-neon) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.08);
}

/* FAQ ACCORDION */
.accordion-item {
    background: rgba(17, 17, 17, 0.85) !important;
    border: 1px solid #333 !important;
    backdrop-filter: blur(3px);
}
.accordion-button {
    background: rgba(17, 17, 17, 0.85) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none !important;
    padding: 18px 20px;
}
.accordion-button::after {
    filter: invert(1);
}
.accordion-button:not(.collapsed) {
    color: var(--nectra-neon) !important;
    background: rgba(0, 229, 255, 0.05) !important;
}
.accordion-body {
    background: rgba(10, 10, 10, 0.85);
    border-top: 1px solid #222;
    padding: 20px;
    line-height: 1.7;
}

/* HOVER EFFECTS */
.hover-lift {
    transition: all 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    border-color: var(--nectra-neon) !important;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.1);
}

/* GLASS EFFECT */
.bg-glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
}

/* PROGRESS BARS */
.progress {
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    transition: width 1.2s ease-in-out;
    border-radius: 4px;
}

/* SERVICES PAGE */
.services-hero {
    overflow: hidden;
}
.services-nav {
    transition: all 0.3s ease;
}
.service-nav-btn {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-color: #444;
    color: #aaa;
    transition: all 0.3s ease;
}
.service-nav-btn:hover,
.service-nav-btn:focus,
.service-nav-btn.active {
    border-color: var(--nectra-neon);
    color: var(--nectra-neon);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}
.service-detail-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}
.service-detail-card:hover {
    border-color: var(--nectra-neon) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.08);
}

/* PORTFOLIO PAGE */
.portfolio-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,229,255,0.04) 0%, transparent 60%);
    animation: portfolioRotate 25s linear infinite;
}
@keyframes portfolioRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.portfolio-card {
    background: rgba(10, 10, 10, 0.85);
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
}
.portfolio-card:hover {
    border-color: var(--nectra-neon) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.1);
}
.portfolio-card-thumb {
    background: rgba(15, 15, 15, 0.8);
    overflow: hidden;
}
.portfolio-card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.08;
    filter: blur(50px);
    border-radius: 50%;
}
.portfolio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}
.filter-btn {
    border: 1px solid #444;
    color: #aaa;
    background: transparent;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    border-color: var(--nectra-neon);
    color: var(--nectra-neon);
}
.filter-btn.active {
    background-color: var(--nectra-neon) !important;
    color: #000 !important;
    border-color: var(--nectra-neon) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    font-weight: 600;
}
.project-item {
    animation: projectFadeIn 0.5s ease-in;
}
@keyframes projectFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HIRE EXPERTS PAGE */
.hire-hero {
    background: transparent;
}
.hire-expert-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}
.hire-expert-card:hover {
    border-color: var(--nectra-neon) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}
.hire-expert-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 229, 255, 0.08);
    color: var(--nectra-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* BLOG / INSIGHTS PAGE */
.object-fit-cover {
    object-fit: cover;
}
.blog-card-img {
    width: 100%;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.service-card:hover .blog-card-img img {
    transform: scale(1.05);
}
.post-hero-header {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 50px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-content {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d4d4d4;
}
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5 {
    color: #fff !important;
    font-weight: 700;
    margin-top: 2rem;
}
.blog-content img.img-fluid {
    border: 1px solid #333;
    border-radius: 8px;
    background: #000;
    max-width: 100%;
    height: auto;
}
.blog-content a {
    color: var(--nectra-neon);
    text-decoration: none;
}
.blog-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--nectra-neon);
}
.card-img-top-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}
.card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}
.hover-neon-border:hover img {
    transform: scale(1.05);
}
.hover-neon-border:hover {
    border-color: var(--nectra-neon) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* Neon Pagination */
.pagination-neon {
    gap: 8px;
}
.pagination-neon .page-link {
    background-color: transparent;
    border: 1px solid #333;
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.pagination-neon .page-link:hover {
    background-color: rgba(0, 229, 255, 0.05);
    border-color: var(--nectra-neon);
    color: var(--nectra-neon);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}
.pagination-neon .page-item.active .page-link {
    background-color: rgba(0, 229, 255, 0.15);
    border-color: var(--nectra-neon);
    color: var(--nectra-neon);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}
.pagination-neon .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #1a1a1a;
    color: #444;
    cursor: not-allowed;
}

/* CONTACT PAGE */
.contact-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    margin-top: 2px;
    transition: all 0.3s ease;
}
.contact-icon-box:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}
.contact-icon-box i {
    font-size: 16px;
}
.contact-hero {
    position: relative;
    z-index: 2;
}
/* Contact Form Styling */
#contactPageForm .form-control,
#contactPageForm .form-select {
    background: rgba(20, 25, 30, 0.9) !important;
    border: 1px solid rgba(100, 110, 120, 0.4) !important;
    color: #fff !important;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
#contactPageForm .form-control:focus,
#contactPageForm .form-select:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1) !important;
    background: rgba(15, 20, 25, 1) !important;
}
#contactPageForm .form-control::placeholder {
    color: rgba(180, 180, 180, 0.5);
}
#contactPageForm .form-select option {
    background: #111;
    color: #fff;
}
/* Contact Stats */
.contact-stat-box {
    transition: all 0.3s ease;
}
.contact-stat-box:hover {
    border-color: rgba(0, 229, 255, 0.3) !important;
    transform: translateY(-2px);
}
/* FAQ Accordion */
#contactFAQ .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none;
    padding: 18px 20px;
}
#contactFAQ .accordion-button:not(.collapsed) {
    background: rgba(0, 229, 255, 0.05);
    color: var(--neon-cyan);
}
#contactFAQ .accordion-button::after {
    filter: invert(1);
}
#contactFAQ .accordion-body {
    line-height: 1.7;
}

/* FOOTER HOVER EFFECTS */
.hover-neon:hover {
    color: var(--nectra-neon) !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}
.transition {
    transition: all 0.3s ease;
}

/* BOUNCE ANIMATION */
.animate-bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .display-4 { font-size: 2rem !important; }
    .display-5 { font-size: 1.75rem !important; }
    .display-6 { font-size: 1.5rem !important; }
    section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

@media (max-width: 768px) {
    /* Global */
    .hero-section { min-height: 80vh !important; padding: 80px 0 40px !important; }
    .hero-section h1 { font-size: 1.8rem !important; }
    .hero-section .lead { font-size: 0.95rem !important; }
    .display-3 { font-size: 1.8rem !important; }
    .stats-card h2 { font-size: 1.8rem !important; }
    .tech-badge { padding: 8px 14px; font-size: 0.8rem; }
    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.4rem !important; }
    h3, .h3 { font-size: 1.2rem !important; }
    .lead { font-size: 0.95rem !important; }
    
    /* Navbar */
    .navbar-brand { font-size: 1.1rem !important; }
    .navbar .btn { font-size: 0.8rem; padding: 6px 12px; }
    
    /* Contact Page */
    .contact-hero { min-height: 50vh !important; padding: 100px 15px 40px !important; }
    .contact-hero h1 { font-size: 1.6rem !important; }
    .contact-hero .btn { width: 100%; margin-bottom: 8px; }
    #contactPageForm .form-control,
    #contactPageForm .form-select { padding: 10px 14px; font-size: 0.85rem; }
    .contact-icon-box { width: 38px; height: 38px; min-width: 38px; }
    
    /* Services Page */
    .services-hero { padding: 100px 15px 40px !important; }
    .service-nav-btn { font-size: 0.75rem; padding: 8px 12px; }
    
    /* Portfolio Page */
    .filter-btn { font-size: 0.75rem; padding: 6px 12px; margin-bottom: 5px; }
    .portfolio-card { margin-bottom: 1.5rem; }
    
    /* Hire Experts */
    .hire-hero { padding: 100px 15px 40px !important; }
    .hire-expert-card { padding: 1.5rem !important; }
    
    /* Insights / Blog */
    .blog-card-img { max-height: 200px; }
    
    /* Post Page */
    .post-hero-header { padding-top: 80px !important; padding-bottom: 30px !important; }
    .post-hero-header h1 { font-size: 1.5rem !important; }
    .blog-content { font-size: 1rem !important; line-height: 1.7 !important; }
    .blog-content img { margin: 1rem 0 !important; }
    .card-img-top-wrapper { aspect-ratio: 16 / 10; }
    
    /* Privacy / Terms */
    .bg-glass.p-5, .bg-glass.p-md-5 { padding: 1.5rem !important; }
    
    /* Footer */
    footer .col-lg-4, footer .col-lg-2 { margin-bottom: 1.5rem; }
    
    /* FAQ Accordion */
    #contactFAQ .accordion-button { font-size: 0.85rem; padding: 14px 16px; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.5rem !important; }
    .display-3 { font-size: 1.5rem !important; }
    .display-4 { font-size: 1.4rem !important; }
    .display-5 { font-size: 1.25rem !important; }
    .process-number { font-size: 1.5rem; }
    
    /* Hero buttons stack */
    .hero-section .d-flex.gap-3 { flex-direction: column; align-items: center; }
    .hero-section .btn-lg { width: 100%; max-width: 280px; font-size: 0.85rem; padding: 12px 20px; }
    
    /* Contact */
    .contact-hero h1 { font-size: 1.3rem !important; }
    .contact-hero .lead { font-size: 0.85rem !important; }
    .contact-stat-box .h5 { font-size: 1rem !important; }
    .contact-hero .d-flex.gap-3 { flex-direction: column; width: 100%; }
    .contact-hero .btn { width: 100%; }
    
    /* Cards & Containers */
    .p-4 { padding: 1.25rem !important; }
    .p-5 { padding: 1.5rem !important; }
    .g-5 { --bs-gutter-y: 2rem; }
    
    /* Buttons */
    .btn-nectra { font-size: 0.85rem; padding: 10px 20px; }
    .btn { font-size: 0.85rem; }
    
    /* Typography */
    .h4 { font-size: 1.1rem !important; }
    .h5 { font-size: 1rem !important; }
    .small, small { font-size: 0.8rem !important; }
    
    /* Post Page */
    .post-hero-header h1 { font-size: 1.3rem !important; }
    .blog-content { font-size: 0.9rem !important; }
    .blog-content img { max-width: 100% !important; height: auto !important; }
    
    /* Services */
    .services-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important; padding-bottom: 10px; }
    .service-nav-btn { white-space: nowrap; }
    
    /* Portfolio */
    .portfolio-card-thumb { height: 180px !important; }
    
    /* Footer */
    footer { text-align: center; }
    footer .d-flex.gap-3 { justify-content: center; }
    footer .col-lg-4 p { max-width: 100% !important; }
}