/* Main Styles for MCP Presentation */
:root {
    --primary-color: #5e72e4;
    --secondary-color: #11cdef;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: #2a2a2a;
    --success-color: #2dce89;
    --warning-color: #fb6340;
    --info-color: #11cdef;
    --gradient-start: #5e72e4;
    --gradient-end: #825ee4;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.highlight {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    margin-bottom: 2rem;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--darker-bg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color);
    padding: 10px 15px;
    font-weight: 500;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.9), rgba(130, 94, 228, 0.9)), url('https://images.unsplash.com/photo-1550439062-609e1531270e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    min-height: 100vh;
    position: relative;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border: none;
    box-shadow: 0 4px 12px rgba(94, 114, 228, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--gradient-end), var(--gradient-start));
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(94, 114, 228, 0.4);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-copy {
    padding: 3px 8px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-copy:hover {
    background: var(--primary-color);
    color: white;
}

/* Theory Cards */
.theory-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card-hover-effect:hover .theory-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.theory-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.theory-card h3::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    bottom: 0;
    left: 0;
}

.theory-card ul {
    padding-left: 20px;
}

.theory-card ul li {
    margin-bottom: 10px;
    position: relative;
}

.theory-card ul li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Utility Cards */
.utilidade-card {
    padding: 40px;
}

.util-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.util-item:hover {
    background-color: rgba(94, 114, 228, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.util-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.util-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Companies and Use Cases */
.company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.company-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.company-item:hover {
    background-color: rgba(94, 114, 228, 0.1);
}

.company-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.company-item span {
    font-weight: 500;
}

.use-case {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.use-case i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.use-case h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Code Container */
.code-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.code-header {
    background-color: #2c2c2c;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.code-header .filename {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-muted);
}

pre {
    margin: 0;
    padding: 0;
}

pre code {
    padding: 20px !important;
    border-radius: 0 !important;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Trend Chart */
.trend-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.chart-bar {
    width: 60px;
    background: linear-gradient(to top, rgba(94, 114, 228, 0.3), rgba(94, 114, 228, 0.7));
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar.active {
    background: linear-gradient(to top, rgba(94, 114, 228, 0.7), rgba(130, 94, 228, 1));
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.image-container img {
    max-width: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Steps */
.steps-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.steps {
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    z-index: 1;
}

.step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-right: 20px;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(94, 114, 228, 0.4);
}

.step-content {
    padding-top: 10px;
}

.step-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Terminal */
.terminal {
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
    overflow: hidden;
}

.terminal-header {
    background-color: #2c2c2c;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-close {
    background-color: #ff5f56;
}

.terminal-minimize {
    background-color: #ffbd2e;
}

.terminal-expand {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #f8f8f8;
    min-height: 300px;
}

.terminal-line {
    margin-bottom: 8px;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: #f8f8f8;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Exercise Card */
.exercise-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.exercise-card h3 {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.exercise-card h3 i {
    margin-right: 15px;
    color: var(--warning-color);
}

.exercise-card ol li {
    margin-bottom: 15px;
}

.hint-container {
    margin-top: 30px;
}

.hint-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(94, 114, 228, 0.1);
    border: 1px solid var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 70px 0;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .theory-card {
        margin-bottom: 30px;
    }
    .company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .theory-card {
        padding: 20px;
    }
    .util-item {
        padding: 15px;
    }
    .steps::before {
        left: 24px;
    }
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .terminal-body {
        min-height: 200px;
        font-size: 12px;
    }
    pre code {
        font-size: 12px;
        padding: 15px !important;
    }
}
