:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #5c6bc0;
    --text-color: #333;
    --light-text: #666;
    --background-color: #fff;
    --light-background: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    font-size: 0.9rem;
    color: var(--light-text);
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background-color: var(--light-background);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Content Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

/* Framework Cards */
.framework-card {
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
    transition: var(--transition);
}

.framework-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.framework-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.framework-icon {
    width: 60px;
    height: 60px;
    background: var(--light-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.framework-tag {
    background: var(--light-background);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Grid Layouts */
.benefits-grid,
.components-grid,
.features-grid,
.tiers-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-card,
.component,
.feature,
.tier {
    background: var(--light-background);
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.benefit-card:hover,
.component:hover,
.feature:hover,
.tier:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.benefit-card i,
.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Implementation Steps */
.implementation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-content ul {
    list-style: none;
    margin-top: 10px;
}

.step-content ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.step-content ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.comparison-card {
    background: var(--light-background);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.comparison-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-icon {
    font-size: 1.5rem;
}

.comparison-content {
    padding: 20px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.comparison-item:last-child {
    border-bottom: none;
}

/* Best Practices */
.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.practice-card {
    background: var(--light-background);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.practice-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.practice-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.practice-card ul {
    list-style: none;
    text-align: left;
}

.practice-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.practice-card ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background: var(--light-background);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.resource-card ul {
    list-style: none;
}

.resource-card ul li {
    margin-bottom: 10px;
}

.resource-card ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.resource-card ul li a:hover {
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        display: none;
    }

    .framework-card {
        padding: 20px;
    }

    .implementation-steps,
    .comparison-grid,
    .best-practices-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    animation: fadeIn 0.8s ease-out;
}

/* NIST CSF Section Enhancements */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.function {
    background: var(--light-background);
    padding: 25px;
    border-radius: 8px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.function:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: var(--background-color);
}

.function h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.function h4::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.function ul {
    list-style: none;
    margin-top: 15px;
}

.function ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.function ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Tiers Grid Enhancement */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tier {
    background: var(--light-background);
    padding: 25px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tier::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

.tier:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tier h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier ul {
    list-style: none;
    margin-top: 15px;
}

.tier ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.tier ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Framework Selection Section */
.framework-selection {
    background: var(--light-background);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.framework-selection h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.selection-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.criterion {
    background: var(--background-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.criterion:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.criterion h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.criterion h4::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.criterion ul {
    list-style: none;
    margin-top: 15px;
}

.criterion ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.criterion ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .functions-grid,
    .tiers-grid,
    .selection-criteria {
        grid-template-columns: 1fr;
    }

    .framework-selection {
        padding: 20px;
    }

    .criterion {
        padding: 20px;
    }
} 