:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-alt: #f5f7fa;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease;
}

[data-theme='dark'] {
    --primary-color: #34d399;
    --primary-dark: #10b981;
    --secondary-color: #60a5fa;
    --accent-color: #fbbf24;
    
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-alt: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-alt);
    transform: scale(1.1);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.progress-overview {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.progress-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.progress-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.circular-progress {
    position: relative;
    display: inline-block;
    margin: 1rem 0;
}

.progress-ring-circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-fill {
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-info {
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Overview Grid */
.program-overview, .features-section {
    margin: 3rem 0;
}

.program-overview h2, .features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Curriculum Modules */
.curriculum-container {
    display: grid;
    gap: 1.5rem;
}

.module-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.module-card.completed {
    border-left-color: var(--success-color);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), var(--bg-secondary));
}

.module-info {
    flex: 1;
}

.module-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.module-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.module-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.module-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.module-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-cyber {
    background: rgba(59, 130, 246, 0.2);
    color: var(--secondary-color);
}

.badge-identity {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-color);
}

.badge-physical {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.module-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    font-size: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Progress Detail */
.progress-detail, .actions-completed {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.progress-detail h2, .actions-completed h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.progress-modules-list {
    display: grid;
    gap: 1rem;
}

.progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--border-color);
}

.progress-item.completed {
    border-left-color: var(--success-color);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

.actions-list {
    display: grid;
    gap: 1rem;
}

.action-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--success-color);
}

.action-item .check-icon {
    color: var(--success-color);
    font-size: 1.5rem;
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.resource-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.resource-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.resource-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.resource-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.about-stats h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.stat-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.fact-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.fact-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fact-text {
    font-size: 1rem;
    opacity: 0.95;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

.modal-content {
    background: var(--bg-primary);
    margin: 2% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

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

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--danger-color);
}

.module-content {
    padding: 2rem 0;
}

.module-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.module-content h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.module-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.module-content ul, .module-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.module-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.real-world-example {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.password-managers-section,
.passwordless-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.password-managers-section h2,
.passwordless-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.password-manager-card {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.password-manager-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.password-manager-card ul {
    margin-top: 0.5rem;
}

.passwordless-method {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.passwordless-method h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.choosing-guide {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.choosing-guide p {
    margin: 0;
}

.action-items {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.knowledge-check {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.quiz-question {
    margin: 1.5rem 0;
}

.quiz-options {
    list-style: none;
    margin-left: 0;
}

.quiz-option {
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success-color);
}

.quiz-option.incorrect {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger-color);
}

.quiz-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.quiz-feedback.correct {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.quiz-feedback.incorrect {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* VPN Module Styles */
.vpn-how-it-works {
    margin: 2rem 0;
}

.vpn-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .vpn-comparison {
        grid-template-columns: 1fr;
    }
}

.vpn-without {
    background: rgba(239, 68, 68, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
}

.vpn-with {
    background: rgba(16, 185, 129, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.vpn-encryption-note {
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.vpn-benefits-section,
.vpn-drawbacks-section {
    margin: 2rem 0;
}

.vpn-benefit-card,
.vpn-drawback-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.vpn-benefit-card:hover,
.vpn-drawback-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vpn-when-to-use {
    margin: 2rem 0;
}

.vpn-usage-always {
    background: rgba(239, 68, 68, 0.1);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
}

.vpn-usage-consider {
    background: rgba(251, 191, 36, 0.1);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
}

.vpn-usage-skip {
    background: rgba(16, 185, 129, 0.1);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.vpn-recommendations {
    margin: 2rem 0;
}

.vpn-provider-card {
    background: var(--bg-secondary);
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.vpn-provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.vpn-provider-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.vpn-price {
    font-size: 1.1rem;
    color: var(--success-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.vpn-verdict {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.vpn-choosing-guide {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid var(--primary-color);
}

.choosing-recommendations p {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Router/WiFi Module Styles */
.router-choosing-section,
.router-placement-section,
.advanced-security-section,
.network-segmentation-section {
    margin: 2rem 0;
}

.router-feature-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.router-feature-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.router-type-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.router-type-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--text-secondary);
    transition: var(--transition);
}

.router-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.router-type-card.recommended {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.router-type-card.not-recommended {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.recommendation-badge {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-weight: 600;
    border-left: 4px solid var(--secondary-color);
}

.router-type-card.recommended .recommendation-badge {
    background: rgba(16, 185, 129, 0.2);
    border-left-color: var(--success-color);
}

.router-type-card.not-recommended .recommendation-badge {
    background: rgba(239, 68, 68, 0.2);
    border-left-color: var(--danger-color);
}

.router-recommendation-card {
    background: var(--bg-secondary);
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.router-recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.router-price {
    font-size: 1.1rem;
    color: var(--success-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.router-verdict {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.placement-intro {
    background: rgba(59, 130, 246, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin: 1rem 0 2rem 0;
    font-size: 1.05rem;
}

.placement-rule {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.security-benefit {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    font-style: italic;
}

.avoid-locations {
    background: rgba(239, 68, 68, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
}

.avoid-locations li {
    margin: 0.75rem 0;
}

.multi-story-guide {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid var(--primary-color);
}

.multi-story-guide p {
    margin: 0.75rem 0;
}

.security-setting-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
    transition: var(--transition);
}

.security-setting-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.segmentation-intro {
    background: rgba(251, 191, 36, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
    margin: 1rem 0 2rem 0;
    font-size: 1.05rem;
}

.network-segment-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.network-segment-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.network-segment-card:nth-child(2) {
    border-left-color: var(--success-color);
}

.network-segment-card:nth-child(3) {
    border-left-color: #fbbf24;
}

.network-segment-card:nth-child(4) {
    border-left-color: #8b5cf6;
}

.segmentation-benefit {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.footer-content p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .overview-grid, .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1rem;
        margin: 5% auto;
    }

    main {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* AI Chat Assistant Styles */

/* Floating Chat Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
}

.chat-toggle-btn.chat-active {
    background: var(--danger-color);
}

.chat-toggle-icon {
    font-size: 1.3rem;
}

.chat-toggle-text {
    font-size: 0.95rem;
}

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 420px;
    max-width: calc(100vw - 4rem);
    height: 600px;
    max-height: calc(100vh - 8rem);
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--text-secondary);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-container.chat-open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-container.chat-minimized {
    height: 70px;
}

.chat-container.chat-minimized .chat-messages,
.chat-container.chat-minimized .chat-input-container,
.chat-container.chat-minimized .chat-footer {
    display: none;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chat-icon {
    font-size: 1.8rem;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-status {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-minimize-btn,
.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-left: 0.5rem;
}

.chat-minimize-btn:hover,
.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-secondary);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease-out;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.user-message .message-avatar {
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.message-content {
    background: var(--bg-primary);
    padding: 0.875rem 1rem;
    border-radius: 12px;
    max-width: calc(100% - 52px);
    word-wrap: break-word;
    line-height: 1.5;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.bot-message .message-content {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.message-content p {
    margin: 0 0 0.75rem 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.message-content strong {
    color: var(--primary-color);
}

.user-message .message-content strong {
    color: white;
    font-weight: 700;
}

.message-content code {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.error-message .message-content {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
}

/* Typing Indicator */
.typing-indicator .message-content {
    padding: 0.75rem 1rem;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* Chat Input */
.chat-input-container {
    padding: 1rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--text-secondary);
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    min-height: 44px;
    max-height: 120px;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.chat-send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.send-icon {
    font-size: 1.2rem;
    transform: translateX(1px);
}

/* Chat Footer */
.chat-footer {
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--text-secondary);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    flex-shrink: 0;
}

.chat-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-toggle-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .chat-toggle-text {
        display: none;
    }
    
    .chat-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        height: calc(100vh - 6rem);
        max-height: none;
    }
    
    .chat-container.chat-minimized {
        height: 60px;
        left: auto;
        width: calc(100vw - 2rem);
    }
    
    .chat-header h3 {
        font-size: 1rem;
    }
    
    .chat-status {
        font-size: 0.75rem;
    }
    
    .message-content {
        max-width: calc(100% - 48px);
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .chat-toggle-btn {
        padding: 0.75rem;
        border-radius: 50%;
    }
    
    .chat-icon {
        font-size: 1.5rem;
    }
}
