/* ============ GLOBAL RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* --- Theme variables --- */
:root {
    --bg-main: #020617;
    --bg-soft: #020617;
    --accent-pink: #ff008c;
    --accent-blue: #22d3ee;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --card-bg: rgba(15, 23, 42, 0.9);
    --card-bg-soft: rgba(15, 23, 42, 0.7);
    --border-soft: rgba(148, 163, 184, 0.6);
}

/* ============ CLICK EFFECT ============ */

div.clickEffect {
    position: fixed;
    box-sizing: border-box;
    border-style: solid;
    border-color: var(--accent-blue);
    border-radius: 50%;
    animation: clickEffect 0.4s ease-out;
    z-index: 99999;
}

@keyframes clickEffect {
    0% {
        opacity: 1;
        width: 0.3em;
        height: 0.3em;
        margin: -0.1em;
        border-width: 0.25em;
    }

    100% {
        opacity: 0;
        width: 8em;
        height: 8em;
        margin: -4em;
        border-width: 0.05em;
    }
}

/* ============ BODY ============ */

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(248, 113, 113, 0.18), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 45%),
        var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.neon-cursive {
    font-family: "Brush Script MT", "Pacifico", "Great Vibes", cursive;
    font-size: 50px;
    font-weight: 700;
    background: linear-gradient(90deg, #67e8f9, #c084fc, #ff7ce5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 6px rgba(103, 232, 249, 0.55),
        0 0 12px rgba(192, 132, 252, 0.4),
        0 0 18px rgba(255, 124, 229, 0.25);
}



/* ============ SOCIAL ICONS SIDE ============ */

.social-icons-container {
    position: fixed;
    top: 40%;
    transform: translateY(-50%);
}

.close-icon {
    position: absolute;
    right: -10px;
    top: -10px;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50px;
    z-index: 1;
    background: #0f172a;
    padding: 2px 6px;
}

.social-icons-side {
    list-style-type: none;
    padding: 6px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.social-icons-side li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    text-align: center;
    line-height: 1;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 999px;
    margin: 4px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.social-icons-side li a:hover {
    transform: translateX(3px) scale(1.1);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    color: #0b1120;
    box-shadow: 0 0 15px var(--accent-blue), 0 0 25px var(--accent-pink);
}

.expand-icon {
    position: absolute;
    top: 50%;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50px;
    z-index: 1;
    transition: left 0.5s ease;
    display: none;
    background: #0f172a;
    padding: 3px 6px;
}

/* ============ HEADER / HERO ============ */

#header {
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    /* OLD: background-image: url(image/theme.jpeg); */
    background-image:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.28), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.28), transparent 55%),
        linear-gradient(135deg, #020617, #020617);
    background-position: center;
    background-size: cover;
}

.logo {
    font-size: 45px;
    font-weight: 700;
    background: linear-gradient(90deg, #67e8f9, #c084fc, #ff7ce5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 6px rgba(103, 232, 249, 0.55),
        0 0 12px rgba(192, 132, 252, 0.4),
        0 0 18px rgba(255, 124, 229, 0.25);
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-blue));
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
    border-radius: 999px;
}

nav ul li a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--accent-blue);
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 14%;
    font-size: 30px;
    padding-right: 30%;
}

.header-text h1 {
    font-size: 52px;
    margin-top: 20px;
    color: #f9fafb;
}
.header-text h1 span {
    background: linear-gradient(90deg, #67e8f9, #c084fc, #ff7ce5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 6px rgba(103, 232, 249, 0.6),
        0 0 10px rgba(192, 132, 252, 0.45),
        0 0 14px rgba(255, 124, 229, 0.35),
        0 0 18px rgba(255, 124, 229, 0.2);
}

.header-text p {
    font-size: 24px;
    margin: 10px 0;
    color: var(--text-muted);
}

/* hero button */
.f-btn {
    display: block;
    width: fit-content;
    font-size: 18px;
    border: 1px solid transparent;
    margin-top: 120px;
    padding: 14px 40px;
    border-radius: 999px;
    text-decoration: none;
    background-image: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    color: #0b1120;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.f-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.8);
}

.f-btn i {
    margin-left: 5px;
}

/* ----------about----------- */
#about {
    padding: 80px 0;
    color: var(--text-muted);
    background: transparent;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-soft);
}

.about-col-2 p {
    font-size: 16px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #e5e7eb;
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--text-muted);
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--accent-blue);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link {
    color: var(--text-main);
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: var(--accent-blue);
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* ---------------service-------------- */
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: var(--card-bg);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
    transition: background 0.5s, transform 0.5s, box-shadow 0.5s, border 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
    color: var(--accent-blue);
    text-shadow: 0 0 12px var(--accent-blue);
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #f9fafb;
}

.services-list div a {
    text-decoration: none;
    color: var(--accent-blue);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(37, 99, 235, 0.2));
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
    border-color: var(--accent-blue);
}

/* -------- GitHub CTA -------- */
.github-cls {
    margin: 10px 140px 90px 140px;
    padding: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(236, 72, 153, 0.25), transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.25), transparent 55%),
        #020617;
    background-size: cover;
    text-align: center;
    border-radius: 24px;
    overflow: hidden;
}

.git {
    padding: 80px;
    background-color: rgba(15, 23, 42, 0.9);
    border-radius: 24px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.github-cls:hover .git {
    transform: scale(1.03);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 1);
}

.github-cls h1 {
    color: #ffffff;
    font-size: 48px;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.github-cls p {
    color: #e5e7eb;
    font-size: 18px;
    margin: 8px 0 52px 0;
}

.github-cls a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    color: #0b1120;
    padding: 12px 20px;
    border-radius: 24px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.github-cls a i {
    padding-right: 4px;
}

.github-cls a:hover {
    transform: scale(1.07);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.8);
}

/* Tools & IDEs Section */
#tools-ides {
    padding: 30px 0;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.tool-item {
    background: var(--card-bg);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
    transition: background 0.5s, transform 0.5s, box-shadow 0.5s, border 0.5s;
    text-align: center;
}

.tool-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 30px;
}

.tool-item h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #f9fafb;
}

.tool-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.tool-item:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(37, 99, 235, 0.18));
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
    border-color: var(--accent-blue);
}

@media only screen and (max-width: 600px) {
    .tools-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-gap: 20px;
    }

    .tool-item {
        padding: 20px;
    }

    .tool-item h2 {
        font-size: 24px;
    }

    .tool-item p {
        font-size: 12px;
    }

    .tool-item img {
        width: 40px;
        height: 40px;
    }
}

/* -----------------portfolio--------------- */
#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
    border: 1px solid var(--border-soft);
}

.work img {
    width: 100%;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(236, 72, 153, 0.95));
    border-radius: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    transition: height 0.5s;
    color: #f9fafb;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: var(--accent-pink);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #f9fafb;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border-radius: 999px;
    padding: 14px 50px;
    text-decoration: none;
    color: #0b1120;
    background-image: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    font-weight: 600;
    border: none;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 30px rgba(34, 211, 238, 1);
}

/* social icons (bottom) */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.social-item img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-item img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

/* -------------------certificate------------- */
/* gallery */
.gallery img {
    width: 60%;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.gallery {
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    transition: 0.5s;
}

.gallery::-webkit-scrollbar {
    height: 8px !important;
}

.gallery::-webkit-scrollbar-thumb {
    background-color: var(--accent-pink);
    border-radius: 60px;
}

.gallery::-webkit-scrollbar-track {
    background-color: #1f2937;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.gallery .horizontal-gallery {
    display: inline;
}

.potrait {
    height: 330px;
    width: auto;
    margin-right: 12px;
    cursor: zoom-in;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}


/* ------------------contact------------------- */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: var(--accent-pink);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: var(--text-muted);
    display: inline-block;
    transition: transform 0.5s, color 0.5s, text-shadow 0.5s;
}

.social-icons a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
    text-shadow: 0 0 12px var(--accent-blue);
}

.contact-left a {
    color: var(--text-main);
    text-decoration: none;
}

.btn.btn2 {
    display: inline-block;
    background-image: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    color: #0b1120;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    padding: 15px;
    margin: 15px;
    color: var(--text-main);
    font-size: 18px;
    border-radius: 10px;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 999px;
    border: none;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #020617;
    font-weight: 300;
    margin-top: 20px;
    color: var(--text-muted);
    border-top: 1px solid #111827;
}

.copyright a {
    color: #e5e7eb;
    text-decoration: none;
}

/* overwrite social icons layout (bottom) */
.social-icons a {
    text-decoration: none;
    font-size: 2rem;
    margin: 0 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-item img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-item img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.contact-left p i {
    color: var(--accent-pink);
    margin-right: 10px;
    font-size: 20px;
}

/* ---------------------css for media -------------------- */
nav .fas {
    display: none;
}

@media only screen and (max-width: 600px) {
    #header {
        background-image:
            radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.28), transparent 55%),
            radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.28), transparent 55%),
            url(image/background-ph.png);
        background-position: center;
        background-size: cover;
    }

    .logo {
        font-size: 32px;
    }

    .header-text {
        margin-top: 85%;
        padding-top: 140px;
        padding-right: 0%;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fas {
        display: block;
        font-size: 25px;
        color: var(--text-main);
    }

    .header-text p {
        font-size: 18px;
    }

    .f-btn {
        margin-top: 50px;
        font-size: 18px;
        border-radius: 20px;
        padding: 8px 24px;
    }

    nav ul {
        background: #020617;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li a::after {
        background: #fff;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .grid {
        display: block;
    }

    .left {
        margin-bottom: 30px;
    }

    .img-fluid img {
        height: 180px;
        width: auto;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .about-col-2 p {
        font-size: 14px;
    }

    .github-cls {
        margin: 0px 40px 10px 40px;
        background-size: cover;
    }

    .git {
        padding: 40px;
    }

    .github-cls h1 {
        font-size: 14px;
    }

    .github-cls p {
        margin: 8px 0 22px 0;
        font-size: 12px;
    }

    .github-cls a {
        padding: 8px 16px;
        font-size: 12px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .contact-right {
        margin-left: -18px;
    }

    .copyright {
        font-size: 14px;
    }

    @keyframes clickEffect {
        0% {
            opacity: 1;
            width: 0.3em;
            height: 0.3em;
            margin: -0.1em;
            border-width: 0.2em;
        }

        100% {
            opacity: 0.2;
            width: 5em;
            height: 5em;
            margin: -2.5em;
            border-width: 0.03em;
        }
    }
}

/* ============ Notification ============ */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--accent-pink);
    border: 1px solid #ccc;
    padding: 10px;
    display: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

#notification-message {
    display: inline-block;
    margin-right: 10px;
}

#close-notification {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* ============ Scroll to top ============ */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#scrollToTop a {
    background-color: #111827;
    color: #fff;
    padding: 10px 12px;
    border-radius: 50px;
    text-decoration: none;
}

#scrollToTop a:active {
    background-color: var(--accent-pink);
}

#scrollToTop a i {
    font-size: 20px;
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ============ SCROLLBARS ============ */

::-webkit-scrollbar {
    width: 8px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-blue));
    border-radius: 5px;
}


/* Feedback button */
#feedbackBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 3;
}

#feedbackBtn a {
    background-color: #020617;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

#feedbackBtn.hidden {
    opacity: 0;
    pointer-events: none;
}