/*
╔══════════════════════════════════════════════════════════════════════════════╗
║                         SAFICODE LADYBUG THEME CSS                           ║
║                      Complete Website Design System                          ║
╚══════════════════════════════════════════════════════════════════════════════╝

🐞 THEME OVERVIEW:
   Inspired by the iconic ladybug - combining elegance, playfulness, and tech
   sophistication. The design uses red and black as primary colors with 
   strategic spot patterns throughout the UI.

📊 COLOR PALETTE:
   Primary:   #E63946 (Ladybug Red) - Main brand color
   Secondary: #1D1D1D (Ladybug Black) - Text & backgrounds
   Accent:    #20c997 (Tech Green) - Interactive elements
   
🎨 DESIGN PRINCIPLES:
   1. Rounded Corners (20px) - Mimics ladybug's organic shape
   2. Spot Decorations (● symbols) - Ladybug's iconic spots
   3. Red Gradients - Dynamic, modern feel
   4. Black Borders - Strong contrast and definition
   5. Hover Animations - Scale, rotation, translation for interactivity
   
🔧 COMPONENTS STYLED:
   ✓ Navigation (navbar, mobile menu, language toggle)
   ✓ Buttons (CTA primary/secondary, btn-primary/secondary, all states)
   ✓ Cards (project cards, stat cards, pricing cards, dashboard panels)
   ✓ Forms (inputs, textareas, auth forms, contact forms)
   ✓ Chatbox (toggle, header, messages, input field)
   ✓ Dashboard (stat cards, panels, badges, messages)
   ✓ Newsletter Widget (toggle button, panel)
   ✓ Journey Steps (timeline with numbered badges)
   ✓ Auth Pages (login, register boxes with gradients)
   ✓ Footer (black with red top border)
   ✓ Logo (Abstract SVG ladybug design)
   
📱 RESPONSIVE:
   - Mobile First approach
   - Breakpoints: 768px (tablet), 480px (mobile)
   - Touch-friendly sizing (min 44px tap targets)
   
🎭 ANIMATIONS:
   - Smooth transitions (0.3s ease)
   - Hover effects (scale, translate, rotate)
   - Float animations for hero elements
   - Pulse effects on interactive elements

Last Updated: 2024
*/

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

/* CSS Variables for Ladybug Theme */
:root {
    /* Ladybug Colors */
    --ladybug-red: #E63946;
    --ladybug-red-dark: #C72634;
    --ladybug-red-light: #FF4D5A;
    --ladybug-black: #1D1D1D;
    --ladybug-spot: #0D0D0D;
    --tech-green: #20c997;
    --tech-green-dark: #17a085;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Font Sizes */
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.5rem;
    
    /* Updated Color Scheme */
    --color-primary: var(--ladybug-red);
    --color-secondary: var(--tech-green);
    --color-dark: var(--ladybug-black);
    --color-light: #ffffff;
    --color-text: #1D1D1D;
    --color-text-light: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--ladybug-red) 0%, var(--ladybug-red-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--tech-green) 0%, var(--tech-green-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--ladybug-black) 0%, #2c2c2c 50%, var(--ladybug-red-dark) 100%);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: #ffffff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(230, 57, 70, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(230, 57, 70, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(29, 29, 29, 0.02) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

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

.navbar {
    background: var(--ladybug-black);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.1);
    border-bottom: 2px solid var(--ladybug-red);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* make container relative so we can absolutely position the language switcher */
.navbar .container {
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.3s ease;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-bug {
    animation: bugWiggle 0.6s ease;
}

.logo-bug {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bugWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.logo-text {
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    font-size: 1.5rem;
}

.logo-highlight {
    color: #E63946;
    font-weight: 800;
    position: relative;
}

.logo-highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--ladybug-red), var(--ladybug-red-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-highlight::before {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    z-index: 10000;
}

.nav-menu .nav-spacer {
    flex: 1 1 auto;
}

/* Ensure language switcher sticks to the right end of the nav */
.nav-menu .lang-switcher {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    z-index: 10001;
}

.dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
}

.dropdown > a:focus,
.dropdown > a:hover {
    background: rgba(255,255,255,0.03);
}

.dropdown .caret {
    font-size: 0.85em;
    margin-left: 4px;
    transition: transform 0.18s ease;
}

.dropdown.open .caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: block; /* keep in flow for screen readers, use opacity/transform to hide visually */
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    color: #2c3e50;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    padding: 0.25rem 0;
    z-index: 99999; /* Maximum z-index to stay above everything */
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 160ms cubic-bezier(.2,.9,.3,1), transform 160ms cubic-bezier(.2,.9,.3,1);
    will-change: opacity, transform; /* Optimize rendering during scroll */
}

/* Make dropdown visually match with white background for better readability */
.navbar .dropdown-menu {
    background: white;
    color: #1D1D1D;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    border: 1px solid #E63946;
}

.navbar .dropdown-menu a {
    color: #1D1D1D;
}

.navbar .dropdown-menu a:hover {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1.1rem;
    color: var(--ladybug-black);
    text-decoration: none;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: rgba(0,0,0,0.04);
}

/* Unified multi-line dropdown items (Ladybug themed) */
.dropdown-menu .multi-line-item {
    display: block;
    padding: 0.8rem 1rem;
    background: white;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu .multi-line-title {
    font-weight: 700;
    color: var(--ladybug-black);
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 0.3rem;
}

.dropdown-menu .multi-line-sub {
    font-size: 0.85rem;
    color: var(--ladybug-red);
    font-weight: 600;
    opacity: 0.95;
    display: block !important;
    line-height: 1.2;
}

.dropdown-menu .multi-line-item:hover .multi-line-title {
    color: var(--ladybug-red);
}

.dropdown-menu .multi-line-item:hover .multi-line-sub {
    color: var(--ladybug-red-dark);
}

/* Single-line items consistent styling */
.dropdown-menu .single-line-item {
    display: block;
    padding: 0.65rem 1.1rem;
    font-weight: 600;
    color: var(--ladybug-black);
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu .single-line-item strong {
    font-weight: 700;
}

.dropdown-menu .single-line-item:hover {
    background: rgba(230,57,70,0.08);
    color: var(--ladybug-red);
}

/* Divider between sections */
.dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(230,57,70,0.35);
    margin-top: 0.4rem;
    padding-top: 0.4rem;
}

/* Ladybug Theming Helpers */
.ladybug-gradient-primary {
    background: var(--gradient-primary) !important;
    color: var(--color-light);
}

.ladybug-gradient-hero {
    background: var(--gradient-hero) !important;
    color: var(--color-light);
}

.ladybug-accent-box {
    background: var(--gradient-primary);
    color: var(--color-light);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 16px rgba(230,57,70,0.25);
    border: 2px solid var(--ladybug-red-dark);
}

.ladybug-section-light {
    background: #ffffff;
    position: relative;
}
.ladybug-section-light::before {
    content: '●';
    position: absolute;
    top: 12px; left: 12px;
    font-size: 1rem;
    color: var(--ladybug-red-light);
    opacity: 0.4;
}

.ladybug-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ladybug-black);
    letter-spacing: .5px;
}

.ladybug-subheading {
    color: var(--ladybug-black);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.ladybug-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ladybug-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(230,57,70,0.25);
    border-color: var(--ladybug-red);
}

.ladybug-badge {
    background: var(--gradient-primary);
    color: var(--color-light);
    padding: .4rem .9rem;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ladybug-btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--ladybug-red-dark);
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(230,57,70,.35);
}
.ladybug-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230,57,70,.45);
    border-color: var(--ladybug-red);
}

.ladybug-btn-outline {
    display: inline-block;
    background: #fff;
    color: var(--ladybug-red) !important;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--ladybug-red);
    transition: all .3s ease;
}
.ladybug-btn-outline:hover {
    background: var(--gradient-primary);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(230,57,70,.35);
}

.pricing-card.ladybug-theme .subscription-badge { background: var(--gradient-primary) !important; }
.pricing-card.ladybug-theme .amount { color: var(--ladybug-red) !important; }
.pricing-card.ladybug-theme .subscribe-btn { background: var(--gradient-primary) !important; box-shadow: 0 4px 15px rgba(230,57,70,.35) !important; }
.pricing-card.ladybug-theme .subscribe-btn:hover { box-shadow: 0 8px 25px rgba(230,57,70,.5) !important; }

.product-card.ladybug-theme {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.product-card.ladybug-theme:hover {
    border-color: var(--ladybug-red) !important;
    box-shadow: 0 12px 30px rgba(230,57,70,0.25) !important;
}
.product-card.ladybug-theme .btn-view-product { background: var(--gradient-primary) !important; }
.product-card.ladybug-theme .btn-view-product:hover { box-shadow: 0 6px 20px rgba(230,57,70,0.45) !important; }

/* Ladybug Red Star Ratings */
.ladybug-star {
    color: var(--ladybug-red);
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    display: inline-block;
    margin-right: 2px;
}
.ladybug-star.empty {
    color: #ddd;
    opacity: 0.5;
}

.dropdown:not(.open) .dropdown-menu {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    /* Ensure dropdown stays visible and accessible during scroll */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--ladybug-red);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-left: none;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--ladybug-red);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.lang-btn:hover::before {
    width: 100%;
    height: 100%;
}

.lang-btn:hover {
    border-color: var(--ladybug-red);
}

.lang-btn span {
    position: relative;
    z-index: 1;
}

.lang-btn.active {
    background: var(--ladybug-red);
    color: white;
    border-color: var(--ladybug-red);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.lang-btn.active::after {
    content: '●';
    margin-left: 4px;
    font-size: 0.6em;
    color: var(--ladybug-spot);
}

.lang-btn.active:hover {
    background: var(--ladybug-red-dark);
    border-color: var(--ladybug-red-dark);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Below navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ladybug-red) 0%, transparent 70%);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tech-green) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Animated Hero Section */
.hero-animated {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ladybug-black) 0%, #2a2a2a 60%, #4a1f23 85%, #6b2832 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    z-index: 1; /* Keep below navbar */
}

.process-flow-bg {
    position: absolute;
    width: 70%;
    max-width: 800px;
    height: auto;
    opacity: 0.5;
    z-index: 0; /* firmly behind content */
    pointer-events: none;
}

/* Beautiful line animation */
.beautiful-line {
    animation: beautifulMove 20s linear infinite;
}

@keyframes beautifulMove {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -300;
        opacity: 0.9;
    }
}

/* Ladybug followers with smooth path following */
.ladybug-follower {
    transform-origin: center;
}

/* Individual ladybug flying animations with varied paths */
.ladybug-1 {
    animation: flyPath1 12s ease-in-out infinite;
}

.ladybug-2 {
    animation: flyPath2 14s ease-in-out infinite 0.5s;
}

.ladybug-3 {
    animation: flyPath3 13s ease-in-out infinite 1s;
}

.ladybug-4 {
    animation: flyPath4 15s ease-in-out infinite 1.5s;
}

.ladybug-5 {
    animation: flyPath5 13.5s ease-in-out infinite 2s;
}

/* Flying path animations with wobble/twist effect */
@keyframes flyPath1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(20px, -10px) rotate(5deg) scale(1.05); }
    50% { transform: translate(0, -20px) rotate(-5deg) scale(1.1); }
    75% { transform: translate(-20px, -10px) rotate(5deg) scale(1.05); }
}

@keyframes flyPath2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-15px, 15px) rotate(-8deg) scale(1.08); }
    50% { transform: translate(15px, 0) rotate(8deg) scale(1.12); }
    75% { transform: translate(10px, -15px) rotate(-5deg) scale(1.05); }
}

@keyframes flyPath3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(25px, 20px) rotate(10deg) scale(1.1); }
    50% { transform: translate(-10px, 15px) rotate(-8deg) scale(1.15); }
    75% { transform: translate(15px, -5px) rotate(6deg) scale(1.08); }
}

@keyframes flyPath4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-20px, -15px) rotate(-10deg) scale(1.06); }
    50% { transform: translate(20px, 10px) rotate(10deg) scale(1.12); }
    75% { transform: translate(-15px, 20px) rotate(-7deg) scale(1.09); }
}

@keyframes flyPath5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(15px, -20px) rotate(7deg) scale(1.08); }
    50% { transform: translate(-20px, -10px) rotate(-9deg) scale(1.14); }
    75% { transform: translate(10px, 15px) rotate(5deg) scale(1.06); }
}

.ladybug-node {
    transform-origin: center;
}

.hero-content {
    position: relative;
    z-index: 2; /* above animated background but below navbar */
    text-align: center;
    max-width: 900px;
}

.hero-title-animated {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-main {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.title-brand {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #E63946 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 15px rgba(230, 57, 70, 0.2),
        0 0 30px rgba(230, 57, 70, 0.15);
    animation: subtleGlow 4s ease-in-out infinite;
    position: relative;
    letter-spacing: 0.05em;
}

@keyframes subtleGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.05) saturate(1.1);
    }
}

.title-brand::before {
    content: 'SafiCode';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--ladybug-red) 0%, var(--ladybug-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.hero-tagline {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-primary {
    padding: 18px 45px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 
        0 4px 20px rgba(230, 57, 70, 0.4),
        0 0 40px rgba(230, 57, 70, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--ladybug-red);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* Ladybug spots decoration on button */
.cta-primary::after {
    content: '● ● ●';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 0.5em;
    color: rgba(29, 29, 29, 0.3);
    letter-spacing: 8px;
    z-index: 1;
}

.cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-primary:hover {
    transform: translateY(-3px);
    background: var(--ladybug-red-light);
    box-shadow: 
        0 8px 30px rgba(230, 57, 70, 0.6),
        0 0 60px rgba(230, 57, 70, 0.4);
}

.cta-secondary {
    padding: 18px 45px;
    background: transparent;
    color: var(--ladybug-red);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--ladybug-red);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.cta-secondary:hover::before {
    left: 0;
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .process-flow-bg,
    .flow-animate,
    .process-node,
    .title-brand {
        animation: none;
    }
    
    .cta-primary::before {
        display: none;
    }
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid var(--ladybug-red);
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.2);
}

.btn-primary:hover {
    background: var(--ladybug-red-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

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

.btn-secondary:hover {
    background: white;
    color: var(--ladybug-red-dark);
}

.btn-link {
    color: var(--ladybug-red);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--ladybug-black);
}

.featured-projects, .portfolio-section, .about-section, .contact-section {
    min-height: 400px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive iframe wrapper for YouTube embeds */
.responsive-iframe {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.responsive-iframe iframe,
.responsive-iframe object,
.responsive-iframe embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.pricing-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.15);
    text-align: center;
    border: 2px solid var(--ladybug-red);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card::before {
    content: '●';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--ladybug-red);
    opacity: 0.3;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.25);
}
.pricing-card .price {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--ladybug-red);
}
.pricing-card .features {
    text-align: left;
    margin: 1rem 0;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 60px;
    height: 60px;
    background: var(--ladybug-red);
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.4s;
}

.project-card::after {
    content: '●';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 12px;
    color: var(--ladybug-spot);
    opacity: 0.3;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
    border-color: var(--ladybug-red);
}

.project-card:hover::before {
    width: 100px;
    height: 100px;
    opacity: 0.15;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: rgba(230, 57, 70, 0.1);
    color: var(--ladybug-red);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(230, 57, 70, 0.2);
    transition: all 0.3s;
    position: relative;
}

.tag:hover {
    background: var(--ladybug-red);
    color: white;
    transform: scale(1.05);
}

.tag::before {
    content: '●';
    margin-right: 4px;
    font-size: 0.6em;
    opacity: 0.6;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--ladybug-red) 30%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.skill-item:hover {
    border-color: var(--ladybug-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.15);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.1);
    border: 2px solid rgba(230, 57, 70, 0.2);
    position: relative;
}

.contact-form::before {
    content: '●';
    position: absolute;
    top: -10px;
    right: 30px;
    font-size: 2rem;
    color: var(--ladybug-red);
    background: white;
    padding: 0 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(29, 29, 29, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ladybug-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    border: 2px solid var(--ladybug-black);
    position: relative;
}

.message::before {
    content: '●';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 10px;
    color: rgba(29, 29, 29, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-text {
    flex: 1;
}

.message-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.message-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

footer {
    background: var(--ladybug-black);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--ladybug-red);
    position: relative;
}

footer::before {
    content: '●';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--ladybug-red);
}

/* Authentication Pages */
.auth-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--ladybug-black) 0%, #2a2a2a 50%, var(--ladybug-red) 100%);
    position: relative;
}

.auth-section::before {
    content: '●';
    position: absolute;
    top: 10%;
    right: 15%;
    font-size: 3rem;
    color: var(--ladybug-red);
    opacity: 0.2;
}

.auth-section::after {
    content: '●';
    position: absolute;
    bottom: 15%;
    left: 10%;
    font-size: 4rem;
    color: var(--ladybug-red);
    opacity: 0.15;
}

.auth-box {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.2);
    border: 3px solid var(--ladybug-red);
    position: relative;
}

.auth-box::before {
    content: '●';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2rem;
    color: var(--ladybug-red);
    background: white;
    padding: 0 10px;
}

.auth-box h1 {
    color: var(--ladybug-red);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.auth-subtitle {
    text-align: center;
    color: var(--ladybug-black);
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

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

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ladybug-black);
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--ladybug-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.form-errors {
    background: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--ladybug-red);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.error-message {
    color: var(--ladybug-red);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px;
    font-size: 1.05rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--ladybug-black);
    font-size: 0.95rem;
    opacity: 0.7;
}

.auth-link a {
    color: var(--ladybug-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    color: var(--ladybug-red-dark);
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-section {
    padding: 3rem 0;
    min-height: 70vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--ladybug-black);
}

.stat-card::before {
    content: '●';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    color: rgba(29, 29, 29, 0.3);
}

.stat-card::after {
    content: '●';
    position: absolute;
    bottom: 20px;
    left: 25px;
    font-size: 15px;
    color: rgba(29, 29, 29, 0.25);
}

.stat-card.highlight {
    background: var(--ladybug-black);
    border-color: var(--ladybug-red);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.stat-card.highlight::before {
    color: var(--ladybug-red);
    opacity: 0.4;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.dashboard-panel {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #f0f0f0;
    position: relative;
    transition: all 0.3s;
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: var(--ladybug-red);
    border-radius: 50%;
    opacity: 0.1;
}

.dashboard-panel:hover {
    border-color: var(--ladybug-red);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.15);
}

.message-list, .project-list {
    margin-top: 1rem;
}

.message-item, .project-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-item.unread {
    background: rgba(230, 57, 70, 0.1);
    font-weight: 600;
    border-left: 3px solid var(--ladybug-red);
    position: relative;
}

.message-item.unread::before {
    content: '●';
    position: absolute;
    left: 10px;
    color: var(--ladybug-red);
    font-size: 10px;
}

.message-date {
    color: #666;
    font-size: 0.9rem;
}

.badge {
    background: var(--ladybug-red);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 600;
}
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Subscriptions CTA */
.subscriptions-cta {
    background: #f7fbff;
    border-bottom: 1px solid #e6eef7;
    padding: 0.6rem 0;
}
.subscriptions-cta .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.subscriptions-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
    border: 2px solid var(--ladybug-black);
}
.newsletter-form {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.newsletter-form input[type="email"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(29, 29, 29, 0.3);
    min-width: 220px;
}
.newsletter-form button {
    padding: 8px 14px;
    background: var(--gradient-primary);
    color: white;
    border: 2px solid var(--ladybug-black);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Admin Forms */
.panel {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tables */
.admin-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table thead {
    background: #ffffff;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(29, 29, 29, 0.1);
}

table th {
    font-weight: 600;
    color: var(--ladybug-black);
}

.unread-row {
    background: rgba(230, 57, 70, 0.05);
}

.status-read {
    color: var(--ladybug-black);
    font-weight: 600;
}

.status-unread {
    color: var(--ladybug-red);
    font-weight: 600;
}

/* Buttons */
.btn-view, .btn-mark, .btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0 2px;
}

.btn-view {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid var(--ladybug-black);
}

.btn-mark {
    background: var(--ladybug-red);
    color: white;
    border: 2px solid var(--ladybug-black);
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: 2px solid var(--ladybug-black);
}

.btn-view:hover, .btn-mark:hover, .btn-delete:hover {
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
}

.close {
    color: var(--ladybug-black);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--ladybug-red);
    opacity: 1;
}

.message.error {
    background: var(--ladybug-red);
    border: 2px solid var(--ladybug-black);
}

.client-journey {
    background: white;
    color: #2c3e50;
    padding: 80px 0;
    position: relative;
}

.client-journey::before {
    content: '●';
    position: absolute;
    top: 50px;
    right: 10%;
    font-size: 3rem;
    color: var(--ladybug-red);
    opacity: 0.2;
}

.client-journey h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    opacity: 1;
}

.flowchart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flowchart-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.journey-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.journey-step {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--ladybug-red);
    transition: all 0.3s ease;
    position: relative;
}

.journey-step:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    border: 3px solid white;
}

.journey-step h3 {
    color: var(--ladybug-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.journey-step p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Featured Products Section */
.featured-products {
    background: white;
    padding: 4rem 0;
}

.featured-products h2 {
    color: #1D1D1D;
}

.featured-products p {
    color: #1D1D1D;
}

/* Services Preview Section */
.services-preview {
    background: white;
    padding: 4rem 0;
}

.services-preview h2 {
    color: #1D1D1D;
}

.services-preview p {
    color: #1D1D1D;
}

/* Pricing Section */
.pricing {
    background: white;
    padding: 4rem 0;
}

.pricing h2 {
    color: #1D1D1D;
}

.pricing p {
    color: #1D1D1D;
}

@media (max-width: 768px) {
    /* Show hamburger, hide nav menu by default */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--ladybug-black);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(230, 57, 70, 0.2);
        padding: 1rem 0;
        gap: 0;
        z-index: 99;
        border-top: 2px solid var(--ladybug-red);
    }
    
    .nav-menu.active {
        left: 0;
    }

    /* On mobile hide dropdown menu by default, show only when parent dropdown is open */
    .dropdown-menu {
        position: static;
        display: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* Show dropdown menu when parent has open class */
    .dropdown.open .dropdown-menu {
        display: block;
        max-height: 500px;
    }

    /* On mobile keep lang switcher inside the menu and make it centered */
    .nav-menu .lang-switcher {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1rem 0;
        margin: 0;
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu a {
        padding-left: 2rem;
        color: white;
    }
    
    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .lang-switcher {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1rem 0;
        margin: 0;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .client-journey h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .journey-details {
        grid-template-columns: 1fr;
    }
    
    .flowchart-container {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    /* Animated Hero Responsive */
    .hero-animated {
        min-height: 80vh;
        padding: 1rem;
    }
    
    .process-flow-bg {
        width: 90%;
        opacity: 0.4;
    }
    
    .title-main {
        font-size: 1.2rem;
    }
    
    .title-brand {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
        padding: 15px 35px;
    }
}

    /* Desktop: stabilize nav item positions so translations don't shift layout */
@media (min-width: 769px) {
    .nav-menu {
        gap: 0; /* we'll use fixed slot widths and centered spacing */
        align-items: center;
    }

    .nav-menu > li {
        list-style: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        white-space: nowrap; /* keep items on one line */
    }

    /* Fixed slots for main items - adjust widths if you want more room */
    .nav-item-1 { width: 90px; }
    .nav-item-2 { width: 120px; }
    .nav-item-3 { width: 160px; }
    .nav-item-4 { width: 110px; }

    /* Keep auth links after the main slots, allow them to size naturally */
    .nav-menu > li:not(.nav-item-1):not(.nav-item-2):not(.nav-item-3):not(.nav-item-4):not(.lang-switcher) {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Language switcher placed after the nav menu in the DOM; use margin-left:auto on it
       so it stays at the far right of the navbar without absolute positioning. */
    .lang-switcher {
        margin-left: auto;
        position: relative;
        z-index: 600;
    }

    /* Ensure nav container has comfortable right padding but not excessive */
    .navbar .container { padding-right: 40px; }
}

/* AI Chatbox Styles */
.chatbox-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Newsletter floating widget (bottom-left) */
.newsletter-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.newsletter-toggle {
    background: var(--gradient-primary);
    color: white;
    border: 3px solid var(--ladybug-black);
    padding: 14px 16px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.newsletter-toggle::before {
    content: '●';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 8px;
    color: var(--ladybug-spot);
}

.newsletter-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.6);
}

.newsletter-panel {
    background: white;
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.2);
    margin-bottom: 12px;
    padding: 1.5rem;
    border: 2px solid var(--ladybug-red);
    position: relative;
}

.newsletter-panel::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--ladybug-red);
    border-radius: 50%;
    opacity: 0.2;
}
.newsletter-panel .newsletter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.newsletter-panel-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.newsletter-panel-form input[type="email"]:focus {
    outline: none;
    border-color: #20c997;
}
.newsletter-panel-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32,201,151,0.3);
}
.newsletter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}
.newsletter-close:hover {
    color: #333;
}

.chatbox-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    border: 3px solid var(--ladybug-black);
    position: relative;
}

.chatbox-toggle::before {
    content: '●';
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 10px;
    color: var(--ladybug-spot);
}

.chatbox-toggle::after {
    content: '●';
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 8px;
    color: var(--ladybug-spot);
}

.chatbox-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.6);
}

.chat-icon {
    font-size: 28px;
}

.chatbox {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--ladybug-red);
}

.chatbox-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.chatbox-header::before {
    content: '● ● ●';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: rgba(29, 29, 29, 0.2);
    letter-spacing: 10px;
}

.chatbox-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chatbox-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background 0.3s;
}

.chatbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbox-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
    position: relative;
}

.user-message .message-content::before {
    content: '●';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 6px;
    color: rgba(29, 29, 29, 0.3);
}
    border-bottom-right-radius: 4px;
}

.typing-indicator .message-content {
    display: flex;
    gap: 4px;
    padding: 1rem;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chatbox-input {
    display: flex;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.chatbox-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
}

.chatbox-input input:focus {
    border-color: #20c997;
}

.chatbox-input button {
    margin-left: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.chatbox-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.5);
    background: var(--ladybug-red-light);
}

/* Mobile responsiveness for chatbox */
@media (max-width: 768px) {
    .chatbox {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-width: 100%;
    }
    
    .chatbox-container {
        bottom: 10px;
        right: 10px;
    }
}
