@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    font-size: 13px;
    --color: #eee;
    color: var(--color);
    background-color: #121212;
}

a {
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

::-webkit-scrollbar {
    width: 0;
}

header {
    width: 100%;
    position: fixed;
    z-index: 100;
    text-align: center;
    padding-top: 10px;
}

header nav a {
    margin: 0 30px;
    color: var(--color);
    font-size: small;
}

.tab {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-image: url(images/background.png);
    background-size: 50%;
}

.tab .container {
    width: 1140px;
    max-width: 100%;
    height: 100%;
    padding-top: 50px;
    box-sizing: border-box;
    margin: auto;
    position: relative;
}

#intro {
    background-color: #0f171f;
}

#intro .avatar {
    text-align: right;
    height: 100%;
}

#intro .avatar img {
    height: 100%;
    filter: saturate(0.5);
}

#intro .content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    width: 500px;
    max-width: 80%;
}

#intro .content .name,
#intro .content .job {
    font-size: 6em;
    font-weight: bold;
    font-family: 'Righteous', sans-serif;
    line-height: 1em;
}

.text-gradient {
    background-image: linear-gradient(
        to right, #E4454A, #CA3EA7
    );
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

#intro .content .des {
    margin-top: 1.2em;
    width: 70%;
}

#intro .content .des a {
    margin-top: 1.2em;
}

#intro .content i {
    font-size: 10em;
    position: absolute;
    top: -50px;
    right: -50px;
    color: #293b4c;
}

/* skills */
#skill {
    background-color: #F2F0EB;
    color: #eee;
    background-image: linear-gradient(
        45deg, #3A2530, #171514, #412726
    );
    background-size: cover;
}

#skill .list {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 50px;
    box-sizing: border-box;
    gap: 0px;
}

#skill .list .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#skill .list .item:nth-child(odd) {
    background-color: #3F2525;
}

#skill .list .item i {
    width: 50px;
    height: 50px;
    background-color: #eee;
    color: #CA3EA7;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 10px 10px #0005;
}

#skill .list .item .name {
    font-size: 1.5em;
    margin-top: 0.7em;
}

#skill .list .item .des {
    font-size: small;
    opacity: 0.8;
}

/* project */
#project {
    background-color: #cfbaba;
    color: #444B57;
}

#project .list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px;
}

#project .list .item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

#project .list .item {
    border-radius: 30px;
    overflow: hidden;
    background-color: #fff;
    position: relative;
}

#project .list .item .index {
    background-color: #fff;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    transform: translateY(-100%);
    padding: 10px;
    font-style: italic;
    border-top-right-radius: 20px;
}

#project .list .item .name {
    font-weight: bold;
    font-size: large;
    padding: 10px;
}

#project .list .item .des {
    padding: 0 10px 10px 10px;
}

#project .list .item .author {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#project .list .item .job {
    font-weight: bold;
}

#project .container {
    overflow: auto;
}

.project-categories {
    text-align: center;
    margin-bottom: 20px;
}

.project-categories button {
    background-color: #CA3EA7;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.project-categories button i {
    margin-right: 5px;
}

.project-categories button.active {
    background-color: #E4454A;
}

.carousel.category {
    display: none;
}

.carousel.category.active {
    display: flex;
}

.carousel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .project-card {
    flex: 0 0 100%;
    max-width: 93%;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  
  .project-card img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
  }
  
  .project-card h3 {
    font-size: 2em;
    margin-bottom: 10px;
  }
  
  .project-card p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #444;
  }
  
  .project-card a {
    color: #CA3EA7;
    font-weight: bold;
    text-decoration: none;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    background: rgba(0,0,0,0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease-in-out;
  }
  
  .carousel-btn:hover {
    background: rgba(0,0,0,0.4);
  }
  
  .carousel-btn.left {
    left: 10px;
  }
  
  .carousel-btn.right {
    right: 10px;
  }
/* experience*/
#experience {
    background-image: linear-gradient(45deg, #212632, #242A34, #3C4C5A);
    background-size: cover;
    color: #eee;
    padding-top: 50px; /* Add padding to push content below the fixed header */
}

#experience .list {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
    gap: 20px;
    justify-content: center;
}

#experience .item {
    flex: 1; /* Allow items to grow to fill the available space */
    border-radius: 15px;
    overflow: hidden;
    background-color: #444B57;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

#experience .item i {
    background-color: #eee;
    color: #16222D;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 10px; /* Add margin between icon and text */
}

#experience .item .time {
    font-size: large;
    margin-bottom: 5px; /* Add margin between time and job */
}

#experience .item .job {
    font-size: large;
    margin-bottom: 10px; /* Add margin between job and company */
}

#experience .item .company {
    color: #E4454A;
}

#experience .item .content .des {
    font-size: 0.8em;
    opacity: 0.7;
}

.timeline-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-family: 'Righteous', sans-serif;
    color: #fff;
  }
  
  .timeline-horizontal {
    display: flex;
    overflow-x: auto;
    padding: 60px 20px 40px;
    gap: 50px;
    position: relative;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  
  .timeline-horizontal::-webkit-scrollbar {
    display: none;
  }
  
  .timeline-event {
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: relative;
    background: #2a2f3a;
    padding: 20px;
    border-radius: 20px;
    min-width: 200px;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
  }
  
  .timeline-event:hover {
    transform: translateY(-5px);
  }
  
  .timeline-dot {
    width: 16px;
    height: 16px;
    background-color: #E4454A;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 auto 15px auto;
  }
  
  .timeline-date {
    color: #CA3EA7;
    font-weight: bold;
    margin-top: 10px;
  }
  
  .timeline-content h3 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 5px;
  }
  
  .timeline-content p {
    color: #ddd;
    font-size: 0.9em;
    margin: 0;
  }
  
  .timeline-track {
    scroll-behavior: smooth;
}

/* WRITING SECTION - PROFESSIONAL */
#writing {
    background-image: linear-gradient(135deg, #1a1d23, #20242b);
    background-size: cover;
    color: #ddd;
    padding-top: 80px;
    text-align: center;
    min-height: 100vh;
    overflow-y: auto;
}

#writing .container {
    height: auto;
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto;
}

#writing h2 {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-family: 'Righteous', sans-serif;
    color: #eee;
}

#writing p {
    font-size: 1.2em;
    color: #aaa;
    margin-bottom: 40px;
}

.writing-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
}

.writing-item {
    background: #2c2f36;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.writing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.writing-item a {
    color: #eee;
    font-size: 1.4em;
    text-decoration: none;
    font-weight: 600;
}

.writing-item a:hover {
    text-decoration: underline;
}

#writing a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

#writing a:hover {
    color: #CA3EA7; /* or whatever soft color you want when hovering */
}





@media screen and (max-width: 767px) {
    #experience .item {
        flex-basis: calc(50% - 20px); /* Two items per row on small screens */
    }
}

#contact {
    background: #242330;
    padding-top: 50px;
    text-align: center;
}


#contact .content {
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

#contact .thank {
    font-size: 5em;
    font-weight: bold;
}

#contact .des {
    max-width: 600px;
    font-size: 1.1em;
    color: #ccc;
    line-height: 1.5em;
    white-space: normal;
}

#contact .des a {
    color: #CA3EA7;
    font-weight: bold;
    display: inline-block;
    margin-top: 1em;
    font-weight: bold;
}

#contact .list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact .list .item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #eee;
    font-size: 1.2em;
}

/* PHOTOGRAPHY SECTION */
#photography {
    background-image: linear-gradient(45deg, #595d67, #2a2f3a, #1c1f26);
    background-size: cover;
    color: #eee;
    padding-top: 50px;
    text-align: center;
    overflow-y: auto;
}

#photography .container {
    height: auto;
    padding: 50px 20px;
}

#photography h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: 'Righteous', sans-serif;
}

#photography p {
    font-size: 1.2em;
    color: #bbb;
    margin-bottom: 40px;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.photo-grid img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


@media screen and (max-width: 991px) {
    /* ipad, tablets */
    #intro .avatar .img {
        transform: translateX(200px);
    }
}

@media screen and (max-width: 767px) {
    body {
        font-size: 10px;
    }

    header nav a {
        margin: 10px;
    }

    #intro .avatar img {
        transform: none;
    }

    #intro .content {
        left: 20px;
    }

    #intro .content .name {
        font-size: 4em;
    }

    #intro .content i {
        position: unset;
    }

    #skill .list {
        padding: 0px;
        grid-template-columns: repeat(2, 1fr);
    }

    #skill .list .item:nth-child(odd) {
        background: unset;
    }

    #skill .list .item:nth-child(2) #skill .list .item:nth-child(3n) {
        background: #3F2525;
    }

    #project .list {
        padding: 10px;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    #project .list .item img {
        height: 100px;
    }
}

/* effect */
.tab {
    position: fixed;
    inset: 0 0 0 0;
    z-index: 1;
}

#intro {
    z-index: 2;
}

.tab.active {
    --x: 50%;
    --y: 50%;
    clip-path: circle(200% at var(--x) var(--y));
    animation: showTab 1s ease-in-out 1;
}

@keyframes showTab {
    from {
        clip-path: circle(0% at var(--x) var(--y));
    }
}

a:hover {
    color: #CA3EA7;
    transition: color 0.3s ease-in-out;
}

.project .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}



/* From Uiverse.io by Praashoo7 */ 
.main {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }
  
  .up {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
  }
  
  .down {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
  }
  
  .card1 {
    width: 90px;
    height: 90px;
    outline: none;
    border: none;
    background: white;
    border-radius: 90px 5px 5px 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: .2s ease-in-out;
  }
  
  .linkedin {
    margin-top: 1.5em;
    margin-left: 1.2em;
    fill: #0A66C2;
  }
  
  .card2 {
    width: 90px;
    height: 90px;
    outline: none;
    border: none;
    background: white;
    border-radius: 5px 90px 5px 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: .2s ease-in-out;
  }
  
  .devpost {
    margin-top: 1.5em;
    margin-left: -.9em;
    fill: #003E54;
  }
  
  .card3 {
    width: 90px;
    height: 90px;
    outline: none;
    border: none;
    background: white;
    border-radius: 5px 5px 5px 90px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: .2s ease-in-out;
  }
  
  .github {
    margin-top: -.6em;
    margin-left: 1.2em;
  }
  
  .card4 {
    width: 90px;
    height: 90px;
    outline: none;
    border: none;
    background: white;
    border-radius: 5px 5px 90px 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: .2s ease-in-out;
  }
  
  .devpost {
    margin-top: -.9em;
    margin-left: -1.2em;
    fill: #8c9eff;
  }
  
  .card1:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #0A66C2;
  }
  
  .card1:hover .linkedin {
    fill: white;
  }
  
  .card2:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #003E54;
  }
  
  .card2:hover .gmail {
    fill: white;
  }
  
  .card3:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: black;
  }
  
  .card3:hover .github {
    fill: white;
  }
  
  .card4:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #8c9eff;
  }
  
  .card4:hover .discord {
    fill: white;
  }