/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #1e293b;
    --text-color: #334155;
    --light-text: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --primary: #0d2e4d;
    --primary-light: #1c4d7d;
    --secondary: #e5b45b;
    --tertiary: #43766c;
    --accent: #d8315b;
    --surface: #ffffff;
    --surface-variant: #f0f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --dark-background: #0f172a;
    --dark-surface: #1e293b;
    --dark-surface-variant: #334155;
    --dark-text-primary: #f1f5f9;
    --dark-text-secondary: #94a3b8;
    --dark-border: #334155;
    --h1-size: 2.5rem;
    --h2-size: 1.75rem;
    --h3-size: 1.375rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(to bottom right, rgba(13, 46, 77, 0.03), rgba(13, 46, 77, 0)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e5b45b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Navbar Styles */
nav {
    background: var(--primary);
    padding: var(--spacing-lg) var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav h2 {
    color: white;
    font-size: var(--h2-size);
    font-weight: 600;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav h2::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), #ffd78a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

nav h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    border-radius: var(--radius-full);
    z-index: 2;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-brand h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.search-container {
    position: relative;
    width: 350px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

#searchInput {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-full);
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#searchInput:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    width: 300px;
    box-shadow: 0 0 0 2px rgba(229, 180, 91, 0.3);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Header */
header {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(229, 180, 91, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(67, 118, 108, 0.1) 0%, transparent 50%);
    z-index: 0;
}

header h1 {
    font-size: var(--h1-size);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    background: var(--white);
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
}

.frameworks-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Frameworks Content */
.frameworks-content {
    width: 100%;
}

.frameworks-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Updated Framework Card Design */
.framework-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    transform-origin: center bottom;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.framework-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-variant);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon.governance {
    background-color: rgba(229, 180, 91, 0.15);
    color: #b38728;
}

.card-icon.risk {
    background-color: rgba(67, 118, 108, 0.15);
    color: #2a4d46;
}

.card-icon.compliance {
    background-color: rgba(216, 49, 91, 0.15);
    color: #a81e41;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.expand-icon {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-variant);
    color: var(--primary);
}

.card-content {
    padding: var(--spacing-lg);
    background: var(--surface);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.framework-tag {
    padding: 4px 12px;
    background: rgba(13, 46, 77, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.framework-tag.governance {
    background: rgba(229, 180, 91, 0.2);
    color: #b38728;
}

.framework-tag.risk {
    background: rgba(67, 118, 108, 0.2);
    color: #2a4d46;
}

.framework-tag.compliance {
    background: rgba(216, 49, 91, 0.2);
    color: #a81e41;
}

.card-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: auto;
}

.card-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--small-size);
}

.btn-learn {
    background: var(--primary);
    color: white;
    flex: 1;
}

.btn-learn:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-compare {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    width: auto;
}

.btn-compare:hover {
    background: var(--surface-variant);
    color: var(--text-primary);
}

/* Categories Sidebar */
.framework-categories {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.categories-header h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.categories-header i {
    color: var(--light-text);
    font-size: 1.25rem;
}

.framework-categories ul {
    list-style: none;
}

.framework-categories li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.framework-categories li a i {
    width: 20px;
    text-align: center;
}

.framework-categories li a:hover,
.framework-categories li a.active {
    background: var(--background);
    color: var(--primary-color);
}

/* Accordion Styles */
.accordion {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.accordion-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-item:hover::before {
    opacity: 1;
}

.accordion-header {
    padding: 1.5rem;
    background: #fff;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header i {
    color: #95a5a6;
    transition: transform 0.3s ease;
}

.accordion-header i.fa-chevron-up {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem;
    display: none;
    background: #fff;
}

.accordion-content p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-content a {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.accordion-content a:hover {
    color: #2980b9;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand i {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .header-stats {
        gap: 2rem;
    }

    .frameworks-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    #searchInput {
        width: 100%;
    }

    .hero-header {
        padding: 6rem 1rem 3rem;
    }

    .hero-header h1 {
        font-size: 2rem;
    }

    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .frameworks-grid {
        grid-template-columns: 1fr;
    }

    .framework-categories {
        position: sticky;
        top: 80px;
        z-index: 100;
    }

    .frameworks-cards {
        grid-template-columns: 1fr;
    }

    .accordion {
        grid-template-columns: 1fr;
    }

    .category-filters {
        flex-direction: column;
        padding: 0 1rem;
    }

    .category-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .framework-card {
        padding: 1.25rem;
    }
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    background: var(--surface);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 46, 77, 0.05), rgba(229, 180, 91, 0.05));
    z-index: 0;
    opacity: 0;
    transition: var(--transition-normal);
}

.category-btn:hover::before {
    opacity: 1;
}

.category-btn i {
    font-size: 1.2rem;
    z-index: 1;
    transition: transform 0.3s ease;
}

.category-btn span {
    z-index: 1;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-btn:hover i {
    transform: scale(1.2);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.category-btn.active::before {
    background: linear-gradient(135deg, rgba(229, 180, 91, 0.2), transparent);
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-variant);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Card appearance animation for initial load */
.framework-card {
    opacity: 0;
    transform: translateY(20px);
    animation: appear 0.5s forwards;
}

@keyframes appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.framework-card:nth-child(2) {
    animation-delay: 0.1s;
}

.framework-card:nth-child(3) {
    animation-delay: 0.2s;
}

.framework-card:nth-child(4) {
    animation-delay: 0.3s;
}

.framework-card:nth-child(5) {
    animation-delay: 0.4s;
}

.framework-card:nth-child(6) {
    animation-delay: 0.5s;
}
