/* ===== RESET & VARIABLES ===== */
:root {
    /* Light Mode Colors (Default) */
    --primary-color: #f8b500;
    --primary-dark: #e6a300;
    --secondary-color: #393e46;
    --accent-color: #ffc62c;
    --success-color: #00c851;
    --warning-color: #ff8f00;
    --danger-color: #ff4444;
    
    /* Light Mode Neutrals - Improved Contrast */
    --light-bg: #ffffff;
    --light-secondary: #fafafa;
    --light-card: #ffffff;
    --text-primary: #2c2c2c;
    --text-secondary: #4a4a4a;
    --text-muted: #666666;
    --border-color: #e8e8e8;
    
    /* Gradients for Light Mode */
    --gradient-primary: linear-gradient(135deg, #f8b500 0%, #ffc62c 100%);
    --gradient-dark: linear-gradient(135deg, #393e46 0%, #22252a 100%);
    --gradient-accent: linear-gradient(135deg, #ffc62c 0%, #f8b500 100%);
    
    /* Base Colors (same for both modes) */
    --theia-primary: #f8b500;
    --theia-secondary: #393e46;
    --theia-accent: #ffc62c;
    --theia-dark: #22252a;
    --theia-light-gray: #505762;
    --theia-white: #ffffff;
    
    /* Current mode variables */
    --bg-primary: var(--light-bg);
    --bg-secondary: var(--light-secondary);
    --bg-card: var(--light-card);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --card-padding: 30px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    --line-height-base: 1.6;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Shadows for Light Mode - Enhanced Contrast */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #1a1a2e;
    --accent-color: #ff6b35;
    --success-color: #00c851;
    --warning-color: #ff8f00;
    --danger-color: #ff4444;
    
    /* Dark Mode Neutrals */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    
    /* Dark Mode Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    
    /* Dark Mode Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
}

.theme-toggle-slider {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border-radius: 50%;
    transition: all var(--transition-normal);
    transform: translateX(0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.theme-toggle-slider i {
    font-size: 10px;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .theme-toggle {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(28px);
}

.theme-toggle-light {
    display: block;
}

.theme-toggle-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle-light {
    display: none;
}

[data-theme="dark"] .theme-toggle-dark {
    display: block;
}

/* Theme toggle improvements for light mode */
:root:not([data-theme="dark"]) .theme-toggle {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

:root:not([data-theme="dark"]) .theme-toggle-slider {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::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 var(--transition-normal);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--theia-white);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

.highlight {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header {
    margin-bottom: 60px;
}

/* Button improvements for light mode */
:root:not([data-theme="dark"]) .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(248, 181, 0, 0.3);
}

:root:not([data-theme="dark"]) .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(248, 181, 0, 0.4);
    transform: translateY(-2px);
}

:root:not([data-theme="dark"]) .btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: #ffffff;
    font-weight: 600;
}

:root:not([data-theme="dark"]) .btn-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(248, 181, 0, 0.3);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .header {
    background: rgba(10, 10, 10, 0.95);
}

/* Header improvements for light mode */
:root:not([data-theme="dark"]) .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 15px 0;
}

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

.navbar-brand .logo {
    height: 40px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nav link improvements for light mode */
:root:not([data-theme="dark"]) .nav-link {
    color: #4a4a4a;
    font-weight: 500;
}

:root:not([data-theme="dark"]) .nav-link:hover,
:root:not([data-theme="dark"]) .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(248, 181, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 198, 44, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(248, 181, 0, 0.05) 0%, transparent 50%);
}

[data-theme="dark"] .hero-background::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-overlay {
    background: rgba(10, 10, 10, 0.3);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: var(--font-weight-medium);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-slow);
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.ai-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--theia-white);
}

.hero-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 16px;
    color: var(--primary-color);
}

.hero-card p {
    color: var(--text-secondary);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-normal);
}

.hero-scroll:hover {
    color: var(--primary-color);
}

.hero-scroll i {
    display: block;
    margin-top: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Hero scroll improvements for light mode */
:root:not([data-theme="dark"]) .hero-scroll {
    color: #666666;
    font-weight: 500;
}

:root:not([data-theme="dark"]) .hero-scroll:hover {
    color: var(--primary-color);
}

/* ===== KEY MOMENT SECTION ===== */
.key-moment {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.moment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.advances-list {
    list-style: none;
    margin: 30px 0;
}

.advances-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    font-size: var(--font-size-lg);
}

.advances-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 20px;
}

.cost-impact {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.cost-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.cost-before,
.cost-after {
    text-align: center;
}

.cost-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cost-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
}

.cost-arrow {
    color: var(--primary-color);
    font-size: 24px;
}

.moment-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle {
    position: relative;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-center {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--theia-white);
}

.tech-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.node-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 10px; transform: translateY(-50%); }
.node-3 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.node-4 { top: 50%; left: 10px; transform: translateY(-50%); }
.node-5 { top: 25%; right: 25%; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Key moment improvements for light mode */
:root:not([data-theme="dark"]) .key-moment {
    background: #f8f9fa;
}

:root:not([data-theme="dark"]) .cost-impact {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .cost-value {
    color: #1a1a1a;
    font-weight: 800;
}

:root:not([data-theme="dark"]) .cost-value.highlight {
    color: var(--primary-color);
}

:root:not([data-theme="dark"]) .cost-label {
    color: #666666;
    font-weight: 600;
}

:root:not([data-theme="dark"]) .tech-circle {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(248, 181, 0, 0.2);
}

:root:not([data-theme="dark"]) .tech-center {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 15px rgba(248, 181, 0, 0.4);
}

:root:not([data-theme="dark"]) .node {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(248, 181, 0, 0.3);
}

/* ===== EXAMPLES SECTION ===== */
.examples {
    padding: var(--section-padding);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.example-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 181, 0, 0.1), transparent);
    transition: left var(--transition-slow);
}

[data-theme="dark"] .example-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
}

.example-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.example-card:hover::before {
    left: 100%;
}

.example-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--theia-white);
}

.example-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 16px;
    color: var(--primary-color);
}

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

/* ===== PRODUCTIVITY SECTION ===== */
.productivity {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.productivity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: var(--font-size-lg);
}

.benefits-list i {
    color: var(--success-color);
    margin-right: 15px;
    font-size: 18px;
}

.dashboard-preview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform var(--transition-slow);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-logo {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.dashboard-tabs {
    display: flex;
    gap: 20px;
}

.tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
}

.tab.active {
    background: var(--primary-color);
    color: var(--theia-white);
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.dashboard-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.dashboard-card h4 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dashboard-card .metric {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.dashboard-card small {
    font-size: 10px;
    color: var(--text-muted);
}

/* Productivity improvements for light mode */
:root:not([data-theme="dark"]) .productivity {
    background: #f8f9fa;
}

:root:not([data-theme="dark"]) .dashboard-preview {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

:root:not([data-theme="dark"]) .dashboard-header {
    border-bottom-color: #f0f0f0;
}

:root:not([data-theme="dark"]) .dashboard-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
}

:root:not([data-theme="dark"]) .dashboard-card h4 {
    color: #666666;
    font-weight: 600;
}

:root:not([data-theme="dark"]) .dashboard-card .metric {
    color: var(--primary-color);
    font-weight: 800;
}

:root:not([data-theme="dark"]) .dashboard-card small {
    color: #888888;
    font-weight: 500;
}

:root:not([data-theme="dark"]) .tab {
    color: #888888;
    background: transparent;
}

:root:not([data-theme="dark"]) .tab.active {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding: var(--section-padding);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.client-logo:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.client-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    transition: filter var(--transition-normal);
}

.client-logo:hover .client-img {
    filter: grayscale(0%);
}

/* Clients improvements for light mode */
:root:not([data-theme="dark"]) .client-logo {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

:root:not([data-theme="dark"]) .client-logo:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--section-padding);
    background: var(--gradient-dark);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(248, 181, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 198, 44, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .cta::before {
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
}

.cta-text p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA improvements for light mode */
:root:not([data-theme="dark"]) .cta {
    background: linear-gradient(135deg, #393e46 0%, #22252a 100%);
}

:root:not([data-theme="dark"]) .cta-text h2 {
    color: #ffffff;
    font-weight: 700;
}

:root:not([data-theme="dark"]) .cta-text p {
    color: #e0e0e0;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 15px;
    line-height: 1.6;
}

.logo-footer {
    height: 40px;
    width: auto;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

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

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--theia-white);
    transform: translateY(-2px);
}

/* Footer improvements for light mode */
:root:not([data-theme="dark"]) .footer {
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

:root:not([data-theme="dark"]) .footer-section h4 {
    color: #2c2c2c;
}

:root:not([data-theme="dark"]) .footer-tagline,
:root:not([data-theme="dark"]) .footer-links a,
:root:not([data-theme="dark"]) .contact-item {
    color: #4a4a4a;
}

:root:not([data-theme="dark"]) .footer-links a:hover,
:root:not([data-theme="dark"]) .contact-item a:hover {
    color: var(--primary-color);
}

:root:not([data-theme="dark"]) .social-link {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    color: #4a4a4a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== ENHANCED CARD STYLES FOR BETTER CONTRAST ===== */
.example-card,
.service-card,
.value-card,
.team-member,
.contact-card,
.client-logo,
.dashboard-frame,
.cost-impact,
.tech-category,
.process-step,
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

/* Light mode specific card enhancements */
:root:not([data-theme="dark"]) .example-card,
:root:not([data-theme="dark"]) .service-card,
:root:not([data-theme="dark"]) .value-card,
:root:not([data-theme="dark"]) .team-member,
:root:not([data-theme="dark"]) .contact-card,
:root:not([data-theme="dark"]) .client-logo,
:root:not([data-theme="dark"]) .dashboard-frame,
:root:not([data-theme="dark"]) .cost-impact,
:root:not([data-theme="dark"]) .tech-category,
:root:not([data-theme="dark"]) .process-step,
:root:not([data-theme="dark"]) .faq-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

:root:not([data-theme="dark"]) .example-card:hover,
:root:not([data-theme="dark"]) .service-card:hover,
:root:not([data-theme="dark"]) .value-card:hover,
:root:not([data-theme="dark"]) .team-member:hover,
:root:not([data-theme="dark"]) .contact-card:hover,
:root:not([data-theme="dark"]) .client-logo:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Enhanced text contrast for light mode */
:root:not([data-theme="dark"]) .example-card h3,
:root:not([data-theme="dark"]) .service-card h3,
:root:not([data-theme="dark"]) .value-card h3,
:root:not([data-theme="dark"]) .team-member h3,
:root:not([data-theme="dark"]) .section-title {
    color: #2c2c2c;
    font-weight: 700;
}

:root:not([data-theme="dark"]) .example-card p,
:root:not([data-theme="dark"]) .service-card p,
:root:not([data-theme="dark"]) .value-card p,
:root:not([data-theme="dark"]) .team-member p,
:root:not([data-theme="dark"]) .section-description {
    color: #4a4a4a;
    font-weight: 500;
}

/* ===== GENERAL LIGHT MODE IMPROVEMENTS ===== */
:root:not([data-theme="dark"]) .examples,
:root:not([data-theme="dark"]) .clients,
:root:not([data-theme="dark"]) .nova-era,
:root:not([data-theme="dark"]) .benefits {
    background: #ffffff;
}

:root:not([data-theme="dark"]) .key-moment,
:root:not([data-theme="dark"]) .productivity,
:root:not([data-theme="dark"]) .services-main,
:root:not([data-theme="dark"]) .contact-main {
    background: #f8f9fa;
}

:root:not([data-theme="dark"]) .section-title {
    color: #1a1a1a;
    font-weight: 700;
}

:root:not([data-theme="dark"]) .section-subtitle {
    color: #4a4a4a;
    font-weight: 500;
}

:root:not([data-theme="dark"]) .example-icon,
:root:not([data-theme="dark"]) .service-icon,
:root:not([data-theme="dark"]) .value-icon,
:root:not([data-theme="dark"]) .ai-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 15px rgba(248, 181, 0, 0.3);
}

:root:not([data-theme="dark"]) .advances-list li,
:root:not([data-theme="dark"]) .benefits-list li,
:root:not([data-theme="dark"]) .service-features li {
    color: #4a4a4a;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

:root:not([data-theme="dark"]) .advances-list li:last-child,
:root:not([data-theme="dark"]) .benefits-list li:last-child,
:root:not([data-theme="dark"]) .service-features li:last-child {
    border-bottom: none;
}

:root:not([data-theme="dark"]) .advances-list i,
:root:not([data-theme="dark"]) .benefits-list i {
    color: var(--primary-color);
    font-size: 18px;
}

:root:not([data-theme="dark"]) .highlight {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Ensure proper contrast for all text elements */
:root:not([data-theme="dark"]) h1,
:root:not([data-theme="dark"]) h2,
:root:not([data-theme="dark"]) h3,
:root:not([data-theme="dark"]) h4,
:root:not([data-theme="dark"]) h5,
:root:not([data-theme="dark"]) h6 {
    color: #2c2c2c;
}

:root:not([data-theme="dark"]) p,
:root:not([data-theme="dark"]) span,
:root:not([data-theme="dark"]) li {
    color: #4a4a4a;
}

/* ===== THEME TRANSITION ===== */
* {
    transition: background-color var(--transition-normal), 
                color var(--transition-normal), 
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 36px;
        --font-size-2xl: 28px;
        --font-size-xl: 20px;
        --font-size-lg: 16px;
        --section-padding: 60px 0;
        --card-padding: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .moment-content,
    .productivity-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cost-comparison {
        flex-direction: column;
        gap: 20px;
    }
    
    .cost-arrow {
        transform: rotate(90deg);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .theme-toggle {
        margin-left: 15px;
    }
    
    :root:not([data-theme="dark"]) .example-card,
    :root:not([data-theme="dark"]) .service-card,
    :root:not([data-theme="dark"]) .value-card {
        margin: 0 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    :root:not([data-theme="dark"]) .example-card,
    :root:not([data-theme="dark"]) .service-card,
    :root:not([data-theme="dark"]) .value-card {
        margin: 0 10px;
        padding: 25px 20px;
    }
}

/* ===== ANIMATIONS ===== */
.animate {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

:root:not([data-theme="dark"]) *:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

.data-source {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    opacity: 0.3;
}

.data-source small {
    color: var(--text-muted);
    font-size: 10px;
    font-style: italic;
    opacity: 0.6;
    letter-spacing: 0.2px;
}

:root:not([data-theme="dark"]) .data-source {
    border-top-color: rgba(0, 0, 0, 0.1);
}

:root:not([data-theme="dark"]) .data-source small {
    color: #888888;
    font-weight: 500;
}

/* Dashboard Image Container */
.dashboard-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-frame {
    position: relative;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    overflow: hidden;
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.dashboard-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(248, 181, 0, 0.2);
}

[data-theme="dark"] .dashboard-frame:hover {
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
}

.dashboard-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    transition: all var(--transition-normal);
    filter: brightness(0.95) contrast(1.05);
}

.dashboard-frame:hover .dashboard-img {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.02);
}

.dashboard-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(248, 181, 0, 0.05) 0%, transparent 30%, transparent 70%, rgba(248, 181, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

[data-theme="dark"] .dashboard-overlay {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 30%, transparent 70%, rgba(0, 212, 255, 0.05) 100%);
}

.dashboard-frame:hover .dashboard-overlay {
    opacity: 1;
}

.dashboard-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(248, 181, 0, 0.1) 0%, rgba(248, 181, 0, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
}

[data-theme="dark"] .dashboard-glow {
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 40%, transparent 70%);
}

.dashboard-frame:hover + .dashboard-glow {
    opacity: 1;
}

.dashboard-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 60%;
    bottom: 60%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    border-radius: var(--radius-lg) 0 var(--radius-xl) 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.dashboard-frame:hover::before {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 480px) {
    .dashboard-frame {
        padding: 15px;
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    
    .dashboard-img {
        max-width: 100%;
    }
}

/* ===== CORREÇÕES CSS PARA LOGOS ===== */

/* Garantir que os logos sempre tenham dimensões fixas */
.navbar-brand .logo {
    width: auto;
    height: 40px;
    max-height: 40px;
    max-width: 200px; /* Limitar largura máxima */
    transition: opacity 0.3s ease;
    display: block;
}

.footer-logo .logo-footer {
    width: auto;
    height: 40px;
    max-height: 40px;
    max-width: 200px; /* Limitar largura máxima */
    transition: opacity 0.3s ease;
    display: block;
}

.main-logo {
    max-width: 500px;
    height: auto;
    width: 100%;
    transition: opacity 0.3s ease;
    display: block;
}

/* Evitar logos quebrados */
.logo, .logo-footer, .main-logo {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Estados de erro */
.logo[src=""], .logo-footer[src=""], .main-logo[src=""] {
    opacity: 0.5;
    background-color: #f0f0f0;
}

/* Loading states */
.logo.loading, .logo-footer.loading, .main-logo.loading {
    opacity: 0.7;
    filter: blur(1px);
}

/* Garantir que containers não quebrem */
.navbar-brand {
    display: flex;
    align-items: center;
    min-width: 150px; /* Tamanho mínimo */
}

.footer-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    min-height: 60px; /* Altura mínima */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand .logo {
        height: 35px;
        max-height: 35px;
        max-width: 180px;
    }
    
    .footer-logo .logo-footer {
        height: 35px;
        max-height: 35px;
        max-width: 180px;
    }
    
    .main-logo {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .navbar-brand .logo {
        height: 30px;
        max-height: 30px;
        max-width: 150px;
    }
    
    .footer-logo .logo-footer {
        height: 30px;
        max-height: 30px;
        max-width: 150px;
    }
    
    .main-logo {
        max-width: 250px;
    }
}

/* ===== FALLBACK PARA LOGOS QUEBRADOS ===== */

/* Se a imagem não carregar, mostrar placeholder */
.logo::after,
.logo-footer::after {
    content: "THEIA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
}

.logo[src=""]::after,
.logo-footer[src=""]::after,
.logo:not([src])::after,
.logo-footer:not([src])::after {
    opacity: 1;
}

/* Container relative para o placeholder */
.navbar-brand {
    position: relative;
}

.footer-logo {
    position: relative;
}

/* ===== MELHORIAS DE PERFORMANCE ===== */

/* Otimizações de rendering */
.logo, .logo-footer, .main-logo {
    will-change: auto;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Evitar layout shift */
.navbar-brand a {
    display: inline-block;
    width: auto;
    min-width: 120px;
}

.footer-logo {
    min-width: 120px;
}

/* ===== DEBUGGING (apenas desenvolvimento) ===== */

/* Mostrar bordas em desenvolvimento para debug */
body[data-debug="true"] .logo,
body[data-debug="true"] .logo-footer,
body[data-debug="true"] .main-logo {
    border: 2px dashed red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

body[data-debug="true"] .navbar-brand,
body[data-debug="true"] .footer-logo {
    border: 1px solid blue !important;
    background: rgba(0, 0, 255, 0.05) !important;
}

/* Hover effects mantidos */
.logo:hover, .logo-footer:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Focus states para acessibilidade */
.navbar-brand a:focus .logo,
.footer-logo:focus .logo-footer {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .logo, .logo-footer {
        filter: grayscale(100%);
        max-height: 30px;
    }
}

/* ===== TRANSIÇÕES SUAVES PARA TROCA DE TEMA ===== */

.logo, .logo-footer, .main-logo {
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* Evitar flash/flicker durante mudança de tema */
.logo img, .logo-footer img, .main-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Prevenção de layout shift durante carregamento */
.navbar-brand .logo {
    object-fit: contain;
}

.footer-logo .logo-footer {
    object-fit: contain;
}

.main-logo {
    object-fit: contain;
}

/* Estados de carregamento para evitar logos quebrados */
.logo, .logo-footer, .main-logo {
    background-color: transparent;
}

/* Garantir que logos não quebrem o layout */
.navbar-brand {
    flex-shrink: 0;
}

.footer-logo {
    flex-shrink: 0;
}