/* ==========================================
   1. Global Reset & CSS Variables
   ========================================== */
:root {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --secondary-color: #0f172a;
    --accent-color: #10b981;
    --text-color: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   2. Utility Classes & Reusable Layouts
   ========================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    display: inline-block;
    margin-bottom: 5px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

/* Responsive Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    gap: 8px;
}

.full-width {
    width: 100%;
}

/* ==========================================
   3. Main Header & Navbar
   ========================================== */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative; /* Mobile Dropdown Positioning को लागि */
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-highlight {
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

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

.nav-cta {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hamburger Click गर्दा 'X' बन्ने Animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ==========================================
   4. Universal Page Header / Banner
   ========================================== */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('../assets/images/images1.png') center/cover no-repeat;
    padding: 70px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.page-header .breadcrumb {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.page-header .breadcrumb a {
    color: var(--white);
}

.page-header .breadcrumb a:hover {
    color: #38bdf8;
}

.page-header .breadcrumb span {
    color: #38bdf8;
    font-weight: 600;
}

/* ==========================================
   5. Hero Section (Home Page)
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 90px 0 70px 0;
}

.badge {
    background-color: #dbeafe;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 2.6rem;
    color: var(--secondary-color);
    margin: 20px 0 15px 0;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.code-card {
    background: #1e293b;
    border-radius: 10px;
    padding: 20px;
    color: #f8fafc;
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.card-title {
    margin-left: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

pre {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.keyword { color: #f43f5e; }
.variable { color: #38bdf8; }
.property { color: #fbbf24; }
.string { color: #34d399; }
.method { color: #a78bfa; }

/* ==========================================
   6. About Section & Internal Page Components
   ========================================== */
.about-stats-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box, .stat-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-box:hover, .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-box h3, .stat-card h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box.accent, .stat-card.accent {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

.stat-box.accent h3, .stat-card.accent h3 {
    color: var(--accent-color);
}

.check-list {
    margin: 20px 0;
}

.check-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

.highlight-item {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
}

/* ==========================================
   7. Services & Feature Cards
   ========================================== */
.service-card, .feature-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.service-card .icon, .feature-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* ==========================================
   8. Portfolio Section
   ========================================== */
.portfolio-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-img {
    height: 180px;
    position: relative;
    padding: 15px;
}

.portfolio-img .tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.portfolio-info {
    padding: 20px;
}

/* ==========================================
   9. Pricing Section
   ========================================== */
.price-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.price-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 15px 0;
}

.price-card .price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-card ul {
    margin-bottom: 25px;
}

.price-card ul li {
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 6px;
}

/* ==========================================
   10. Team Section
   ========================================== */
.team-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.team-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.04);
}

/* ==========================================
   11. Call to Action (CTA) & Footer
   ========================================== */
.cta-section {
    background: var(--secondary-color);
    color: var(--white);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: #94a3b8;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.main-footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 18px 0;
    font-size: 0.85rem;
}

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

/* ==========================================
   12. JS Animation Helpers (Scroll Reveal)
   ========================================== */
.reveal-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ==========================================
   13. Responsive Media Queries
   ========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons, .cta-buttons {
        flex-direction: column;
    }

    .nav-toggle {
        display: block;
    }

    /* Fixed Mobile Navbar Display Properties */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        display: none;
    }

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

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-stats-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
