/* Calenzy Digital Agency - Custom Styles */

:root {
    --primary-color: #1D293F;
    --primary-light: #3d5a85;
    --primary-lighter: #5c7bb8;
    --primary-lightest: #7a9cd6;
    --primary-dark: #152135;
    --primary-accent: #4a6fa5;
    --bg-dark: #0d1117;
    --bg-dark-alt: #161b22;
    --bg-glass: rgba(22, 27, 34, 0.8);
    --bg-glass-light: rgba(61, 90, 133, 0.1);
    --text-light: #f0f6fc;
    --text-body: #c9d1d9;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --border-glass: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-light) 100%);
    --gradient-primary-light: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    --gradient-modern: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-lighter) 50%, #8fa4d3 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --shadow-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-modern: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(122, 156, 214, 0.1);
    --glow-primary: 0 0 20px rgba(122, 156, 214, 0.3);
    --glow-intense: 0 0 40px rgba(122, 156, 214, 0.4), 0 0 80px rgba(122, 156, 214, 0.2);
    --blur-bg: blur(20px);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Bootstrap Overrides */
.btn-primary {
    background: var(--gradient-modern);
    border: none;
    color: white !important;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(122, 156, 214, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    text-decoration: none !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-primary-light);
    color: white !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 15px rgba(122, 156, 214, 0.25);
    text-decoration: none !important;
}

.btn-primary:active {
    color: white !important;
    transform: translateY(-2px) scale(0.98);
    transition: var(--transition-bounce);
    text-decoration: none !important;
}

.btn-primary:focus {
    background: var(--gradient-modern);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(122, 156, 214, 0.15);
    text-decoration: none !important;
}

.btn-outline-primary {
    color: var(--primary-lighter) !important;
    border: 2px solid var(--border-glass);
    background: var(--bg-glass);
    backdrop-filter: var(--blur-bg);
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    text-decoration: none !important;
}

.btn-outline-primary:hover {
    background: var(--gradient-modern);
    border-color: transparent;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(122, 156, 214, 0.2);
    text-decoration: none !important;
}

.btn-outline-primary:focus {
    color: var(--primary-lighter) !important;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px rgba(122, 156, 214, 0.15);
    text-decoration: none !important;
}

.btn-outline-primary:active {
    background: var(--gradient-modern);
    color: white !important;
    transform: translateY(-1px) scale(0.98);
    text-decoration: none !important;
}

.btn-outline-light {
    border: 2px solid var(--border-glass);
    background: var(--bg-glass);
    backdrop-filter: var(--blur-bg);
    border-radius: 12px;
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-outline-light:hover {
    background: var(--gradient-modern);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(122, 156, 214, 0.15);
}

.text-primary {
    color: var(--primary-lighter) !important;
}

/* Quote Button - Less Shadow */
.quote-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(122, 156, 214, 0.15) !important;
}

.quote-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(122, 156, 214, 0.2) !important;
}

/* Language Dropdown */
.nav-item.dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    color: var(--text-light) !important;
    text-decoration: none !important;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-accent);
    color: var(--primary-lighter) !important;
    text-decoration: none !important;
}

.language-toggle::after {
    content: none !important;
}

.language-flag {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.language-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.language-menu {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0.25rem;
    margin-top: 0.5rem;
    min-width: 180px;
    right: 0;
    left: auto;
    position: absolute !important;
    z-index: 1050;
}

@media (max-width: 768px) {
    .language-menu {
        min-width: 150px;
        margin-top: 0.25rem;
        padding: 0.5rem 0.25rem;
        position: absolute !important;
        right: 0;
        left: auto;
    }
}

@media (max-width: 576px) {
    .language-menu {
        min-width: 120px;
        border-radius: 8px;
        padding: 0.25rem 0.15rem;
        position: absolute !important;
        right: 50%;
        left: auto;
        transform: translateX(50%);
        margin-top: 0.5rem;
    }
    
    .language-option {
        padding: 0.5rem 0.75rem !important;
        margin: 0 !important;
        font-size: 0.8rem !important;
    }
}

.language-option {
    color: var(--text-light);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
}

.language-option:hover {
    background: var(--bg-dark-alt);
    color: var(--primary-lighter);
    text-decoration: none !important;
}

.language-option.active {
    background: var(--primary-accent);
    color: var(--text-light);
    text-decoration: none !important;
}

.language-option.active:hover {
    background: var(--primary-lighter);
    text-decoration: none !important;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Comprehensive Text Color Fixes */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light) !important;
}

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

p.text-muted, 
.text-muted {
    color: var(--text-muted) !important;
}

/* Override Bootstrap defaults that might conflict with dark theme */
.text-dark {
    color: var(--text-light) !important;
}

.text-secondary {
    color: var(--text-muted) !important;
}

/* Ensure specific elements are readable */
span, div, li {
    color: inherit;
}

/* Fix any remaining readability issues */
.pricing-cta h6,
.audit-content h3,
.audit-action h4,
.faq-contact h4,
.process-step h4,
.pricing-header h3,
.pricing-info h3,
.pricing-approach h5 {
    color: var(--text-light) !important;
}

/* Ensure small text is readable */
small {
    color: var(--text-muted) !important;
}

/* Fix demo notice and other small text elements */
.demo-notice small,
.audit-note small {
    color: var(--text-muted) !important;
}

/* Ensure all text in dark sections is readable */
.bg-dark-alt h1,
.bg-dark-alt h2,
.bg-dark-alt h3,
.bg-dark-alt h4,
.bg-dark-alt h5,
.bg-dark-alt h6,
.bg-dark-alt span,
.bg-dark-alt div,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark span,
.bg-dark div {
    color: var(--text-light);
}

/* Slightly softer paragraph color on dark backgrounds */
.bg-dark-alt p,
.bg-dark p {
    color: var(--text-body);
}

/* Global link colors use primary palette instead of default blue */
a {
    color: var(--primary-lighter);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--primary-lightest);
    text-decoration: underline;
}

a:visited {
    color: var(--primary-lighter);
}

/* Privacy policy scoped text softening */
.policy-content p,
.policy-content li,
.policy-content address,
.policy-content small {
    color: var(--text-body)!important;
}

.policy-content ul,
.policy-content ol {
    margin-left: 1rem;
}

.policy-content h4,
.policy-content h3 {
    color: var(--text-light)!important;
}

.bg-dark-alt .text-muted,
.bg-dark .text-muted {
    color: var(--text-muted) !important;
}

/* Form elements readability */
.form-label {
    color: var(--text-light) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Button text readability */
.btn {
    text-decoration: none !important;
}

/* Footer text readability */
.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--text-light);
}

/* Copyright text */
.copyright {
    color: var(--text-muted) !important;
}

/* Accordion content readability */
.accordion-button {
    color: var(--text-light) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-lighter) !important;
}

/* Ensure testimonial text is readable */
.testimonial-card p {
    color: var(--text-muted);
}

.testimonial-author h6 {
    color: var(--text-light) !important;
}

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

/* Navigation */
.navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
    box-shadow: none;
    min-height: 70px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-nav {
    margin-bottom: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

/* Mobile Navigation Improvements */
@media (max-width: 576px) {
    .navbar {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .navbar-brand {
        order: 1;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav {
        order: 2;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .navbar.scrolled {
        padding: 0.75rem 0;
    }
    
    .navbar.scrolled .container {
        gap: 0.75rem;
    }
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-bg);
    box-shadow: var(--shadow-glass);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    padding: 0;
}

.navbar-logo {
    height: 55px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .navbar-logo {
    height: 45px;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(122, 156, 214, 0.3));
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-lighter) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-lighter);
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(122, 156, 214, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(74, 111, 165, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(29, 41, 63, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(122, 156, 214, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(74, 111, 165, 0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    animation: floatingPattern 20s linear infinite;
    z-index: 1;
}

@keyframes floatingPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 40px); }
}

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

/* Hero min-height: mobile-first 60vh, desktop 100vh */
.hero-section .row.align-items-center {
    min-height: 100vh;
}

@media (min-width: 1200px) {
    .hero-section .row.align-items-center {
        min-height: 100vh;
    }
}

/* Particles System */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Ensure sections with particles have relative positioning */
.hero-section,
.bg-dark-alt,
.bg-dark {
    position: relative;
}

/* Ensure content appears above particles */
.bg-dark-alt .container,
.bg-dark .container {
    position: relative;
    z-index: 2;
}

/* Portfolio Detail Pages */
.portfolio-detail-section {
    background: var(--bg-dark);
    padding-top: 120px;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Portfolio content section - no top padding to connect with hero */
.portfolio-content-section {
    padding: 0 0 100px 0;
}

.portfolio-title {
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.portfolio-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-hero-image img {
    transition: transform 0.3s ease;
}

.portfolio-hero-image:hover img {
    transform: scale(1.02);
}

.portfolio-content h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.portfolio-content .lead {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.7;
}

.portfolio-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark-alt);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-accent);
}

.feature-item h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--primary-accent);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.portfolio-sidebar {
    position: sticky;
    top: 120px;
}

.portfolio-info-card {
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.portfolio-info-card h5 {
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.info-item strong {
    color: var(--primary-lighter);
}

/* Portfolio Tag Styles */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.portfolio-tag {
    background: rgba(122, 156, 214, 0.1);
    color: var(--primary-lighter);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-accent);
}

/* Responsive Design for Portfolio Details */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2rem;
    }
    
    .portfolio-detail-section {
        padding-top: 100px;
    }
    
    .portfolio-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-lighter);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite linear;
    box-shadow: 0 0 10px var(--primary-lighter);
}

.particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: -3s; }
.particle:nth-child(3) { left: 40%; animation-delay: -6s; }
.particle:nth-child(4) { left: 55%; animation-delay: -9s; }
.particle:nth-child(5) { left: 70%; animation-delay: -12s; }
.particle:nth-child(6) { left: 85%; animation-delay: -15s; }

/* Hero section specific particles (8 particles) */
.hero-section .particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-section .particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.hero-section .particle:nth-child(3) { left: 30%; animation-delay: -4s; }
.hero-section .particle:nth-child(4) { left: 40%; animation-delay: -6s; }
.hero-section .particle:nth-child(5) { left: 50%; animation-delay: -8s; }
.hero-section .particle:nth-child(6) { left: 60%; animation-delay: -10s; }
.hero-section .particle:nth-child(7) { left: 70%; animation-delay: -12s; }
.hero-section .particle:nth-child(8) { left: 80%; animation-delay: -14s; }

/* Subtle particles for dark sections */
.bg-dark-alt .particle,
.bg-dark .particle {
    opacity: 0.3;
    width: 3px;
    height: 3px;
    animation-duration: 20s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Modern Hero Typography */
.hero-badge .badge {
    background: var(--gradient-modern) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glass);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-lighter);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.hero-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 15px rgba(122, 156, 214, 0.15);
}

.hero-card:nth-child(1) { animation-delay: 0.1s; }
.hero-card:nth-child(2) { animation-delay: 0.2s; }
.hero-card:nth-child(3) { animation-delay: 0.3s; }
.hero-card:nth-child(4) { animation-delay: 0.4s; }

.hero-icon {
    font-size: 2.5rem;
    color: var(--primary-lighter);
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 6px rgba(122, 156, 214, 0.2));
}

.hero-card h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

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

.hero-card {
    animation: heroCardFloat 4s ease-in-out infinite;
}

.hero-card:nth-child(2) { animation-delay: -1s; }
.hero-card:nth-child(3) { animation-delay: -2s; }
.hero-card:nth-child(4) { animation-delay: -3s; }

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

/* Secondary page header spacing - more space from navbar */
.secondary-page-header {
    padding-top: 140px;
    padding-bottom: 80px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary-light);
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(122, 156, 214, 0.3);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-start .section-title::after {
    left: 0;
    transform: none;
}

.section-title.no-title-accent::after {
    display: none;
    content: none;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Service Filters */
.service-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Service Items */
.service-item {
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.service-item.hide {
    display: none;
}

/* Responsive Design for Service Filters */
@media (max-width: 768px) {
    .service-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .service-filters .filter-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Service Cards */
.service-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}



.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 15px rgba(122, 156, 214, 0.15);
    border-color: var(--primary-accent);
}



.service-icon {
    font-size: 3.5rem;
    color: var(--primary-lighter);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 1px 4px rgba(122, 156, 214, 0.1));
    position: relative;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    color: var(--primary-lightest);
    filter: drop-shadow(0 4px 12px rgba(122, 156, 214, 0.3));
}

/* Ensure service icons in bg-dark-alt sections maintain proper color */
.bg-dark-alt .service-icon {
    color: var(--primary-lighter) !important;
}

.bg-dark-alt .service-card:hover .service-icon {
    color: var(--primary-lightest) !important;
}

.service-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tool Cards */
.tool-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 15px rgba(122, 156, 214, 0.15);
    border-color: var(--primary-accent);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--primary-lighter);
    min-width: 60px;
    filter: drop-shadow(0 1px 3px rgba(122, 156, 214, 0.08));
}

.tool-content h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.tool-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tool-content .btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--primary-lighter);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tool-content .btn:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
    transform: translateY(-2px);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

.filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-accent);
    color: var(--primary-lighter);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(122, 156, 214, 0.15);
}

.filter-btn.active {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(122, 156, 214, 0.2);
}

/* Portfolio Grid */
.portfolio-item {
    margin-bottom: 2rem;
    transition: all 0.5s ease;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 15px rgba(122, 156, 214, 0.15);
    border-color: var(--primary-accent);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 41, 63, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.portfolio-overlay i {
    font-size: 2rem;
    color: white;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    background: var(--primary-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(74, 111, 165, 0.3);
}

/* Testimonials Carousel */
.testimonials-carousel-container {
    position: relative;
    /* Full-bleed across viewport width */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Allow vertical overflow so hover effects and shadows aren't clipped */
    overflow-x: hidden;
    overflow-y: visible;
    /* No arrow paddings needed */
    padding: 20px 0;
}

.testimonials-carousel {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
    width: 100%; /* Ensure proper width calculation */
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling but handle horizontal swipes */
    -webkit-overflow-scrolling: touch; /* Smooth touch scrolling on iOS */
}

/* Center alignment when all testimonial items fit without scrolling */
.testimonials-carousel.centered {
    justify-content: center;
}

.testimonials-carousel:active {
    cursor: grabbing;
}

.testimonial-slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonial-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 15px rgba(122, 156, 214, 0.15);
    border-color: var(--primary-accent);
}

.stars {
    font-size: 1.2rem;
}

.stars i {
    margin-right: 0.25rem;
}

.stars i:last-child {
    margin-right: 0;
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    color: var(--text-muted);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Hidden state for nav when not needed */
.carousel-nav.is-hidden {
    display: none;
}

/* Always hide testimonials arrows for a cleaner UI */
.testimonials-carousel-container .carousel-nav {
    display: none !important;
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--primary-lighter);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-accent);
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonials-carousel {
        /* Improve touch responsiveness on tablets */
        touch-action: pan-y;
    }
}

@media (max-width: 767px) {
    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%; /* Ensure each slide takes full width on mobile */
        max-width: 100%; /* Prevent slides from exceeding container width */
        padding: 0 10px;
    }
    
    .testimonials-carousel-container {
        padding: 15px 0;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonials-carousel {
        /* Enhanced touch handling for mobile */
        touch-action: pan-y;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        width: 100%; /* Ensure carousel takes full container width on mobile */
    }
}

/* About Section */
.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

.about-image img {
    border-radius: 12px;
}

/* Contact Section */
.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 12px rgba(122, 156, 214, 0.2);
}

.contact-item h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.contact-form-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

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

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control {
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: var(--transition-smooth);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus {
    background: var(--bg-dark-alt);
    border-color: var(--primary-lighter);
    color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(122, 156, 214, 0.15);
    outline: none;
}

/* Demo Notice Styling */
.demo-notice {
    background: rgba(122, 156, 214, 0.1);
    border: 1px solid rgba(122, 156, 214, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
}

.demo-notice small {
    color: var(--primary-lighter) !important;
    font-size: 0.85rem;
    line-height: 1.4;
}

.demo-notice i {
    color: var(--primary-accent);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--bg-dark-alt);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Center on mobile */
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-smooth);
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(122, 156, 214, 0.3));
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Center on mobile */
}

/* Align left from md and up to match text-md-start */
@media (min-width: 768px) {
    .footer-logo,
    .social-links {
        justify-content: flex-start;
    }
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 8px rgba(122, 156, 214, 0.2);
}

/* Social Media Brand Colors */
.social-link {
    /* Override visited link colors */
    color: var(--text-muted) !important;
}

.social-link:visited {
    color: var(--text-muted) !important;
}

/* Facebook Brand Color */
.social-link[href*="facebook"]:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3), 0 0 8px rgba(24, 119, 242, 0.2);
}

/* LinkedIn Brand Color */
.social-link[href*="linkedin"]:hover {
    background: #0077b5 !important;
    border-color: #0077b5 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3), 0 0 8px rgba(0, 119, 181, 0.2);
}

/* Instagram Brand Color */
.social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #e1306c !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3), 0 0 8px rgba(225, 48, 108, 0.2);
}

.footer-links h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-lighter);
}

.login-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.login-link:hover {
    color: var(--text-light);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1rem;
}

.copyright {
    color: var(--text-muted);
    margin: 0;
}

/* Modal Overrides */
.modal-content {
    background-color: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-light);
}

.btn-close {
    filter: invert(1);
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 991px) {
    .navbar-nav {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }
    
    .language-toggle {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .btn-primary.quote-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-left: 0.75rem !important;
        white-space: nowrap;
    }
}

/* Tablets and mobile devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    /* Secondary page header mobile spacing */
    .secondary-page-header {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-visual {
        grid-template-columns: 1fr;
        max-width: 280px;
        gap: 1rem;
        margin-top: 3rem;
    }
    
    .hero-card {
        padding: 1.5rem 1rem;
    }
    
    .hero-icon {
        font-size: 2rem;
    }
    
    .particle {
        width: 2px;
        height: 2px;
    }
    
    .portfolio-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin: 0.25rem;
    }
    
    .tool-card {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Improved tablet navigation */
    .navbar {
        padding: 0.85rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.6rem 0;
    }
    
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .nav-item.dropdown {
        flex-shrink: 0;
    }
    
    .language-toggle {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem;
        white-space: nowrap;
        display: flex;
        align-items: center;
        min-width: 110px;
        justify-content: center;
    }
    
    .language-flag {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
    
    .language-text {
        font-size: 0.8rem;
    }
    
    .btn-primary.quote-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-left: 0 !important;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 110px;
    }
    
    .navbar-logo {
        height: 55px;
    }
    
    .navbar.scrolled .navbar-logo {
        height: 48px;
    }
    
    .hero-section {
        padding-top: 90px;
    }
    
    .footer-logo-img {
        height: 45px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.3rem;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-visual {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
    
    .hero-card {
        padding: 1.25rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .tool-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 0;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
    
    /* Mobile Navigation - Better Sizing and Layout */
    .navbar-logo {
        height: 50px; /* Larger logo on mobile */
    }
    
    .navbar.scrolled .navbar-logo {
        height: 45px; /* Keep reasonable size when scrolled */
    }
    
    .language-toggle {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
        border-radius: 8px;
        min-width: 120px;
        justify-content: center;
    }
    
    .language-flag {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .language-text {
        font-size: 0.85rem;
        font-weight: 500;
    }
    
    .btn-primary.quote-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        margin-left: 0 !important;
        border-radius: 8px;
        min-width: 120px;
        white-space: nowrap;
    }
    
    .hero-section {
        padding-top: 90px; /* Reduced space on mobile */
    }
    
    /* Reduce overall hero height on mobile to remove extra space */
    .hero-section .row.min-vh-100 {
        min-height: 100vh;
    }
    
    /* Center the CTA buttons row */
    .hero-section .d-flex.gap-3 {
        justify-content: center;
        width: 100%;
    }
    
    /* Slightly larger CTA button on mobile */
    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.9rem 1.75rem;
    }
    
    .secondary-page-header {
        padding-top: 150px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
}

/* Center hero content on all viewports below xl */
@media (max-width: 1199.98px) {
    .hero-section .hero-title,
    .hero-section .hero-subtitle {
        text-align: center;
    }
    .hero-section .d-flex.gap-3 {
        justify-content: center;
        width: 100%;
    }
}

/* Ensure left alignment returns on xl and above */
@media (min-width: 1200px) {
    .hero-section .hero-title,
    .hero-section .hero-subtitle {
        text-align: left;
    }
    .hero-section .d-flex.gap-3 {
        justify-content: flex-start;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* More compact navigation for very small screens */
    .navbar .container {
        gap: 0.75rem;
    }
    
    .navbar-nav {
        gap: 0.75rem;
    }
    
    .language-toggle {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .language-flag {
        font-size: 0.9rem;
        margin-right: 0.3rem;
    }
    
    .btn-primary.quote-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .navbar-logo {
        height: 45px;
    }
    
    .navbar.scrolled .navbar-logo {
        height: 40px;
    }
    
    .hero-section {
        padding-top: 150px; /* More space for mobile nav */
    }
    
    .secondary-page-header {
        padding-top: 160px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-80px) rotateY(-15deg);
    transition: var(--transition-smooth);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(80px) rotateY(15deg);
    transition: var(--transition-smooth);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.stagger-animation {
    transition: var(--transition-smooth);
}

.stagger-animation:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation:nth-child(6) { transition-delay: 0.6s; }

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(122, 156, 214, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(122, 156, 214, 0.6)) drop-shadow(0 0 40px rgba(122, 156, 214, 0.2)); }
}

.rotate-on-hover {
    transition: var(--transition-smooth);
}

.rotate-on-hover:hover {
    transform: rotate(5deg) scale(1.05);
}

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

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-primary-gradient {
    background: var(--gradient-primary);
}

.shadow-primary {
    box-shadow: 0 4px 6px -1px rgba(29, 41, 63, 0.3), 0 2px 4px -1px rgba(29, 41, 63, 0.2);
}

/* Modern Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
    color: var(--text-light);
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-lighter);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-lighter);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary-light);
}

/* Modern Selection */
::selection {
    background: var(--primary-lighter);
    color: white;
}

::-moz-selection {
    background: var(--primary-lighter);
    color: white;
}

/* Enhanced Focus States */
*:focus-visible {
    outline: 2px solid var(--primary-lighter);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Modern Cursor Effects */
.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    cursor: pointer;
}

/* Perspective for 3D effects */
.perspective {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

/* Custom Cursor */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-lighter);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
    opacity: 0.8;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-lighter);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    box-shadow: 0 0 10px var(--primary-lighter);
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: var(--primary-lightest);
    background: rgba(122, 156, 214, 0.1);
}

.cursor-dot.cursor-hover {
    width: 10px;
    height: 10px;
    background: var(--primary-lightest);
}

/* Hide cursor on mobile devices */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-dot {
        display: none;
    }
}

/* Case Study Specific Styles */
.challenge-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-dark-alt);
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.result-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: 0 8px 25px rgba(122, 156, 214, 0.15);
}

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

.result-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Process Section Styles */
.process-step {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary-accent);
    box-shadow: 0 8px 25px rgba(122, 156, 214, 0.15);
}



.process-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.process-step h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.process-details {
    list-style: none;
    padding: 0;
    text-align: left;
}

.process-details li {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.process-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-lighter);
    font-weight: bold;
}

@media (max-width: 768px) {
    .process-step {
        margin-bottom: 2rem;
    }
    

    
    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Pricing Section Styles */
.pricing-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: 0 8px 25px rgba(122, 156, 214, 0.15);
}

.pricing-header h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    color: var(--primary-lighter);
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-lighter);
    line-height: 1;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    vertical-align: bottom;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.pricing-info {
    background: var(--bg-dark-alt);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.pricing-info h3 {
    color: var(--text-light);
    font-weight: 600;
}

.pricing-approach h5 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.pricing-list {
    list-style: none;
    padding: 0;
}

.pricing-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.pricing-list li::before {
    content: '•';
    color: var(--primary-lighter);
    position: absolute;
    left: 0;
}

.pricing-cta {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.pricing-cta h6 {
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pricing-card,
    .pricing-info {
        margin-bottom: 2rem;
    }
    
    .pricing-price .amount {
        font-size: 2.5rem;
    }
}

/* FAQ Page Styles */
.faq-category-title {
    color: var(--primary-lighter);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 0.5rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.accordion-item:hover {
    border-color: rgba(122, 156, 214, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 8px rgba(122, 156, 214, 0.05);
}

.accordion-button {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-lightest);
}

.accordion-button:not(.collapsed) {
    background: rgba(122, 156, 214, 0.08);
    color: var(--primary-lighter);
    box-shadow: none;
    border-bottom: 1px solid rgba(122, 156, 214, 0.15);
}

.accordion-button:not(.collapsed):hover {
    background: rgba(122, 156, 214, 0.12);
    color: var(--primary-lightest);
}

.accordion-button:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 0.25rem rgba(122, 156, 214, 0.25);
    background: rgba(122, 156, 214, 0.05);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237a9cd6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-body);
    border-top: 1px solid rgba(122, 156, 214, 0.1);
    padding: 1.5rem;
    line-height: 1.6;
    position: relative;
}

.accordion-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 156, 214, 0.2), transparent);
}

.faq-contact {
    background: var(--bg-dark-alt);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-contact h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Partners & Technologies Section */
.tech-carousel-container {
    position: relative;
    /* Allow vertical overflow so hover effects and shadows aren't clipped */
    overflow-x: hidden;
    overflow-y: visible;
    /* Add vertical breathing room to prevent content from being visually cropped */
    padding: 20px 80px;
    /* Full-bleed across viewport width */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.tech-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    cursor: grab;
    user-select: none;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.tech-carousel:active {
    cursor: grabbing;
}

/* Center alignment when all items fit without scrolling */
.tech-carousel.centered {
    justify-content: center;
}

.tech-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.tech-logo:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: 0 8px 25px rgba(122, 156, 214, 0.15);
    background: var(--bg-dark-alt);
}

.tech-logo i {
    font-size: 2.5rem;
    color: var(--primary-lighter);
    margin-bottom: 0.75rem;
}

.tech-logo span {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.tech-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hidden state for nav when not needed */
.tech-nav.is-hidden {
    display: none;
}

.tech-nav:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.tech-prev {
    left: 15px;
}

.tech-next {
    right: 15px;
}

@media (max-width: 768px) {
    .tech-carousel-container {
        padding: 16px 60px;
        overflow-y: visible;
    }
    
    .tech-carousel {
        gap: 1rem;
    }
    
    .tech-logo {
        min-width: 100px;
        padding: 1rem 0.75rem;
    }
    
    .tech-logo i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-logo span {
        font-size: 0.8rem;
    }
    
    .tech-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tech-prev {
        left: 10px;
    }
    
    .tech-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .tech-carousel-container {
        padding: 14px 50px;
        overflow-y: visible;
    }
    
    .tech-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .tech-prev {
        left: 7px;
    }
    
    .tech-next {
        right: 7px;
    }
}

/* Free Website Audit Card */
.audit-offer-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.audit-offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 15px rgba(122, 156, 214, 0.15);
    border-color: var(--primary-accent);
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-lighter) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(122, 156, 214, 0.3);
}

.audit-badge i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.audit-content h3 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.audit-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.audit-features {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.audit-features li {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.audit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-lighter) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(122, 156, 214, 0.25);
}

.audit-action h4 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.audit-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.audit-note small {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .audit-offer-card {
        padding: 2rem 1.5rem;
    }
    
    .audit-content h3 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .audit-content p {
        text-align: center;
        font-size: 1rem;
    }
    
    .audit-features {
        text-align: left;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .audit-action {
        margin-top: 2rem;
    }
}

/* Hero Back Button */
.hero-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(122, 156, 214, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(122, 156, 214, 0.3);
    border-radius: 50px;
    color: var(--primary-lighter);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-back-btn:hover {
    color: white;
    background: rgba(122, 156, 214, 0.8);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 156, 214, 0.3);
}

.hero-back-btn i {
    font-size: 1rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.hero-back-btn:hover i {
    transform: translateX(-3px);
}

.hero-back-btn span {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-back-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-back-btn i {
        font-size: 0.9rem;
        margin-right: 0.6rem;
    }
    
    .hero-back-btn span {
        font-size: 0.85rem;
    }
}

/* Utilities */
.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.text-light {
    color: var(--text-light) !important;
}