/* =========================================
   DEVIXSCALE - CLEAN TECH B2B STYLES
   ========================================= */

/* --- CSS Variables for Light / Dark Theme --- */
:root[data-theme="light"] {
    --bg-main: #FAFAFA;
    --bg-alt: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --border-color: #E5E7EB;
    
    /* Brand Colors */
    --brand-primary: #3B82F6; /* Modern Blue */
    --brand-secondary: #8B5CF6; /* Modern Purple */
    --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    
    /* UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    
    /* Input */
    --input-bg: #FFFFFF;
    --input-border: #D1D5DB;
}

:root[data-theme="dark"] {
    --bg-main: #0B0F19; /* Deep modern navy/black */
    --bg-alt: #111827;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: #1F2937;
    
    /* Brand Colors (slightly brighter for dark mode) */
    --brand-primary: #60A5FA;
    --brand-secondary: #A78BFA;
    --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    
    /* UI Elements */
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* Input */
    --input-bg: #1F2937;
    --input-border: #374151;
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Typography & Utils --- */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.15em;
    margin-right: -0.15em;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.bg-alt { background-color: var(--bg-alt); }
.w-100 { width: 100%; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-subtitle.text-left {
    margin-left: 0;
    margin-right: auto;
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

/* --- Background Shapes --- */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
}

.shape-2 {
    top: 40%;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.2);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.05); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px; /* Pill shape */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-main);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

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

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

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo svg {
    transition: filter 0.3s ease;
}

.logo-path-bracket {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: 16px 16px;
}

.logo-path-scale {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: 16px 16px;
}

/* Premium 3D Tilt Hover */
.logo:hover {
    transform: translateY(-2px) rotateY(-12deg) rotateX(6deg);
}

.logo:hover svg {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6))
            drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.logo:hover .logo-path-bracket {
    transform: scale(0.90);
}

.logo:hover .logo-path-scale {
    transform: translate(3px, -3px) scale(1.08);
}

.logo-text {
    position: relative;
    transition: letter-spacing 0.3s ease;
}

.logo:hover .logo-text {
    letter-spacing: -0.03em;
}

/* Static gradient text for the logo (perfectly matched with SVG colors) */
.logo .text-gradient {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.15em;
    margin-right: -0.15em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 0.95rem;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-main);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 20px 24px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
}

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

.mobile-link {
    padding: 12px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Acordă mai mult spațiu textului */
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 6.5vw, 4.5rem); /* Scalare și mai fluidă pentru ecrane mici */
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.serif-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: normal;
}

.title-block {
    display: block;
    margin-top: 10px;
}

.hero-title .title-block:first-child {
    margin-top: 0;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px; /* Mai mult spațiu pentru textul descriptiv */
}

.hero-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}

/* Glass Card / Mockup */
.glass-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mockup-card {
    position: relative;
}

.mockup-header {
    background: rgba(59, 130, 246, 0.12);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.mockup-body {
    padding: 24px;
}

.code-line {
    height: 12px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.code-line.w-70 { width: 70%; }
.code-line.w-40 { width: 40%; }
.code-line.w-90 { width: 90%; }
.code-line.w-60 { width: 60%; }
.code-line.indent { margin-left: 20px; }

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    margin-top: 32px;
    border-bottom: 1px solid var(--border-color);
}

.bar {
    flex: 1;
    background: var(--gradient-brand);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}
.bar.h-30 { height: 30%; }
.bar.h-60 { height: 60%; }
.bar.h-40 { height: 40%; }
.bar.h-80 { height: 80%; }
.bar.h-50 { height: 50%; }

/* --- About Us Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.about-max-content {
    max-width: 800px;
}

.about-text-block {
    text-align: left;
    margin-top: 24px;
}

.about-text-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 90px;
}

.pillar-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    box-shadow: var(--shadow-sm);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pillar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pillar-meta {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
    flex-shrink: 0;
}

/* --- Google Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.review-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    width: 100%;
}

.reviewer-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.5rem;
}

.reviewer-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-main);
}

.reviewer-info .review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reviewer-link {
    display: block;
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 500;
    margin-bottom: 1px;
    transition: opacity 0.2s;
}

.reviewer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.review-rating {
    display: flex;
    gap: 4px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.verified-tag {
    font-size: 0.8rem;
    color: #10B981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.google-rating-badge {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.google-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Tech Stack --- */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.tech-item:hover {
    color: var(--text-main);
}

.tech-item i {
    font-size: 2.5rem;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.method-link {
    font-weight: 600;
    font-size: 1.1rem;
}

.method-link:hover {
    color: var(--brand-primary);
}

.clean-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.tag-checkbox {
    cursor: pointer;
}

.tag-checkbox input {
    display: none !important;
}

.tag-checkbox span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tag-checkbox input:checked + span {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.tag-checkbox:hover span {
    border-color: var(--brand-primary);
    color: var(--text-main);
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Footer --- */
.footer {
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s, background-color 0.3s;
    animation: wa-attention 6s ease-in-out infinite;
}

/* Pulsing ripple wave behind the button */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    animation: wa-pulse 2.5s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    pointer-events: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px) !important;
    background-color: #20ba5a;
    animation-play-state: paused;
    box-shadow: 0 8px 20px rgba(32, 186, 90, 0.5);
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes wa-attention {
    0%, 90%, 100% {
        transform: translateY(0) scale(1);
    }
    92% {
        transform: translateY(-5px) scale(1.06) rotate(-6deg);
    }
    94% {
        transform: translateY(-5px) scale(1.06) rotate(6deg);
    }
    96% {
        transform: translateY(-2px) scale(1.06) rotate(-3deg);
    }
    98% {
        transform: translateY(-2px) scale(1.06) rotate(3deg);
    }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay {
    transition-delay: 0.2s;
}

/* --- UI Polish (Design "Mai Misto") --- */
.grid-bg {
    background-image: 
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    /* Make the grid very subtle */
    background-color: var(--bg-main);
    background-blend-mode: overlay;
    position: relative;
}

/* Subtle mask to fade grid at the edges */
.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 100%);
    pointer-events: none;
    z-index: -1;
}

.hover-glow {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-glow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15), 
                0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.glow-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.hero-glow {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.15),
                0 0 100px rgba(139, 92, 246, 0.1) inset;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.text-gradient-icon {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-badge {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Make mockup code lines glow slightly */
.glow-line { background: rgba(59, 130, 246, 0.6); box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
.glow-line-alt { background: rgba(139, 92, 246, 0.6); box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
.bar-glow { background: var(--brand-secondary); box-shadow: 0 0 15px var(--brand-secondary); opacity: 1 !important; }
.mockup-text { font-family: monospace; font-size: 0.75rem; color: var(--text-muted); opacity: 0.7; }
.ml-auto { margin-left: auto; }

/* --- Flow Diagram Mockup (Hero Right) --- */
.diagram-window {
    background: var(--bg-alt) !important;
    border: 1px solid var(--border-color);
}

.diagram-body {
    padding: 30px 20px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-map {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
    z-index: 2;
}

.triggers-col, .outputs-col {
    width: 110px;
}

.center-col {
    justify-content: center;
    width: 100px;
}

.map-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.map-node i {
    font-size: 1.1rem;
}

.map-node.node-trigger:hover, .map-node.node-output:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

/* Center core node styling */
.map-node.node-core {
    position: relative;
    width: 100%;
    padding: 20px 10px;
    border-color: var(--brand-primary);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
    background: var(--bg-alt);
    border-radius: 16px;
}

.map-node.node-core i {
    font-size: 1.8rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

.map-node.node-core span {
    font-size: 0.8rem;
    z-index: 2;
}

.core-glow-effect {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--gradient-brand);
    opacity: 0.05;
    z-index: 1;
    animation: corePulse 2s infinite alternate;
}

@keyframes corePulse {
    0% { transform: scale(0.98); opacity: 0.03; }
    100% { transform: scale(1.02); opacity: 0.08; }
}

/* SVG Connector layout */
.connector-svg-unified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connector-svg-unified path.bg-line {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1.5;
    opacity: 0.4;
}

.connector-svg-unified path.flow-line {
    fill: none;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-dasharray: 8 40;
    animation: flowData 2.5s linear infinite;
}

.connector-svg-unified path.flow-line:nth-of-type(2) {
    stroke: var(--brand-primary);
}

.connector-svg-unified path.flow-line:nth-of-type(4) {
    stroke: var(--brand-secondary);
}

.connector-svg-unified path.flow-line:nth-of-type(6) {
    stroke: var(--brand-primary);
}

@keyframes flowData {
    from {
        stroke-dashoffset: 48;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Concept Section Styles --- */
.concept-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.concept-step {
    padding: 40px 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.concept-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.8;
}

.concept-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.concept-step p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container,
    .hero-container,
    .nav-container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .desktop-only { display: none; }
    .mobile-menu-btn { display: block; }
    
    .mobile-menu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .hero-container,
    .about-grid,
    .contact-grid,
    .footer-top,
    .services-grid,
    .concept-steps {
        grid-template-columns: 1fr;
    }
    
    .about-pillars {
        margin-top: 0;
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .section-header-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .section-header-split .text-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container,
    .hero-container,
    .nav-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .hero-title { font-size: 2.8rem; }
    .reviews-grid,
    .portfolio-grid { grid-template-columns: 1fr; }
    .clean-form { padding: 24px; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    .hero-buttons .btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    .hero-buttons .btn-large {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container,
    .hero-container,
    .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .diagram-body {
        height: 280px;
        padding: 10px;
    }
    .integration-map {
        transform: scale(0.85);
        transform-origin: center;
    }
    .review-card {
        padding: 20px;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    .mobile-menu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }
    .faq-answer-inner {
        padding: 0 20px 20px 20px;
        font-size: 0.9rem;
    }
    .service-card,
    .concept-step {
        padding: 24px 20px;
    }
    .pillar-card {
        padding: 16px;
    }
    .clean-form {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .integration-map {
        transform: scale(0.72);
    }
}

/* =========================================
   NEW PREMIUM FEATURES (SCROLL & FAQ & UX)
   ========================================= */

/* --- Navbar Scroll State & Scrollspy Active --- */
.navbar.navbar-scrolled {
    padding: 0;
    box-shadow: var(--shadow-md);
}

.navbar.navbar-scrolled .nav-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-link.active {
    color: var(--text-main);
}

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

/* --- FAQ Section & Accordion --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--brand-primary);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--brand-primary);
    font-size: 0.95rem;
}

/* Accordion Open State for Icon */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Form Validation Feedbacks --- */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* --- Mobile Menu Active Link Highlight --- */
.mobile-link.active {
    color: var(--brand-primary) !important;
    font-weight: 700;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary));
    border-radius: 9999px;
    border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-secondary);
}

