@import url(./reset.css);
@import url(./variables.css);

/* header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    z-index: 999;
    position: sticky;
    top: 0px;
    left: 0px;
}

.animation {
    height: 50px;
    overflow: hidden;
    margin-left: 1rem;

}

.animation>div>div {
    padding: 0.25rem 0.75rem;
    height: 2.81rem;
    margin-bottom: 2.81rem;
    display: inline-block;
}

.animation div:first-child {
    animation: text-animation 8s infinite;
}

.first div {
    background-color: #20a7d8;
}

.second div {
    background-color: #CD921E;
}

.third div {
    background-color: #c10528;
}

@keyframes text-animation {
    0% {
        margin-top: 0;
    }

    10% {
        margin-top: 0;
    }

    20% {
        margin-top: -5.62rem;
    }

    30% {
        margin-top: -5.62rem;
    }

    40% {
        margin-top: -11.24rem;
    }

    60% {
        margin-top: -11.24rem;
    }

    70% {
        margin-top: -5.62rem;
    }

    80% {
        margin-top: -5.62rem;
    }

    90% {
        margin-top: 0;
    }

    100% {
        margin-top: 0;
    }
}

.brand {
    font-size: 18px;
}

.navbar a {
    margin: 5px;
}


/* home */
.home img {
    margin: 3rem 0 0 0;
}

.home {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-size: cover;
    padding: 0 80px;
}

.home-socials a {
    display: flex;
    flex-direction: column;
    background-color: var(--color-primary-variant);
    color: var(--color-white);
    padding: 0.8rem;
    margin: .5rem;
    border-radius: 0.7rem;
    box-shadow: 0px 4px 26px var(--color-primary);

    display: flex;
    border: 1px solid transparent;
    transition: var(--transition);
}

.home-socials a:hover {
    color: var(--color-primary);
    background: transparent;
    border-color: var(--color-bg-variant);
}


.home-des {
    font-size: 1.5rem;

}

.home-des h1 {
    color: var(--color-primary);
    text-shadow: 0 0 7px rgba(255, 255, 255, .3), 0 0 3px rgba(255, 255, 255, .3);
}


.btn-box {
    margin: 1rem 0;
}

/* about */
.about {
    margin: 5.5rem 0;
}

.about h2 {
    text-align: center;
    color: var(--color-primary);
    margin: 1rem;
    font-size: 2.5rem;

}

.about-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.about-me-img {
    height: 50%;
    margin: 0 15rem;
}

.about-des {
    font-size: 1.5rem;
    padding: 0 5rem;
}

.about-des h2 {
    color: var(--color-primary);
}

.qualification h3 {
    color: var(--color-primary);
}

.qualification ul {
    margin: 0 0 0 2rem;
}

/* skills */
.skills {
    margin: 2rem;
}

.skills h2 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
}

.skills-container {
    grid-gap: 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.skills-container div h3 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-frontend,
.skills-backend {
    background: var(--color-bg-variant);
    border: 1px solid transparent;
    border-radius: 2rem;
    padding: 2.4rem 5rem;
    height: 50vh;
    transition: var(--transition);

}

.skills-content {
    grid-row-gap: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem rem;
}

.skills-details {
    display: flex;
    gap: 1rem;
}

.skills-frontend:hover,
.skills-backend:hover {
    background-color: transparent;
    border: 1px solid var(--color-primary-variant);
    box-shadow: 0px 4px 26px var(--color-primary);
}

/* projects */
.projects {
    margin: 2rem;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    font-size: 2.5rem;
}

.projects-container {
    grid-gap: 2.5rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.projects-item {
    background: var(--color-bg-variant);
    border: 1px solid transparent;
    position: relative;
    border-radius: 2rem;
    padding: 1.2rem;

}

.projects-item:hover {
    border: 1px solid var(--color-primary-variant);
    box-shadow: 0px 4px 26px var(--color-primary);
    background-color: transparent;
    /* background: linear-gradient(135deg, #62b0f0, #1976D2); */
}

.projects h3 {
    margin: 1.2rem 0 2rem;
}

.projects-item-img {
    border-radius: 1.5rem;
    overflow: hidden;

}

.projects-item .projects-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.projects-item img {
    width: 100%;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 6/3;
    margin: auto;
    object-fit: cover;
}



/* Project subtitle styling */
.project-subtitle {
    color: var(--color-light);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    background: transparent;
}

/* Project type indicator */
.project-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0px 4px 26px var(--color-primary)
}

.project-type span {
    background: transparent;
    color: var(--color-white);
}

/* Client project style */
.project-type.client-project {
    background: linear-gradient(135deg, #62b0f0, #1976D2);
    color: white;
}

/* Learning project style */
.project-type.learning-project {
    background: linear-gradient(135deg, #62b0f0, #1976D2);
    /* background: linear-gradient(135deg, #2196F3, #1976D2); */
    color: white;
}


/* Make sure project type is visible on hover */
.projects-item:hover .project-type {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive adjustments for project types */
@media screen and (max-width: 600px) {
    .project-type {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.6rem;
    }

    .project-subtitle {
        font-size: 0.8rem;
        margin: 0.3rem 0 0.8rem 0;
    }
}

/* contact */
.contact {
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    color: var(--color-primary);
}

.contact-details {
    padding: 1rem;
    margin: 3rem;
    font-size: 2rem;
}

.contact-details ul li i {
    background: var(--color-bg-variant);
    color: var(--color-white);
    padding: 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

.contact-details ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-details ul li {
    gap: 1rem;
}

.contact-details ul li a:hover {
    color: var(--color-primary);
}

.contact-details .fa-solid:hover {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-bg-variant);
}




/* footer */
footer {
    background: var(--color-primary);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 7rem;
}


.permalinks {
    margin: 1rem 0;
}

.permalinks ul li a:hover {
    color: var(--color-bg);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.footer-socials a {
    background: var(--color-bg);
    color: var(--color-white);
    padding: 0.8rem;
    border-radius: 0.7rem;
    display: flex;
    border: 1px solid transparent;
    transition: var(--transition);
}


.footer-socials a:hover {
    background: transparent;
    color: var(--color-bg);
    border-color: var(--color-bg);
}

.copyright {
    margin-bottom: 4rem;
}

.copyright .arrow-up {
    background-color: var(--color-bg);
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.copyright .arrow-up:hover {
    border: 2px solid var(--color-bg-variant);
    background: transparent;
}


.projects-item .projects-btns,
.projects h3,
.skills-container div h3,
.skills-details,
.skills-details div,
.skills-details div h4,
.skills-details div small,
.skills-details-icon,
.skills-content,
.home-socials a i,
.footer-socials,
.footer-socials i,
.copyright,
.copyright a,
.copyright a i,
.permalinks,
footer h2,
.permalinks ul,
.permalinks ul li,
.permalinks ul li a {
    background: transparent;
}


/* tutorial bubble */
#tutorial {
    position: absolute;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2c3e50ee, #3498dbee);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 280px;
    transform-origin: center bottom;
    animation: tutorialAppear 0.3s ease-out;
}

#tutorial .hand {
    font-size: 24px;
    margin-left: 2px;
    animation: bounce 1200ms infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    background-color: transparent;
}

#tutorial .msg {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

#tutorial .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#tutorial .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes bounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes tutorialAppear {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* highlight target when tutorial points to it */
.tutorial-highlight {
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.2),
        0 0 0 4px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
    animation: highlightPulse 2s infinite;
    position: relative;
    z-index: 100;
}

.tutorial-highlight::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: inherit;
    z-index: -1;
    animation: glowPulse 2s infinite;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2),
            0 0 0 2px rgba(52, 152, 219, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.2),
            0 0 0 4px rgba(52, 152, 219, 0.3);
    }

    100% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2),
            0 0 0 2px rgba(52, 152, 219, 0.3);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}



/* Preview Modal Styles */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    background: transparent;
}

/* Show modal when it has content */
.preview-modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 27, 41, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    overflow-y: auto;
}

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

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    /* background: var(--color-bg-variant); */
    border: 2px solid var(--color-primary-variant);
    border-radius: 2rem;
    padding: 50px 30px 30px;
    box-shadow: 0 0 30px rgba(0, 171, 240, 0.2);
    transform: scale(0.9);
    animation: scaleIn 0.3s forwards;
    margin: auto;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.fa-xmark {
    background: transparent;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    text-align: center;
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Image Slider Styles */
.modal-slider {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slider-image.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg-variant);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--color-bg);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: var(--color-primary-variant);
    width: 30px;
    border-radius: 6px;
}

.slider-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

/* Video Styles */
.modal-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.modal-video video {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 30px 15px 20px;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .modal-slider {
        height: 400px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }
}

@media screen and (max-width: 480px) {
    .modal-slider {
        height: 300px;
    }

    .modal-title {
        font-size: 18px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Mixed Media Slider Styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

.slide-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

/* Video dot styling */
.dot[data-index] {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure modal content has background */
.modal-content {
    background: var(--color-bg-variant);
}

/* Make sure close button icon is visible */
.fa-xmark,
.slider-counter,
.slider-dots,
.modal-title {
    background: transparent !important;
}

/* Make slider buttons more visible */
.slider-btn {
    background: var(--color-bg-variant);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}