* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: white;
    overflow-x: hidden;
}

/* cosmic background */
.bg {
    position: fixed;
    width: 100%;
    height: 100%;
    /* background: url("../assets/background.png") center/cover no-repeat !important;  */
    z-index: -2;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(120, 0, 255, .4), rgba(0, 0, 0, .9));
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
}

/* container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* NAV */


/* LOGO */
/* .logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
} */

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: url("../assets/background.png") center/cover no-repeat !important;
}

.avatar {
    width: 180px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 40px rgba(120, 0, 255, .7);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero h3 {
    font-weight: 300;
    color: #9fdcff;
    margin-bottom: 25px;
}

.cta {
    background: linear-gradient(90deg, #4cc9ff, #a855f7);
    border: none;
    padding: 14px 30px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 20px #4cc9ff;
    transition: .3s;
    display: inline-block;
    text-decoration: none;
}

.cta:hover {
    transform: scale(1.07);
}

/* GLASS CARD */
.glass {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    width: 100%;
    max-width: none;
    box-shadow: 0 0 25px rgba(150, 0, 255, .2);
}

/* .glass{
    margin:40px auto;
    width:90%;
    max-width:900px;
} */
/* Grid Layout */

/* PROJECTS
.carousel{
display:flex;
gap:20px;
overflow:auto;
padding-top:20px;
}

.project{
min-width:280px;
background:rgba(0,0,0,.5);
border-radius:15px;
padding:15px;
transition:.3s;
}

.project:hover{
transform:translateY(-10px);
box-shadow:0 0 20px #9b5cff;
}

.project img{
width:100%;
border-radius:10px;
margin-bottom:10px;
} */

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 90%;
    margin: auto;
}

.mini-card {
    padding: 30px;
    background: rgba(0, 0, 0, .5);
    border-radius: 15px;
    text-align: center;
    transition: .3s;
}

.mini-card:hover {
    transform: scale(1.05);
    background: rgba(120, 0, 255, .3);
}

/* INPUTS */
input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: white;
}

button {
    background: #7c3aed;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
}

/* MOBILE */
@media(max-width:768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 30px;
    }
}

/* Floating Button */
#ai-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 0 25px #7c3aed;
    z-index: 999;
    transition: .3s;
}

#ai-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px #06b6d4;
}

/* Chatbox */
#chatbox {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 320px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px #7c3aed;
    display: none;
    z-index: 999;
}

#chat-header {
    padding: 12px;
    background: #7c3aed;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

#close {
    cursor: pointer;
}

#chat-body {
    height: 260px;
    overflow: auto;
    padding: 12px;
    font-size: 14px;
}

#chat-input {
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    background: #000;
    color: #fff;
}

/* carosues */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.carousel {
    display: flex;
    gap: 25px;
    transition: transform .6s cubic-bezier(.77, 0, .18, 1);
    will-change: transform;
}

.slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.slide-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll 25s linear infinite;
    align-items: stretch;
}


.project {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: .4s;
}

.project img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.project:hover {
    transform: translateY(-10px);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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


/* footer */
.footer {
    margin-top: 80px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: black;
}

.footer-content {
    max-width: 900px;
    margin: auto;
}

.copyright {
    font-size: 14px;
    opacity: .7;
    letter-spacing: .5px;
}

.tagline {
    margin-top: 10px;
    font-size: 13px;
    opacity: .5;
}

/* tost nonfictio */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    display: flex;
    gap: 15px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* logo */
/* Remove default body spacing */
body {
    margin: 0;
}

/* Logo container */
.logo {
    position: absolute;
    /* sits at top-left of page */
    top: 20px;
    left: 40px;
}

/* Logo image */
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    transition: all .3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}


/* SOCIAL BAR */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 40px 0 10px;
}

/* ICON STYLE */
.social-bar img {
    width: 34px;
    height: 34px;
    opacity: .85;
    transition: .35s ease;
    border-radius: 34px;
    filter: drop-shadow(0 0 4px rgba(0, 180, 255, .4));
}

/* HOVER EFFECT */
.social-bar img:hover {
    transform: translateY(-6px) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(0, 200, 255, .9));
}

/* align */
.card-section h2 {
    margin-left: 5px;
}

/* GPU acceleration on typing text */


.typing::after {
    content: "|";
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

/* =========================
   RESPONSIVE SYSTEM
========================= */

/* Large Desktop */
@media (min-width:1400px) {
    .container {
        max-width: 1300px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .avatar {
        width: 200px;
    }
}


/* Laptop */
@media (max-width:1200px) {
    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Tablet */
@media (max-width:992px) {

    .hero {
        padding: 60px 15px;
    }

    .avatar {
        width: 150px;
    }

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

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

    .project {
        min-width: 260px;
    }

    #chatbox {
        width: 280px;
        right: 15px;
    }

    #ai-btn {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
}


/* Mobile */
@media (max-width:600px) {

    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero h3 {
        font-size: 15px;
    }

    .avatar {
        width: 120px;
    }

    .cta {
        font-size: 15px;
        padding: 12px 22px;
    }

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

    .project {
        min-width: 100%;
    }

    .glass {
        padding: 20px;
        margin: 25px 0;
    }

    .social-bar {
        gap: 18px;
    }

    .social-bar img {
        width: 28px;
        height: 28px;
    }

    #chatbox {
        width: 92%;
        right: 4%;
        bottom: 90px;
    }

    #ai-btn {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .logo {
        top: 15px;
        left: 15px;
    }

    .logo img {
        width: 34px;
        height: 34px;
    }
}


/* Small Phones */
@media (max-width:400px) {

    .hero h1 {
        font-size: 22px;
    }

    .hero h3 {
        font-size: 14px;
    }

    .cta {
        width: 100%;
    }

    .avatar {
        width: 100px;
    }
}

/* MOBILE PROJECT CARD FIX */
@media (max-width:600px) {

    .project {
        min-width: 85%;
        /* smaller width for slide */
        padding: 15px;
    }

    .project img {
        height: 160px;
        /* control image height */
        object-fit: cover;
        /* crop nicely */
    }

    .project h3 {
        font-size: 18px;
    }

    .project p {
        font-size: 14px;
        line-height: 1.4;
    }
}