:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-main: #e0e0e0;
    --text-dim: #888;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
    --transition: all 0.3s ease;
}

.purple-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(90%) saturate(5000%) hue-rotate(270deg) brightness(110%) contrast(110%);
    transition: filter 0.3s ease;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Background Grid Effect */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #050505 90%);
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-main);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 81px, 0);
    }

    20% {
        clip: rect(98px, 9999px, 126px, 0);
    }

    40% {
        clip: rect(4px, 9999px, 56px, 0);
    }

    60% {
        clip: rect(52px, 9999px, 19px, 0);
    }

    80% {
        clip: rect(32px, 9999px, 108px, 0);
    }

    100% {
        clip: rect(122px, 9999px, 12px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 11px, 0);
    }

    20% {
        clip: rect(24px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(99px, 9999px, 16px, 0);
    }

    60% {
        clip: rect(2px, 9999px, 59px, 0);
    }

    80% {
        clip: rect(52px, 9999px, 38px, 0);
    }

    100% {
        clip: rect(88px, 9999px, 112px, 0);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.nav-item span {
    color: var(--primary-color);
    margin-right: 5px;
}

.nav-item:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.glitch-text-sm {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.role-text {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-dim);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.btn-outline:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: inset 0 0 0 2px #fff, 0 0 10px var(--primary-color);
    color: #fff;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Image & Lines */
.hero-image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    border: 2px solid rgba(0, 243, 255, 0.5);
}

/* Decorative Lines / Corners */
.corner-borders {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid transparent;
    pointer-events: none;
}

.corner-borders::before,
.corner-borders::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.corner-borders::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-borders::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.hero-image-wrapper:hover .corner-borders::before {
    top: -5px;
    left: -5px;
    width: 50px;
    height: 50px;
}

.hero-image-wrapper:hover .corner-borders::after {
    bottom: -5px;
    right: -5px;
    width: 50px;
    height: 50px;
}

/* Scan Line Animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: scan 4s infinite linear;
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Scroll Reveal Animation Styles */
.reveal-init {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* About Card */
.about-card {
    background: linear-gradient(135deg, rgba(15, 15, 18, 0.95), rgba(10, 10, 12, 0.98));
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 12px;
    padding: 25px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    transition: 0.6s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 243, 255, 0.3);
}

.about-card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
    box-shadow: 0 0 8px #ff5f56;
}

.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 8px #ffbd2e;
}

.green {
    background: #27c93f;
    box-shadow: 0 0 8px #27c93f;
}

.card-body p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.skill-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(20, 20, 25, 0.8) 100%);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: default;
    backdrop-filter: blur(5px);
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 243, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease, left 0.4s ease;
}

.skill-card:hover {
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 243, 255, 0.25);
    transform: translateY(-8px) scale(1.02);
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card:hover::before {
    width: 80%;
    left: 10%;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.skill-card:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px var(--secondary-color));
}

.skill-card img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    filter: drop-shadow(0 0 6px rgba(188, 19, 254, 0.4));
}

/* Override for purple-icon images inside skill-card — fix specificity issue */
.skill-card img.purple-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(90%) saturate(5000%) hue-rotate(270deg) brightness(110%) contrast(110%) drop-shadow(0 0 6px rgba(188, 19, 254, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.skill-card:hover img {
    transform: scale(1.18) rotate(-4deg);
    filter: drop-shadow(0 0 16px var(--secondary-color)) drop-shadow(0 0 30px rgba(188, 19, 254, 0.8)) brightness(1.2);
    animation: cyber-icon-flicker 1.5s infinite alternate;
}

/* Hover effect for purple-icon — maintain purple tint + glow */
.skill-card:hover img.purple-icon {
    transform: scale(1.18) rotate(-4deg);
    filter: brightness(0) saturate(100%) invert(27%) sepia(90%) saturate(5000%) hue-rotate(270deg) brightness(130%) contrast(115%) drop-shadow(0 0 18px var(--secondary-color)) drop-shadow(0 0 35px rgba(188, 19, 254, 0.9));
    animation: cyber-icon-flicker-purple 1.5s infinite alternate;
}

@keyframes cyber-icon-flicker {

    0%,
    100% {
        filter: drop-shadow(0 0 16px var(--secondary-color)) drop-shadow(0 0 30px rgba(188, 19, 254, 0.8)) brightness(1.2);
    }

    50% {
        filter: drop-shadow(0 0 25px var(--secondary-color)) drop-shadow(0 0 40px rgba(188, 19, 254, 0.95)) brightness(1.35);
    }
}

@keyframes cyber-icon-flicker-purple {

    0%,
    100% {
        filter: brightness(0) saturate(100%) invert(27%) sepia(90%) saturate(5000%) hue-rotate(270deg) brightness(130%) contrast(115%) drop-shadow(0 0 18px var(--secondary-color)) drop-shadow(0 0 35px rgba(188, 19, 254, 0.9));
    }

    50% {
        filter: brightness(0) saturate(100%) invert(27%) sepia(90%) saturate(5000%) hue-rotate(270deg) brightness(150%) contrast(120%) drop-shadow(0 0 28px var(--secondary-color)) drop-shadow(0 0 50px rgba(188, 19, 254, 0.99));
    }
}

.skill-card h3 {
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px var(--primary-color);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.project-card {
    background: linear-gradient(160deg, rgba(18, 18, 22, 0.95), rgba(10, 10, 14, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    transition: 0.6s ease;
    z-index: 2;
}

.project-card:hover {
    border-color: rgba(188, 19, 254, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(188, 19, 254, 0.35);
    transform: translateY(-10px);
}

.project-card:hover::before {
    left: 100%;
}

.project-image {
    height: 210px;
    background: #0d0d12;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-image img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(1.15) contrast(1.1) drop-shadow(0 0 10px rgba(0, 243, 255, 0.4));
}

.placeholder-img {
    font-size: 1.8rem;
    color: #444;
    font-weight: bold;
    z-index: 1;
    letter-spacing: 2px;
}

.overlay-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 60%, rgba(0, 243, 255, 0.15) 80%, rgba(188, 19, 254, 0.25) 100%);
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-card:hover .overlay-glitch {
    opacity: 0.55;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 2px,
            transparent 2px,
            transparent 4px),
        linear-gradient(135deg, rgba(0, 243, 255, 0.25), rgba(188, 19, 254, 0.35));
    animation: cyber-scanline 2s linear infinite;
}

.project-image::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 243, 255, 0.4), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
    animation: cyber-radar-scan 1.8s ease-in-out infinite;
}

@keyframes cyber-scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100px;
    }
}

@keyframes cyber-radar-scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.project-info {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: #fff;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.tags span {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-right: 5px;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #fff;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.btn-small:hover {
    color: var(--primary-color);
}

/* Contact Form */
.cyber-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 50px;
}

.socials {
    margin-top: 20px;
}

.socials a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--text-dim);
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        padding: 20px;
        text-align: center;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .skill-card {
        padding: 15px;
    }
}

/* =========================================
   CYBER CHATBOT WIDGET (BOTTOM-RIGHT)
   ========================================= */
.cyber-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: var(--font-body);
}

/* Toggle Floating Button */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #050505, #111116);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 10px rgba(0, 243, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
}

.chat-toggle-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 243, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s linear;
    pointer-events: none;
}

.chat-toggle-btn:hover::before {
    opacity: 1;
    border-color: var(--secondary-color);
    animation: cyber-spin 4s linear infinite;
}

.chat-toggle-btn:hover {
    transform: scale(1.12) rotate(6deg);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 35px rgba(188, 19, 254, 0.8), 0 0 15px rgba(0, 243, 255, 0.5), inset 0 0 15px rgba(188, 19, 254, 0.4);
    text-shadow: 0 0 10px var(--secondary-color);
}

@keyframes cyber-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.chat-toggle-btn .chat-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 243, 255, 0.25);
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.15), rgba(188, 19, 254, 0.15));
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-bot-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #050508;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.chat-bot-avatar i {
    font-size: 1rem;
}

.chat-bot-details h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
}

.chat-bot-details span {
    font-size: 0.72rem;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-bot-details span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 6px #00ff88;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.chat-close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 2px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
    animation: chatMsgFadeIn 0.3s ease forwards;
}

@keyframes chatMsgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.25), rgba(188, 19, 254, 0.25));
    border: 1px solid rgba(188, 19, 254, 0.4);
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* Quick Suggestion Chips */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chat-chip {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.chat-chip:hover {
    background: var(--primary-color);
    color: #050505;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Typing indicator */
.chat-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    border-bottom-left-radius: 2px;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
    background: rgba(5, 5, 8, 0.9);
}

.chat-input-bar input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    color: #050505;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .cyber-chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-window {
        bottom: 70px;
        right: 0;
        width: calc(100vw - 30px);
        height: 420px;
    }
}