/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::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="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.authors-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.authors {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author i {
    font-size: 1.1rem;
}

.author span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Navigation Styles */
.navigation {
    background: #34495e;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #ecf0f1;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    min-width: 180px;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #3498db;
    color: white;
    border-bottom-color: #2980b9;
}

.nav-btn i {
    font-size: 1.1rem;
}

/* Main Content Styles */
.main-content {
    padding: 2rem;
    min-height: 70vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header h2 i {
    color: #3498db;
}

.section-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* Introduction Section Styles */
.introduction-section {
    margin-bottom: 3rem;
}

.introduction-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    position: relative;
    overflow: hidden;
}

.introduction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #34495e);
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.intro-header i {
    font-size: 1.8rem;
    color: #3498db;
}

.intro-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.intro-content {
    color: #555;
    line-height: 1.7;
}

.intro-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
    font-size: 1.05rem;
}

.intro-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.objective-highlight {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

.objective-highlight strong {
    color: #3498db;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Card Styles */
.concept-card, .tech-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
    position: relative;
    overflow: hidden;
}

.concept-card::before, .tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.concept-card:hover, .tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
}

.card-header i {
    font-size: 1.8rem;
    color: #3498db;
}

.tech-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.card-content {
    color: #555;
    line-height: 1.7;
}

.card-content p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-content ul {
    list-style: none;
    padding-left: 0;
}

.card-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-section {
    margin-bottom: 1.5rem;
}

.feature-section h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Specific card types */
.bitlocker::before { background: linear-gradient(90deg, #0078d4, #106ebe); }
.efs::before { background: linear-gradient(90deg, #00bcf2, #0078d4); }
.filevault::before { background: linear-gradient(90deg, #333, #666); }
.secure-enclave::before { background: linear-gradient(90deg, #007aff, #5856d6); }
.apfs::before { background: linear-gradient(90deg, #34c759, #30d158); }
.dm-crypt::before { background: linear-gradient(90deg, #f39c12, #e67e22); }
.luks::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.fscrypt::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.aes::before { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.xts::before { background: linear-gradient(90deg, #f1c40f, #f39c12); }
.performance::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }

/* Protection Modes */
.protection-modes {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mode {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.comparison-table h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-table h3 i {
    color: #3498db;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

thead th:first-child {
    border-radius: 8px 0 0 0;
}

thead th:last-child {
    border-radius: 0 8px 0 0;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e0e6ed;
    vertical-align: top;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Architecture Diagram */
.architecture-diagram {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.architecture-diagram h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.architecture-diagram h3 i {
    color: #3498db;
}

.diagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.layer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 1.5rem 3rem;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.layer-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.layer-content {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.arrow {
    font-size: 2rem;
    color: #3498db;
    font-weight: bold;
}

/* Performance Comparison - New Styles */
.performance-comparison {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.performance-comparison h4 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.performance-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.stat-bar {
    position: relative;
    height: 35px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 80px;
}

.stat-fill.high-impact {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.stat-fill.low-impact {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.stat-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.performance-benefits {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e0e6ed;
}

.performance-benefits h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.performance-benefits h5 i {
    color: #3498db;
}

.performance-benefits ul {
    list-style: none;
    padding: 0;
}

.performance-benefits li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.performance-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content p:last-child {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .authors {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-btn {
        min-width: 100%;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .concept-card, .tech-card {
        padding: 1.5rem;
    }
    
    /* Introduction responsive */
    .introduction-card {
        padding: 1.5rem;
    }
    
    .intro-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
    
    .objective-highlight {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .comparison-table {
        padding: 1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    thead th, tbody td {
        padding: 0.8rem 0.5rem;
    }
    
    .layer {
        width: 250px;
        padding: 1rem 2rem;
    }
    
    .performance-stats {
        gap: 0.8rem;
    }
    
    .stat-item {
        gap: 0.4rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-bar {
        height: 30px;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    .performance-benefits {
        padding: 1rem;
    }
}

/* References Section Styles */
.references-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.references-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
}

.references-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reference-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #8e44ad;
    transition: all 0.3s ease;
}

.reference-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.2);
}

.reference-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
}

.reference-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.reference-details {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.reference-description {
    color: #555;
    line-height: 1.6;
}

/* Case Studies Section */
.case-studies-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    position: relative;
    overflow: hidden;
}

.case-studies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.case-studies-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.case-studies-section h3 i {
    color: #3498db;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e6ed;
}

.case-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.case-icon.windows {
    background: linear-gradient(135deg, #0078d4, #106ebe);
}

.case-icon.macos {
    background: linear-gradient(135deg, #333, #666);
}

.case-icon.linux {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.case-header h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.case-scenario, .case-results {
    margin-bottom: 1.5rem;
}

.case-scenario h5, .case-results h5 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-scenario h5::before {
    content: '📋';
    font-size: 1.1rem;
}

.case-results h5::before {
    content: '📊';
    font-size: 1.1rem;
}

.case-scenario p {
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.case-results ul {
    list-style: none;
    padding: 0;
}

.case-results li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.case-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Implementation Comparison */
.implementation-comparison {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    position: relative;
    overflow: hidden;
}

.implementation-comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.implementation-comparison h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.implementation-comparison h3 i {
    color: #e74c3c;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e0e6ed;
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem auto;
}

.metric-card h4 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.metric-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-item span {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.metric-bar {
    height: 25px;
    background: #e0e6ed;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: width 2s ease;
}

.adoption-scores {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-item > span:first-child {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.score-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.score-stars i {
    color: #f39c12;
    font-size: 1.1rem;
}

.score-text {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0.5rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .layer {
        width: 200px;
        padding: 1rem 1.5rem;
    }
    
    /* References responsive */
    .references-container {
        gap: 2rem;
    }
    
    .references-card, .case-studies-section, .implementation-comparison {
        padding: 1.5rem;
    }
    
    .reference-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .case-study-grid, .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .metric-item span {
        text-align: center;
    }
}