:root {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --accent-color: #4299e1;
    --background-color: #f7fafc;
    --card-background: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --success-color: #48bb78;
    --warning-color: #ed8936;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* .header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
} */

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.credit-info {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.credit-info h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

.model-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.model-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.credit-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional CSS for better responsiveness and enhanced styling */
/* General Responsive Grid Improvements */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Model Section Responsive Styling */
.model-section {
    margin: 1rem 0;
    padding: 0 1rem;
}

@media (max-width: 1200px) {
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .model-section {
        margin: 1rem 0;
    }
}

/* Enhanced Model Cards */
.model-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.model-card.premium {
    border: 2px solid var(--accent-color);
    position: relative;
}

.model-card.premium::before {
    content: "Premium";
    position: absolute;
    top: -12px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Model Header Improvements */
.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.model-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Credit Badge Enhancement */
.credit-badge {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--primary-color)
    );
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Model Stats Improvements */
.model-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
    background-color: var(--background-color);
    padding: 1.2rem;
    border-radius: 8px;
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

/* Capability List Enhancement */
.capability-list {
    grid-column: 1 / -1;
    margin: 0.5rem 0;
    padding-left: 0;
}

.capability-list li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
    list-style: none;
}

.capability-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Performance Indicator */
.performance-indicator {
    grid-column: 1 / -1;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.performance-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--accent-color),
        var(--success-color)
    );
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .model-card {
        padding: 1rem;
    }

    .model-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .credit-badge {
        align-self: flex-start;
    }

    .model-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .stat-label {
        min-width: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #2d3748;
        --secondary-color: #4a5568;
        --accent-color: #4299e1;
        --background-color: #1a202c;
        --card-background: #2d3748;
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --border-color: #4a5568;
    }

    .model-card {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .model-stats {
        background-color: rgba(0, 0, 0, 0.2);
    }
}

/* Loading States */
.model-card.loading {
    position: relative;
    overflow: hidden;
}

.model-card.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Accessibility Improvements */
.model-card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.model-card button,
.model-card select,
.model-card input {
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Print Styles */
@media print {
    .model-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .credit-badge {
        border: 1px solid #000;
        color: #000;
        background: none;
    }
}

/* Comparison Table Styling */
.comparison-table {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    min-width: 800px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
}

.comparison-table tr:hover {
    background-color: var(--background-color);
}

/* Skip Link Styling */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Loading Animation Enhancement */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        to right,
        #f6f7f8 0%,
        #edeef1 20%,
        #f6f7f8 40%,
        #f6f7f8 100%
    );
    background-size: 1000px 100%;
}

:root {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --accent-color: #4299e1;
    --background-color: #f7fafc;
    --card-background: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --shadow-sm: 0 1px 2px 0 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);
}

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

.guide-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-card h3 {
    color: var (--accent-color);
    margin-bottom: 0.5rem;
}

.guide-card ul {
    list-style: none;
    padding-left: 0;
}

.guide-card ul li {
    padding-left: 1.5rem;
    position: relative;
}

.guide-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* Navigation Styles */
.model-categories {
    position: sticky;
    top: 0;
    background: var(--card-background);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.model-categories.scrolled {
    padding: 0.5rem 0;
    transform: translateY(10px); /* Move down slightly when scrolled */
    transition: transform 0.3s ease;
}

.model-categories ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    margin: 0;
    list-style: none;
}

.model-categories .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.model-categories .nav-link:hover,
.model-categories .nav-link.active {
    background-color: var(--accent-color);
    color: white;
}

/* Model Section Styles */
.model-section {
    padding: 1rem 0;
}

.model-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.model-grid {
    display: grid;
    gap: 1rem;
}

.model-category {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

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

.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Model Card Styles */
.model-card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.model-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.credit-badge {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--primary-color)
    );
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.model-stats {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .model-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .model-categories ul {
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .model-categories .nav-link {
        padding: 0.5rem 1rem;
    }

    .model-section {
        padding: 2rem 0;
    }

    .model-category {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .model-cards {
        grid-template-columns: 1fr;
    }

    .model-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Model Search and Filter */
.model-search {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.model-search input,
.model-search select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.model-search input {
    flex: 1;
    min-width: 200px;
}

.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--background-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cost Comparison Chart */
.cost-comparison {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container {
    height: 500px;
    position: relative;
    margin-bottom: 2rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-background);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.openai {
    background: rgba(59, 130, 246, 0.7);
}

.legend-color.google {
    background: rgba(16, 185, 129, 0.7);
}

.legend-color.anthropic {
    background: rgba(139, 92, 246, 0.7);
}

.legend-color.vision {
    background: rgba(245, 158, 11, 0.7);
}

.legend-color.generation {
    background: rgba(236, 72, 153, 0.7);
}

.legend-color.editing {
    background: rgba(99, 102, 241, 0.7);
}

@media (max-width: 768px) {
    .chart-container {
        height: 400px;
    }

    .chart-legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .legend-item {
        width: 100%;
    }
}

/* Footer Styles */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.models-wrapper {
    padding: 2rem 0;
}

.model-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.model-card {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.model-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.credit-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.model-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.capabilities {
    margin-top: 0.5rem;
}

.capabilities ul {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.capabilities li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    position: relative;
}

.capabilities li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: var(--accent-color);
}

.model-categories {
    position: sticky;
    top: 42px;
    background: var(--card-background);
    z-index: 100;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.model-categories ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.model-categories .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.model-categories .nav-link:hover,
.model-categories .nav-link.active {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {
    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .model-categories {
        padding: 0.5rem;
    }

    .model-categories ul {
        gap: 0.5rem;
    }

    .model-categories .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .model-grid {
        grid-template-columns: 1fr;
    }

    .model-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.calculator-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator-card {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.calculator-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calculator-input label {
    font-weight: 600;
    color: var(--text-secondary);
}

.calculator-input input,
.calculator-input select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.calculator-result {
    text-align: center;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 6px;
}

.calculator-result h3 {
    margin-bottom: 0.5rem;
}

#creditResult {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.example-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.example-content {
    margin-top: 1rem;
}

.calculation {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: var(--background-color);
    border-radius: 4px;
    font-weight: 600;
}

.tooltip {
    position: fixed;
    display: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

    .examples-grid {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    height: 500px;
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.openai {
    background: rgba(66, 153, 225, 0.5);
}

.legend-color.google {
    background: rgba(72, 187, 120, 0.5);
}

.legend-color.vision {
    background: rgba(237, 137, 54, 0.5);
}

.legend-color.image {
    background: rgba(159, 122, 234, 0.5);
}

@media (max-width: 768px) {
    .chart-container {
        height: 400px;
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Enhanced Footer Styles */
.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section ul li a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.top-nav {
    background: var(--card-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 32px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--background-color);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.top-nav .container {
    padding: 0 !important;
}

.nav-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        justify-content: center;
        text-align: center;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-nav {
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
