/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #716CCB;
    --primary-button-color: #4866C6;
    --primary-color-dark: #603FAA;
    --primary-color-transparent: rgba(113, 108, 203, 0.1);
    --primary-color-transparent2: rgba(113, 108, 203, 0.5);
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --danger-color-alt: #FF6565;
    --danger-color-transparent: rgba(239, 68, 68, 0.1);
    --success-color: #05C200;
    --success-color-dark: #04b000;
    --warning-color: #fbbf24;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-dark: #333;
    --link: #10b981;
    --link-hover: #45CB36;
    --bg-primary: #ffffff;
    --light: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #ffffff;
    --bg-dark: #0f172a;
    --black: #000;
    --bg-dark-transparent: rgba(15, 23, 42, 0.75);
    --bg-darker-transparent: rgba(15, 23, 42, 0.98);
    --bg-primary-transparent: rgba(255, 255, 255, 0.85);
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --bg-video-overlay: rgba(0, 0, 0, 0.2);
    --border-color: #e5e7eb;
    --border-color-light: #eee;
    --border-color-medium: #ddd;
    --border-dark: #374151;
    --border-dark-transparent: #00000035;
    --slate-100: #f1f3f5;
    --slate-200: #e2e8f0;
    --slate-300: #e0e0e0;
    --slate-500: #999;
    --shadow-color-sm: rgba(0, 0, 0, 0.05);
    --shadow-color-md: rgba(0, 0, 0, 0.1);
    --shadow-color-lg: rgba(0, 0, 0, 0.1);
    --shadow-color-xl: rgba(0, 0, 0, 0.1);
    --shadow-color-darker: rgba(0, 0, 0, 0.15);
    --shadow-color-success-light: rgba(5, 194, 0, 0.3);
    --shadow-color-success-dark: rgba(5, 194, 0, 0.4);
    --white-transparent-10: rgba(255, 255, 255, 0.1);
    --white-transparent-15: rgba(255, 255, 255, 0.15);
    --white-transparent-20: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 var(--shadow-color-sm);
    --shadow-md: 0 4px 6px -1px var(--shadow-color-md);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color-lg);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color-xl);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 20%, var(--primary-color-dark) 80%);
    --gradient-buttons: linear-gradient(135deg, var(--primary-button-color) 0%, var(--primary-color-dark) 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;

    /* Font Families */
    --font-primary: 'Asap', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Athiti', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-form: 'Asap', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%; /* Ensure html and body take full width */
    min-width: 100%; /* Ensure html and body take full width */
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: transparent;
    overflow-x: hidden; /* Prevent horizontal scrolling issues on mobile */
}

.link {
    color: var(--link);
    text-decoration:none;
    border-bottom: 1px var(--link) dotted; 
}
.link:hover {
    color: var(--link-hover);
    text-decoration:none;
    border-bottom: 1px var(--link-hover) dotted; 
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid;
    border-color: var(--primary-button-color);
}

.btn-primary {
    background: var(--gradient-buttons);
    color: var(--light);
    box-shadow: var(--shadow-md);
    border: 2px solid;
    border-color: var(--primary-button-color);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-full {
    width: 100%;
}

/* Background Video Styles */
.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--black);
}

#myVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.background-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-video-overlay);
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-primary-transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 101; /* Simplified z-index (higher than language selector) */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.navbar.is-scrolled {
    background: var(--bg-dark-transparent) !important;
}

.navbar.is-scrolled .nav-logo {
    color: var(--light) !important;
}

.navbar.is-scrolled .nav-link {
    color: var(--light) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2.3rem;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.65rem;
    margin-top: 5px;
}

.logo-footer-text {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.cta-button {
    background: var(--gradient-buttons);
    color: var(--light);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid;
    border-color: var(--primary-button-color);
}

.nav-home-link {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-home-link.visible {
    opacity: 1;
    visibility: visible;
}

.nav-actions {
    display: flex; /* Always visible */
    align-items: center;
    gap: 1rem; /* Space between language selector and nav toggle */
}

.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}


/* Hero Section */
.hero {
    padding: 240px 0 180px;
    background: var(--bg-dark-transparent) !important;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--light);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .hero-buttons .btn-secondary,
.contact .btn-secondary
{
    color: var(--light);
    border-color: var(--light);
    background: transparent;
}

.hero .hero-buttons .btn-secondary:hover,
.contact .btn-secondary:hover
{
    background: var(--light);
    color: var(--primary-color);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Ensure a minimum height */
}

.floating-card {
    position: absolute;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: transparent !important;
    box-shadow: none !important;
    transition: transform 3s ease-in-out, opacity 3s ease-in-out;
}

.floating-card i {
    font-size: 2rem;
    color: var(--light);
}

.floating-card span {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--light);
    font-family: var(--font-secondary);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 1100px;
    margin: 0 auto;
    font-family: var(--font-secondary);
}

/* Problem Statement Section */
.problem-section {
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--border-dark-transparent);
    padding: 80px 0;
    background: var(--bg-primary-transparent);
    backdrop-filter: blur(10px);
}

.problem-content {
    text-align: center;
    margin-bottom: 4rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.problem-item {
    background: var(--bg-primary);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--danger-color);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-item h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.problem-item p {
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    padding-bottom: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

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

.service-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--light);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.feature span {
    font-family: var(--font-secondary);
}

/* Clickable Service Cards */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-5px) scale(1.02);
}


.clickable-card:hover::after {
    content: "";
    display: none;
}

/* Strategic AI Integration Section */
.strategic {
    padding: 0 60px 60px 60px ;
    background: var(--bg-tertiary);
}

.strategic-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.strategic-content .strategic-left {
    text-align: center;
    padding: 10px 80px 20px 80px ;
}

.strategic-content .strategic-right {
    text-align: left;
}

.strategic-description {
    margin-right: 5rem;
    margin-top: 1.3rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.strategic-icon {
    font-size: 2em;
    margin-right: 15px;
    line-height: 0.8;
    margin-top: 3px;
    color: var(--secondary-color);
}


.strategic .btn-primary {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.strategic .button-line-1 {
    font-size: 0.9rem;
    font-weight: 200;
    margin-bottom: 10px;
}

.strategic .button-line-2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}
.strategic .button-line-2 i {
    margin-right: 5px;
}

/* Benefits Section */
.benefits {
    border-top: 1px solid var(--border-dark-transparent);
    border-bottom: 1px solid var(--border-dark-transparent);
    padding: 80px 0;
    background: var(--bg-primary-transparent);
    backdrop-filter: blur(10px);
}

.benefits-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.benefits .section-subtitle {
    margin: 0;
    max-width: none;
}

.benefits-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.stat-item {
    text-align: center;
    padding: 1.25rem 1.4rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-secondary);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    line-height: 1.3;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-dark-transparent);
    color: var(--light);
}

.contact .section-title,
.contact .contact-description {
    color: var(--light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-method a {
    color: var(--light);
    text-decoration: none;
    border-bottom: none;
}

.contact-method a:hover {
    color: var(--link-hover);
    text-decoration:none;
    border-bottom: 1px var(--link-hover) dotted; 
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form input,
.form select,
.form textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-form);
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form input::placeholder,
.form select::placeholder,
.form textarea::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-darker-transparent);
    color: var(--light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-logo i {
    color: var(--light);
    font-size: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    width: 95%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    padding-right: 4rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

#modalBenefits {
    padding-right: 10rem;
}

.modal-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon i {
    font-size: 3rem;
    color: var(--light);
}

.modal-text {
    flex: 1;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.modal-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-secondary);
}

.modal-section li:last-child {
    border-bottom: none;
}

.modal-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-cta {
    flex: 1;
    max-width: 300px;
}

.modal-close-btn {
    flex: 1;
    max-width: 250px;
}

/* Blueprint Modal Styles */
.blueprint-modal-content {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
}

.blueprint-modal-body {
    padding: 0;
    height: calc(100% - 220px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blueprint-modal-body iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
    overflow: auto;
}

.blueprint-modal-cta {
    flex: 1;
    max-width: 300px;
}

.blueprint-modal-close-btn {
    flex: 1;
    max-width: 250px;
}

/* Animations */
@keyframes faq-open-pulse {
    0% { box-shadow: 0 0 0 0 rgba(113, 108, 203, 0.5); }
    100% { box-shadow: 0 0 0 10px rgba(113, 108, 203, 0); }
}

.faq-item.is-opening {
    animation: faq-open-pulse 0.6s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Respect users who prefer reduced motion */

/* Responsive Design */



/* Contact Success Message */
.contact-success {
    background: var(--gradient-primary);
    padding: 2rem;
    border: 2px solid;
    border-color: var(--light);
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 1rem;
}

.contact-success .success-content p {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.form-hidden {
    display: none !important;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white-transparent-10);
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-transparent-20);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.hero-badge.clickable-badge {
    cursor: pointer;
    text-decoration: none;
}

.hero-badge.clickable-badge:hover {
    background: var(--white-transparent-15);
    border-color: var(--white-transparent-20);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color-darker);
}

.hero-badge i {
    color: var(--warning-color);
}

.hero-badge {
    position: relative; /* Needed for tooltip positioning */
}

.hero-badge-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px); 
  background: var(--bg-dark-transparent) !important;
  color: var(--light);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: normal;
  width: 600px; /* Changed from width to max-width */
  text-align: center; /* Added text-align */
  /* white-space: nowrap; Removed */
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.hero-badge-tooltip.active {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(20px);
  pointer-events: auto;
}
.hero-badge-tooltip::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent var(--bg-dark-transparent) transparent;
  pointer-events: none;
}


/* Language Selector Improvements */
.language-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    margin-left: 0.25rem;
}

.language-selector[aria-expanded="true"] .language-arrow {
    transform: rotate(180deg);
}

/* Language toggle button - transparent so it inherits navbar background */
.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 6px 10px;
    border-radius: var(--border-radius);
    background: transparent;
    backdrop-filter: none;
    border: none;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.2s ease;
    height: 42px;
    line-height: 1;
}

/* Make the flag inside the language button bigger */
.language-toggle .flag-icon {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
}

/* Ensure chevron stays aligned */
.language-toggle .language-arrow {
    margin-left: 0.25rem;
}

/* Mirror navbar scrolled state for text/icons only (no background) */
.navbar.is-scrolled .language-toggle {
    color: var(--light) !important;
}

/* Keep chevron and flag readable on scrolled navbar */
.navbar.is-scrolled .language-toggle .language-arrow,
.navbar.is-scrolled .language-toggle .flag-icon {
    color: var(--light) !important;
}

/* Subtle hover effect (no background) */
.language-toggle:hover {
    transform: translateY(-1px);
}

/* Form Improvements */

.tooltip-error {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--danger-color);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    z-index: 10;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}

.tooltip-error.show {
    opacity: 1;
    visibility: visible;
}

.tooltip-error::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--danger-color) transparent;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px var(--danger-color-transparent);
}

.form-success {
    background: var(--secondary-color);
    color: var(--light);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}



.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Video Fallback */
.video-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* Responsive Newsletter */

/* Social Media Panel Styles */
.toolbar-menu-panel {
    position: fixed;
    top: 70px; /* Height of the navbar */
    width: 280px;
    height: 0; /* Initially hidden */
    overflow: hidden;
    background: var(--bg-primary-transparent); /* Matches navbar background */
    backdrop-filter: blur(10px);
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 99; /* Below navbar, above content */
    transition: height 0.3s ease-out, background 0.3s ease;
    border: 1px solid var(--border-color);
    border-top: none;
}


.toolbar-menu-panel.active {
    height: 380px; /* Full height when active */
}

/* Language panel is smaller than social media panel, set custom styles */
#language-panel {
    width: 220px;
}

#language-panel.active,
.language-panel.active,
.toolbar-menu-panel#language-panel.active {
    height: 165px;
}

/* Adjust background when navbar is scrolled */
.toolbar-menu-panel.is-scrolled-panel {
    background: var(--bg-dark-transparent) !important;
    border-color: var(--border-dark);
}

.toolbar-menu-content {
    padding: 1rem;
    color: var(--text-primary);
}

.toolbar-menu-panel.is-scrolled-panel .toolbar-menu-content {
    color: var(--light);
}

.toolbar-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toolbar-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.toolbar-menu-panel.is-scrolled-panel .toolbar-menu-link {
    color: var(--light);
}

.toolbar-menu-link:hover {
    background-color: var(--primary-color-transparent);
    color: var(--primary-color);
}

.toolbar-menu-panel.is-scrolled-panel .toolbar-menu-link:hover {
    color: var(--light);
}

.toolbar-menu-link i,
.toolbar-menu-link .toolbar-menu-icon { /* Added .toolbar-menu-icon */
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 25px; /* Fixed width for alignment */
    text-align: center;
}

.toolbar-menu-link .flag-icon.toolbar-menu-icon {
    font-size: 1.6rem; /* Increased size for flag icons */
}

.navbar.is-scrolled + .toolbar-menu-panel .toolbar-menu-link i,
.navbar.is-scrolled + .toolbar-menu-panel .toolbar-menu-link .toolbar-menu-icon { /* Added .toolbar-menu-icon */
    color: var(--light);
}

.toolbar-menu-link div {
    display: flex;
    flex-direction: column;
}

.toolbar-menu-link span {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
}

.toolbar-menu-link p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.2;
}

.toolbar-menu-panel.is-scrolled-panel .toolbar-menu-link p {
    color: var(--text-light);
}

/* Service CTAs inside cards (new styling for potential .service-cta markup) */
.service-card .service-cta {
    position: absolute; 
    display: flex;
    gap: 0.4rem;
    bottom: 10px;
    right: 20px;
}
.service-card .service-cta .cta-icon {
    font-family: "Font Awesome 6 Free", sans-serif;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-top: 2px;
}
.service-card .service-cta .cta-text {
    font-family: var(--text-primary);
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.7rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--bg-primary-transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-dark-transparent);
}

.faq-grid {
    column-count: 3;
    column-gap: 1rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-dark-transparent);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--primary-color-transparent2);
}

.faq-question {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    cursor: pointer;
    position: relative;
    display: block;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Safari */
}

.faq-question::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f078'; /* chevron-down */
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    position: absolute;
    top: 10px;
    right: 1rem;
}

.faq-item[open] > .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1rem 1rem;
    line-height: 1.6;
    font-size: 0.9rem; 
    color: var(--text-secondary);
    margin: 0;
}

.faq-question:hover {
    background-color: var(--slate-100);
}

/* Media Queries and Responsive Design */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .floating-card {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem; /* Match container padding */
    }

    .container {
        padding: 0 1rem;
    }
    .services,
    .benefits,
    .about,
    .contact {
        text-align: center; /* Center align text */
        justify-content: center; /* Center align content for flex container */
        padding: 60px 0;
    }
    
    .about-cta {
        text-align: center; /* Center align text */
        justify-content: center; /* Center align content for flex container */
        margin-top: 2rem;
        width: 100%;
    }
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .problem-item {
        padding: 1.25rem 1rem;
        min-height: 180px;
    }

    h1 { font-size: 2rem; } /* Further reduce h1 for very small screens */
    h2 { font-size: 1.75rem; } /* Further reduce h2 for very small screens */

    .problem-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .problem-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .faq-grid {
        column-count: 1;
    }

    .hero {
        padding: 0 0 60px;
    }
    .hero-visual {
        display: none;
    }
    
    .hero-description {
        font-size: 1rem; /* Adjust description font size for smaller screens */
    }
    .hero-content {
        padding: 140px 0 0 0;
        align-items: center;
        text-align: center;
    }
    .hero-buttons {
        padding: 0 1rem; /* Add horizontal padding to hero buttons */
        align-items: center;
        text-align: center;
        width: 100%;
        display: grid;
    }
    .hero-badge {
        margin-left: 1rem; /* Adjust margin for hero badge */
        margin-right: 1rem;
    }

    .strategic {
        padding: 0 1.5rem 3rem 1.5rem; /* Adjusted padding for mobile */
    }

    .strategic-content {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .strategic-content .strategic-left {
        padding: 10px 1.5rem 20px 1.5rem; /* Adjusted padding for mobile */
    }

    .strategic-description {
        margin-right: 0; /* Removed fixed margin */
        text-align: center; /* Center align text */
        justify-content: center; /* Center align content for flex container */
    }

    .strategic-icon {
        margin-right: 10px; /* Adjusted margin */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark-transparent) !important;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        color: #fff;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex; /* Show on mobile */
    }

    .nav-link {
        text-decoration: none;
        text-transform: uppercase;
        color: var(--light);
        font-weight: 700;
        transition: color 0.3s ease;
        position: relative;
        font-size: 1.2rem;
    }

    .nav-link:hover {
        color: var(--lightr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-stats,
    .feature-grid,
    .footer-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .floating-card {
        position: static;
        margin: 1rem;
    }

    .hero {
        padding: 0 0 60px;
    }
    .hero-visual {
        display: none;
    }

    .floating-card {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    #modalBenefits {
        padding-right: 1.5rem; /* Adjusted padding for mobile */
    }

    .modal-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .modal-icon i {
        font-size: 2.5rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-cta,
    .modal-close-btn {
        max-width: none;
    }

    .blueprint-modal-content {
        width: 95%;
        height: 95vh;
        max-height: 95vh;
    }
    
    .blueprint-modal-body {
        height: calc(100% - 160px);
    }
    
    .blueprint-modal-cta,
    .blueprint-modal-close-btn {
        max-width: none;
    }

    .hero-badge-tooltip {
        max-width: calc(100% - 0.3rem); /* Adjust max-width for smaller screens */
        padding: 0.5rem 1rem; /* Adjust padding */
    }

    .modal-icon {
        display: none;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-btn {
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .toolbar-menu-panel {
        left: 50%;
        transform: translateX(-50%);
    }
    #language-panel {
        left: auto;
        right: 50px;
        transform: translateX(0);
    }
}


@media (max-width: 1024px) {
    .hero-container,
    .benefits-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding: 0 0 60px;
    }
    .hero-visual {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        transform: none;
    }

    .service-icon {
        display: none;
    }

    .strategic-left {
        display: none;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .benefits-stats,
    .feature-grid,
    .footer-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .feature-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .faq-grid {
        column-count: 1;
    }

    .contact-methods {
        display: none;
    }

    .footer-logo {
        display: none;
    }
    .footer-section {
        margin-bottom: 1rem;
    }
    .footer-content {
        align-items: center;
        text-align: center;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

/* Choices.js overrides */
.choices {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: var(--font-form);
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.choices.is-open { /* Remove the border when choices are open. Looks visually better. */
    border: 0px none;
}

.choices::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f078'; /* chevron-down */
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    position: absolute;
    top: 10px;
    right: 1rem;
}

.choices__input {}

.choices__item--selectable {
    background: var(--gradient-buttons);
    color: var(--light);
}

.choices__item.choices__item--choice.choices__item--selectable {
    background: var(--bg-primary);
}

.choices__button {
    right: 5px;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    color: var(--text-primary); /* Ensure text is readable against light background */
}

.services-form-icon { /* Icon in the dropdown list */
    color: var(--primary-color);
    padding-right:5px;
}

.choices__list--multiple .services-form-icon { /* Icon in the selected items list */
    color: var(--light);
    padding-right:5px;
}

.choices__heading { /* Choices.js group heading colors */
    color: var(--light)!important;
    background: var(--gradient-primary);
    font-size: 16px!important;
}
