:root {
    --primary: #f27405;
    --bg-dark: #1a1a1a;
    --bg-darker: #121212;
    --bg-card: #222222;
    --bg-footer: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --border: #444444;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

section {

    padding: 60px 15% 0;
    width: 100%;
    position: relative;
}


/* ================================= */
/*                header             */
/* ================================= */
.header {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    width: 100vw;
    z-index: 100;
}


/* menubar icon */
.burger {
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    display: none;
    transform: scale(0.8);

}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--text-main);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.burger input:checked~span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 5px;
    background: var(--primary);
}

.burger input:checked~span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
    background: var(--primary);

}

.burger input:checked~span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
    background: var(--primary);

}

.side-menubar {
    display: none;
    position: relative;
    height: 100vh;
    width: 55vw;
    background-color: color-mix(in srgb, var(--bg-darker), transparent 40%);
    padding: 20px 30px;
    z-index: 200;
    right: 0;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.side-navbar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}



.side-navbar a {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
}

.side-navbar hr {
    border: none;
    border-top: 1px solid var(--primary);
    margin: 20px 0;
}

body:has(#burger:checked) .side-menubar {
    transform: translateX(0);
    opacity: 1;
}



/* ================================= */



/* Section Headers */
.about-header,
.my-resume-header,
.work-header,
.gallery-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.page-title-underline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.line-left {
    height: 2px;
    width: 60px;
    background-color: var(--primary);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.line-right {
    height: 2px;
    width: 60px;
    background-color: var(--primary);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ellipse {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.page-sub-title {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

/* Buttons */
.buttons-button-cv,
.btn-send-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    background-color: var(--primary);
    color: var(--text-main);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.buttons-button-cv:hover,
.btn-send-message:hover {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.buttons-button-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.buttons-button-contact:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

/* Social Icons */
.social-media-icon {
    width: 24px;
    height: 24px;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
    transition: 0.3s;
}

.social-media-link:hover .social-media-icon {
    filter: invert(57%) sepia(61%) saturate(2224%) hue-rotate(345deg) brightness(96%) contrast(97%);
}

/* ========================================================================== */
/* javaScript elements */


/* ========================================================================== */

/* ==========================================================================
   HOME SECTION
   ========================================================================== */
.home {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}



.hasitha-DEV {
    font-size: 24px;
    font-weight: 700;
}

.logo-after-part {
    color: var(--primary);
}

.navbar ul {
    display: flex;
    gap: 30px;
}

.navbar-text {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.navbar-text:hover {
    color: var(--primary);
}

.home-main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-block: clamp(36px, 7vh, 80px);
    width: 100%;
}

.home-left-side {
    display: flex;
    flex: 1;
    margin-top: 0;
    flex-direction: column;
    justify-content: center;

    /* transform  */
    opacity: 0;
    transform: translateX(-10%);
    transition: transform 0.6s ease, opacity 0.6s ease;

}

.home-text-hello {
    font-size: 100px;
    color: var(--primary);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
}

.home-text-name {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 5px;
}

.home-text-job {
    font-size: 45px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 40px;
}

.home-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.social-media {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    gap: 40px;
}

.home-left-side .social-media-icon {

    width: 45px;
    height: 45px;
}

.home-right-side {
    position: relative;
    top: 0;
    margin-top: 0;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    height: 550px;

    /* transform  */
    opacity: 0;
    transform: translateX(10%);
    transition: transform 0.6s ease, opacity 0.6s ease;

}


.home-rectangle {
    position: absolute;
    width: 150%;
    height: 550px;
    border: 20px solid var(--primary);
    top: 50%;
    left: 0%;
    transform: translate(0%, -50%);
    z-index: 1;
}

.profil-pic {
    height: 130%;
    width: auto;
    position: absolute;
    bottom: 20px;
    left: 0;
    transform: translate(-10px, 0%);
    z-index: 2;
    object-fit: contain;
}

/* ===========================home-section-javaScript======================== */
.home.is-visible .home-left-side,
.home.is-visible .home-right-side {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
    ABOUT SECTION
   ========================================================================== */

.about {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.about-header {
    width: 100%;
    text-align: center;
    margin-bottom: 60px;
}

.aboutme-main-content {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    justify-content: space-between;
}

.aboutme-main-content .left-side {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;

    /* transition */
    opacity: 0;
    transform: translateX(-10%);
}



.about-ring-wrap {
    position: relative;
    flex-shrink: 0;

    width: 475px;

    height: 475px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.about-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.about-ring-track1,
.about-ring-track2 {

    r: 107px;
    fill: none;
    stroke: #ff6600;
    stroke-width: 16px;
    stroke-linecap: round;
    transform-origin: 125px 125px;

    animation: aboutRingFill 1s ease-out;
}






.about-ring-track1 {
    stroke-dasharray: 360 690.8;
    transform: rotate(-90deg);
    opacity: 0;
}

.about-ring-track2 {
    stroke-dasharray: 200 690.8;
    transform: rotate(-90deg);
    opacity: 0;
}

.about-ring-dot {
    fill: #ff6600;
    transform-origin: 125px 125px;
    transform: rotate(-90deg);
    opacity: 0;
}






.aboutme-profile-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 5px solid var(--bg-dark);
}


@keyframes rotateTrack1 {
    from {
        transform: rotate(-90deg);
        opacity: 0;
    }

    to {
        transform: rotate(120deg);
        opacity: 1;
    }
}


@keyframes rotateTrack2 {
    from {
        transform: rotate(-90deg);
        opacity: 0;
    }

    to {
        transform: rotate(-8.5deg);
        opacity: 1;
    }
}


@keyframes aboutRingDotMove {
    from {
        transform: rotate(-90deg);
        opacity: 0;
    }

    to {
        transform: rotate(-30deg);
        opacity: 1;
    }
}


.aboutme-main-content .right-side {
    flex: 1.5;
    min-width: 350px;

    /* transition */
    opacity: 0;
    transform: translateX(10%);
}

.about-header-2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-paragraph {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

.about-pragraph-2 {
    color: var(--text-main);
    font-weight: 600;
}

.aboutme-main-content .right-side>.about-contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.about-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-contact-item-content {
    display: flex;
    flex-direction: column;
}

.about-info-icon {
    color: var(--primary);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about-info-icon i {
    width: 100%;
    height: 100%;
    display: block;
}

.about-contact-info-header {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.about-contact-info-content {
    margin-left: 0;
    color: var(--text-main);
    font-size: 14px;
}

.about-skills {
    background-color: var(--bg-darker);
    margin-top: 60px;
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 10px;

    /* transition */
    opacity: 0;
    transform: translateY(5%);
}

.about-skills-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ccc;
}


.skills-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.skills-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: skillsMarquee 18s linear infinite;
    will-change: transform;
}

.skills-icon {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    filter: invert(1);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.skills-track:hover {
    animation-play-state: paused;
}

.skills-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

@keyframes skillsMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skills-track {
        animation: none;
    }
}

/* about transition */
.about .left-side,
.about .right-side,
.about-skills {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* ===========================about-section-javaScript======================== */

.about.is-visible .about-ring-track1 {
    animation: rotateTrack1 1.5s ease-out forwards;
}

.about.is-visible .about-ring-track2 {
    animation: rotateTrack2 1.5s ease-out forwards;
}

.about.is-visible .about-ring-dot {
    animation: aboutRingDotMove 1.5s ease-out forwards;
}


.about.is-visible .aboutme-main-content .right-side,
.about.is-visible .aboutme-main-content .left-side {
    opacity: 1;
    transform: translateX(0);
}

.about.is-visible .about-skills {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
    RESUME SECTION
   ========================================================================== */

.my-resume {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.education,
.experience,
.activities {
    width: 100%;
    margin: 0 0 60px 0;
}



.resume-box {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    transform: translateX(-10%);
    opacity: 0;

}

.resume-box time {
    grid-column: 1;
    grid-row: 1;
    color: var(--primary);
    font-weight: 700;
}

.resume-box h4 {
    grid-column: 2;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.resume-box p {
    grid-column: 2;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.resume-box .box-where-title {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 10px;
}

.resume-box img {
    grid-column: 3;
    grid-row: 1 / span 3;
    width: 100px;
    object-fit: contain;
}


.resume-box .ijse-logo {
    width: 140px;
}

/* transition */

.education-box-1 {
    transition: transform 0.6s ease 0.1s, opacity 0.6s ease 0.1s;
}

.education-box-2 {
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.education-box-3 {
    transition: transform 0.6s ease 0.3s, opacity 0.6s ease 0.3s;
}

.experience-box-1 {
    transition: transform 0.6s ease 0.1s, opacity 0.6s ease 0.1s;
}

.activities-box-1 {
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

/* ===========================my-resume-section-javaScript=================== */


.my-resume.is-visible .education-box-1,
.my-resume.is-visible .experience-box-1,
.my-resume.is-visible .activities-box-1,
.my-resume.is-visible .education-box-2,
.my-resume.is-visible .education-box-3 {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
    WORK / PROJECTS SECTION
   ========================================================================== */

.my-work-project {

    display: flex;
    flex-direction: column;
}

.my-work-assignment {

    width: 100%;
    margin-bottom: 60px;
}

.project-buttons {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    gap: 20px;

    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateY(20px);

    transition: all 0.5s ease;
}

.project-card:hover .project-buttons {
    max-height: 80px;
    margin-bottom: 20px;

    opacity: 1;
    transform: translateY(0);
}

.project-card-button {
    padding: 8px 20px;
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);

    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card-button:hover {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.project-sub-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
}

.project-slider {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.project-card {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 320px;

    /* transition */
    opacity: 0;
    transform: translateY(10%);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.project-card:hover img {
    transform: translateY(-5px);
}


.project-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.assignment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.assignment-card {
    display: flex;
    position: relative;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    padding: 30px 10px;
    border-radius: 4px;
    gap: 15px;
    transition: 0.3s;
    cursor: pointer;

    container-type: inline-size;
}

.assignment-details {
    display: none;
    position: absolute;
    justify-content: center;
    align-items: center;

    background-color: var(--bg-card);
    padding: 2px;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.assignment-description {


    text-align: center;
    font-size: clamp(10px, 5cqi, 14px);
    color: var(--text-muted);
    line-height: 1.4;

    overflow: hidden;
}

.assignment-technologies {
    text-align: center;
    font-size: clamp(12px, 5cqi, 14px);
    color: var(--text-main);
    line-height: 1.4;
    margin-top: 5px;

    overflow: hidden;
}

.assignment-details a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
    font-style: italic;
}

.assignment-details a:hover {
    text-decoration: underline;
    color: royalblue;
}

.assignment-card:hover {
    border-color: var(--primary);
    background-color: rgba(242, 116, 5, 0.05);
}

.assignment-card:hover .assignment-details {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.assignment-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.assignment-name {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

/* transition for work section */

.project-card-1 {
    transition: transform 0.6s ease 0.1s, opacity 0.6s ease 0.1s;
}

.project-card-2 {
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.project-card-3 {
    transition: transform 0.6s ease 0.3s, opacity 0.6s ease 0.3s;
}

/* ===========================my-work-section-javaScript=================== */

.my-work-project.is-visible .project-card-1,
.my-work-project.is-visible .project-card-2,
.my-work-project.is-visible .project-card-3 {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
    GALLERY SECTION
   ========================================================================== */

.gallery {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-images-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto;
}

.gallery-image-card {
    height: 280px;
    flex-grow: 1;
    overflow: hidden;
    /* transition */
    opacity: 0;
    transform: translateY(10%);
}

.g-img-card-1 {
    flex-basis: 45%;
    transition: transform 0.6s ease 0.05s, opacity 0.6s ease 0.05s;

}

.g-img-card-2 {
    flex-basis: 45%;
    transition: transform 0.6s ease 0.1s, opacity 0.6s ease 0.1s;
}

.g-img-card-3 {
    flex-basis: 30%;
    transition: transform 0.6s ease 0.15s, opacity 0.6s ease 0.15s;
}

.g-img-card-4 {
    flex-basis: 30%;
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.g-img-card-5 {
    flex-basis: 15%;
    transition: transform 0.6s ease 0.25s, opacity 0.6s ease 0.25s;
}

.gallery-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: 0.4s;
    display: block;
}

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

/* ===========================gallery-section-javaScript======================== */

.gallery.is-visible .g-img-card-1,
.gallery.is-visible .g-img-card-2,
.gallery.is-visible .g-img-card-3,
.gallery.is-visible .g-img-card-4,
.gallery.is-visible .g-img-card-5 {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================================================
    CONTACT SECTION
   ========================================================================== */
.contact {
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px 20px;
    width: 100%;
    margin-top: 40px;
    align-items: flex-start;
}

/* Contact Form */
.contact-main-grid .left-side {
    max-width: 650px;

    /* transition */
    opacity: 0;
    transform: translateX(-10%);

}

.header-label {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.header-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.content-box:nth-child(1) {
    grid-column: 1;
}

.content-box:nth-child(2) {
    grid-column: 2;
}

.content-box-message {
    grid-column: 1 / span 2;
}

.content-box,
.content-box-message {
    position: relative;
}

.user-details,
.user-massage {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 18px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.user-massage {
    height: 150px;
    resize: none;
}

.user-details:focus,
.user-massage:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(242, 116, 5, 0.4);
}

.text-user-details {
    position: absolute;
    left: 18px;
    top: 16px;
    color: #777;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s;
}

.user-details:focus+.text-user-details,
.user-details:valid+.text-user-details,
.user-massage:focus+.text-user-details,
.user-massage:valid+.text-user-details {

    position: absolute;
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--primary);
    background-color: var(--bg-dark);
    padding: 0 6px;
}

.btn-send-message {
    margin-top: 10px;
    padding-inline: 40px;
}

/* Contact Info Cards */
.contact-main-grid .right-side {
    background-color: var(--bg-darker);
    padding: 40px 45px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 30px;

    /* transition */
    opacity: 0;
    transform: translateX(10%);
}

.contact-box-01,
.contact-box-02,
.contact-box-03 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.headphone-img-wrapper,
.phone-call-img-wrapper,
.email-img-wrapper,
.location-img-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contact-box-text {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.headphones-wrapper-text {
    font-size: 16px;
    font-weight: 600;
}

.phone-number,
.email-address,
.address {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* contact transition */
.contact .left-side,
.contact .right-side {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* ===========================contact-section-javaScript======================== */
.contact.is-visible .contact-main-grid .left-side,
.contact.is-visible .contact-main-grid .right-side {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================================= */


/* ===========================================================================
   FOOTER SECTION
   ========================================================================== */


/* Footer */
.footer {
    background-color: var(--bg-footer);
    padding: 35px 60px 20px 60px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer .left {
    justify-self: start;
}

.footer .middle {
    justify-self: center;
    text-align: center;
}

.footer .right {
    justify-self: end;
    display: flex;
    gap: 15px;
}

.footer-nav-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-nav ul {
    display: flex;
    gap: 15px;




}

.footer-nav a {
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--primary);
}


.footer hr {
    grid-column: 1 / span 3;
    border: none;
    border-top: 1px solid #333;
    margin: 30px 0 20px 0;
}

.text-wrapper-63 {
    grid-column: 1 / span 3;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1440px) {
    .home-text-hello {
        font-size: 90px;

    }

    .home-text-name {
        font-size: 50px;

    }

    .home-text-job {
        font-size: 35px;

    }

    .home-right-side {
        height: 500px;
    }

    .home-rectangle {
        height: 500px;
        border: 18px solid var(--primary);
    }

    .profil-pic {
        bottom: 18px;
    }

    /* about */

    .aboutme-main-content .right-side {
        flex: 1.2;
    }

    .about-header-2 {
        font-size: 28px;
    }

    .about-paragraph {
        font-size: 14px;
    }


    .about-contact-info-header {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .about-contact-info-content {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    section {
        padding: 60px 6% 0;

    }

    .home-text-hello {
        font-size: 80px;

    }

    .home-text-name {
        font-size: 40px;

    }

    .home-text-job {
        font-size: 30px;

    }

    .home-right-side {
        height: 425px;
        margin-top: 0;
    }

    .home-rectangle {
        height: 425px;
        border: 16px solid var(--primary);
    }

    .profil-pic {
        bottom: 16px;
    }

    /* about */
    .about-ring-wrap {
        width: 445px;
        height: 445px;

    }

    .aboutme-main-content .right-side {
        flex: 1.2;
    }

    .about-header-2 {
        font-size: 24px;
    }

    .about-paragraph {
        font-size: 13px;
    }


    .about-contact-info-header {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .about-contact-info-content {
        font-size: 12px;
    }

    /* contact */

    .header-label {
        font-size: 28px;
    }

    .header-description {
        font-size: 13px;

    }


    .user-details,
    .user-massage {
        padding: 12px 15px;
        font-size: 12px;
    }

    .text-user-details {
        left: 15px;
        top: 12px;
        font-size: 12px;

    }



    .btn-send-message {
        margin-top: 10px;
        padding-inline: 30px;
    }

    /* Contact Info Cards */
    .contact-main-grid .right-side {
        padding: 30px 35px;
        border-radius: 15px;
        gap: 30px;
    }

    .contact-box-01,
    .contact-box-02,
    .contact-box-03 {
        gap: 20px;
    }

    .headphone-img-wrapper,
    .phone-call-img-wrapper,
    .email-img-wrapper,
    .location-img-wrapper {
        width: 50px;
        height: 50px;
    }

    .contact-icon {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .contact-box-text {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .headphones-wrapper-text {
        font-size: 14px;
    }

    .phone-number,
    .email-address,
    .address {
        font-size: 13px;
    }
}


@media (max-width: 1024px) {

    /* Buttons */
    .buttons-button-cv,
    .btn-send-message,
    .buttons-button-contact {
        padding: 10px 30px;
        font-size: 13px;

    }


    /* home */
    section {
        padding: 60px 6% 0;
    }


    /* Home */
    .home-header {
        gap: 20px;
    }

    .home-text-hello {
        font-size: 70px;
        margin-bottom: 8px;
    }

    .home-text-name {
        font-size: 35px;
        margin-bottom: 5px;
    }

    .home-text-job {
        font-size: 25px;
        margin-bottom: 35px;
    }


    .home-left-side {
        margin-top: 0;

    }

    .home-buttons {
        gap: 30px;
        margin-bottom: 30px;
    }

    .social-media {
        margin-top: 10px;
        gap: 30px;
    }

    .home-left-side .social-media-icon {

        width: 40px;
        height: 40px;

    }

    .home-right-side {
        height: 375px;
        margin-top: 0;

    }

    .home-rectangle {
        height: 375px;
    }
}

@media (max-width: 920px) {

    /* Buttons */
    .buttons-button-cv,
    .btn-send-message,
    .buttons-button-contact {
        padding: 8px 28px;
        font-size: 12px;

    }

    .home-text-hello {
        font-size: 65px;
        margin-bottom: 5px;
    }

    .home-text-name {

        margin-bottom: 3px;
    }

    .home-text-job {
        margin-bottom: 25px;
    }


    .home-buttons {
        gap: 25px;
        margin-bottom: 25px;
    }

    .social-media {
        margin-top: 8px;
        gap: 25px;
    }

    .home-left-side .social-media-icon {

        width: 38px;
        height: 38px;

    }

    .home-left-side {
        margin-top: 0;

    }

    .home-right-side {
        height: 300px;
        margin-top: 0;
        /* transform: none; */
    }

    .home-rectangle {
        height: 300px;
        border: 14px solid var(--primary);

    }

    .profil-pic {
        bottom: 14px;
        transform: translateX(-8px);
    }

    .aboutme-main-content {
        flex-wrap: nowrap;
        gap: 28px;
    }

    .aboutme-main-content .left-side,
    .aboutme-main-content .right-side {
        min-width: 0;
    }

    .about-ring-wrap {

        width: 350px;
        height: 350px;
    }

    .aboutme-profile-image {
        width: 275px;
        height: 275px;
    }


    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-main-grid .left-side {
        max-width: none;
        width: 100%;
    }

    .contact-form {
        width: 100%;
    }

    .contact-main-grid .right-side {
        margin-top: 0;
    }

    /* Footer */
    .footer {

        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;

    }

    .footer hr {
        width: 100%;
        margin: 0;
    }
}


@media (max-width: 768px) {

    .side-menubar {
        display: block;
        position: fixed;
        top: 61px;
    }


    .aboutme-main-content {
        flex-direction: column;
        gap: 32px;
    }

    .aboutme-main-content .left-side,
    .aboutme-main-content .right-side {
        width: 100%;
    }

    /* home */
    section {
        padding: 60px 5% 0;
    }

    .home {
        /* min-height: calc(100vh - 51px); */
        padding-top: 50px;

    }

    .header {
        height: 20px;
        padding: 30px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        background-color: var(--bg-darker);
    }

    .header .hasitha-DEV {
        font-size: 16px;
    }

    .navbar ul {
        display: none;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .home-main-container {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .home-left-side,
    .home-right-side {
        flex: none;
        margin-top: 0;
    }

    .home-right-side {
        margin-top: 0;
        width: 100%;
        height: 320px;
        z-index: 1;
    }


    .home-rectangle {
        width: 100%;
        height: 320px;
        border: 12px solid var(--primary);
        left: 10%;
        top: 50%;
        transform: translate(0, -50%);
        bottom: 0;

    }

    .profil-pic {
        height: 120%;
        bottom: 12px;
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
    }

    .home-left-side {
        /* transform: none; */
        margin-top: 16px;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .home-text-hello {
        font-size: clamp(50px, 15vw, 70px);
        margin-bottom: 10px;
    }

    .home-text-name {
        font-size: clamp(35px, 10vw, 50px);
        margin-bottom: 10px;
        line-height: 1.08;
    }

    .home-text-job {
        font-size: clamp(25px, 7vw, 35px);
        margin-bottom: 20px;
        line-height: 1.08;
    }

    .home-buttons {
        justify-content: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    .buttons-button-cv,
    .buttons-button-contact {
        padding: 11px 45px;
        font-size: 14px;
    }

    .social-media {
        margin-top: 5px;
        gap: 30px;
    }

    .home-left-side .social-media-icon {
        width: 40px;
        height: 40px;
    }

    .about-ring-wrap {

        width: 425px;
        height: 425px;
    }

    .aboutme-profile-image {
        width: 325px;
        height: 325px;
    }

    .skills-marquee {
        width: 100%;
        overflow: hidden;
        position: relative;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .skills-icon {
        height: 40px;
    }

    .skill-clone {
        display: none;
    }

    .skills-track {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 30px;
        animation: none;
    }


    .resume-box {
        grid-template-columns: 120px 1fr auto;
        gap: 16px;
        padding: 24px 0;
    }

    .resume-box img {
        width: 80px;
    }

    .resume-box .ijse-logo {
        width: 120px;
    }

    .assignment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .footer {
        padding: 30px 20px 18px 20px;
    }
}

@media (max-width: 600px) {

    section {
        padding: 50px 5% 0;
    }

    .home {
        /* min-height: calc(100vh - 51px); */
        padding-top: 40px;

    }

    .header {
        padding: 25px 20px;
    }

    .side-menubar {

        top: 51px;
    }

    .home-right-side {
        margin-top: 0;
        top: 0;
    }

    .home-rectangle {
        left: 5%;
        width: 110%;
    }


    .profil-pic {
        height: 120%;
    }

    .home-left-side {
        /* transform: none; */
        margin-top: 16px;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .home-text-hello {
        font-size: 60px;
        margin-bottom: 8px;
    }

    .home-text-name {
        font-size: 40px;
        margin-bottom: 8px;
        line-height: 1.08;
    }

    .home-text-job {
        font-size: 35px;
        margin-bottom: 18px;
        line-height: 1.08;
    }

    .home-buttons {
        margin-bottom: 14px;
    }

    .buttons-button-cv,
    .buttons-button-contact {
        padding: 11px 45px;
        font-size: 14px;
    }

    .social-media {
        margin-top: 5px;
        gap: 30px;
    }

    .home-left-side .social-media-icon {
        width: 40px;
        height: 40px;
    }

    .education,
    .experience,
    .activities {
        margin: 0 0 40px 0;
    }

    .resume-box {
        grid-template-columns: 100px 1fr auto;
        gap: 12px;
        padding: 20px 0;
    }

    .resume-box time {
        font-size: 12px;
    }

    .resume-box h4 {
        font-size: 16px;
    }

    .resume-box p {
        font-size: 13px;
        line-height: 1.5;
    }

    .resume-box .box-where-title {
        margin-bottom: 6px;
    }

    .resume-box img {
        width: 64px;
    }

    .resume-box .ijse-logo {
        width: 96px;
    }

    .project-card {
        transform: translateX(-10%);
    }
}

@media (max-width: 480px) {

    .side-menubar {

        top: 41px;
        width: 75vw;
    }

    section {
        padding: 45px 2% 0;
    }

    .page-title {
        font-size: 18px;

    }

    .page-title-underline {
        gap: 8px;
    }

    .line-left,
    .line-right {
        width: 50px;
    }

    .ellipse {
        width: 8px;
        height: 8px;
    }

    .page-sub-title {
        font-size: 15px;
    }

    .header {
        padding: 20px 15px;
    }

    .home {
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .home-main-container {
        gap: 6px;
        padding: 0;
    }

    .home-right-side {
        top: 0;
        width: 100%;
        height: 250px;
        margin-top: 0;
    }

    .home-rectangle {
        left: 10%;
        bottom: 0;
        width: 100%;
        height: 210px;
        border-width: 6px;
    }

    .profil-pic {
        height: 100%;
        bottom: 6px;
        left: 50%;
        transform: translate(-50%, -20px);
    }

    .home-left-side {
        transform: none;
        margin-top: 0;
        align-items: center;
        text-align: center;
    }

    .home-text-hello {
        font-size: 60px;
        margin-bottom: 4px;
    }

    .home-text-name {
        font-size: 30px;
        margin-bottom: 6px;
        line-height: 1.08;
    }

    .home-text-job {
        font-size: 25px;
        margin-bottom: 14px;
        line-height: 1.1;
    }

    .home-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 12px;
        width: 100%;
    }


    .buttons-button-cv,
    .buttons-button-contact {
        width: 100%;
        padding: 8px 26px;
    }

    .social-media {
        justify-content: center;
        gap: 14px;
        margin-top: 8px;
    }

    .home-left-side .social-media-icon {
        width: 30px;
        height: 30px;
    }

    .about-ring-wrap {

        width: 300px;
        height: 300px;
    }

    .aboutme-profile-image {
        width: 225px;
        height: 225px;
    }

    .education,
    .experience,
    .activities {
        margin: 0 0 30px 0;
    }

    .resume-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px 0;
    }

    .resume-box p {
        text-align: center;
    }

    .resume-box h4 {
        text-align: center;
    }

    .resume-box h4,
    .resume-box p,
    .resume-box time {
        grid-column: auto;
        grid-row: auto;
    }

    .resume-box img {
        width: 50px;
        margin-bottom: 10px;
        order: -1;
    }

    .resume-box .ijse-logo {
        width: 78px;
    }

    .project-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .project-card:hover .project-buttons {
        max-height: 100px;
        margin-bottom: 10px;

    }

    .assignment-grid {
        grid-template-columns: 1fr;
    }

    .gallery-images-grid {

        flex-direction: column;
        gap: 10px;
    }

    .gallery-image-card {
        flex-basis: 100%;
        height: 250px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .content-box:nth-child(2),
    .content-box-message {
        grid-column: 1;
    }

    .contact {
        padding: 45px 6% 35px 6%;
    }

    .contact-main-grid {
        gap: 25px;
    }

    .footer {
        padding: 30px 15px 18px 15px;
        gap: 25px;
    }

    .footer-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }


}

@media (max-width: 430px) {

    .home-rectangle {
        left: 7%;
        bottom: 0;
        width: 100%;
        height: 210px;
        border-width: 6px;
    }

    .about-header {
        margin-bottom: 32px;
    }

    .aboutme-main-content {
        gap: 22px;
    }

    .about-ring-wrap {
        width: 250px;
        height: 250px;
    }

    .aboutme-profile-image {
        width: 190px;
        height: 190px;
        border-width: 4px;
    }

    .aboutme-main-content .right-side {
        min-width: 0;
    }

    .about-header-2 {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .about-paragraph {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .aboutme-main-content .right-side>.about-contact-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-contact-info-header,
    .about-contact-info-content {
        font-size: 12px;
    }

    .about-skills {
        margin-top: 36px;
        padding: 22px 16px;
    }

    .about-skills-text {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .contact {
        padding: 40px 4% 30px 4%;
    }

    .contact-main-grid {
        margin-top: 24px;
        gap: 18px;
    }

    .header-label {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .header-description {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .user-details,
    .user-massage {
        font-size: 12px;
        padding: 12px 14px;
    }

    .text-user-details {
        left: 14px;
        font-size: 12px;
    }

    .btn-send-message {
        width: 100%;
        justify-content: center;
    }

    .contact-main-grid .right-side {
        padding: 20px 16px;
        gap: 18px;
        border-radius: 12px;
    }

    .contact-box-01,
    .contact-box-02,
    .contact-box-03 {
        gap: 12px;
        align-items: flex-start;
    }

    .headphone-img-wrapper,
    .phone-call-img-wrapper,
    .email-img-wrapper,
    .location-img-wrapper {
        width: 42px;
        height: 42px;
    }

    .contact-box-text,
    .headphones-wrapper-text {
        font-size: 13px;
    }

    .phone-number,
    .email-address,
    .address {
        font-size: 12px;
    }
}