/* Apple-Style CSS for Risk Assessment Toolkit */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple Color Palette */
    --primary-color: #007AFF;
    --primary-color-rgb: 0, 122, 255;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --gray-1: #F2F2F7;
    --gray-2: #E5E5EA;
    --gray-3: #D1D1D6;
    --gray-4: #C7C7CC;
    --gray-5: #AEAEB2;
    --gray-6: #8E8E93;
    --text-primary: #000000;
    --text-secondary: #6D6D70;
    --background: #FFFFFF;
    --surface: #F8F9FA;
    
    /* Risk Colors */
    --risk-low: #34C759;
    --risk-medium: #FF9500;
    --risk-high: #FF6B35;
    --risk-critical: #FF3B30;
    
    /* Typography */
    --font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-hero: 3.5rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Borders */
    --border-radius: 12px;
    --border-radius-small: 8px;
    --border-radius-large: 20px;
    
    /* Shadows */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-2);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-icon {
    top: 19px;
    left: 8px;
}

.menu-icon::before {
    content: '';
    top: -7px;
    left: 0;
}

.menu-icon::after {
    content: '';
    top: 7px;
    left: 0;
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
    margin-right: var(--spacing-xs);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-small);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--gray-1);
}

.nav-button {
    padding: 8px 16px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}

.nav-button:hover {
    background-color: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 113, 227, 0.35);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: var(--font-size-body);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
}

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

.btn-primary:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--gray-1);
    color: var(--text-primary);
    border: 1px solid var(--gray-3);
}

.btn-secondary:hover {
    background: var(--gray-2);
    transform: translateY(-2px);
}



/* Apple-style Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    background: #f5f5f7;
    color: #1d1d1f;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.backdrop-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.08), rgba(59, 130, 246, 0.06), rgba(255, 255, 255, 0));
    z-index: 1;
}

.backdrop-blur {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    right: -10%;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.15), rgba(59, 130, 246, 0.12), rgba(168, 85, 247, 0.1));
    filter: blur(80px);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5%, 2%) rotate(2deg); }
    50% { transform: translate(2%, -3%) rotate(-1deg); }
    75% { transform: translate(-3%, -1%) rotate(1deg); }
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem var(--spacing-lg) 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    z-index: 2;
}

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

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    background: rgba(var(--primary-color-rgb), 0.08);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
    background: linear-gradient(135deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
    opacity: 0.85;
}

.hero-description {
    font-size: 1.15rem;
    color: #6e6e73;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    max-width: 520px;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #86868b;
    font-weight: 500;
}

.hero-meta .divider {
    margin: 0 0.6rem;
    opacity: 0.4;
}

.hero-actions {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    margin-top: -1rem;
}

.btn-hero-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.btn-hero-primary:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

.btn-hero-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.1rem;
    margin-left: 0.2rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 3;
}

.hero-3d-object {
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotateY(0) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

.matrix-3d {
    width: 280px;
    height: 280px;
    transform-style: preserve-3d;
    position: relative;
}

.matrix-face {
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backface-visibility: visible;
}

.matrix-face.front {
    transform: translateZ(140px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.matrix-face.back {
    transform: translateZ(-140px) rotateY(180deg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.matrix-face.right {
    transform: rotateY(90deg) translateZ(140px);
    background: rgba(255, 255, 255, 0.05);
}

.matrix-face.left {
    transform: rotateY(-90deg) translateZ(140px);
    background: rgba(255, 255, 255, 0.05);
}

.matrix-face.top {
    transform: rotateX(90deg) translateZ(140px);
    background: rgba(255, 255, 255, 0.05);
}

.matrix-face.bottom {
    transform: rotateX(-90deg) translateZ(140px);
    background: rgba(255, 255, 255, 0.05);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    height: 100%;
}

.matrix-cell {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: var(--font-size-small);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.visual-highlight {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #86868b;
    font-size: 0.8rem;
    animation: fadeInUp 2s ease-out 1s forwards, bounce 4s ease-in-out 3s infinite;
    opacity: 0;
}

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

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid #86868b;
    border-bottom: 2px solid #86868b;
    transform: rotate(45deg);
}

.scroll-text {
    font-weight: 500;
}

.matrix-cell.low { background: var(--risk-low); }
.matrix-cell.medium { background: var(--risk-medium); }
.matrix-cell.high { background: var(--risk-high); }
.matrix-cell.critical { background: var(--risk-critical); }

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}



/* Risk Matrix Section */
.risk-matrix-section {
    background: white;
    padding: var(--spacing-xxl) 0;
}

.risk-matrix-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Modern Risk Matrix */
.modern-risk-matrix {
    display: grid;
    grid-template-rows: auto repeat(4, 1fr);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-xl);
    background: #f5f5f7;
}

.matrix-impact-header {
    display: grid;
    grid-template-columns: 140px repeat(4, 1fr);
    background: #f5f5f7;
}

.matrix-blank-cell {
    padding: var(--spacing-md);
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid #e5e5ea;
}

.matrix-header-cell {
    padding: var(--spacing-md);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #e5e5ea;
}

.matrix-row {
    display: grid;
    grid-template-columns: 140px repeat(4, 1fr);
}

.matrix-row-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    background: #f5f5f7;
    border-bottom: 1px solid #e5e5ea;
    border-right: 1px solid #e5e5ea;
}

.matrix-row:last-child .matrix-row-header,
.matrix-row:last-child .matrix-cell {
    border-bottom: none;
}

.matrix-cell {
    padding: var(--spacing-xl);
    text-align: center;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 4px solid white;
}

.matrix-cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Updated risk colors to match the image */
.risk-cell.low, .matrix-cell.low { 
    background: #4ade80; /* Bright green */
}

.risk-cell.medium, .matrix-cell.medium { 
    background: #fb923c; /* Orange */
}

.risk-cell.high, .matrix-cell.high { 
    background: #f97066; /* Coral red */
}

.risk-cell.critical, .matrix-cell.critical { 
    background: #ef4444; /* Bright red */
}

.matrix-tip {
    background: #f5f5f7;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Assessment Section */
.assessment {
    background: var(--surface);
}

.assessment-container {
    max-width: 1000px;
    margin: 0 auto;
}

.assessment-table {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    background: var(--gray-1);
    padding: var(--spacing-md);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-3);
}

.risk-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-2);
    align-items: center;
    gap: var(--spacing-sm);
}

.risk-item:last-child {
    border-bottom: none;
}

.risk-item:hover {
    background: var(--gray-1);
}

.risk-factor {
    font-weight: 500;
}

.risk-input {
    padding: 8px 12px;
    border: 1px solid var(--gray-3);
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-body);
    width: 100%;
    max-width: 80px;
}

.risk-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.risk-score {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    color: white;
    text-align: center;
    min-width: 40px;
}

.risk-score.low { background: var(--risk-low); }
.risk-score.medium { background: var(--risk-medium); }
.risk-score.high { background: var(--risk-high); }
.risk-score.critical { background: var(--risk-critical); }

.risk-notes {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}

.assessment-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Dashboard Section */
.dashboard {
    background: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.dashboard-card {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-small);
}

.dashboard-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.dashboard-card.summary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.dashboard-card.summary h3 {
    color: white;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-number.critical { color: var(--risk-critical); }
.stat-number.high { color: var(--risk-high); }
.stat-number.medium { color: var(--risk-medium); }

.stat-label {
    font-size: var(--font-size-small);
    opacity: 0.8;
}

/* No Actions Section - Removed */



/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
}

.footer-info h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: white;
    margin: 5% auto;
    width: 80%;
    max-width: 700px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    animation: modalSlideDown 0.4s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-xl);
    color: var(--text-primary);
}

.modal-body h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: right;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 2.5rem;
        --font-size-h1: 2rem;
        --font-size-h2: 1.5rem;
        --spacing-lg: 1rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 60px;
        right: 16px;
        background: rgba(255, 255, 255, 0.95);
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        gap: 8px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 3rem var(--spacing-lg) 6rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
    }
    
    .btn-hero-primary, .btn-hero-secondary {
        min-width: 220px;
    }
    
    .matrix-3d {
        width: 220px;
        height: 220px;
    }
    
    .matrix-face {
        width: 220px;
        height: 220px;
    }
    
    .matrix-face.front {
        transform: translateZ(110px);
    }
    
    .matrix-face.back {
        transform: translateZ(-110px) rotateY(180deg);
    }
    
    .matrix-face.right {
        transform: rotateY(90deg) translateZ(110px);
    }
    
    .matrix-face.left {
        transform: rotateY(-90deg) translateZ(110px);
    }
    
    .matrix-face.top {
        transform: rotateX(90deg) translateZ(110px);
    }
    
    .matrix-face.bottom {
        transform: rotateX(-90deg) translateZ(110px);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .risk-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .table-header div,
    .risk-item div {
        padding: var(--spacing-xs);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .risk-matrix {
        font-size: var(--font-size-small);
    }
    
    .matrix-grid,
    .impact-header {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .risk-cell,
    .impact-cell,
    .likelihood-cell {
        height: 60px;
        padding: var(--spacing-xs);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-actions,
    .assessment-actions {
        display: none;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
        min-height: auto;
    }
    
    section {
        padding: var(--spacing-lg) 0;
        break-inside: avoid;
    }
    
    .risk-cell,
    .matrix-cell {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
