:root {
    /* Emergency Red and Orange Color Variables */
    --primary-bg: linear-gradient(135deg, #1A0000 0%, #8B0000 50%, #2F2F2F 100%);
    --card-bg: linear-gradient(135deg, rgba(47, 47, 47, 0.95) 0%, rgba(26, 0, 0, 0.95) 50%, rgba(60, 60, 60, 0.95) 100%);
    --header-bg: linear-gradient(135deg, #2F2F2F 0%, #8B0000 30%, #1A0000 60%, #2F2F2F 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.9);
    --text-icon: #FF4500;
    --accent-red: #DC143C;
    --accent-emergency: #8B0000;
    --accent-orange: #FF4500;
    --accent-amber: #FFA500;
    --border-subtle: rgba(220, 20, 60, 0.6);
    --border-visible: rgba(220, 20, 60, 0.6);
    --hover-bg: rgba(220, 20, 60, 0.2);
    --focus-shadow: rgba(255, 255, 255, 0.8);
    --orange-glow: rgba(255, 69, 0, 0.3);
    
    /* Typography */
    --font-family: 'Lato', sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 25px;
    --spacing-xxl: 30px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-card: 0 25px 50px rgba(0, 0, 0, 0.3), 0 15px 30px rgba(30, 58, 138, 0.2);
    --shadow-focus: 0 0 0 3px var(--focus-shadow);
    --shadow-button: 0 6px 20px rgba(220, 20, 60, 0.25);
    --shadow-orange: 0 0 20px var(--orange-glow);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease-out;
}

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    background: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 10%, rgba(139, 0, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.card-container {
    perspective: 1000px;
}

.business-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 525px;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
}



/* Screen reader only text */
.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 navigation link */
.skip-link {
    position: absolute;
    top: -80px;
    left: 6px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(47, 47, 47, 0.08) 100%);
    border: 2px solid var(--accent-amber);
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    z-index: 9999;
    transition: all 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.card-header {
    background: var(--header-bg);
    color: var(--text-primary);
    padding: 25px var(--spacing-lg) 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    border-bottom: 1px solid rgba(220, 20, 60, 0.3);
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%, rgba(255, 69, 0, 0.04) 100%);
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.8), rgba(255, 69, 0, 0.9), rgba(220, 20, 60, 0.8), transparent);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}

.profile-image {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    order: 1;
}

.profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(251, 191, 36, 0.9);
    object-fit: cover;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(37, 99, 235, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(245, 158, 11, 0.2);
}

.profile-image img:hover {
    /* Removed scale animation for accessibility */
}

.header-info {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    max-width: 100%;
    z-index: 1;
    position: relative;
}

.name {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(220, 20, 60, 0.3);
}

.title {
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
    line-height: 1.5;
    text-align: center;
}

.company,
.membership {
    font-family: var(--font-family);
    font-size: 1.0625rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.5;
    text-align: center;
}

.school-logo {
    height: 85px;
    width: auto;
    max-width: 100%;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    object-fit: contain;
    order: 3;
    margin-top: var(--spacing-xs);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(37, 99, 235, 0.2));
}

/* Section Navigation Styling */
.section-nav {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(30, 42, 71, 0.05) 100%);
    border-top: 1px solid rgba(220, 20, 60, 0.2);
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
    padding: 16px 10px;
    position: relative;
}

.section-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.4), rgba(255, 69, 0, 0.6), rgba(220, 20, 60, 0.4), transparent);
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 12px;
    margin: 0 2px;
    background: transparent;
    border: 2px solid var(--accent-amber);
    border-radius: 20px;
    color: rgba(248, 250, 252, 0.95);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 0;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
}

.nav-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.nav-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.nav-link:visited {
    color: rgba(248, 250, 252, 0.95);
}

.nav-link:active {
    background: linear-gradient(135deg, rgba(26, 0, 0, 1.0), rgba(10, 0, 0, 1.0));
    border-color: var(--accent-orange);
    color: #ffffff;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-link {
        transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }
    
    .nav-link::before {
        display: none;
    }
}

.card-body {
    padding: 30px 10px;
    position: relative;
    z-index: 1;
}

.card-body > h2 {
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 25px 0;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    position: relative;
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(220, 20, 60, 0.7) 20%, rgba(255, 69, 0, 0.9) 50%, rgba(220, 20, 60, 0.7) 80%, transparent 100%);
    margin: 25px 0;
    position: relative;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}

/* Consolidated heading styles */
.contact-section h3,
.social-section h3,
.skills h3,
.software h3,
.operating-systems h3,
.credentials h3 {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.contact-section h2 {
    margin-bottom: var(--spacing-lg);
}

.contact-info {
    margin-bottom: var(--spacing-xl);
}

/* Contact Link Styling - High Accessibility */
.contact-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
    padding: 16px 20px;
    border: 2px solid var(--accent-amber);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(47, 47, 47, 0.08) 100%);
    color: var(--text-primary);
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 64px;
    position: relative;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-button:hover::before {
    opacity: 0;
}

.contact-button:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.25);
    color: #ffffff;
}

.contact-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.contact-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.contact-button:active {
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(26, 0, 0, 1.0), rgba(10, 0, 0, 1.0));
    color: #ffffff;
}

.contact-button:visited {
    color: var(--text-primary);
}

.contact-button i {
    width: 24px;
    font-size: 18px;
    color: var(--text-icon);
    margin-right: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    text-align: left;
}

.contact-text strong {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    display: block;
}

.contact-text small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.contact-button:visited .contact-text strong,
.contact-button:visited .contact-text small {
    color: inherit;
}

.contact-arrow {
    font-size: 14px;
    color: rgba(251, 191, 36, 0.85);
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.contact-button:hover .contact-arrow {
    color: var(--text-icon);
    transform: translateX(4px);
}

.contact-button:hover i {
    transform: scale(1.1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .contact-button {
        transition: background 0.3s ease, border-color 0.3s ease;
    }
    
    .contact-button::before {
        display: none;
    }
    
    .contact-button:hover {
        transform: none;
    }
    
    .contact-button:hover i,
    .contact-button:hover .contact-arrow {
        transform: none;
    }
}

.social-section {
    margin-bottom: 25px;
}

.social-section p,
.skills p,
.software p,
.operating-systems p {
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-secondary);
    text-align: center;
    margin: 15px 0 20px 0;
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    min-width: 44px;  /* WCAG 2.1 AA minimum target size */
    min-height: 44px; /* WCAG 2.1 AA minimum target size */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--accent-amber);
    box-sizing: border-box;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: transparent;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 0;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 15px rgba(220, 20, 60, 0.3);
    border-color: var(--accent-orange);
}

.social-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.social-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.social-link.x-twitter { background: #000000; }
.social-link.facebook { background: #1877f2; }
.social-link.threads { background: #000000; }
.social-link.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.social-link.linkedin { background: #0077b5; }

/* Reduced motion support for social links */
@media (prefers-reduced-motion: reduce) {
    .social-link:hover {
        transform: none;
    }
    
    .social-link::before {
        display: none;
    }
}

.skills {
    margin-bottom: 25px;
}

.software {
    margin-bottom: 25px;
}

.operating-systems {
    margin-bottom: 25px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    font-family: var(--font-family);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(47, 47, 47, 0.08) 100%);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    border: 2px solid var(--accent-amber);
    transition: all 0.2s ease;
    position: relative;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.skill-tag:hover::before {
    opacity: 0;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
    color: #ffffff;
}

.skill-tag:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--accent-amber);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(47, 47, 47, 0.08) 100%);
    color: var(--text-primary);
    font-family: var(--font-family);
    text-decoration: none;
    min-height: 64px;
    position: relative;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 0;
}

.btn.primary {
    /* No additional styling needed - inherits from .btn */
}

.btn:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.25);
    color: #ffffff;
}

.btn.primary:hover {
    /* Inherits from .btn:hover */
}

.btn.secondary {
    /* No additional styling needed - inherits from .btn */
}

.btn.secondary:hover {
    /* Inherits from .btn:hover */
}

.btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(26, 0, 0, 1.0), rgba(10, 0, 0, 1.0));
    color: #ffffff;
}

.btn i {
    width: 24px;
    font-size: 18px;
    color: var(--text-icon);
    margin-right: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Notification area below buttons */
.notification-area {
    margin-top: 15px;
    min-height: 20px;
    text-align: center;
}

.notification-area .notification {
    display: inline-block;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin: 5px 0;
    animation: fadeInUp 0.3s ease-out forwards, fadeOut 0.3s ease-in 2.7s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-area .notification.success {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.notification-area .notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


/* Mobile responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .card-container {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .business-card {
        margin: 0 auto;
        width: 100%;
        max-width: 450px;
    }
    
    .card-header {
        padding: 20px 20px 15px;
        gap: 12px;
    }
    
    .card-body {
        padding: 25px 10px;
    }
    
    .name {
        font-size: 26px;
        letter-spacing: 0.01em;
    }
    
    .title {
        font-size: 17px;
    }
    
    .company,
    .membership {
        font-size: 16px;
    }
    
    .profile-image img {
        width: 90px;
        height: 90px;
    }
    
    .school-logo {
        height: 75px;
        margin-top: 8px;
    }
    
    .social-links {
        gap: 10px;
        max-width: 240px;
    }
    
    .social-link {
        width: 44px;  /* WCAG 2.1 AA minimum */
        height: 44px;
        font-size: 18px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .skill-tags {
        gap: 6px;
    }
    
    .skill-tag {
        font-size: 13px;
        padding: 4px 6px;
    }
    
    .contact-button {
        padding: 14px 16px;
        min-height: 60px;
    }
    
    .contact-button i {
        font-size: 16px;
        margin-right: 14px;
    }
    
    .contact-text strong {
        font-size: 15px;
    }
    
    .contact-text small {
        font-size: 13px;
    }
    
    .section-nav {
        padding: 10px 10px;
    }
    
    .nav-link {
        padding: 6px 6px;
        margin: 0 1px;
        font-size: 12px;
    }
}

/* Medium screens and 200% zoom support */
@media (max-width: 700px) {
    .section-nav {
        padding: 12px 8px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .nav-link {
        flex: 0 1 auto;
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        padding: 10px 8px;
        margin: 0;
        font-size: 13px;
    }
    
    /* Social links responsive layout */
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .card-header {
        padding: 12px 15px;
    }
    
    .card-body {
        padding: 20px 8px;
    }
    
    .nav-link {
        min-width: calc(100% - 4px);
        max-width: calc(100% - 4px);
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    body {
        padding: 5px;
    }
    
    .card-header {
        padding: 12px 10px;
    }
    
    .card-body {
        padding: 20px 5px;
    }
}


/* Accessibility Statement */
.accessibility-badge {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.a11y-badge-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    image-rendering: crisp-edges;
}

.a11y-badge-img:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.iaap-badge-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--accent-amber);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    image-rendering: crisp-edges;
    box-sizing: border-box;
}

.accessibility-badge a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
    border-radius: 50%;
}

.accessibility-statement {
    margin-top: 15px;
    padding: 15px 20px 30px;
    border-top: 1px solid rgba(220, 20, 60, 0.6);
}

.accessibility-statement details {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-primary);
}

.accessibility-statement summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.accessibility-statement summary:hover {
    color: var(--text-icon);
}

.accessibility-statement summary:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.accessibility-content {
    margin-top: 15px;
    line-height: 1.5;
}

.accessibility-content h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.accessibility-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.accessibility-content li {
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.accessibility-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 10px 0;
}

.accessibility-content a {
    color: var(--text-icon);
    text-decoration: underline;
}

.accessibility-content a:hover {
    color: #ffffff;
}

.accessibility-content a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.accessibility-content dl {
    margin: 15px 0;
}

.accessibility-content dt {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 4px;
}

.accessibility-content dd {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .accessibility-statement {
        margin-top: 20px;
        padding: 15px 15px 20px;
    }
}

/* Password Protection Overlay */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.password-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 400px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    position: relative;
}

.password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%, rgba(255, 69, 0, 0.04) 100%);
    border-radius: var(--radius-lg);
}

.password-container > * {
    position: relative;
    z-index: 1;
}

.password-title {
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(220, 20, 60, 0.3);
}

.password-subtitle {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-input {
    padding: 16px 20px;
    border: 2px solid var(--accent-amber);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(47, 47, 47, 0.08) 100%);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    min-height: 56px;
    transition: all 0.3s ease;
}

.password-input::placeholder {
    color: var(--text-muted);
}

.password-input:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.password-submit {
    padding: 16px 20px;
    border: 2px solid var(--accent-amber);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(47, 47, 47, 0.08) 100%);
    color: var(--text-primary);
    font-family: var(--font-family);
    text-decoration: none;
    min-height: 56px;
    position: relative;
}

.password-submit:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.25);
    color: #ffffff;
}

.password-submit:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(26, 0, 0, 1.0));
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--focus-shadow);
}

.password-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.password-error {
    color: #ff4444;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    border-left: 4px solid #ff4444;
    text-align: left;
    display: none;
}

.emergency-icon {
    font-size: 48px;
    color: var(--accent-red);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
}

/* Hide main content by default - only show when JavaScript enables it */
.card-container {
    display: none;
}

/* NoScript protection - if JavaScript is disabled, show warning instead of content */
.noscript-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.noscript-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 500px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.noscript-title {
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--accent-red);
    margin-bottom: 20px;
}

.noscript-message {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Mobile responsive for password overlay */
@media (max-width: 480px) {
    .password-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .password-title {
        font-size: 20px;
    }

    .password-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .emergency-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
}