@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Heebo', sans-serif;
}

a{
    text-decoration: none;
    color: #000;
}

img{
    object-fit: cover;
    object-position: top;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

nav{
    padding: 20px 148px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

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

nav .logo img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

nav .logo a{
    font-size: 15px;
    color: #3e3e3e;
    font-weight: bold;
}

nav .nav-links{
    display: flex;
    gap: 16px;
}

nav .nav-links a{
    transition: color 0.3s ease;
}

nav .nav-links a:hover,
nav .nav-links a.selected{
    color: #303f9f;
}

.main {
    padding: 0 148px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    height: calc(100vh - 80px);

}

.main .info h1{
    font-size: 44px;
    margin-bottom: 40px;
}

.main .info p{
    font-size: 16px;
    margin-bottom: 45px;
    width: 100%;
}

.main .info button,
.content .post-list .post-item .buttons button{
    padding: 10px 30px;
    background: #303f9f;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.main .info button:hover,
.content .post-list .post-item .buttons button:hover{
    background: #1a237e;
}

.main img{
    width: 400px;
    height: 400px;
    border-radius: 140px;
}

.recent{
    padding: 60px 148px;
    background-color: #dbedf2;
}

.recent .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.recent .header h4,
.separator h4{
    font-size: 20px;
    font-weight: 400;
}

.recent .header a{
    color: #303f9f;
}

.recent .posts{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.recent .posts .post-item{
    background-color: #fff;
    padding: 24px;
    width: 460px;
}

.recent .posts .post-item h3,
.content .post-list .post-item h3{
    font-size: 26px;
    margin-bottom: 18px;
}

.recent .posts .post-item .info,
.content .post-list .post-item .info{
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.recent .posts .post-item .info h5,
.content .post-list .post-item h5{
    font-size: 18px;
    font-weight: 400;
}

.recent .posts .post-item p{
    width: 400px;
}

.separator{
    padding: 40px 148px 0;
}

.separator h4{
    margin-bottom: 30px;
}

.featured{
    padding: 40px 290px 0;
}

.featured .item,
.works-list .item{
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.featured .item img,
.works-list .item img{
    width: 320px;
    height: 200px;
    border-radius: 6px;
}

.featured .item .details h3,
.works-list .item h3{
    font-size: 30px;
    margin-bottom: 16px;
}

.featured .item .details .item-info,
.works-list .item .details .item-info{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.featured .item .details .item-info .year-badge,
.works-list .item .details .item-info .year-badge,
.content .work-info .year-badge{
    background-color: #303f9f;
    padding: 2px 14px;
    color: #fff;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
}

.featured .item .details .item-info h4,
.works-list .item .details .item-info h4{
    color: #8695a4;
    font-size: 18px;
}

.featured .item .details p,
.works-list .item .details p{
    width: 700px;
    text-align: justify;
}

footer{
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .socials{
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
}

footer .socials i{
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer .socials i:hover{
    color: #303f9f;
}

footer p{
    font-size: 14px;
}

.page-title{
    padding: 80px 234px 20px;
    width: 100%;
    text-align: center;
}

.content{
    padding: 30px 148px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content .work-info{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 970px;
}

.content .work-info .category{
    color: #8695a4;
    font-size: 18px;
}

.content>p{
    width: 970px;
    font-size: 15px;
    margin: 30px 0;
}

.content>img{
    width: 970px;
    margin: 30px 0;
    border-radius: 20px;
}

.content>h1,
.content>h2,
.content>h3{
    width: 970px;
}

.content .post-list{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content .post-list .post-item{
    background-color: #dbedf2;
    padding: 24px;
    width: 960px;
    border-radius: 10px;
}

.content .post-list .post-item .buttons{
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.content .post-list .post-item .buttons button{
    font-size: 14px;
    padding: 6px 20px;
}

.content .post-list .post-item .buttons i{
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.content .post-list .post-item .buttons i:hover{
    color: #303f9f;
}

.content .container{
    background-color: #dbedf2;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 970px;
    border-radius: 20px;
}

.content .container img{
    width: 300px;
    height: 300px;
    border-radius: 20px;
}

.content .container h2{
    margin-bottom: 20px;
    font-size: 30px;
}

.content .container .about>p{
    text-align: justify;
}

.content .container .about .email{
    font-weight: bold;
    margin-top: 30px;
    font-size: 14px;
}

@media screen and (max-width: 1400px) {
    
    nav{
        padding: 20px 60px;
    }

    .main{
        padding: 0 60px;
    }

    .recent{
        padding: 60px;
    }

    .featured,
    .separator{
        padding: 40px 60px 0;
    }

    .page-title{
        padding: 80px 60px 20px;
    }

}

@media screen and (max-width: 1200px) {
    
    nav{
        padding: 20px 40px;
    }

    .main{
        padding: 0 40px;
    }

    .main img{
        width: 340px;
        height: 340px;
    }

    .recent{
        padding: 40px;
    }

    .featured,
    .separator{
        padding: 40px 40px 0;
    }

    .featured .item .details p,
    .works-list .item .details p{
        width: 100%;
    }

    .page-title{
        padding: 80px 40px 20px;
    }

    .content .work-info,
    .content>p,
    .content>img,
    .content>h1,
    .content>h2,
    .content>h3,
    .content .post-list .post-item,
    .content .container{
        width: 100%;
    }

    .content .container img{
        width: 250px;
        height: 250px;
    }

    .content .container h2{
        font-size: 24px;
        margin-bottom: 10px;
    }

    .content .container .about>p{
        font-size: 14px;
    }

}

@media screen and (max-width: 992px) {
    
    nav{
        padding: 20px;
    }

    .main{
        padding: 0 20px;
    }

    .main img{
        width: 300px;
        height: 300px;
    }

    .main .info h1{
        font-size: 34px;
    }

    .main .info p{
        font-size: 15px;
    }

    .main .info button{
        font-size: 15px;
        padding: 8px 22px;
    }

    .recent{
        padding: 40px 20px;
    }

    .recent .posts .post-item{
        width: 100%;
    }

    .recent .posts .post-item h3,
    .content .post-list .post-item h3{
        font-size: 20px;
    }

    .recent .posts .post-item .info h5,
    .content .post-list .post-item .info h5{
        font-size: 14px;
    }

    .recent .posts .post-item p{
        width: 100%;
        font-size: 14px;
    }

    .featured,
    .separator{
        padding: 40px 20px 0;
    }

    .featured .item,
    .works-list .item{
        flex-direction: column;
        padding: 0 20px 30px;
    }

    .featured .item img,
    .works-list .item img{
        width: 100%;
        height: auto;
    }

    .featured .item .details h3,
    .works-list .details .item h3{
        font-size: 24px;
        margin-bottom: 12px;
    }

    .featured .item .details .item-info .year-badge,
    .works-list .item .details .item-info .year-badge{
        font-size: 12px;
    }

    .featured .item .details .item-info h4,
    .works-list .item .details .item-info h4{
        font-size: 15px;
    }

    .featured .item .details p,
    .works-list .item .details p{
        font-size: 14px;
    }

    .content{
        padding: 30px 20px 60px;
    }

    .content .container h2{
        font-size: 20px;
    }

    .content .container .about>p{
        font-size: 13px;
    }

}

@media screen and (max-width: 768px) {
    
    nav{
        justify-content: center;
    }

    nav .logo{
        display: none;
    }

    .main{
        flex-direction: column;
        justify-content: space-around;
        margin: 40px 0;
        height: auto;
    }

    .main .info h1{
        font-size: 30px;
        margin-bottom: 16px;
    }

    .main .info p{
        margin-bottom: 16px;
    }

    .main .info button{
        padding: 6px 20px;
        font-size: 13px;
    }

    .main img{
        margin-top: 20px;
        width: 100%;
        height: auto;
        border-radius: 50px;
    }

    .recent .posts,
    .content .container{
        flex-direction: column;
    }

    .content .container img{
        width: 100%;
        height: auto;
    }

}



.large-image-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

#largeImage {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.thumbnail {
    cursor: pointer;
    /* Add any styling for the thumbnail as needed */
}

h2 {
    padding-top: 25px;
    font-size: 35px;
    text-align:center;
}



.cool-container {
    text-align: center;
}

.another-cool-button {
    display: inline-block;
    background-color: #303f9f;
    padding: 10px 30px;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.another-cool-button:hover {
    background-color: #1a237e;
}



.content .container2{
    /* background-color: red; */
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 970px;
    border-radius: 20px;
}


.content .container2 img{
    width: 300px;
    height: 300px;
    border-radius: 20px;
}

.content .container2 h2{
    margin-bottom: 20px;
    font-size: 30px;
}

.content .container2 .about>p{
    text-align: justify;
}

.content .container2 .about .email{
    font-weight: bold;
    margin-top: 30px;
    font-size: 14px;
}
.youtube{
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    border-radius: 20px;
}
.youtube-container{
	margin: auto;
    max-width: 970px;
	width: 90%;
	position: relative;
	aspect-ratio: 16/9;
}

.info-works{
    text-align: left;
    display: flex;
    justify-content: left;
    align-items: left;
    position:relative;
}



/* Ensure footer stays at the bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.content-container {
    flex-grow: 1;
    padding: 60px 148px;
}

footer {
    width: 100%;
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    position: relative;
    bottom: 0;
}

/* Language section and projects styling */
.language-section {
    margin-bottom: 40px;
}

.language-section h2 {
    font-size: 28px;
    color: #303f9f;
    margin-bottom: 20px;
}

.project {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 8px;
}

.project strong {
    font-size: 18px;
}

.project p {
    margin: 5px 0;
}

.project a {
    color: #303f9f;
    text-decoration: underline;
    font-weight: bold;
}


/* Container for language overview */
.language-overview {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 8px;
}

/* Hidden class to toggle visibility */
.hidden {
    display: none;
}

/* Project section styling */
.project-section {
    margin-bottom: 40px;
}

.project-section h2 {
    font-size: 28px;
    color: #303f9f;
    margin-bottom: 20px;
}

.project {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.project strong {
    font-size: 18px;
}

.project p {
    margin: 5px 0;
}

.project a {
    color: #303f9f;
    text-decoration: underline;
    font-weight: bold;
}

/* Limit the width of the main content to 50% */
.limited-width {
    width: 50%;
    margin: 0 auto;
}

/* Hide class to toggle visibility */
.hidden {
    display: none;
}


/* Limit the width of the main content to 50% */
.limited-width {
    width: 50%;
    margin: 0 auto;
}

/* Hide class to toggle visibility */
.hidden {
    display: none;
}

/* Center and style the filter dropdown */
.centered {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-container select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f2f2f2;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-container select:hover {
    background-color: #e0e0e0;
}

/* Adjust spacing between label and select */
.filter-label {
    margin-right: 10px;
}

/* Consistent tile styling */
.tile {
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tile:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Project container (50% width) styling */
.project-section {
    width: 100%;
}


.code-wrapper {
    position: relative;
    max-width: 970px;
    margin: 40px auto;
    padding-top: 36px;
    min-height: 400px; /* <-- This forces all wrappers to be at least this tall */
  }
  
  
  pre[class*="language-"] {
    border-radius: 12px;
    padding: 48px 20px 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    max-height: 900px;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #2d2d2d !important;
    color: #f8f8f2;
  }

  .code-wrapper {
    position: relative;
    max-width: 970px;
    margin: 0 auto;
    margin-bottom: 40px;
    padding-top: 36px; /* adds space for floating buttons */
  }
  
  .code-actions {
    position: absolute;
    top: 0;
    right: 20px;
    display: flex;
    gap: 6px;
  }
  
  .code-button {
    background-color: #000;
    color: #fff;
    border: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  .code-button:hover {
    background-color: #333;
  }
  
  

  
  .toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
  }

  .floating-toast.show {
    opacity: 1;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .screenshot-section {
    max-width: 970px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .screenshot {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }
  
  .screenshot img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
  }
  
  .screenshot p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
  }

  #nightowl-toggle {
    z-index: 500 !important; /* Lower than .zoom-overlay (9999) */
  }
  
  code[class*="language-"] {
    white-space: pre-wrap;
    word-break: break-word;
  }

  .cs-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
        background: red !important;
        border: 2px solid lime;
        opacity: 1 !important;
        z-index: 99999;
  }
  
  .cs-toast.show {
    opacity: 1;
  }

  .item.pinned {
    position: relative;
  }
  
  .item.pinned::before {
    content: "📌";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    transform: rotate(10deg);
    z-index: 1;
  }


  .screenshot-section {
    max-width: 970px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .screenshot {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }
  
  .screenshot img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: zoom-in;
  }
  
  .screenshot p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
  }
  
  .zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
  }
  
  .zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    transform: translate(0, 0) scale(1);
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
  }
  
  .zoom-controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10000;
  }
  
  .zoom-controls button {
    font-size: 20px;
    padding: 6px 14px;
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .zoom-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 10000;
  }
  
  /* Optional swipe animation */
  .swipe-out-left {
    animation: swipeLeft 0.25s ease;
  }
  .swipe-out-right {
    animation: swipeRight 0.25s ease;
  }
  @keyframes swipeLeft {
    from { transform: translate(0) scale(1); }
    to { transform: translateX(-100%) scale(1); }
  }
  @keyframes swipeRight {
    from { transform: translate(0) scale(1); }
    to { transform: translateX(100%) scale(1); }
  }
  
  .external-link {
    margin: 20px 0;
    padding: 12px 16px;
    background-color: #f5f7fb;
    border-left: 4px solid #2a7fde;
    border-radius: 6px;
    display: inline-block;
  }
  
  .external-link a {
    color: #2a7fde;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
  }
  
  .external-link a:hover {
    text-decoration: underline;
  }
  
/* Fix auto height for Python code blocks */
.code-wrapper.python-snippet {
  background: #2d2d2d;
  border-radius: 8px;
  margin: 20px auto;
  padding: 0;
  overflow-x: auto;
  max-width: 800px;
  width: fit-content;
  height: auto !important;
}

.code-wrapper.python-snippet pre,
.code-wrapper.python-snippet code {
  height: auto !important;
  max-height: none !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 16px;
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #f8f8f2;
  background: #2d2d2d;
  border-radius: 8px;
  display: inline-block;
  white-space: pre;
  box-sizing: border-box;
}

/* Copy button styling */
.code-wrapper.python-snippet .code-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px 0 0;
}

.code-wrapper.python-snippet .code-button {
  background-color: #111;
  color: white;
  border: none;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.code-wrapper.python-snippet .code-button:hover {
  background-color: #444;
}


.screenshot-container {
  max-width: 960px;
  margin: 40px auto;
  text-align: center;
}

.screenshot-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.screenshot-container img:hover {
  transform: scale(1.02);
}

.screenshot-container .caption {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}
