/* ==========================================================================
       CSS VARIABLES & THEME ENGINE (Vercel / Stripe / Linear Dark Design System)
       ========================================================================== */
:root {
    --bg-primary: #060911;
    --bg-secondary: #0d1322;
    --bg-tertiary: #131b2e;
    --bg-glass: rgba(13, 19, 34, 0.75);
    --bg-glass-card: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.6);
    --border-error: #ef4444;
    --border-success: #10b981;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-subtle: #6b7280;

    --accent-primary: #6366f1;
    --accent-hover: #4f46e5;
    --accent-secondary: #06b6d4;
    --accent-success: #10b981;
    --accent-glow: rgba(99, 102, 241, 0.25);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Focus Outline */
:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 4px;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

p {
    color: var(--text-muted);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #06b6d4 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    color: #a5b4fc;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Reusable Button Engine */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary-glow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
    color: #ffffff;
}

.btn-primary-glow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(40%);
}

.btn-secondary-glass {
    background: var(--bg-glass-card);
    border-color: var(--border-light);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary-glass:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Card System */
.card-glass {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-glass:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

/* Animation Scroll Reveal Defaults */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-icon {
    animation: floating 4s ease-in-out infinite;
}

/* ==========================================================================
       1. HEADER & NAVBAR (IDENTICAL ACROSS ALL PAGES)
       ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.875rem 0;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand span {
    color: var(--accent-primary);
}

.nav-link-custom {
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 60%;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: none;
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-light);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        display: none;
    }

    .nav-menu.show {
        display: flex;
    }
}

/* ==========================================================================
       2. HERO SECTION
       ========================================================================== */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
}

.breadcrumb-nav a:hover {
    color: var(--accent-primary);
}

.hero-card {
    position: relative;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(16px);
}

.floating-tech-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(13, 19, 34, 0.85);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.floating-badge-1 {
    top: -15px;
    left: 10%;
}

.floating-badge-2 {
    bottom: -15px;
    right: 10%;
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    color: var(--text-subtle);
    font-size: 0.85rem;
}

.scroll-indicator i {
    animation: pulseDown 1.8s infinite;
}

@keyframes pulseDown {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* ==========================================================================
       3. SERVICE REQUEST PROCESS
       ========================================================================== */
.process-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.process-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
       4. ENTERPRISE SERVICE REQUEST FORM
       ========================================================================== */
.form-container-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 3.5rem);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.form-section-title i {
    color: var(--accent-primary);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label-custom {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-label-custom span.required-star {
    color: var(--accent-secondary);
}

.form-control-custom,
.form-select-custom {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: rgba(6, 9, 17, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control-custom:focus,
.form-select-custom:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(6, 9, 17, 0.85);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-control-custom.is-invalid,
.form-select-custom.is-invalid {
    border-color: var(--border-error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-control-custom.is-valid,
.form-select-custom.is-valid {
    border-color: var(--border-success);
}

.error-feedback {
    color: var(--border-error);
    font-size: 0.8rem;
    margin-top: 0.375rem;
    display: none;
}

.form-control-custom.is-invalid+.error-feedback,
.form-select-custom.is-invalid+.error-feedback {
    display: block;
}

/* Custom Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.875rem;
}

.checkbox-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: rgba(6, 9, 17, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    user-select: none;
}

.checkbox-tile:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-tile input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    background: rgba(0, 0, 0, 0.3);
}

.checkbox-tile input[type="checkbox"]:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-tile input[type="checkbox"]:checked::after {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    position: absolute;
    color: #ffffff;
    font-size: 0.75rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-tile input[type="checkbox"]:checked~span {
    color: var(--text-main);
    font-weight: 600;
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-align: right;
    margin-top: 0.25rem;
    font-family: var(--font-mono);
}

/* Form Status Messages */
.form-status-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.95rem;
    align-items: center;
    gap: 0.75rem;
}

.form-status-alert.success {
    display: flex;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.form-status-alert.error {
    display: flex;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Spinner */
.spinner-border-sm {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
       5. WHY CHOOSE MY SERVICES
       ========================================================================== */
.why-icon-small {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   6. FAQ ACCORDION (FIXED)
   ========================================================================== */
.faq-accordion {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Margins ऐवजी gap वापरा */
}

.faq-item {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
}

.faq-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--accent-primary);
}

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

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-panel {
    padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ==========================================================================
       7. CALL TO ACTION
       ========================================================================== */
.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-lg);
    padding: 4.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
       8. FOOTER (IDENTICAL ACROSS ALL PAGES)
       ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2rem 0;
    margin-top: 6rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.social-link-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-link-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
}
.bi-arrow-up-short {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top:hover .bi-arrow-up-short{
    transform: rotate(-360deg);
}

/* Print Styles */
@media print {

    .site-header,
    .back-to-top,
    .cta-card {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .card-glass,
    .form-container-card {
        border: 1px solid #ccc !important;
    }
}