/* RISC-V Brand Colors */
:root {
    --riscv-blue: #283583;
    --riscv-yellow: #f7ce46;
    --riscv-dark-blue: #1a2350;
    --riscv-light-blue: #3d4a9f;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Colors */
.bg-riscv-blue {
    background-color: var(--riscv-blue) !important;
}

.bg-riscv-yellow {
    background-color: var(--riscv-yellow) !important;
}

.text-riscv-blue {
    color: var(--riscv-blue) !important;
}

.text-riscv-yellow {
    color: var(--riscv-yellow) !important;
}

/* Buttons */
.btn-riscv-blue {
    background-color: var(--riscv-blue);
    border-color: var(--riscv-blue);
    color: white;
}

.btn-riscv-blue:hover {
    background-color: var(--riscv-dark-blue);
    border-color: var(--riscv-dark-blue);
    color: white;
}

.btn-riscv-yellow {
    background-color: var(--riscv-yellow);
    border-color: var(--riscv-yellow);
    color: #000;
    font-weight: 600;
}

.btn-riscv-yellow:hover {
    background-color: #e5be35;
    border-color: #e5be35;
    color: #000;
}

/* Navigation */
.navbar-dark .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.navbar-dark .nav-link:hover {
    color: var(--riscv-yellow) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--riscv-blue) 0%, var(--riscv-dark-blue) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(247, 206, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 206, 70, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Section Spacing */
section {
    scroll-margin-top: 70px;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

/* Feature Icons */
.feature-icon {
    font-size: 2rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Table Styling */
.table {
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--riscv-yellow) !important;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--riscv-yellow);
    outline-offset: 2px;
}

/* Loading and Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}
