:root {
    --bg-color: #0b0f19;
    --bg-secondary: #111827;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-hover: rgba(31, 41, 55, 0.8);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #8b5cf6;
    --accent-emerald: #10b981;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.5);
    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 14px 8%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Fira Code', monospace;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-main);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-main);
    transform: translateY(-3px);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Hero Section */
.hero {
    padding: 160px 8% 80px 8%;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

/* Page Layout */
.page-container {
    padding: 120px 8% 100px 8%;
    min-height: 85vh;
}


.section-title {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Feature & Service Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.custom-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.custom-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

/* Pricing Cards */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.25);
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.3) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.pricing-card.popular .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-features li i.fa-check-circle {
    color: var(--accent-emerald);
}

.pricing-features li i.fa-times-circle {
    color: #6b7280;
}

/* Portfolio Filter & Card */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.portfolio-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.portfolio-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9), transparent);
}

.portfolio-body {
    padding: 24px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.portfolio-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 6px;
    font-weight: 600;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
    transition: max-height 0.3s ease-in-out;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #f59e0b;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* Floating WhatsApp Widget */
.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.floating-wa-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border: 2px solid var(--bg-color);
    border-radius: 50%;
}

/* WhatsApp Chatbot Widget Popup */
.wa-chatbot-popup {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    max-width: 90vw;
    height: 480px;
    max-height: 75vh;
    background: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-chatbot-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-chatbot-header {
    background: linear-gradient(135deg, #075e54, #128c7e);
    padding: 14px 18px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-chatbot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    position: relative;
}

.wa-online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #075e54;
    border-radius: 50%;
}

.wa-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.wa-subtitle {
    font-size: 0.75rem;
    opacity: 0.85;
}

.wa-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wa-close-btn:hover {
    opacity: 1;
}

.wa-chatbot-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #070a12;
}

.wa-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.wa-msg-bot {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.wa-msg-user {
    background: #056162;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.wa-quick-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.wa-chip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    color: white;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.wa-chip:hover {
    background: var(--primary);
    color: white;
}

.wa-chatbot-footer {
    padding: 12px;
    background: #0b0f19;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.wa-input {
    flex: 1;
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-size: 0.88rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.wa-send-btn {
    background: #25d366;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.wa-send-btn:hover {
    transform: scale(1.08);
}


/* Footer modern layout */
footer {
    border-top: 1px solid var(--border-color);
    background: #080c14;
    padding: 70px 8% 30px 8%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }

    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border-color);
        padding: 25px;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .btn-nav {
        display: none;
    }

    .nav-mobile-btn {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .hero {
        flex-direction: column;
        padding-top: 130px !important;
        text-align: center;
    }

    .hero-content {
        max-width: 100% !important;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-container {
        padding: 120px 5% 60px 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HIGH-TECH CODE EDITOR SHOWCASE WINDOW STYLES
   ═══════════════════════════════════════════════════════════════ */
.code-editor-wrapper {
    margin: 45px auto 20px auto;
    max-width: 900px;
    perspective: 1000px;
}

.code-editor-window {
    background: #0d1117;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.15);
    overflow: hidden;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    font-family: 'Fira Code', monospace;
}

.code-editor-window:hover {
    transform: translateY(-5px) rotateX(1deg);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(59, 130, 246, 0.25);
}

.code-editor-header {
    background: #161b22;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.editor-tabs {
    display: flex;
    gap: 4px;
    margin-left: 15px;
}

.editor-tab {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px 6px 0 0;
    color: #8b949e;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 2px solid transparent;
}

.editor-tab.active {
    background: #0d1117;
    color: #c9d1d9;
    border-top-color: var(--primary);
}

.editor-status {
    color: #8b949e;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-editor-body {
    padding: 20px 24px;
    display: flex;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
    background: #0d1117;
}

.code-line-numbers {
    display: flex;
    flex-direction: column;
    color: #484f58;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
}

.code-content {
    padding-left: 20px;
    color: #e6edf3;
    white-space: pre;
}

/* Syntax Highlighting */
.syn-keyword { color: #ff7b72; font-weight: 600; }
.syn-func    { color: #d2a8ff; font-weight: 500; }
.syn-string  { color: #a5d6ff; }
.syn-var     { color: #79c0ff; }
.syn-class   { color: #f0883e; font-weight: 600; }
.syn-comment { color: #8b949e; font-style: italic; }
.syn-num     { color: #79c0ff; }
.syn-tag     { color: #7ee787; }
.syn-attr    { color: #79c0ff; }
.syn-cursor  {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--primary);
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.editor-footer-bar {
    background: #161b22;
    padding: 8px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #8b949e;
}

.editor-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
