/* ==========================================================================
   MR.TEAMWORK - PREMIUM DESIGN SYSTEM & STYLESHEET
   Primary Theme: #8D3497 (Purple Magenta)
   Accent Theme:  #1F10BF (Electric Royal Blue)
   ========================================================================== */

/* --- Root Variables & Tokens --- */
:root {
    /* Brand Colors mapped to Theme Settings Panel Tokens */
    --primary-color: var(--mtw-btn-bg, #8D3497);
    --primary-light: #B246BD;
    --primary-dark: #66226E;
    --primary-glow: rgba(141, 52, 151, 0.35);
    
    --accent-color: var(--mtw-btn-bg-end, #1F10BF);
    --accent-light: #4839ED;
    --accent-dark: #14098A;
    --accent-glow: rgba(31, 16, 191, 0.35);

    /* Neutral Base (Light Mode) */
    --bg-body: #F9F8FD;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(141, 52, 151, 0.12);
    --border-color: #E6E1F3;
    
    --text-heading: #0F0926;
    --text-body: #4A4660;
    --text-muted: #7E7A96;
    
    /* Functional Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--mtw-btn-bg, #8D3497) 0%, var(--mtw-btn-bg-end, #1F10BF) 100%);
    --gradient-accent: linear-gradient(135deg, var(--mtw-btn-bg-end, #1F10BF) 0%, var(--mtw-btn-bg, #8D3497) 100%);
    --gradient-surface: linear-gradient(180deg, rgba(141, 52, 151, 0.05) 0%, rgba(31, 16, 191, 0.02) 100%);
    --gradient-glow: radial-gradient(circle, rgba(141, 52, 151, 0.15) 0%, rgba(31, 16, 191, 0.05) 70%, transparent 100%);

    /* Shadows & Elevation */
    --shadow-sm: 0 2px 8px rgba(15, 9, 38, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 9, 38, 0.08);
    --shadow-lg: 0 16px 36px rgba(141, 52, 151, 0.12);
    --shadow-xl: 0 24px 50px rgba(31, 16, 191, 0.18);
    --shadow-glow-primary: 0 10px 30px var(--primary-glow);
    --shadow-glow-accent: 0 10px 30px var(--accent-glow);

    /* Typography mapped to Theme Settings Tokens */
    --font-heading: var(--mtw-font-heading, 'Plus Jakarta Sans', 'Inter', sans-serif);
    --font-body: var(--mtw-font-body, 'Inter', sans-serif);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: var(--mtw-btn-radius, 999px);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
    --bg-body: #090616;
    --bg-surface: #120D28;
    --bg-surface-elevated: #1B1439;
    --bg-glass: rgba(18, 13, 40, 0.9);
    --border-glass: rgba(178, 70, 189, 0.2);
    --border-color: #271E4B;
    
    --text-heading: #F5F3FF;
    --text-body: #B9B4D6;
    --text-muted: #827BA3;

    --gradient-surface: linear-gradient(180deg, #090616 0%, #120D28 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 36px rgba(141, 52, 151, 0.25);
    --shadow-xl: 0 24px 50px rgba(31, 16, 191, 0.35);
}

/* --- Global Widget & Addon Plugin Dark Theme Support --- */
[data-theme="dark"] .widget,
[data-theme="dark"] .widget-title,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .footer-section,
[data-theme="dark"] .widget_text,
[data-theme="dark"] .widget_nav_menu,
[data-theme="dark"] .widget_categories,
[data-theme="dark"] .widget_archive,
[data-theme="dark"] .widget_search,
[data-theme="dark"] .widget_recent_entries,
[data-theme="dark"] .widget_meta,
[data-theme="dark"] .widget_block {
    color: var(--text-body);
}

[data-theme="dark"] .widget-title,
[data-theme="dark"] .widget h1,
[data-theme="dark"] .widget h2,
[data-theme="dark"] .widget h3,
[data-theme="dark"] .widget h4,
[data-theme="dark"] .widget h5,
[data-theme="dark"] .widget h6 {
    color: var(--text-heading);
}

[data-theme="dark"] .widget a,
[data-theme="dark"] .widget li a {
    color: var(--text-body);
}

[data-theme="dark"] .widget a:hover,
[data-theme="dark"] .widget li a:hover {
    color: var(--primary-light);
}

[data-theme="dark"] .widget input,
[data-theme="dark"] .widget select,
[data-theme="dark"] .widget textarea {
    background: var(--bg-surface-elevated);
    color: var(--text-heading);
    border-color: var(--border-color);
}

/* Dark Theme Target Section Rules (Hero & Core Expertise) */
[data-theme="dark"] .hero,
[data-theme="dark"] .services-preview,
[data-theme="dark"] .services-overview {
    background: var(--bg-body);
}

[data-theme="dark"] .hero-text h1,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .service-detail-card h3 {
    color: var(--text-heading);
}

[data-theme="dark"] .hero-text p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .service-detail-card p,
[data-theme="dark"] .service-features li {
    color: var(--text-body);
}

[data-theme="dark"] .hero-card {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .hero-floating-tag {
    background: var(--bg-surface);
    border-color: var(--border-glass);
    color: var(--text-heading);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .service-detail-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-card.featured,
[data-theme="dark"] .service-detail-card.featured {
    background: var(--bg-surface-elevated);
    border-color: var(--primary-color);
}

[data-theme="dark"] .service-icon {
    background: rgba(178, 70, 189, 0.15);
    color: var(--primary-light);
}

/* --- Inline SVG Icon & Backdrop Utilities --- */
.mtw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.mtw-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.cta-phone-icon {
    margin-right: 6px;
    font-size: 1.1em;
}

.theme-toggle-icon-moon,
.theme-toggle-icon-sun {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* Backdrop Overlay for Mobile Drawer */
.nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 6, 22, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden !important;
}

/* --- Reset & Global Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

html {
    scroll-behavior: smooth;
    font-size: var(--mtw-font-size-base, 16px);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.65;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: var(--mtw-heading-weight, 800);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p {
    color: var(--text-body);
    font-size: 1.05rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-accent-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* --- Buttons & Action Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--mtw-btn-text, #FFFFFF);
    box-shadow: var(--shadow-glow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
    border-radius: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px var(--accent-glow);
    color: #FFFFFF;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(141, 52, 151, 0.08);
    color: var(--mtw-btn-text-secondary, var(--primary-color));
    border: 2px solid var(--mtw-btn-border-secondary, rgba(141, 52, 151, 0.25));
}

[data-theme="dark"] .btn-secondary {
    background: rgba(178, 70, 189, 0.15);
    color: var(--primary-light);
    border-color: rgba(178, 70, 189, 0.35);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-heading);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(31, 16, 191, 0.05);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-base);
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--gradient-primary);
    color: #FFFFFF;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: var(--shadow-glow-primary);
}

/* --- Section Badges --- */
.section-badge, .hero-badge, .page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(141, 52, 151, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(141, 52, 151, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge,
[data-theme="dark"] .hero-badge,
[data-theme="dark"] .page-badge {
    background: rgba(178, 70, 189, 0.15);
    color: var(--primary-light);
    border-color: rgba(178, 70, 189, 0.3);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.section-header p {
    margin-top: 12px;
    font-size: 1.1rem;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-base);
    padding: 16px 0;
    background: var(--mtw-header-bg, rgba(249, 248, 253, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(141, 52, 151, 0.08);
    width: 100%;
}

[data-theme="dark"] .header {
    background: rgba(9, 6, 22, 0.85);
    border-bottom-color: rgba(178, 70, 189, 0.12);
}

.header.scrolled, .header.is-sticky.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    transition: var(--transition-base);
    flex-shrink: 0;
}

.logo i {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-glow-primary);
    flex-shrink: 0;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-body);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    transition: var(--transition-fast);
    white-space: nowrap;
}

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

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

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

.mobile-cta-item {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--gradient-primary);
    color: #FFFFFF;
    transform: rotate(20deg) scale(1.05);
}

.nav-cta {
    background: var(--gradient-primary);
    color: #FFFFFF;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: var(--shadow-glow-primary);
    transition: var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-cta.desktop-only {
    display: inline-flex;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-heading);
    border-radius: 3px;
    transition: var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 140px 0 80px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-surface);
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    top: -50px;
    right: -20px;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

.shape-2 {
    width: 320px;
    height: 320px;
    background: var(--accent-color);
    bottom: -50px;
    left: -20px;
    animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 220px;
    height: 220px;
    background: var(--primary-light);
    top: 40%;
    right: 30%;
    animation: float 12s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
    100% { transform: scale(1.2) translate(15px, -15px); opacity: 0.55; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(4deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    width: 100%;
}

.hero-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
    width: 100%;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px var(--primary-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.card-dots span:nth-child(1) { background: #FF5F56; }
.card-dots span:nth-child(2) { background: #FFBD2E; }
.card-dots span:nth-child(3) { background: #27C93F; }

.card-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.card-content {
    display: grid;
    gap: 16px;
}

.code-lines {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    padding: 14px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.code-line {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: shimmerLine 2.5s infinite linear;
}
.code-line.short { width: 45%; }
.code-line.medium { width: 75%; }

@keyframes shimmerLine {
    0% { opacity: 0.2; }
    50% { opacity: 0.7; }
    100% { opacity: 0.2; }
}

.preview-section {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--border-color);
}

.preview-header {
    height: 20px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    opacity: 0.8;
}

.preview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.preview-block {
    height: 42px;
    background: rgba(141, 52, 151, 0.1);
    border-radius: var(--radius-sm);
}

.preview-block.small {
    height: 42px;
    background: rgba(31, 16, 191, 0.1);
}

.hero-floating-tag {
    position: absolute;
    background: var(--bg-surface);
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.hero-floating-tag.tag-top {
    top: -16px;
    right: 10px;
}

.hero-floating-tag.tag-bottom {
    bottom: -16px;
    left: 10px;
    animation-delay: -3s;
}

.hero-floating-tag i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* --- Services Section & Cards --- */
.services-preview, .services-overview {
    padding: 90px 0;
    width: 100%;
    overflow: hidden;
}

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

.service-card, .service-detail-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before, .service-detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover, .service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(141, 52, 151, 0.3);
}

.service-card:hover::before, .service-detail-card:hover::before {
    opacity: 1;
}

.service-card.featured, .service-detail-card.featured {
    background: var(--bg-surface-elevated);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(141, 52, 151, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.service-card:hover .service-icon,
.service-detail-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #FFFFFF;
    transform: scale(1.08) rotate(5deg);
    box-shadow: var(--shadow-glow-primary);
}

.service-card h3, .service-detail-card h3 {
    margin-bottom: 12px;
}

.service-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--accent-color);
    margin-bottom: 14px;
    display: block;
}

[data-theme="dark"] .service-price {
    color: var(--accent-light);
}

.service-features ul {
    list-style: none;
    margin: 16px 0;
    display: grid;
    gap: 10px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-body);
}

.service-features li i {
    color: var(--success);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.service-cta {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- Interactive Cost Estimator Widget --- */
.cost-estimator-section {
    padding: 80px 0;
    background: var(--gradient-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
}

.estimator-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    width: 100%;
}

.estimator-options h4 {
    margin-bottom: 14px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-opt {
    padding: 9px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface-elevated);
    color: var(--text-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.pill-opt.active, .pill-opt:hover {
    border-color: var(--primary-color);
    background: rgba(141, 52, 151, 0.1);
    color: var(--primary-color);
}

.estimator-summary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-glow-primary);
    position: relative;
    overflow: hidden;
}

.estimator-summary h3 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.estimated-price-box {
    margin: 20px 0;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
}

.price-sub {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 6px;
}

/* --- Why Choose Us --- */
.why-choose {
    padding: 90px 0;
    background: var(--bg-body);
    width: 100%;
    overflow: hidden;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.features-list {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow-primary);
}

.feature-content h4 {
    margin-bottom: 4px;
}

.visual-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--bg-surface-elevated);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.chart-bars {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
}

.chart-bars .bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 1s ease;
    min-height: 16px;
}

/* --- Portfolio Showcase & Grid --- */
.portfolio-preview, .portfolio-showcase {
    padding: 90px 0;
    width: 100%;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.portfolio-item {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, rgba(141, 52, 151, 0.15) 0%, rgba(31, 16, 191, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-mockup {
    font-size: 3.5rem;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.portfolio-item:hover .portfolio-mockup {
    transform: scale(1.1) rotate(-5deg);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 9, 38, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-base);
    text-align: center;
    color: #FFFFFF;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h4 {
    color: #FFFFFF;
    margin-bottom: 6px;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.04em;
}

/* --- Testimonials --- */
.testimonials {
    padding: 90px 0;
    background: var(--gradient-surface);
    width: 100%;
    overflow: hidden;
}

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

.testimonial-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: #FFB800;
    margin-bottom: 14px;
    display: flex;
    gap: 4px;
    font-size: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow-primary);
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-content {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px 28px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: var(--shadow-glow-primary);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-content h2 {
    color: #FFFFFF;
    margin-bottom: 14px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-content .btn-primary {
    background: #FFFFFF;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary:hover {
    background: #F5F3FF;
    color: var(--accent-color);
}

.cta-content .btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
}

.cta-content .btn-secondary:hover {
    background: #FFFFFF;
    color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background: var(--mtw-footer-bg, #090616);
    color: var(--mtw-footer-text, #B9B4D6);
    padding: 70px 0 30px 0;
    border-top: 1px solid rgba(178, 70, 189, 0.15);
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 36px;
    margin-bottom: 50px;
}

.footer-content.grid-cols-3 {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.footer-content.grid-cols-4 {
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.footer-logo i {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-section h3, .widget-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #B9B4D6;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.contact-info .contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.contact-info i {
    color: var(--primary-light);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #827BA3;
}

/* --- Floating Elements --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
}

.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 88px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-glow-primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* --- Modal Dialogs --- */
.project-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px 16px;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 6, 22, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    max-width: 650px;
    width: 100%;
    margin: 40px auto;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    z-index: 2001;
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 20px 0;
}

.tech-tag {
    background: rgba(141, 52, 151, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        max-width: 520px;
        margin: 0 auto;
    }
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .estimator-card {
        grid-template-columns: 1fr;
    }
    .footer-content, .footer-content.grid-cols-3, .footer-content.grid-cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .header {
        padding: 12px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        max-width: 85vw;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 28px 30px 28px;
        box-shadow: var(--shadow-xl);
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
        z-index: 1000;
        visibility: hidden;
        border-left: 1px solid var(--border-color);
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-cta-item {
        display: block !important;
        width: 100%;
        margin-top: 16px;
        padding-top: 12px;
    }

    .mobile-menu-cta {
        width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 12px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cta {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .footer-content, .footer-content.grid-cols-3, .footer-content.grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scroll-to-top {
        right: 16px;
        bottom: 84px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.15rem;
        gap: 8px;
    }
    .logo i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .nav-actions .nav-cta.desktop-only {
        display: none !important;
    }

    .hero {
        padding: 110px 0 50px 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .estimator-card, .visual-card {
        padding: 24px 16px;
    }

    .price-val {
        font-size: 2.2rem;
    }

    .pills-grid {
        flex-direction: column;
    }

    .pill-opt {
        width: 100%;
        text-align: center;
    }

    .cta-content {
        padding: 40px 18px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn {
        width: 100%;
    }
}
