/* General responsive improvements */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    /* max-width: 50%; */
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: #4f666a;
    width: 100%;
    box-sizing: border-box;
    color: white;
    padding: 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.header h1 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: bold;
    margin: 0;
    flex: 1;
}

.image-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.image-carousel img {
    width: 300px;
    height: 300px;
    border-radius: 10%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: opacity 1s ease-in-out, transform 0.3s ease;
    display: block;
    margin-bottom: 0;
}

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

.carousel-caption {
    margin-top: 15px;
    background-color: rgba(79, 102, 106, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 1s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: static;
    display: block;
}

.toplinks {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20rem;

}

.toplinks a {
    text-decoration: none;
    color: #000000;
}

.toplinks a:hover {
    color: #ffffff;
}

.whoami {
    padding: 20px;
    padding-bottom: 20px;
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.6;
    display: flex;
    width:100%;
    align-items: flex-start;
    align-items: center;
    gap: 20px;
}

.whoami-text {
    flex: 1;
    max-width: 80%;
}

.whoami-content {
    flex: 1;
}

.whoami h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.reach-out {
    text-decoration: underline;
    font-weight: bold;
    color: #4f666a;
}

.contactInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
}


.contactInfoLinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-left: 100px;
    max-width: 400px;
    margin: 0 auto;

}

.beli {
    text-decoration: none;
    color: #134f5c;
    font-size: 25px;
    font-family: "toledo-serial";
}

@font-face {
    font-family: "toledo-serial";
    src: url("/Assets/toledo-serial.ttf");
}

/* Toggle button styles */
.toggle-container {
    text-align: center;
    margin: 20px 0;
}

/* .coolcontainer {
    padding-left: 50px;
} */

.coolitem li {
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.coolitem {
    margin-bottom: 20px;
}

.coolitem h2 {
    color: #4f666a;
    margin-bottom: 15px;
    font-size: clamp(18px, 3vw, 22px);
}

.coolitem h3 {
    color: #4f666a;
    margin: 20px 0 10px 0;
    font-size: clamp(16px, 2.5vw, 20px);
}

.toggle-btn {
    background-color: #4f666a;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: #3a4f53;
}

/* Photo gallery styles */
.photo-gallery {
    margin: 20px 0;
    max-width: 1200px;
    margin: 20px auto;
}

.reach-out {
    text-decoration: underline;
    font-weight: bold;
    color: #4f666a;
}

.photo-gallery h2, .photo-gallery h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(18px, 4vw, 24px);
}

.photo-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photo-grid::-webkit-scrollbar {
    display: none;
}

.photo-item {
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    min-width: 250px;
    max-width: 300px;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.photo-item p {
    margin: 0;
    font-weight: bold;
    color: #333;
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.3;
}

/* More section styles */
.more-section {
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .photo-grid {
        gap: 15px;
        padding: 0 15px;
        /* Keep horizontal scrolling on mobile */
        display: flex;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .photo-item {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    .photo-item img {
        height: 150px;
    }
    
    .toplinks {
        gap: 10rem;
    }

    .cool-section {
        padding-left: 35px;  /* More padding for bullet points */
    }

    .whoami {
        padding-left: 35px;  /* More padding for interests section */
    }

    .contactInfoLinks {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1px;

        padding-left: 20px;
        padding-right: 20px;
    }

    /* Education section horizontal scrolling on mobile */
    .class-list {
        padding-left: 20px !important;
        padding-right: 20px !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        scrollbar-width: none !important;
    }

    .class-item {
        min-width: 250px !important;
        flex-shrink: 0 !important;
    }

    /* Accordion responsive improvements */
    .accordion {
        width: 95% !important;
        margin: 0 auto !important;
    }

    .accordion-body img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }

    .accordion-body div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .accordion-body div[style*="display: flex"] img {
        width: 100% !important;
        height: auto !important;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 768px) {
    body {
        max-width: 90%;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }

    .whoami {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .image-carousel {
        margin-bottom: 0;
    }

    .image-carousel {
        flex-direction: column;
        align-items: center;
    }

    .image-carousel img {
        width: 200px;
        height: 200px;
    }

    .carousel-caption {
        margin-top: 12px;
        font-size: 11px;
        padding: 6px 10px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    body {
        max-width: 95%;
    }

    .header {
        padding: 15px 10px;
    }

    .header-content {
        gap: 15px;
        align-items: center;
    }

    .whoami {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        font-size: 16px;
    }

    .image-carousel {
        flex-direction: column;
        align-items: center;
    }

    .image-carousel img {
        width: 150px;
        height: 150px;
    }

    .carousel-caption {
        margin-top: 10px;
        font-size: 10px;
        padding: 5px 8px;
        max-width: 150px;
    }

    .contactInfoLinks {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .beli {
        font-size: 20px;
    }

    .accordion {
        width: 100% !important;
        margin: 0 !important;
    }

    .accordion-body {
        padding: 15px !important;
    }

    .accordion-body h3 {
        font-size: 18px !important;
    }

    .accordion-body p {
        font-size: 14px !important;
    }

    .cool-section {
        padding: 15px !important;
    }

    .cool-section h2 {
        font-size: 20px !important;
    }

    .cool-section h3 {
        font-size: 18px !important;
    }

    .photo-item {
        min-width: 180px;
    }

    .photo-item img {
        height: 120px;
    }
}

.citation {
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid #4f666a;
    background-color: #f8f8f8;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.citation-link {
    color: #4f666a;
    text-decoration: none;
}

.citation-link:hover {
    text-decoration: underline;
}

.cool-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cool-section h2 {
    font-size: clamp(20px, 4vw, 28px);
    margin-bottom: 20px;
}

.cool-section h3 {
    font-size: clamp(18px, 3vw, 22px);
    margin: 20px 0 10px 0;
}

.class-list {
    list-style: none;
    padding: 20px;
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.class-item {
    flex: 1 1 250px;
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
    border: 2px solid black;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.class-item li {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.4;
    margin: 0;
}



.footer {
    padding: 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-citation {
    font-size: clamp(12px, 2vw, 14px);
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.footer-link {
    text-decoration: none;
    color: #4f666a;
    font-size: clamp(12px, 2vw, 14px);
    transition: color 1s ease;
}

.footer-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Project images responsive layout */
.project-images {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.project-images img {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-images img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .project-images {
        flex-direction: column;
        align-items: center;
    }
    
    .project-images img {
        width: 100%;
        max-width: 400px;
    }
}