/* Modern Design System - Nodewiz.ai */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #06b6d4;
    --accent-secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: 16px;
    
    /* Spacing & Layout */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Variants */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --border-color: var(--gray-200);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --text-primary: var(--gray-50);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-400);
    --border-color: var(--gray-700);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(600px circle at 20% 30%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(800px circle at 80% 70%, rgba(236, 72, 153, 0.1), transparent 50%),
        radial-gradient(400px circle at 40% 80%, rgba(6, 182, 212, 0.08), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-gradient {
    background: linear-gradient(135deg, 
        #3b82f6, 
        #06b6d4, 
        #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
    z-index: 10;
    display: inline-block;
    filter: brightness(1.2) contrast(1.1);
}

/* Navigation */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.ai-badge {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    margin: 0 0.5rem;
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus {
    color: var(--text-primary);
}

.nav-links .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary-glass {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    color: white;
}

.theme-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Logo Variants */
.brand-logo {
    display: none;
}

[data-theme="dark"] .brand-logo-dark {
    display: inline-block;
}

[data-theme="light"] .brand-logo-light {
    display: inline-block;
}

/* Hero Section */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 0.5rem;
    overflow: hidden;
}

.hero-badge .badge-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

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

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-visual {
        height: 350px;
        min-height: 250px;
        padding: 0 1rem;
    }
    .automation-nodes {
        height: 220px;
        min-height: 180px;
    }
    .node-card,
    .connection-lines {
        display: none !important;
    }
    .central-node {
        font-size: 1rem;
        padding: 0.7rem 0.8rem;
    }
    .node-1, .node-2 {
        top: 5% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, 0);
    }
    .node-3, .node-4 {
        bottom: 10% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, 0);
    }
    .central-node {
        top: 60% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
    }
    .connections {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        height: 220px;
        min-height: 120px;
        padding: 0 0.5rem;
    }
    .automation-nodes {
        height: 120px;
        min-height: 80px;
    }
    .node-card {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
        animation: none !important;
    }
    .central-node {
        font-size: 0.9rem;
        padding: 0.5rem 0.6rem;
    }
}

.automation-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.node-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.node-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.node-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.node-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

.node-1 { top: 10%; left: 10%; animation-delay: 0s; }
.node-2 { top: 10%; right: 10%; animation-delay: 1s; }
.node-3 { bottom: 18%; left: 10%; animation-delay: 2s; }
.node-4 { bottom: 18%; right: 10%; animation-delay: 3s; }

.central-node {
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    animation-delay: 0.5s;
    will-change: left, top, transform;
    z-index: 2;
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-path {
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    opacity: 0.6;
    stroke-dasharray: 5 5;
    animation: dash 2s linear infinite;
}

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

@keyframes dash {
    to { stroke-dashoffset: -10; }
}

/* Scroll Indicator */

/* Trusted By / Marquee */
.trusted-by {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding-top: 1.5rem !important;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.company-logo {
    display: inline-block;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 3rem;
    font-size: 1.125rem;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Sections */
.features-section,
.how-it-works,
.testimonials-section {
    padding: 5rem 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Glass Cards */
.feature-card,
.step-card,
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.feature-card:hover,
.step-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon,
.step-visual {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title,
.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description,
.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Step Cards */
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-rating {
    color: var(--warning);
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

.cta-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--glass-shadow);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.site-footer h5,
.site-footer h6 {
    color: var(--text-primary);
}

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

.site-footer a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

/* Back to Top */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
}

.btn-floating:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .automation-nodes {
        height: 300px;
    }
    
    .node-card {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .cta-card {
    padding: 2rem;
        text-align: center;
    }
    
    .cta-card .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
        padding: 3.5rem 0 0.5rem;
        background: var(--bg-gradient);
        position: relative;
        overflow: hidden;
    }
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .feature-card,
    .step-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

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

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

/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(6, 182, 212, 0.1) 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(1px);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

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

/* Hero text colors - theme aware */
.page-hero h1,
.page-hero .display-4 {
    color: var(--text-primary);
}

.page-hero p,
.page-hero .lead {
    color: var(--text-secondary);
}

/* Override for specific theme classes if needed */
[data-theme="light"] .page-hero h1,
[data-theme="light"] .page-hero .display-4 {
    color: var(--text-primary);
}

[data-theme="light"] .page-hero p,
[data-theme="light"] .page-hero .lead {
    color: var(--text-secondary);
}

[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .page-hero .display-4 {
    color: var(--text-primary);
}

[data-theme="dark"] .page-hero p,
[data-theme="dark"] .page-hero .lead {
    color: var(--text-secondary);
}

.eyebrow {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-glass .hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Additional Components */
.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-pricing {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.price-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-card-popular {
    position: relative;
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 10;
}

.benefit-item {
    display: flex;
    align-items: start;
}

.benefit-icon {
        width: 40px;
        height: 40px;
    background: var(--glass-bg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

#team{
    display: none !important;
}

.team-role {
    font-weight: 600;
    font-size: 0.875rem;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.team-social a {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.5rem;
}

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

.contact-card {
    margin-bottom: 1rem;
}

.social-link {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.social-link:hover {
    color: var(--primary);
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.accordion-item {
    border: none;
    background: transparent;
}

.accordion-button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary);
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.metric-card {
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
}

.video-placeholder {
    padding: 3rem 2rem;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.step-item {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.workflow-steps {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
}

.results-metrics {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
}

.use-case-detail {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.metrics {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.tech-stack {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.industry-card {
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

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

/* Theme-specific form adjustments */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--border-color);
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: white;
}

/* SEO and Accessibility Improvements */
.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;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 6px;
}

/* Semantic HTML improvements */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section {
    display: block;
}

/* Image optimization for SEO */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    content-visibility: auto;
}

/* Performance optimization */
.contain-layout {
    contain: layout;
}

.contain-paint {
    contain: paint;
}

/* Alert Styles */
.alert {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    backdrop-filter: blur(var(--glass-blur));
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.alert-error,
.alert-danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.alert-warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Contact form specific styles */
.contact-form-wrapper {
    padding: 2.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    min-height: 48px;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}