:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #7f8c8d;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --section-padding: 100px 0;
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #4fa3e0;
    --secondary-color: #2ecc71;
    --dark-color: #f0f0f0;
    --light-color: #2c3e50;
    --text-color: #f0f0f0;
    --text-light: #bdc3c7;
    --background-color: #1a1a2e;
    --card-background: #16213e;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-light);
    padding: 10px 28px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Header & Navigation */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dark-theme .header {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.theme-toggle {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 20px;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

.dark-theme .projects {
    background-color: rgba(22, 33, 62, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.project-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 13px;
    background-color: #f0f7ff;
    color: #3498db;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #3498db;
    transition: transform 0.2s ease;
    font-size: 15px;
    text-decoration: none;
}

.project-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    min-height: 370px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 12px;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.skill-item {
    font-size: 0.78rem;
    width: 33%;
    min-height: 56px;
    margin-bottom: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.skill-item i {
    font-size: 1.02rem;
    margin-bottom: 2px;
}

.skill-item span {
    font-size: 0.78rem;
    line-height: 1.13;
    max-width: 92px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block;
    margin-top: 2px;
    word-break: break-word;
    text-align: center;
}

.skill-items {
  width: 100%;
  gap: 18px 0;
}

@media (max-width: 900px) {
  .skill-item {
    width: 45%;
    font-size: 0.88rem;
    min-height: 60px;
  }
  .skill-item span {
    max-width: 120px;
    font-size: 0.88rem;
  }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

.dark-theme .contact {
    background-color: rgba(22, 33, 62, 0.5);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
}

.dark-theme .footer {
    background-color: #0f1323;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        background-color: var(--background-color);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-btn {
        display: block;
    }
    
    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        width: calc(50% - 10px);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .skill-item {
        width: 100%;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Project Detail Page Styles */
.project-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.project-header {
    margin-bottom: 2rem;
    text-align: center;
}

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

.project-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-header .project-tags {
    justify-content: center; 
    margin-top: 1rem;
}

.project-iframe {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.project-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.detail-card h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.return-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.return-link i {
    margin-right: 0.5rem;
}

.return-link:hover {
    transform: translateX(-5px);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
}

.project-actions {
    text-align: center; 
    margin-top: 2rem;
}

.project-actions .btn {
    margin: 0 0.5rem;
}

/* Dark theme adaptations for project pages */
.dark-theme .detail-card,
.dark-theme .feature-item {
    background-color: var(--card-background);
}

/* Responsive adjustments for project pages */
@media (max-width: 768px) {
    .project-container {
        padding: 1rem;
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

/* Table styles for project details */
.integration-table, 
.ai-models-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.integration-table th, 
.ai-models-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.integration-table td, 
.ai-models-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.integration-table tr:last-child td, 
.ai-models-table tr:last-child td {
    border-bottom: none;
}

.integration-table tr:nth-child(even), 
.ai-models-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
}

.dark-theme .integration-table th, 
.dark-theme .ai-models-table th {
    background-color: #4fa3e0;
}

.dark-theme .integration-table tr:nth-child(even), 
.dark-theme .ai-models-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .integration-table td, 
.dark-theme .ai-models-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .integration-table, 
    .ai-models-table {
        font-size: 0.9rem;
    }
    
    .integration-table th, 
    .ai-models-table th,
    .integration-table td, 
    .ai-models-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .integration-table, 
    .ai-models-table {
        font-size: 0.8rem;
    }
    
    .integration-table th, 
    .ai-models-table th {
        font-size: 0.85rem;
    }
}

/* AI Executive Agents Page Specific Styles */
.hero-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.hero-section h1::before {
    content: '🚀';
    margin-right: 10px;
}

.hero-section h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.agent-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.agent-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.dark-theme .agent-card {
    background-color: var(--card-background);
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.agent-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.agent-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.agent-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.agent-card-image {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.agent-card-image img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.agent-card:hover .agent-card-image img {
    transform: scale(1.05);
}

.architecture-section {
    margin: 3rem 0;
    text-align: center;
}

.architecture-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: inline-block;
}

.architecture-section h2::before {
    content: '📐';
    margin-right: 10px;
}

.architecture-image {
    margin: 2rem auto;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.architecture-image img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.enlarge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.enlarge-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.enlarge-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.simulation-section {
    margin: 3rem 0;
}

.simulation-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
    display: inline-block;
}

.simulation-section h2::before {
    content: '💬';
    margin-right: 10px;
}

.simulation-cards {
    margin-top: 2rem;
}

.simulation-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.dark-theme .simulation-card {
    background-color: var(--card-background);
}

.simulation-info {
    padding: 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.simulation-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.simulation-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.simulation-command {
    background-color: #f7f9fc;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #333;
    display: block;
}

.dark-theme .simulation-command {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.simulation-result {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simulation-result img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.tech-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.tech-column ul {
    list-style-type: none;
    padding: 0;
}

.tech-column li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.tech-column li::before {
    content: '▹';
    color: var(--primary-color);
    margin-right: 10px;
}

.accordion {
    margin: 2rem 0;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dark-theme .accordion-header {
    background-color: var(--card-background);
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.accordion-header .icon {
    transition: all 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

.accordion-content-inner {
    padding: 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.call-to-action {
    background-color: #f8faff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dark-theme .call-to-action {
    background-color: rgba(255, 255, 255, 0.03);
}

.call-to-action h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

.social-btn i {
    margin-right: 8px;
}

@media (max-width: 992px) {
    .agent-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .simulation-card {
        grid-template-columns: 1fr;
    }
    
    .simulation-info {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 768px) {
    .agent-cards,
    .tech-columns {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
}

/* Overlay para imágenes ampliadas */
.enlarge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.enlarge-overlay.active {
    opacity: 1;
    visibility: visible;
}

.enlarge-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Ajustes para la sección de arquitectura */
.architecture-section {
    margin: 3rem 0;
}

.architecture-section h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.architecture-image {
    margin-top: 2rem;
    text-align: center;
}

.architecture-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.architecture-image img:hover {
    transform: scale(1.02);
}

/* Estilos para tarjetas de agente */
.agent-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.agent-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.agent-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 2rem auto 1rem;
}

.agent-card h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.agent-card p {
    padding: 0 1.5rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.agent-card-image {
    margin-top: auto;
    width: 100%;
}

.agent-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-card-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero section específica para páginas de proyecto */
.hero-section {
    text-align: center;
    margin: 2rem 0 4rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero-section h2 {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Subtítulos de sección */
.section-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.section-subtitle {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
}

/* Tablas de integración y modelos AI */
.integration-table,
.ai-models-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.integration-table th,
.ai-models-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    text-align: left;
}

.integration-table td,
.ai-models-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.integration-table tr:last-child td,
.ai-models-table tr:last-child td {
    border-bottom: none;
}

.integration-table tr:hover td,
.ai-models-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.02);
}

.dark-theme .integration-table th,
.dark-theme .ai-models-table th {
    background-color: var(--primary-color);
}

.dark-theme .integration-table td,
.dark-theme .ai-models-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-theme .integration-table tr:hover td,
.dark-theme .ai-models-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .agent-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .simulation-card {
        grid-template-columns: 1fr;
    }
    
    .simulation-info {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 768px) {
    .agent-cards,
    .tech-columns {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
}

/* Carrusel de imágenes */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dark-theme .carousel-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-slides {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.dark-theme .carousel-slide {
    background: #1a1a2e;
}

.carousel-slide img, .carousel-slide video {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}

.carousel-slide video {
    max-height: 500px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-container:hover .carousel-caption {
    transform: translateY(0);
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-control {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin: 0 10px;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.dark-theme .carousel-control {
    background-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.carousel-caption-dynamic {
    margin: 1.2rem auto 0 auto;
    max-width: 520px;
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.1rem 1.6rem;
    font-size: 1.08rem;
    color: #333;
    text-align: center;
    line-height: 1.6;
    transition: background 0.3s;
}

.dark-theme .carousel-caption-dynamic {
    background: rgba(34,34,48,0.92);
    color: #fff;
}

.carousel-caption-dynamic b {
    color: #2d7be5;
    font-weight: 600;
}

@media (max-width: 600px) {
    .carousel-caption-dynamic {
        font-size: 0.98rem;
        padding: 0.8rem 0.7rem;
    }
}

.carousel-caption-fixed {
    margin: 1.5rem auto 0 auto;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 1.2rem 1.8rem;
    font-size: 1.08rem;
    color: #232323;
    text-align: center;
    line-height: 1.6;
    font-family: inherit;
    border: 1px solid #f0f0f0;
}

.dark-theme .carousel-caption-fixed {
    background: #232232;
    color: #fff;
    border: 1px solid #2d2d3a;
}

.carousel-caption-fixed b {
    color: #2d7be5;
    font-weight: 600;
}

@media (max-width: 600px) {
    .carousel-caption-fixed {
        font-size: 0.98rem;
        padding: 0.8rem 0.7rem;
    }
}

/* Responsive para carrusel */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Añadir estilos para el acordeón del escenario */
.scenario-accordion {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.scenario-header {
    background-color: var(--card-background);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-theme .scenario-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scenario-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.scenario-header h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.scenario-header .icon {
    transition: all 0.3s ease;
}

.scenario-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.scenario-accordion.active .scenario-content {
    max-height: 800px; /* Alto máximo cuando está abierto */
}

.scenario-accordion.active .scenario-header .icon {
    transform: rotate(180deg);
}

.scenario-inner {
    padding: 1rem;
}

/* Centrar última fila de Skills cuando hay solo dos cajas */
@media (min-width: 900px) {
  .skills-container.skills-grid-4x2 {
    grid-template-columns: repeat(4, 1fr);
  }
  .skills-container.skills-grid-4x2 > .skill-category:nth-last-child(-n+2):nth-child(n+7) {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .skills-container.skills-grid-4x2 {
    justify-items: center;
  }
}

/* Override Skills grid a 2 filas x 4 columnas y resetear hacks de spanning */
@media (min-width: 900px) {
  .skills-container.skills-grid-4x2 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .skills-container.skills-grid-4x2 > .skill-category {
    grid-column: auto !important;
  }
}

/* Reducir tamaño de iconos en skill items para mejorar estética */
.skill-item i {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.skills-container.skills-grid-4x2 {
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-rows: 1fr;
}

.skill-category {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 12px;
}

.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.skill-items {
  width: 100%;
}

.skill-item {
  font-size: 0.92rem;
}

.skill-item i {
  font-size: 1rem;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .skills-container.skills-grid-4x2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .skill-category {
    min-height: unset;
    padding: 16px 8px;
  }
}
