﻿

/* GLOBAL */
html {
    scroll-behavior: smooth;
}

body {
    background: #020617;
    color: white;
    font-family: Segoe UI, sans-serif;
}

/* SECTION SPACING */

section {
    padding: 100px 0;
    scroll-margin-top: 80px;
}

/* HERO SECTION */

.hero {
    height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


    /* HERO TEXT */

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        color: #94a3b8;
        max-width: 650px;
        margin: auto;
    }
/* FLOATING TECH */

.floating-tech {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

    .floating-tech span {
        position: absolute;
        color: #3b82f6;
        font-weight: bold;
        opacity: 0.15;
        animation: float 20s linear infinite;
    }

        /* RANDOM POSITIONS */

        .floating-tech span:nth-child(1) {
            top: 20%;
            left: 10%;
        }

        .floating-tech span:nth-child(2) {
            top: 60%;
            left: 20%;
        }

        .floating-tech span:nth-child(3) {
            top: 30%;
            left: 70%;
        }

        .floating-tech span:nth-child(4) {
            top: 75%;
            left: 60%;
        }

        .floating-tech span:nth-child(5) {
            top: 10%;
            left: 50%;
        }

/* FLOAT ANIMATION */

@keyframes float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }

    100% {
        transform: translateY(0);
    }
}
 /*   About */
.about-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

    .about-highlight div {
        background: #1e293b;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
    }

/* ABOUT IMAGE */

.about-img {
    width: 200px;
    border-radius: 50%;
    border: 4px solid #3b82f6;
}

/* TIMELINE */

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 50%;
        width: 2px;
        height: 100%;
        background: #3b82f6;
    }

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.timeline-year {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
}

.timeline-content {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
}

/* TECH STACK */

.tech-card {
    background: #1e293b;
    padding: 35px;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
}


    /* HOVER EFFECT */

    .tech-card:hover {
        background: #3b82f6;
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }

/* SKILLS */

.progress {
    height: 10px;
    background: #1e293b;
}

.progress-bar {
    background: #3b82f6;
    width: 0;
    transition: width 1.5s ease;
}




/* NAVBAR CUSTOM */

.navbar {
    background: #020617 !important;
}

    .navbar .nav-link {
        color: white !important;
    }

        .navbar .nav-link:hover {
            color: #3b82f6 !important;
        }
.nav-link.active {
    color: #3b82f6 !important;
    font-weight: 600;
}


/* SCROLL PROGRESS BAR */

#scrollBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #3b82f6;
    z-index: 9999;
}


/* PROJECTS */

.project-card {
    background: #1e293b;
    border-radius: 12px;
    transition: 0.3s;
    height: 100%;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

    .project-card:hover {
        transform: translateY(-6px);
        background: #334155;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .project-card h4 {
        margin-bottom: 15px;
    }

    .project-card p {
        color: #94a3b8;
    }
/* PROJECT IMAGE */

.project-img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 200px;
    object-fit: cover;
    width: 100%;
}
/* PROJECT OVERLAY */


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.modal-body h6 {
    font-weight: 600;
}

.modal-body p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* ARCHITECTURE DIAGRAM */

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
@media(max-width:768px) {

    .arch-flow {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }
}
.arrow {
    color: #3b82f6;
    font-size: 24px;
}

.arch-box {
    background: #1e293b;
    padding: 20px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

    .arch-box:hover {
        transform: translateY(-5px);
        background: #3b82f6;
    }

.arch-node {
    background: #1e293b;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .arch-node:hover {
        background: #3b82f6;
        transform: translateY(-3px);
    }

.arch-arrow {
    font-size: 20px;
    color: #3b82f6;
}
.arrow {
    color: #3b82f6;
    font-size: 24px;
    align-self: center;
}

.arch-info {
    margin-top: 40px;
    background: #1e293b;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.3s;
    border-left: 4px solid #3b82f6;
}

.arch-mobile-info {
    display: none;
    background: #1e293b;
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
    color: #94a3b8;
}
.arch-card {
    width: 180px;
    height: 90px;
    perspective: 1000px;
    cursor: pointer;
}

.arch-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.arch-card.flip .arch-inner {
    transform: rotateY(180deg);
}

.arch-front,
.arch-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    backface-visibility: hidden;
}

.arch-back {
    transform: rotateY(180deg);
    background: #3b82f6;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}
.arch-card:hover .arch-inner {
    transform: rotateY(180deg);
}


.api-box {
    background: #020617;
    padding: 20px;
    border-radius: 10px;
}

#apiUrl {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #1e293b;
    border: none;
    color: white;
}

#apiResponse {
    margin-top: 15px;
    color: #22c55e;
}




/* TECH BADGES */

.tech-badges {
    margin-top: 15px;
}

    .tech-badges span {
        display: inline-block;
        background: #0f172a;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        margin: 4px;
    }


/* ARCHITECTURE */

.arch-box {
    background: #1e293b;
    padding: 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

    .arch-box:hover {
        background: #3b82f6;
        transform: translateY(-5px);
    }


/* PROBLEM SOLVING */

.problem-card {
    background: #1e293b;
    border-radius: 12px;
    transition: 0.3s;
}

    .problem-card:hover {
        transform: translateY(-5px);
        background: #334155;
    }

    .problem-card h5 {
        color: #3b82f6;
    }

    .problem-card p {
        color: #94a3b8;
    }


/* EXPERIENCE */

.experience-card {
    background: #1e293b;
    border-radius: 12px;
    transition: 0.3s;
}

    .experience-card:hover {
        transform: translateY(-6px);
        background: #334155;
    }

    .experience-card h4 {
        margin-bottom: 10px;
    }

    .experience-card p {
        color: #94a3b8;
    }


/* TERMINAL */

.terminal {
    background: #111827;
    padding: 30px;
    border-radius: 10px;
    font-family: monospace;
    max-width: 800px;
    margin: auto;
}

#terminalOutput {
    min-height: 120px;
    margin-bottom: 10px;
    color: #22c55e;
}

.terminal-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .terminal-input span {
        color: #22c55e;
    }

    .terminal-input input {
        background: transparent;
        border: none;
        outline: none;
        color: white;
        width: 100%;
    }

/* CONTACT */

.contact-links a {
    min-width: 160px;
}

/* FOOTER */

footer {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
}


/* CHATBOT */

.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* CHAT ICON */

.chat-icon {
    background: #3b82f6;
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6, 0 0 40px #3b82f6;
    transform: scale(1.08);
}

   
@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}
/* CHAT WINDOW */
.chatbot {
    display: none;
    width: 280px;
    background: #020617;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

#chatHeader {
    background: #3b82f6;
    padding: 10px;
    font-weight: 600;
}

#chatBody {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
}

#chatInput {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px;
    background: #1e293b;
    color: white;
}

chat-typing{
background:#3b82f6;
color:white;
padding:6px 12px;
border-radius:20px;
font-size:13px;
margin-bottom:8px;
max-width:220px;
text-align:center;
}