/* Base Typography */
body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Headings */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.modern-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

/* Paragraphs */
p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Modern Header Structure */
header {
    margin-bottom: 40px;
}

.modern-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-text {
    flex: 1;
}

.logo {
    max-width: 80px;
    height: auto;
    border: none;
    border-radius: 4px;
}

.hero-image-container {
    flex-shrink: 0;
}

.hero-image {
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .header-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-image {
        max-width: 100px;
    }
}

main {
    border: 3px solid #333;
    padding: 20px;
    margin-bottom: 30px;
}

section {
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 25px;
    background-color: #f8f9fa;
}

/* Collapsible Section Styles */
.collapsible-section {
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 10px 0;
    margin-bottom: 0;
}

.section-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.section-header h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-arrow {
    font-size: 1.2rem;
    color: #26428B;
    transition: transform 0.3s ease;
    padding: 0 10px;
}

.toggle-arrow.expanded {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 20px;
}

.section-content.expanded {
    max-height: 5000px;
    padding: 20px;
    padding-top: 10px;
}

footer.collapsible-section {
    padding: 20px;
}

footer .section-header {
    padding: 10px 0;
}

footer {
    border: 3px solid #333;
    padding: 20px;
    background-color: #ecf0f1;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav li {
    border: none;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

nav a {
    text-decoration: none;
    color: #26428B;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: #fff;
    background-color: #26428B;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Figure and Image */
figure {
    border: 2px solid #333;
    padding: 15px;
    margin: 0;
    background-color: #fff;
    text-align: center;
}

img {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
}

figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-container img {
    max-width: 200px;
    height: auto;
    border: none;
    border-radius: 4px;
    padding: 0;
    margin: 0;
    background-color: transparent;
    box-shadow: none;
}

/* Footer Links */
footer ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    gap: 20px;
}

footer li {
    border: 1px solid #333;
    padding: 8px 16px;
    background-color: #fff;
}

footer a {
    text-decoration: none;
    color: #26428B;
    font-weight: 500;
}

footer a:hover {
    color: red;
}

/* Project Page Styles */
.project-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.project-overview,
.project-technologies,
.project-features,
.project-links {
    margin-bottom: 30px;
}

.project-image-placeholder {
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 20px;
    color: #999;
}

.screenshot-carousel {
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 15px;
    box-sizing: border-box;
}

.carousel-slides {
    position: relative;
    flex: 1;
    max-width: 900px;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.carousel-slide {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.carousel-slide img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border: 2px solid #333;
    border-radius: 4px;
    display: block;
    box-sizing: border-box;
}

.carousel-slide figcaption {
    margin-top: 15px;
    font-style: italic;
    color: #666;
    font-size: 1rem;
}

.carousel-btn {
    background-color: #26428B;
    color: white;
    border: 2px solid #333;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
    z-index: 10;
    min-width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: #1a377d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn-prev {
    flex-shrink: 0;
}

.carousel-btn-next {
    flex-shrink: 0;
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    background-color: #bbb;
    border: 2px solid #333;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot:hover {
    background-color: #888;
}

.dot.active {
    background-color: #26428B;
}

@media (max-width: 768px) {
    .carousel-container {
        gap: 10px;
    }
    
    .carousel-btn {
        font-size: 2rem;
        padding: 8px 15px;
        min-width: 40px;
        height: 50px;
    }
}

.tech-list,
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.tech-list img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    max-width: 40px;
    max-height: 40px;
}

.tech-list div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 3px solid #26428B;
    border-radius: 4px;
    width: fit-content;
}

.features-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 3px solid #26428B;
    border-radius: 4px;
    display: inline-block;
    list-style-type: none;
    position: relative;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
}

.features-list li::before {
    content: '>';
    position: absolute;
    left: 10px;
    color: #26428B;
    font-weight: bold;
}

.links-list li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

.links-list a {
    text-decoration: none;
    color: #26428B;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #26428B;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.links-list a:hover {
    background-color: #26428B;
    color: #fff;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects-list li {
    margin-bottom: 15px;
}

.projects-list a {
    text-decoration: none;
    color: #26428B;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 20px;
    display: inline-block;
    border: 1px solid #26428B;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.projects-list a:hover {
    background-color: #26428B;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
