:root {
    --bg: #0f172a;
    /* Darker, more premium background */
    --panel: #262c3d;
    --card: #30384b;
    --accent: #f0b123;
    --accent-2: #5dd5ff;
    --text: #e9edf5;
    --muted: #a9b1c5;
    --font-primary: "Space Grotesk", "DM Sans", system-ui, -apple-system, sans-serif;
}

* {

    box-sizing: border-box;



}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

a,
button,
input,
textarea,
.card {
    cursor: none;
}

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-2);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 12px 64px;
    position: relative;
}

/*Sparkle effect css mouse*/
/*end of sparkle effect css mouse*/


nav {
    display: flex;
    justify-content: space-around;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 0 30px 0;
    border-radius: 15px;

    color: white;

    height: 70px;

}

nav ul li a {
    text-decoration: none;
    color: white;

    /* optional round corner */
    transition: 0.3s;




    border: 2px solid white;
    border-radius: 10px;

    padding: 10px;


}

nav ul li a:hover {
    background-color: #ffffff33;
    /* light white box */
    color: rgb(245, 245, 243);
    /* optional text color change */
}

nav ul li {
    display: inline-block;
    padding: 10px;


}

.link {
    background-color: #30384b;
}


.links a {
    text-decoration: none;
    color: white;
    border: 2px solid white;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.logo {
    height: 50px;
    width: 50px;
}

/*Custom border for intro*/

.custom-border {
    position: relative;


    padding: 20px;
    border-radius: 18px;
}

.custom-border:before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 5px;
    border-radius: 20px;

    background: linear-gradient(135deg, #ff00cc, #00ccff, #00ff88);
    background-size: 300% 300%;
    animation: borderFlow 6s ease infinite;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;



}



.intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* width: 60%;*/
    margin-top: 150px;

    gap: 20px;

    border-radius: 15px;


}

/*typing effect*/
.typing-text {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: #ff00cc;
    border-right: 2px solid #ff00cc;
    /* cursor effect */
    white-space: nowrap;
    overflow: hidden;
    font-weight: 600;
}

/* Blinking cursor */
@keyframes blink {

    0%,
    50%,
    100% {
        border-color: #ff00cc;
    }

    25%,
    75% {
        border-color: transparent;
    }
}

.typing-text {
    animation: blink 1s infinite;
}

.self {
    display: flex;
    flex-direction: column;
    margin: 15px;
    padding: 8px;

}

.self .hello {
    font-size: 50px;
    font-weight: 300;
    color: white;

}

.self p {
    margin-top: 30px;
    font-size: 20px;
}

.btn1 {
    width: 200px;
    height: 50px;
    border-radius: 50px;
    margin-top: 50px;
    border: none;
    background: linear-gradient(90deg, #4dabf7, #845ef7, #ee0979);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(238, 9, 121, 0.3);
    transition: 0.3s;


}

.btn1:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(238, 9, 121, 0.5);
}


.profile img {

    width: 300px;
    height: 400px;
}

img {
    width: 100%;
    height: 100%;
    border-radius: 50px;
}

.links1 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(49, 56, 74, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin: 30px 0 30px 0;
    border-radius: 15px;
    /* width: 60%;*/
    color: white;
    height: 70px;
}

.links1 ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px;

}



.links1 a {
    text-decoration: none;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    transition: 0.3s;
    padding: 10px 50px 10px 50px;
}

.links1 ul li a:hover {
    background-color: #ffffff33;
    /* light white box */
    color: rgb(245, 245, 243);
    /* optional text color change */
}

.about h1 {
    margin: 150px 0 50px 0;
    font-size: 80px;
}

.about h3 {
    margin: 150px 0 150px 0;
    font-size: 40px;
    width: 70%;
}



.about_para {
    margin: 0 0 150px 0;
    font-size: 20px;
}

.project_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px;
}

.card a {
    text-decoration: none;
    padding: 10px;

}

/* Redesigned Project Cards */
.card {
    background: rgba(48, 56, 75, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: none;
    /* Keep custom cursor */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(93, 213, 255, 0.2);
    border-color: rgba(93, 213, 255, 0.3);
}

.card-img-top {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
   padding: 15px;
   
   
   
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #a9b1c5);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Update Button inside Card */
.card .btn1 {
    width: 100%;
    margin-top: auto;
    background: transparent;
    border: 1px solid rgba(93, 213, 255, 0.3);
    color: #5dd5ff;
    box-shadow: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.card .btn1:hover {
    background: rgba(93, 213, 255, 0.1);
    box-shadow: 0 0 15px rgba(93, 213, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* width: 60%;*/
    margin-bottom: 10px;
}

.skills div {
    background: rgba(49, 56, 74, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 20px;
    color: white;
    text-align: center;
}

/*.skills div:hover{
    background-color: #ffffff33;
    transform: scale(1.05);
    transition: 0.3s;
}*/
.Skill_list {
    margin: 10px;
}

.Skillset ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 20px;
    grid-template-columns: repeat(4, 1fr);
}

.Skillset h3 {}

.Skill_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.Skill_list h5 {
    width: 100%;
    /* forces header to be full row */
    margin-bottom: 10px;
}

.spark-outline {
    padding: 8px 14px;
    border-radius: 20px;
    border: 2px solid transparent;
    position: relative;
    color: #ffffff;
    background-clip: padding-box;
}

.spark-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #ff00cc, #4dabf7, #845ef7);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/*image slide*/
.img-slider {

    height: 200px;
    width: 100%;
    overflow: hidden;

    margin: 50px 0 50px 0;

}



.img-track {
    display: flex;
    animation: slide 10s linear infinite;
    will-change: transform;
    /* GPU smooth scrolling */
    white-space: nowrap;
}

.img-track img {
    width: 100px;
    /* your image width */
    height: auto;
    flex-shrink: 0;
    /* prevents shrinking */
    margin: 20px;
    /* NO GAP */
}

/* Smooth infinite movement */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


.projects {
    list-style: none;
    display: grid;
    gap: 10px;



}

/*project list*/
.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item {
    margin: 12px 0;
    padding: 15px 20px;
    background: rgba(49, 56, 74, 0.65);
    border-radius: 12px;
    position: relative;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    /* Creates space for glow */
    border: 2px solid transparent;
    background-clip: padding-box;
    justify-content: space-between;
}


.project-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Spark Border Effect */
.project-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #ff00cc, #4dabf7, #845ef7);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Glow Hover */
.project-item:hover {
    transform: translateY(-3px);
    transition: 0.3s;
}

.project-item:hover::before {
    filter: brightness(1.3);
}

.arrow {
    width: 50px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(90deg, #4dabf7, #845ef7, #ee0979);
    display: grid;
    place-items: center;
    color: #ff00cc;
    font-weight: 700;
}

.contect-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 150px;
}

@media (min-width: 768px) {
    .contect-section {
        grid-template-columns: 1fr 3fr;
        /* right bigger */
    }
}

/*  */

.contact-wrapper {
    width: 100%;

    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.contact-form {
    width: 100%;
}

.contact-form form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    /* full width */
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin: 10px;
}

button {
    padding: 12px;
    background: #5e64d8;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    /* button full width */
    margin: 10px;
}


/**/
.contact-list ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;


}

.contact-list ul li {
    padding: 15px;
    font-size: 30px;



}

.Quick_links h5 {
    font-weight: 700;
    font-size: 30px;

}

.Quick_links ul {
    list-style: none;



}

.Quick_links ul li a {
    text-decoration: none;
    color: rgb(147, 140, 140);


}

.Quick_links ul li {
    margin-top: 15px;


}

@media (max-width: 1100px) {

    .self p {
        font-size: 20px;

    }

    .typing-text {
        font-size: 20px;
    }

    .intro {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        margin-top: 40px;
    }

    .profile img {

        width: 200px;
        height: 300px;

    }

    nav {
        font-size: 10px;



    }

    nav ul li {

        margin: 0;
        padding: 0;


    }

    .links1 {
        margin: 10px 0 10px 0;
    }


    .links1 a {

        border: 1px solid white;
        padding: 10px;
    }

    .skills {
        grid-template-columns: repeat(1, 1fr);
        margin: 10px 0 10px 0;

    }

    .projects {
        list-style: none;
        display: grid;
        gap: 10px;
        margin: 0;


    }



}

@media (max-width: 450px) {
    .links a {

        border: 1px solid white;
        padding: 5px;

    }

    .links ul {

        padding: 0;
    }
}

/*Product page*/
.product_body {
    margin: 0;
    font-family: var(--font-primary);
    background: radial-gradient(circle at 15% 20%, rgba(62, 70, 95, 0.6), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(50, 59, 83, 0.6), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(33, 39, 55, 0.65), transparent 40%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}


/*flip card*/
.flip-card {

    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    border-radius: 25px;
    margin-bottom: 70px;

}

.flip-card-inner {

    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10%;



}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10%;
}

.flip-card-front {
    background-color: var(--bg);
    color: black;

}

.flip-card-back {
    background-color: var(--bg);
    color: white;
    transform: rotateY(180deg);

}




.flip-card-back a {
    margin: auto;
    text-decoration: none;
}

.text-over {
    position: absolute;
    top: 50%;
    /* center vertically */
    left: 50%;
    /* center horizontally */
    transform: translate(-50%, -50%);
    color: rgb(4, 4, 4);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 5px black;

}

.header-row {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 50px;
    justify-content: center;


}