/* Base Variables */
:root {
    /* Color Scheme */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --card-background: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Fonts */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

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

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

/* Navigation Bar */
.navbar {
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--primary-color);
}

.logo-img {
    height: 30px;
    width: auto;
    border-radius: 4px;
}

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

.logo-link:hover .logo-text {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 223, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #89D4FF 0%, #FFFFFF 100%);
    color: #333;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease;
    color: #333;
}

.title-icon {
    margin-right: var(--spacing-xs);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.2s both;
    color: #333;
}

/* Author Information */
.authors {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease 0.4s both;
}

.author-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.author {
    font-size: 1.1rem;
    font-weight: 500;
}

.author a {
    color: #333;
    text-decoration: none;
}

.author a:hover {
    text-decoration: underline;
}

.affiliations {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Button Styles */
.hero-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-tertiary {
    background-color: rgba(0, 0, 0, 0.15);
    color: #333;
}

.btn-tertiary:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

.btn-copy {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-copy:hover {
    background-color: #2980b9;
}

/* Abstract */
.abstract {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.8s both;
}

.abstract h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.abstract p {
    line-height: 1.8;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.section {
    margin-bottom: var(--spacing-xl);
    background-color: var(--card-background);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    margin: 0 auto;
}

/* Framework Section */
.framework-diagram {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.framework-diagram img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.framework-diagram img:hover {
    transform: scale(1.02);
}

/* Section Content with Text and Image */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.section-text {
    text-align: left;
}

.section-text p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.section-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Features List */
.features-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

/* ProactiveMind Section */
.proactive-content {
    margin-top: var(--spacing-lg);
}

.proactive-text {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.proactive-text p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-light);
}

.proactive-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.proactive-image-item {
    text-align: center;
}

.proactive-image-item img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* ProactiveMind Training Image */
.proactive-training {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.proactive-training img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.proactive-training img:hover {
    transform: scale(1.02);
}

/* Tools Section */
.tools-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.tools-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-light);
}

.tools-carousel-container {
    margin-top: var(--spacing-lg);
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    text-align: center;
}

.carousel-slide img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.carousel-slide .figure-caption {
    padding: var(--spacing-sm);
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: var(--secondary-color);
    opacity: 0.7;
}

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

/* Figure Caption */
.figure-caption {
    text-align: center;
    margin-top: var(--spacing-sm);
    font-style: italic;
    opacity: 0.8;
}

/* Citation Section */
.citation-centered {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.citation-centered .citation-box {
    max-width: 800px;
    width: 100%;
}

.citation-box {
    background-color: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: 10px;
}

.citation-box pre {
    background-color: var(--primary-color);
    color: #ecf0f1;
    padding: var(--spacing-md);
    border-radius: 5px;
    overflow-x: auto;
    margin: var(--spacing-md) 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation: fadeIn 0.5s ease;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #f1f1f1;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-content {
        grid-template-columns: 1fr;
    }

    .proactive-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .nav-menu {
        display: none;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero-links, .btn, .modal {
        display: none;
    }

    .hero {
        background: none;
        color: black;
        min-height: auto;
        padding: 1rem;
    }

    .section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
