/* css/style.css */

/* Custom Properties Architecture */
:root {
    --bg-dark: #0d0f12;
    --bg-light: #ffffff;
    --bg-alt: #f7f9fc;
    --text-primary: #191c21;
    --text-muted: #535d6c;
    --text-light: #f1f3f5;
    --accent: #ff6b00;
    --accent-hover: #e05e00;
    --border-color: #e2e8f0;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1280px;
}

/* Document Level Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    font-size: 16px;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Utility Structs */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

/* Layout Blocks */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

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

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

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

/* Interactive Interface Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition-standard);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

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

.btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background-color: rgba(255, 107, 0, 0.05);
}

.btn-block {
    width: 100%;
}

/* Header Component Infrastructure */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(13, 15, 18, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-standard);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: var(--transition-standard);
}

/* Multi-Level Dropdown Navigation Architecture */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--bg-dark);
    padding: 100px 24px 40px 24px;
    transition: var(--transition-standard);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
}

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

.nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu .has-submenu.open > .submenu-trigger {
    color: var(--accent);
}

.chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Submenu Mobile Implementation */
.submenu-tier {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.has-submenu.open .submenu-tier {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
    margin-top: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.has-submenu.open .chevron {
    transform: rotate(-135deg);
}

.submenu-tier li a {
    font-size: 0.95rem;
    color: #a0aec0;
    padding: 6px 0;
}

/* Desktop Navigation Fixes (Corrects Overflows & Clipping Boundaries) */
@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        overflow-y: visible;
        display: flex;
        align-items: center;
    }
    
    .nav-menu > ul {
        flex-direction: row;
        align-items: center;
        gap: 28px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0;
        width: auto;
        display: inline-flex;
    }
    
    .has-submenu {
        position: relative;
    }
    
    /* Fixed Container Expansion to Support Text Content Layout Wrapping Safely */
    .submenu-tier {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(12px);
        width: 320px; /* Expanded dynamically to stop layout overflows */
        background: #13161c;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
        border-radius: 8px;
        padding: 12px;
        max-height: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        z-index: 1200;
        display: flex;
        flex-direction: column;
        gap: 4px !important;
    }
    
    .submenu-tier li {
        width: 100%;
    }
    
    .submenu-tier li a {
        padding: 10px 14px;
        color: #a0aec0;
        border-radius: 6px;
        display: block;
        width: 100%;
        white-space: normal; /* Permits structured word wrap handling */
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .submenu-tier li a:hover {
        background: rgba(255, 107, 0, 0.1);
        color: white;
    }
    
    /* Hover Interactions Trigger Logic Overlays */
    .has-submenu:hover .submenu-tier {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(4px);
    }
    
    .has-submenu:hover .chevron {
        transform: rotate(-135deg);
    }
    
    /* Buffer safe space gap to eliminate hover structural drops */
    .has-submenu::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 15px;
    }
}

/* Premium Dark Hero Component */
.hero {
    background-color: var(--bg-dark);
    color: white;
    padding: 180px 0 120px 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 24px;
}

.hero h1 {
    color: white;
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4rem; }
}

.hero p {
    color: #a0aec0;
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 480px) {
    .hero-actions { flex-direction: row; }
}

/* Trust Metrics Infrastructure */
.metrics {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    position: relative;
}

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

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.metric-label {
    color: #a0aec0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Core Solutions - Structural Alignment */
.card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-standard);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border-color: rgba(255, 107, 0, 0.3);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.card p {
    flex-grow: 1;
}

/* Open Source Grid Elements */
.platform-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

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

/* Split Section Layout Module */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 1024px) {
    .split-layout { grid-template-columns: repeat(2, 1fr); }
}

.feature-list {
    margin-top: 32px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.split-visual {
    background: var(--bg-dark);
    padding: 56px;
    border-radius: 12px;
    color: white;
}

.visual-box h3 {
    color: white;
    margin-bottom: 16px;
}

.visual-box p {
    color: #a0aec0;
}

/* Industries Display Grid */
.industry-item {
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition-standard);
}

.industry-item:hover {
    border-color: var(--accent);
    background-color: rgba(255, 107, 0, 0.02);
}

/* Why Choose Grid Alignment */
.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Results Component Structuring */
.result-box h3 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

/* Horizontal Testimonial Scroller */
.horizontal-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .testimonial-card { flex: 0 0 calc(50% - 12px); }
}

@media (min-width: 1024px) {
    .testimonial-card { flex: 0 0 calc(33.333% - 16px); }
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
}

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

/* Business Solutions Assistant Layout */
.assistant-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
    .assistant-wrapper { grid-template-columns: 300px 1fr; }
}

.assistant-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assistant-btn {
    text-align: left;
    padding: 16px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
}

.assistant-btn.active, .assistant-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.assistant-display {
    padding: 16px;
    display: flex;
    align-items: center;
}

.assistant-content-pane h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.assistant-content-pane p {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.recommended-tech {
    display: inline-block;
    font-size: 0.85rem;
    background: rgba(255, 107, 0, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
}

/* Form Infrastructure Architecture */
.form-group {
    margin-bottom: 24px;
}

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-stack);
    transition: var(--transition-standard);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-group.error input, .form-group.error textarea {
    border-color: #e53e3e;
}

.error-msg {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

.success-alert {
    margin-top: 20px;
    background: #c6f6d5;
    color: #22543d;
    padding: 16px;
    border-radius: 6px;
    font-weight: 500;
}

.contact-info-block {
    margin: 32px 0;
}

.contact-info-block p {
    margin-bottom: 12px;
}

.map-wrapper {
    margin-top: 32px;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    background: #e2e8f0;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

/* Footer Section Grid Definition */
.site-footer {
    background: var(--bg-dark);
    color: #a0aec0;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.site-footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    display: inline-block;
}

/* Floating Elements */
.whatsapp-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition-standard);
}

.whatsapp-floating:hover {
    transform: scale(1.08);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}