:root {
/* Colors */
--color-background: rgba(252, 252, 249, 1);
--color-surface: rgba(255, 255, 253, 1);
--color-text: rgba(19, 52, 59, 1);
--color-text-secondary: rgba(98, 108, 113, 1);
--color-primary: rgba(33, 128, 141, 1);
--color-primary-hover: rgba(29, 116, 128, 1);
--color-primary-active: rgba(26, 104, 115, 1);
--color-secondary: rgba(94, 82, 64, 0.12);
--color-secondary-hover: rgba(94, 82, 64, 0.2);
--color-secondary-active: rgba(94, 82, 64, 0.25);
--color-border: rgba(94, 82, 64, 0.2);
--color-btn-primary-text: rgba(252, 252, 249, 1);
--color-card-border: rgba(94, 82, 64, 0.12);
--color-card-border-inner: rgba(94, 82, 64, 0.12);
--color-error: rgba(192, 21, 47, 1);
--color-success: rgba(33, 128, 141, 1);
--color-warning: rgba(168, 75, 47, 1);
--color-info: rgba(98, 108, 113, 1);
--color-focus-ring: rgba(33, 128, 141, 0.4);
--color-select-caret: rgba(19, 52, 59, 0.8);

/* Footer-specific colors for light and dark mode */
--footer-bg-light: rgba(19, 52, 59, 1);
--footer-text-light: rgba(255, 255, 255, 1);
--footer-text-muted-light: rgba(255, 255, 255, 0.8);
--footer-border-light: rgba(255, 255, 255, 0.1);
--footer-bg-dark: #1a1a1a;
--footer-text-dark: #f0f0f0;
--footer-text-muted-dark: rgba(240, 240, 240, 0.8);
--footer-border-dark: rgba(255, 255, 255, 0.2);

/* Common style patterns */
--focus-ring: 0 0 0 3px var(--color-focus-ring);
--focus-outline: 2px solid var(--color-primary);
--status-bg-opacity: 0.15;
--status-border-opacity: 0.25;
--select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
--select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

/* RGB versions for opacity control */
--color-success-rgb: 33, 128, 141;
--color-error-rgb: 192, 21, 47;
--color-warning-rgb: 168, 75, 47;
--color-info-rgb: 98, 108, 113;

/* Typography */
--font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
Monaco, Consolas, monospace;
--font-size-xs: 11px;
--font-size-sm: 12px;
--font-size-base: 14px;
--font-size-md: 14px;
--font-size-lg: 16px;
--font-size-xl: 18px;
--font-size-2xl: 20px;
--font-size-3xl: 24px;
--font-size-4xl: 30px;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 550;
--font-weight-bold: 600;
--line-height-tight: 1.2;
--line-height-normal: 1.5;
--letter-spacing-tight: -0.01em;

/* Spacing */
--space-0: 0;
--space-1: 1px;
--space-2: 2px;
--space-4: 4px;
--space-6: 6px;
--space-8: 8px;
--space-10: 10px;
--space-12: 12px;
--space-16: 16px;
--space-20: 20px;
--space-24: 24px;
--space-32: 32px;

/* Border Radius */
--radius-sm: 6px;
--radius-base: 8px;
--radius-md: 10px;
--radius-lg: 12px;
--radius-full: 9999px;

/* Shadows */
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
0 2px 4px -1px rgba(0, 0, 0, 0.02);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
0 4px 6px -2px rgba(0, 0, 0, 0.02);
--shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
inset 0 -1px 0 rgba(0, 0, 0, 0.03);

/* Animation */
--duration-fast: 150ms;
--duration-normal: 250ms;
--ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

/* Layout */
--container-sm: 640px;
--container-md: 768px;
--container-lg: 1024px;
--container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
:root {
--color-background: rgba(31, 33, 33, 1);
--color-surface: rgba(38, 40, 40, 1);
--color-text: rgba(245, 245, 245, 1);
--color-text-secondary: rgba(167, 169, 169, 0.7);
--color-primary: rgba(50, 184, 198, 1);
--color-primary-hover: rgba(45, 166, 178, 1);
--color-primary-active: rgba(41, 150, 161, 1);
--color-secondary: rgba(119, 124, 124, 0.15);
--color-secondary-hover: rgba(119, 124, 124, 0.25);
--color-secondary-active: rgba(119, 124, 124, 0.3);
--color-border: rgba(119, 124, 124, 0.3);
--color-error: rgba(255, 84, 89, 1);
--color-success: rgba(50, 184, 198, 1);
--color-warning: rgba(230, 129, 97, 1);
--color-info: rgba(167, 169, 169, 1);
--color-focus-ring: rgba(50, 184, 198, 0.4);
--color-btn-primary-text: rgba(19, 52, 59, 1);
--color-card-border: rgba(119, 124, 124, 0.2);
--color-card-border-inner: rgba(119, 124, 124, 0.15);
--shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 -1px 0 rgba(0, 0, 0, 0.15);
--button-border-secondary: rgba(119, 124, 124, 0.2);
--color-border-secondary: rgba(119, 124, 124, 0.2);
--color-select-caret: rgba(245, 245, 245, 0.8);

/* RGB versions for dark mode */
--color-success-rgb: 50, 184, 198;
--color-error-rgb: 255, 84, 89;
--color-warning-rgb: 230, 129, 97;
--color-info-rgb: 167, 169, 169;
}
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
--color-background: rgba(31, 33, 33, 1);
--color-surface: rgba(38, 40, 40, 1);
--color-text: rgba(245, 245, 245, 1);
--color-text-secondary: rgba(167, 169, 169, 0.7);
--color-primary: rgba(50, 184, 198, 1);
--color-primary-hover: rgba(45, 166, 178, 1);
--color-primary-active: rgba(41, 150, 161, 1);
--color-secondary: rgba(119, 124, 124, 0.15);
--color-secondary-hover: rgba(119, 124, 124, 0.25);
--color-secondary-active: rgba(119, 124, 124, 0.3);
--color-border: rgba(119, 124, 124, 0.3);
--color-error: rgba(255, 84, 89, 1);
--color-success: rgba(50, 184, 198, 1);
--color-warning: rgba(230, 129, 97, 1);
--color-info: rgba(167, 169, 169, 1);
--color-focus-ring: rgba(50, 184, 198, 0.4);
--color-btn-primary-text: rgba(19, 52, 59, 1);
--color-card-border: rgba(119, 124, 124, 0.15);
--color-card-border-inner: rgba(119, 124, 124, 0.15);
--shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 -1px 0 rgba(0, 0, 0, 0.15);
--color-border-secondary: rgba(119, 124, 124, 0.2);
--color-select-caret: rgba(245, 245, 245, 0.8);

/* RGB versions for dark mode */
--color-success-rgb: 50, 184, 198;
--color-error-rgb: 255, 84, 89;
--color-warning-rgb: 230, 129, 97;
--color-info-rgb: 167, 169, 169;
}

[data-color-scheme="light"] {
--color-background: rgba(252, 252, 249, 1);
--color-surface: rgba(255, 255, 253, 1);
--color-text: rgba(19, 52, 59, 1);
--color-text-secondary: rgba(98, 108, 113, 1);
--color-primary: rgba(33, 128, 141, 1);
--color-primary-hover: rgba(29, 116, 128, 1);
--color-primary-active: rgba(26, 104, 115, 1);
--color-secondary: rgba(94, 82, 64, 0.12);
--color-secondary-hover: rgba(94, 82, 64, 0.2);
--color-secondary-active: rgba(94, 82, 64, 0.25);
--color-border: rgba(94, 82, 64, 0.2);
--color-btn-primary-text: rgba(252, 252, 249, 1);
--color-card-border: rgba(94, 82, 64, 0.12);
--color-card-border-inner: rgba(94, 82, 64, 0.12);
--color-error: rgba(192, 21, 47, 1);
--color-success: rgba(33, 128, 141, 1);
--color-warning: rgba(168, 75, 47, 1);
--color-info: rgba(98, 108, 113, 1);
--color-focus-ring: rgba(33, 128, 141, 0.4);

/* RGB versions for light mode */
--color-success-rgb: 33, 128, 141;
--color-error-rgb: 192, 21, 47;
--color-warning-rgb: 168, 75, 47;
--color-info-rgb: 98, 108, 113;
}

/* Base styles */
html {
font-size: var(--font-size-base);
font-family: var(--font-family-base);
line-height: var(--line-height-normal);
color: var(--color-text);
background-color: var(--color-background);
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
}

body {
margin: 0;
padding: 0;
}

*,
*::before,
*::after {
box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-weight: var(--font-weight-semibold);
line-height: var(--line-height-tight);
color: var(--color-text);
letter-spacing: var(--letter-spacing-tight);
}

h1 {
font-size: var(--font-size-4xl);
}

h2 {
font-size: var(--font-size-3xl);
}

h3 {
font-size: var(--font-size-2xl);
}

h4 {
font-size: var(--font-size-xl);
}

h5 {
font-size: var(--font-size-lg);
}

h6 {
font-size: var(--font-size-md);
}

p {
margin: 0 0 var(--space-16) 0;
}

a {
color: var(--color-primary);
text-decoration: none;
transition: color var(--duration-fast) var(--ease-standard);
}

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

code,
pre {
font-family: var(--font-family-mono);
font-size: calc(var(--font-size-base) * 0.95);
background-color: var(--color-secondary);
border-radius: var(--radius-sm);
}

code {
padding: var(--space-1) var(--space-4);
}

pre {
padding: var(--space-16);
margin: var(--space-16) 0;
overflow: auto;
border: 1px solid var(--color-border);
}

pre code {
background: none;
padding: 0;
}

/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: var(--space-8) var(--space-16);
border-radius: var(--radius-base);
font-size: var(--font-size-base);
font-weight: 500;
line-height: 1.5;
cursor: pointer;
transition: all var(--duration-normal) var(--ease-standard);
border: none;
text-decoration: none;
position: relative;
}

.btn:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}

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

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

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

.btn--secondary {
background: var(--color-secondary);
color: var(--color-text);
}

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

.btn--secondary:active {
background: var(--color-secondary-active);
}

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

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

.btn--sm {
padding: var(--space-4) var(--space-12);
font-size: var(--font-size-sm);
border-radius: var(--radius-sm);
}

.btn--lg {
padding: var(--space-10) var(--space-20);
font-size: var(--font-size-lg);
border-radius: var(--radius-md);
}

.btn--full-width {
width: 100%;
}

.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}

/* Form elements */
.form-control {
display: block;
width: 100%;
padding: var(--space-8) var(--space-12);
font-size: var(--font-size-md);
line-height: 1.5;
color: var(--color-text);
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-base);
transition: border-color var(--duration-fast) var(--ease-standard),
box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
font-family: var(--font-family-base);
font-size: var(--font-size-base);
}

select.form-control {
padding: var(--space-8) var(--space-12);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: var(--select-caret-light);
background-repeat: no-repeat;
background-position: right var(--space-12) center;
background-size: 16px;
padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
select.form-control {
background-image: var(--select-caret-dark);
}
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
background-image: var(--select-caret-light);
}

.form-control:focus {
border-color: var(--color-primary);
outline: var(--focus-outline);
}

.form-label {
display: block;
margin-bottom: var(--space-8);
font-weight: var(--font-weight-medium);
font-size: var(--font-size-sm);
}

.form-group {
margin-bottom: var(--space-16);
}

/* Card component */
.card {
background-color: var(--color-surface);
border-radius: var(--radius-lg);
border: 1px solid var(--color-card-border);
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
box-shadow: var(--shadow-md);
}

.card__body {
padding: var(--space-16);
}

.card__header,
.card__footer {
padding: var(--space-16);
border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
display: inline-flex;
align-items: center;
padding: var(--space-6) var(--space-12);
border-radius: var(--radius-full);
font-weight: var(--font-weight-medium);
font-size: var(--font-size-sm);
}

.status--success {
background-color: rgba(
var(--color-success-rgb, 33, 128, 141),
var(--status-bg-opacity)
);
color: var(--color-success);
border: 1px solid
rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
background-color: rgba(
var(--color-error-rgb, 192, 21, 47),
var(--status-bg-opacity)
);
color: var(--color-error);
border: 1px solid
rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
background-color: rgba(
var(--color-warning-rgb, 168, 75, 47),
var(--status-bg-opacity)
);
color: var(--color-warning);
border: 1px solid
rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
background-color: rgba(
var(--color-info-rgb, 98, 108, 113),
var(--status-bg-opacity)
);
color: var(--color-info);
border: 1px solid
rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
width: 100%;
margin-right: auto;
margin-left: auto;
padding-right: var(--space-16);
padding-left: var(--space-16);
}

@media (min-width: 640px) {
.container {
max-width: var(--container-sm);
}
}

@media (min-width: 768px) {
.container {
max-width: var(--container-md);
}
}

@media (min-width: 1024px) {
.container {
max-width: var(--container-lg);
}
}

@media (min-width: 1280px) {
.container {
max-width: var(--container-xl);
}
}

/* Utility classes */
.flex {
display: flex;
}

.flex-col {
flex-direction: column;
}

.items-center {
align-items: center;
}

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

.justify-between {
justify-content: space-between;
}

.gap-4 {
gap: var(--space-4);
}

.gap-8 {
gap: var(--space-8);
}

.gap-16 {
gap: var(--space-16);
}

.m-0 {
margin: 0;
}

.mt-8 {
margin-top: var(--space-8);
}

.mb-8 {
margin-bottom: var(--space-8);
}

.mx-8 {
margin-left: var(--space-8);
margin-right: var(--space-8);
}

.my-8 {
margin-top: var(--space-8);
margin-bottom: var(--space-8);
}

.p-0 {
padding: 0;
}

.py-8 {
padding-top: var(--space-8);
padding-bottom: var(--space-8);
}

.px-8 {
padding-left: var(--space-8);
padding-right: var(--space-8);
}

.py-16 {
padding-top: var(--space-16);
padding-bottom: var(--space-16);
}

.px-16 {
padding-left: var(--space-16);
padding-right: var(--space-16);
}

.block {
display: block;
}

.hidden {
display: none;
}

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

:focus-visible {
outline: var(--focus-outline);
outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
border: 1px solid var(--color-border-secondary);
}

@font-face {
font-family: 'FKGroteskNeue';
src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
format('woff2');
}

/* Material-UI Inspired Design System for Blueguy Media */
/* Override design system colors with brand colors */
:root {
/* Brand Colors - Pantone 2935 C and 630 C */
--color-primary: #0057B8;
--color-primary-hover: #004A9F;
--color-primary-active: #003D86;
--color-secondary: #0099CC;
--color-secondary-hover: #0088B3;
--color-secondary-active: #00779A;
--color-background: #FFFFFF;
--color-surface: #FFFFFF;
--color-surface-variant: #F8F9FA;
--color-text: #333333;
--color-text-secondary: #666666;
--color-text-light: #999999;
--color-border: rgba(0, 0, 0, 0.12);
--color-shadow: rgba(0, 0, 0, 0.1);
--color-shadow-hover: rgba(0, 0, 0, 0.15);
--color-accent: #FF6B35;
--color-success: #28A745;
--color-warning: #FFC107;
--color-error: #DC3545;

/* Material Design Elevations */
--elevation-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
--elevation-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
--elevation-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
--elevation-4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
--elevation-5: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);

/* Animation */
--transition-duration: 0.3s;
--transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
--ripple-duration: 0.6s;

/* Layout */
--header-height: 70px;
--section-padding: 80px 0;
--container-padding: 0 24px;

/* Typography */
--font-family-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--hero-title-size: clamp(2.5rem, 5vw, 4rem);
--section-title-size: clamp(2rem, 4vw, 3rem);
}

/* Dark Mode Colors */
[data-theme="dark"] {
--color-background: #121212;
--color-surface: #1E1E1E;
--color-surface-variant: #2D2D2D;
--color-text: #FFFFFF;
--color-text-secondary: #B3B3B3;
--color-text-light: #808080;
--color-border: rgba(255, 255, 255, 0.12);
--color-shadow: rgba(0, 0, 0, 0.3);
--color-shadow-hover: rgba(0, 0, 0, 0.4);
--color-primary: #4FC3F7;
--color-primary-hover: #29B6F6;
--color-primary-active: #0288D1;
--color-secondary: #81C784;
--color-secondary-hover: #66BB6A;
--color-secondary-active: #4CAF50;
}

/* Base Styles */
* {
box-sizing: border-box;
}

body {
font-family: var(--font-family-primary);
line-height: 1.6;
color: var(--color-text);
background-color: var(--color-background);
transition: background-color var(--transition-duration) var(--transition-timing),
color var(--transition-duration) var(--transition-timing);
margin: 0;
padding: 0;
}

/* Override design system button styles with Material Design */
.btn {
font-family: var(--font-family-primary);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.0892857143em;
position: relative;
overflow: hidden;
border-radius: 4px;
min-height: 36px;
padding: 8px 24px;
transition: all var(--transition-duration) var(--transition-timing);
cursor: pointer;
border: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
text-decoration: none;
}

.btn--primary {
background-color: var(--color-primary);
color: white;
box-shadow: var(--elevation-2);
}

.btn--primary:hover {
background-color: var(--color-primary-hover);
box-shadow: var(--elevation-3);
}

.btn--primary:active {
background-color: var(--color-primary-active);
box-shadow: var(--elevation-1);
}

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

.btn--outline:hover {
background-color: rgba(0, 87, 184, 0.04);
border-color: var(--color-primary-hover);
}

.btn--secondary {
background-color: var(--color-surface-variant);
color: var(--color-text);
box-shadow: var(--elevation-1);
}

.btn--secondary:hover {
background-color: var(--color-secondary);
box-shadow: var(--elevation-2);
}

.btn--lg {
min-height: 48px;
padding: 12px 32px;
font-size: 1rem;
}

.btn--sm {
min-height: 32px;
padding: 6px 16px;
font-size: 0.875rem;
}

/* Ripple Effect for Buttons */
.fab-ripple {
position: relative;
overflow: hidden;
}

.fab-ripple::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
transform: translate(-50%, -50%);
transition: width var(--ripple-duration) var(--transition-timing),
height var(--ripple-duration) var(--transition-timing);
}

.fab-ripple:active::before {
width: 300px;
height: 300px;
}

/* Header */
.header {
background-color: var(--color-surface);
box-shadow: var(--elevation-1);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
height: var(--header-height);
transition: all var(--transition-duration) var(--transition-timing);
}

.nav {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--header-height);
padding: var(--container-padding);
max-width: 1200px;
margin: 0 auto;
}

.nav__brand {
display: flex;
align-items: center;
}

.nav__logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--color-primary);
margin: 0;
}

.nav__controls {
display: flex;
align-items: center;
gap: 12px;
}

.nav__menu {
display: flex;
list-style: none;
margin: 0;
padding: 0;
gap: 32px;
}

.nav__link {
color: var(--color-text);
text-decoration: none;
font-weight: 500;
padding: 8px 16px;
border-radius: 4px;
transition: all var(--transition-duration) var(--transition-timing);
position: relative;
}

.nav__link:hover {
background-color: var(--color-surface-variant);
color: var(--color-primary);
}

.nav__link::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background-color: var(--color-primary);
transition: all var(--transition-duration) var(--transition-timing);
transform: translateX(-50%);
}

.nav__link:hover::after {
width: 100%;
}

/* Mobile Navigation */
.nav__toggle {
display: none;
flex-direction: column;
background: none;
border: none;
cursor: pointer;
padding: 8px;
}

.hamburger {
width: 24px;
height: 2px;
background-color: var(--color-text);
transition: all var(--transition-duration) var(--transition-timing);
position: relative;
}

.hamburger::before,
.hamburger::after {
content: '';
position: absolute;
width: 24px;
height: 2px;
background-color: var(--color-text);
transition: all var(--transition-duration) var(--transition-timing);
}

.hamburger::before {
top: -8px;
}

.hamburger::after {
top: 8px;
}

/* Language and Theme Toggles */
.language-toggle,
.theme-toggle {
display: flex;
align-items: center;
}

/* Hero Section */
.hero {
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
color: white;
padding: calc(var(--header-height) + 80px) 0 80px;
min-height: 100vh;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,');
opacity: 0.3;
}

.hero__content {
position: relative;
z-index: 1;
max-width: 800px;
text-align: center;
margin: 0 auto;
padding: var(--container-padding);
}

.hero__title {
font-size: var(--hero-title-size);
font-weight: 700;
margin-bottom: 24px;
line-height: 1.2;
animation: slideInUp 0.8s var(--transition-timing);
}

.hero__subtitle {
font-size: 1.25rem;
margin-bottom: 40px;
opacity: 0.9;
line-height: 1.6;
animation: slideInUp 0.8s var(--transition-timing) 0.2s both;
}

.hero__actions {
display: flex;
gap: 24px;
justify-content: center;
flex-wrap: wrap;
animation: slideInUp 0.8s var(--transition-timing) 0.4s both;
}

/* Card Component */
.card {
background-color: var(--color-surface);
border-radius: 8px;
box-shadow: var(--elevation-1);
transition: all var(--transition-duration) var(--transition-timing);
overflow: hidden;
border: 1px solid var(--color-border);
}

.card:hover {
box-shadow: var(--elevation-3);
transform: translateY(-2px);
}

.card__body {
padding: 24px;
}

/* Section Styles */
section {
padding: var(--section-padding);
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: var(--container-padding);
}

.section-header {
text-align: center;
margin-bottom: 64px;
}

.section-header h2 {
font-size: var(--section-title-size);
font-weight: 700;
color: var(--color-text);
margin-bottom: 16px;
}

.section-subtitle {
font-size: 1.25rem;
color: var(--color-text-secondary);
max-width: 600px;
margin: 0 auto;
}

/* Services Overview */
.services-overview {
background-color: var(--color-surface-variant);
}

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

.service-card {
text-align: center;
height: 100%;
}

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

.service-card h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 16px;
color: var(--color-text);
}

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

/* About Section */
.about__content {
display: grid;
gap: 48px;
}

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

.about__mission h3 {
font-size: 2rem;
font-weight: 600;
color: var(--color-primary);
margin-bottom: 24px;
text-align: center;
}

.about__mission p {
font-size: 1.125rem;
line-height: 1.8;
color: var(--color-text);
}

.strengths-grid h3 {
font-size: 2rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 32px;
text-align: center;
}

.strengths-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}

.strength-item .card__body {
display: flex;
align-items: center;
gap: 16px;
padding: 20px;
}

.strength-item .material-icons {
color: var(--color-primary);
font-size: 28px;
flex-shrink: 0;
}

.strength-item span:last-child {
font-weight: 500;
color: var(--color-text);
}

/* Services Section */
.services {
background-color: var(--color-surface-variant);
}

.services-detailed {
display: grid;
gap: 32px;
margin-bottom: 64px;
}

.service-detailed {
display: grid;
grid-template-columns: auto 1fr;
gap: 24px;
align-items: start;
}

.service-detailed .card__body {
display: flex;
gap: 24px;
align-items: flex-start;
}

.service-detailed .service-icon {
margin: 0;
flex-shrink: 0;
}

.service-detailed h3 {
font-size: 1.5rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 16px;
}

.service-detailed p {
color: var(--color-text-secondary);
line-height: 1.7;
}

/* Chart Container */
.chart-container {
margin-top: 48px;
text-align: center;
}

.chart-container h3 {
font-size: 1.75rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 24px;
}

.chart-image {
max-width: 100%;
height: auto;
border-radius: 8px;
}

/* Projects Section */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 32px;
margin-bottom: 64px;
}

.project-card h3 {
font-size: 1.25rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 12px;
line-height: 1.4;
}

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

/* Contact Section */
.contact {
background-color: var(--color-surface-variant);
}

.contact-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 48px;
margin-bottom: 48px;
}

.contact-info h3 {
font-size: 1.5rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 24px;
}

.contact-item {
display: flex;
gap: 16px;
margin-bottom: 24px;
align-items: flex-start;
}

.contact-item .material-icons {
color: var(--color-primary);
font-size: 24px;
margin-top: 2px;
}

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

/* Contact Form */
.contact-form h3 {
font-size: 1.5rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 24px;
}

.form-group {
margin-bottom: 24px;
}

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

.form-control {
width: 100%;
padding: 12px 16px;
border: 2px solid var(--color-border);
border-radius: 4px;
font-family: var(--font-family-primary);
font-size: 1rem;
background-color: var(--color-surface);
color: var(--color-text);
transition: all var(--transition-duration) var(--transition-timing);
}

.form-control:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.1);
}

.error-message {
color: var(--color-error);
font-size: 0.875rem;
margin-top: 4px;
display: none;
}

.form-status {
margin-top: 16px;
padding: 12px;
border-radius: 4px;
display: none;
}

.form-status.success {
background-color: rgba(40, 167, 69, 0.1);
border: 1px solid var(--color-success);
color: var(--color-success);
}

.form-status.error {
background-color: rgba(220, 53, 69, 0.1);
border: 1px solid var(--color-error);
color: var(--color-error);
}

/* Map Container */
.map-container h3 {
font-size: 1.5rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 24px;
}

.map-placeholder {
background-color: var(--color-surface-variant);
border: 2px dashed var(--color-border);
border-radius: 8px;
padding: 48px 24px;
text-align: center;
color: var(--color-text-secondary);
}

.map-info {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 16px;
font-weight: 500;
color: var(--color-primary);
}

/* Footer - FIXED STYLES FOR DARK MODE */
.footer {
background-color: var(--footer-bg-light);
color: var(--footer-text-light);
padding: 48px 0 24px;
transition: all var(--transition-duration) var(--transition-timing);
}

.footer__content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 48px;
margin-bottom: 32px;
}

.footer__brand h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 16px;
color: var(--color-primary);
}

.footer__brand p {
color: var(--footer-text-muted-light);
line-height: 1.6;
}

.footer__contact h4 {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 16px;
color: var(--footer-text-light);
}

.footer__contact p {
color: var(--footer-text-muted-light);
margin-bottom: 8px;
}

.footer__bottom {
border-top: 1px solid var(--footer-border-light);
padding-top: 24px;
text-align: center;
color: var(--footer-text-muted-light);
}

/* Dark mode footer overrides */
@media (prefers-color-scheme: dark) {
.footer {
background-color: var(--footer-bg-dark) !important;
color: var(--footer-text-dark) !important;
}

.footer__brand p {
color: var(--footer-text-muted-dark) !important;
}

.footer__contact h4 {
color: var(--footer-text-dark) !important;
}

.footer__contact p {
color: var(--footer-text-muted-dark) !important;
}

.footer__bottom {
border-top: 1px solid var(--footer-border-dark) !important;
color: var(--footer-text-muted-dark) !important;
}
}

/* Data attribute dark mode overrides */
[data-theme="dark"] .footer {
background-color: var(--footer-bg-dark) !important;
color: var(--footer-text-dark) !important;
}

[data-theme="dark"] .footer__brand p {
color: var(--footer-text-muted-dark) !important;
}

[data-theme="dark"] .footer__contact h4 {
color: var(--footer-text-dark) !important;
}

[data-theme="dark"] .footer__contact p {
color: var(--footer-text-muted-dark) !important;
}

[data-theme="dark"] .footer__bottom {
border-top: 1px solid var(--footer-border-dark) !important;
color: var(--footer-text-muted-dark) !important;
}

[data-color-scheme="dark"] .footer {
background-color: var(--footer-bg-dark) !important;
color: var(--footer-text-dark) !important;
}

[data-color-scheme="dark"] .footer__brand p {
color: var(--footer-text-muted-dark) !important;
}

[data-color-scheme="dark"] .footer__contact h4 {
color: var(--footer-text-dark) !important;
}

[data-color-scheme="dark"] .footer__contact p {
color: var(--footer-text-muted-dark) !important;
}

[data-color-scheme="dark"] .footer__bottom {
border-top: 1px solid var(--footer-border-dark) !important;
color: var(--footer-text-muted-dark) !important;
}

/* Class-based dark mode overrides */
.dark-mode .footer {
background-color: var(--footer-bg-dark) !important;
color: var(--footer-text-dark) !important;
}

.dark-mode .footer__brand p {
color: var(--footer-text-muted-dark) !important;
}

.dark-mode .footer__contact h4 {
color: var(--footer-text-dark) !important;
}

.dark-mode .footer__contact p {
color: var(--footer-text-muted-dark) !important;
}

.dark-mode .footer__bottom {
border-top: 1px solid var(--footer-border-dark) !important;
color: var(--footer-text-muted-dark) !important;
}

/* Floating Action Button */
.fab {
position: fixed;
bottom: 24px;
right: 24px;
width: 56px;
height: 56px;
border-radius: 50%;
background-color: var(--color-primary);
color: white;
border: none;
box-shadow: var(--elevation-3);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
opacity: 0;
transform: scale(0);
transition: all var(--transition-duration) var(--transition-timing);
z-index: 1000;
}

.fab.visible {
opacity: 1;
transform: scale(1);
}

.fab:hover {
background-color: var(--color-primary-hover);
box-shadow: var(--elevation-4);
transform: scale(1.1);
}

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

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

/* AOS (Animate On Scroll) Styles */
[data-aos] {
opacity: 0;
transition: all 0.6s var(--transition-timing);
}

[data-aos].aos-animate {
opacity: 1;
}

[data-aos="fade-up"] {
transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
transform: translateY(0);
}

[data-aos="fade-right"] {
transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
transform: translateX(0);
}

[data-aos="fade-left"] {
transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
transform: translateX(0);
}

[data-aos="zoom-in"] {
transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
transform: scale(1);
}

[data-aos="slide-up"] {
transform: translateY(20px);
}

[data-aos="slide-up"].aos-animate {
transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
.nav__menu {
position: fixed;
top: var(--header-height);
left: 0;
right: 0;
background-color: var(--color-surface);
flex-direction: column;
padding: 24px;
box-shadow: var(--elevation-2);
transform: translateY(-100%);
opacity: 0;
visibility: hidden;
transition: all var(--transition-duration) var(--transition-timing);
}

.nav__menu.active {
transform: translateY(0);
opacity: 1;
visibility: visible;
}

.nav__toggle {
display: flex;
}

.nav__toggle.active .hamburger {
background-color: transparent;
}

.nav__toggle.active .hamburger::before {
transform: rotate(45deg);
top: 0;
}

.nav__toggle.active .hamburger::after {
transform: rotate(-45deg);
top: 0;
}

.nav__controls {
order: -1;
margin-right: auto;
}

.hero__actions {
flex-direction: column;
align-items: center;
}

.hero__actions .btn {
width: 100%;
max-width: 300px;
}

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

.service-detailed .card__body {
flex-direction: column;
text-align: center;
}

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

.footer__content {
grid-template-columns: 1fr;
text-align: center;
}

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

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

@media (max-width: 480px) {
:root {
--section-padding: 48px 0;
--container-padding: 0 16px;
}

.hero {
padding: calc(var(--header-height) + 48px) 0 48px;
min-height: 80vh;
}

.hero__title {
font-size: 2rem;
}

.hero__subtitle {
font-size: 1rem;
}

.section-header h2 {
font-size: 2rem;
}

.section-subtitle {
font-size: 1rem;
}

.card__body {
padding: 16px;
}

.fab {
bottom: 16px;
right: 16px;
width: 48px;
height: 48px;
}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
.btn--primary {
border: 2px solid currentColor;
}

.card {
border: 2px solid var(--color-border);
}

.nav__link::after {
height: 3px;
}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}

.fab-ripple::before {
transition: none;
}
}

/* Print Styles */
@media print {
.header,
.fab,
.nav__toggle {
display: none;
}

.hero {
padding: 24px 0;
background: none;
color: var(--color-text);
}

section {
padding: 24px 0;
}

.card {
box-shadow: none;
border: 1px solid var(--color-border);
}
}
