/* ============================================
   Quebec SEO - Main Stylesheet
   Design: Modern, clean with light backgrounds
   Colors: #1055C9, #41A67E, #05339C, #E5C95F
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1055C9;
    --primary-dark: #05339C;
    --secondary: #41A67E;
    --accent: #E5C95F;
    --text: #1a1a2e;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

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

h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.section-desc {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
main, section, footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-white:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn svg {
    width: 1.25em;
    height: 1.25em;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    width: 100%;
    max-width: 100vw;
}

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

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

.logo:hover {
    color: var(--text);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-sans);
}

.logo-highlight {
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary);
    background: var(--bg-light);
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius);
    min-width: 240px;
    z-index: 1000;
    padding: 0.5rem;
    padding-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

/* Bridge to prevent gap issues */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--primary);
    color: var(--white);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-switcher a {
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--primary);
    background: var(--bg-light);
}

.lang-switcher .divider {
    color: var(--border);
}

.btn-header {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

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

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 50%, var(--bg-alt) 100%);
    overflow: hidden;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(16, 85, 201, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(65, 166, 126, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--secondary);
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
    opacity: 0.5;
    z-index: -1;
}

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

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

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Hero Animation Elements */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    width: 400px;
    height: 350px;
    pointer-events: none;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-card:nth-child(1) {
    top: 0;
    left: 50px;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 120px;
    left: 180px;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    top: 240px;
    left: 20px;
    animation-delay: 2s;
}

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

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 6rem 0;
    background: var(--white);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header .section-desc {
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: var(--primary);
}

.service-card:hover .service-icon svg {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   About Preview Section
   ============================================ */
.about-preview {
    padding: 6rem 0;
    background: var(--bg-light);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-badge .label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 500;
}

/* ============================================
   Process Section
   ============================================ */
.process-section {
    padding: 6rem 0;
    background: var(--white);
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header .section-desc {
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header .section-desc {
    margin: 0 auto;
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    fill: var(--accent);
}

.testimonial-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--text);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-contact address {
    font-style: normal;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact .hours {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ============================================
   Page Specific Styles
   ============================================ */

/* Page Hero */
.page-hero {
    padding: 9rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

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

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

/* Service Page Styles */
.service-features {
    padding: 5rem 0;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-card svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Included List */
.included-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.included-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.included-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.included-item svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Related Services */
.related-services {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

/* Contact Form */
.contact-section {
    padding: 5rem 0;
}

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

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 85, 201, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-info-item a {
    color: var(--text-light);
}

.contact-info-item a:hover {
    color: var(--primary);
}

/* Team Grid */
.team-section {
    padding: 5rem 0;
}

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

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

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg-light);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.team-member .role {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* Stats Grid */
.stats-section {
    padding: 5rem 0;
    background: var(--primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box .label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.value-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.value-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.value-card p {
    color: var(--text-light);
    margin: 0;
}

/* Case Study */
.case-study {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
}

.case-study h3 {
    margin-bottom: 1rem;
}

.case-results {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
}

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

.result-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.result-item .label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 404 Page */
.error-page {
    padding: 10rem 0;
    text-align: center;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page > .container > p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.popular-pages h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.popular-pages ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animations */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   What We Do Section - Keyword Carousel
   ============================================ */
.what-we-do {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1628 0%, #162544 100%);
    overflow: hidden;
}

.what-we-do .section-header {
    margin-bottom: 3rem;
}

.what-we-do .section-title,
.what-we-do .section-desc {
    color: #fff;
}

.what-we-do .section-subtitle {
    color: var(--primary);
}

.keyword-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.keyword-carousel-row {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.keyword-carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: scroll-left 240s linear infinite;
}

.keyword-carousel-row[data-speed="240"] .keyword-carousel-track {
    animation-duration: 240s;
}

.keyword-carousel-row[data-speed="220"] .keyword-carousel-track {
    animation-duration: 220s;
}

.keyword-carousel-row[data-speed="280"] .keyword-carousel-track {
    animation-duration: 280s;
}

.keyword-carousel-row.reverse .keyword-carousel-track {
    animation-name: scroll-right;
}

.keyword-carousel-row:hover .keyword-carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(16, 85, 201, 0.3);
    border-radius: 9999px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.keyword-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(16, 85, 201, 0.4);
}

.keyword-tag:active {
    transform: scale(0.98);
}

/* ============================================
   Article Modal Pop-up
   ============================================ */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.article-modal.active {
    display: flex;
}

.article-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
    animation: modalFadeIn 0.3s ease;
}

.article-modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    z-index: 1;
    animation: modalSlideUp 0.3s ease;
}

.article-modal-content {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
}

.article-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.article-modal-close:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

.article-modal-title {
    padding: 2rem 3rem 1rem;
    font-size: 1.75rem;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-right: 4rem;
}

.article-modal-body {
    padding: 1.5rem 3rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    color: #475569;
    line-height: 1.8;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f5f9;
}

.article-modal-body h1,
.article-modal-body h2,
.article-modal-body h3,
.article-modal-body h4 {
    margin: 1.5rem 0 1rem;
    color: #0f172a;
}

.article-modal-body h1:first-child,
.article-modal-body h2:first-child,
.article-modal-body h3:first-child {
    margin-top: 0;
}

.article-modal-body p {
    margin-bottom: 1rem;
}

.article-modal-body ul,
.article-modal-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.article-modal-body li {
    margin-bottom: 0.5rem;
}

.article-modal-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}

.article-modal-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

/* Modal Scrollbar Styling */
.article-modal-body::-webkit-scrollbar {
    width: 8px;
}

.article-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.article-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.article-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Scroll indicator - fade effect at bottom */
.article-modal-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.article-modal-content.scrolled-bottom::after {
    opacity: 0;
}

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

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps::before {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header Mobile Menu */
    .site-header .container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .main-nav {
        position: static;
    }

    /* Mobile dropdown */
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 1.5rem;
        z-index: 9999;
        border-top: 1px solid var(--border);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        width: 100%;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        padding: 0.875rem 1rem;
        width: 100%;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links > li > a:hover {
        background: var(--bg-light);
    }

    /* Align Services dropdown arrow to the right */
    .has-dropdown > a .dropdown-arrow {
        margin-left: auto;
    }

    /* Mobile dropdown submenu */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 1;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0.3s, padding 0.3s;
        pointer-events: auto;
        background: transparent;
        min-width: auto;
    }

    .dropdown-menu::before {
        display: none;
    }

    .has-dropdown.active .dropdown-menu {
        visibility: visible;
        max-height: 500px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .has-dropdown:hover .dropdown-menu {
        visibility: hidden;
        max-height: 0;
    }

    .has-dropdown.active:hover .dropdown-menu {
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 0.625rem 1rem;
    }

    /* Hide original header-actions on mobile - JS clones it into nav-links */
    .site-header > .container > .main-nav > .header-actions {
        display: none !important;
    }

    /* Styles for cloned mobile actions inside nav-links */
    .nav-links .mobile-actions {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .nav-links .mobile-actions .lang-switcher {
        display: flex !important;
        justify-content: center;
    }

    .nav-links .mobile-actions .btn-header {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
    }


    /* Hero */
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Sections */
    .services-grid,
    .testimonials-grid,
    .process-steps,
    .features-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .included-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .case-results {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .error-page h1 {
        font-size: 5rem;
    }

    .popular-pages ul {
        flex-direction: column;
        gap: 1rem;
    }
}

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

    .hero {
        padding: 7rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .service-card,
    .testimonial-card,
    .feature-card,
    .contact-form {
        padding: 1.5rem;
    }

    /* Fix inline style grids on mobile */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Ensure content doesn't overflow */
    .content-section > .container > .content-grid > div {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Global responsive fixes */
@media (max-width: 768px) {
    /* Force single column for any inline grids */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(2"],
    div[style*="grid-template-columns: repeat(3"],
    div[style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }

    /* Prevent text and elements from causing overflow */
    h1, h2, h3, h4, h5, h6, p, span, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix any absolutely positioned elements */
    .hero-visual {
        display: none !important;
    }

    /* Ensure all images scale */
    img, svg, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* Fix the floating cards */
    .floating-card {
        display: none;
    }

    /* Service page specific fixes */
    .content-section .container > div[style*="max-width: 800px"],
    .content-section .container > div[style*="max-width:800px"] {
        max-width: 100% !important;
        padding: 0;
    }

    /* Fix case study results */
    .case-results {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem !important;
    }

    .case-results .result-item {
        min-width: 100px;
        flex: 1 1 100px;
    }

    /* Fix inline padding on mobile */
    div[style*="padding: 2rem"],
    div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }

    /* Fix content grid children */
    .content-grid > div {
        max-width: 100%;
    }

    /* Fix flex gaps that are too large */
    div[style*="gap: 3rem"],
    div[style*="gap: 4rem"] {
        gap: 1.5rem !important;
    }

    /* Fix inline flex items */
    div[style*="display: flex"][style*="gap: 1rem"] > div[style*="flex-shrink: 0"] {
        flex-shrink: 0 !important;
    }

    /* Ensure all cards and boxes fit */
    div[style*="border-radius: 16px"],
    div[style*="border-radius: 20px"] {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix stat items */
    div[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }

    /* Fix hero section padding */
    .page-hero {
        padding: 7rem 0 3rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

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

    /* Fix breadcrumbs overflow */
    .breadcrumbs ul {
        flex-wrap: wrap;
    }
}

/* Responsive styles for carousel and modal */
@media (max-width: 768px) {
    .what-we-do {
        padding: 3rem 0;
    }

    .keyword-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .article-modal-title {
        padding: 1.5rem 1.5rem 1rem;
        padding-right: 3.5rem;
        font-size: 1.375rem;
    }

    .article-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }

    .article-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .keyword-carousel-wrapper {
        gap: 0.75rem;
    }

    .keyword-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .article-modal-container {
        max-height: 95vh;
    }

    .article-modal-title {
        font-size: 1.25rem;
    }

    .article-modal-body {
        max-height: 70vh;
    }
}
