* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #ffffff;
    color: #1e293b;
    padding-top: 80px;
}

html {
    scroll-behavior: smooth;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    z-index: 3000; /* ABOVE EVERYTHING */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* LOGO */
.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing:0.5px;
    background:linear-gradient(90deg,#0ea5e9,#2563eb);
    -webkit-background-clip: text;
    color: transparent;
}

/* MENU BUTTON */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #2563eb;
    z-index: 3100; /* ABOVE NAV */
}

/* NAV LINKS (DESKTOP) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 34px;
}

/* LINKS */
.nav-links li a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #2563eb;
    position: relative;
    transition: 0.3s ease;
}

/* HOVER */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #0ea5e9, #2563eb);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #0ea5e9;
}

/* ACTIVE */
.nav-links a.active {
    color: #0ea5e9;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* SCROLL */
.navbar.scrolled { 
    padding:12px 90px; 
    background:rgba(255,255,255,0.95); 
    box-shadow:0 12px 35px rgba(0,0,0,0.15); 
}

/* ================= OVERLAY ================= */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 2000; /* BELOW MENU */
}

#overlay.active {
    display: block;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px; /* BELOW NAVBAR */
        right: -300px;
        width: 250px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 2500; /* ABOVE OVERLAY */
    }

    .nav-links.active {
        right: 0;
    }
}

/* ================= HERO CONTENT ================= */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* NAME */ 
.hero-content h1 { 
    font-size:55px; 
    font-weight:700; 
    margin-top:10px; 
    letter-spacing:1px; 
    background:linear-gradient(90deg,#0ea5e9,#2563eb,#0ea5e9); 
    background-size:200% auto; 
    -webkit-background-clip:text; 
    color:transparent; 
    animation:textGlow 4s linear infinite,fadeUp 0.9s ease; 
}

/* ROLE */ 
.hero-content h3 { 
    margin-top:12px; 
    font-size:22px; 
    font-weight:600; 
    color:#0284c7; 
    letter-spacing:0.5px; 
    animation:fadeUp 1s ease 0.3s both; }

/* DESCRIPTION */ 
.hero-content p { 
    margin-top:6px; 
    font-size:16px; 
    color:#6b7280; 
    animation:fadeUp 1s ease 0.6s both; }

/* TEXT ANIMATION */ 
@keyframes fadeUp{ from{ opacity:0; transform:translateY(25px); } to{ opacity:1; transform:translateY(0); } }   

/* GRADIENT MOVE */ 
@keyframes textGlow{ 
    0%{background-position:0%;} 
    100%{background-position:200%;} 
}

/* ===== PROFESSIONAL SOFT PROFILE PHOTO STYLE ===== */ 
.profile-wrapper { 
    display:flex; 
    justify-content:center; 
    align-items:center; 
    margin-bottom:25px; 
}

/* profile image */ 
.profile-wrapper img { 
    width:180px; 
    height:180px; 
    border-radius:50%; 
    object-fit:cover; 
    border:4px solid #ffffff;
    /* Soft multi-layered neutral shadow - no blue glow */
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.08),
        0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.profile-wrapper img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.06);
}

/* ================= BUTTON ================= */
.btn {
    margin-top: 30px;
    padding: 14px 42px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    /* Soft professional neutral shadow - no blue glow */
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.1),
        0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeup 2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ================= ABOUT SECTION FIXED ================= */
#about {
    padding: 60px 20px;
}

.about-wrapper {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-card {
    margin-top: 25px;
    padding: 32px 35px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Main text */
.about-text {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
    max-width: 720px;
    margin: auto;
}

/* Quote box */
.about-quote {
    margin: 22px auto;
    padding: 16px 20px;
    max-width: 700px;
    background: #eef3ff;
    border-left: 5px solid #2563eb;
    border-radius: 10px;
}

.about-quote span {
    font-style: italic;
    font-size: 16px;
    color: #1e40af;
}

/* Resume button */
.resume-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 26px;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.3s ease;
}

.resume-btn:hover {
    transform: translateY(-3px);
}

/* ================= EXPERIENCE ================= */
/* EXPERIENCE */
#experience {
    padding: 80px 100px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #0f172a;
}

.experience-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 35px;
    margin-bottom: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.experience-card:hover {
    transform: translateY(-6px);
}

.experience-card.blue {
    border-top: 5px solid #2563eb;
}

.experience-card.orange {
    border-top: 5px solid #f97316;
}

.experience-card.green {
    border-top: 5px solid #22c55e;
}

.experience-card.pink {
    border-top: 5px solid #ec4899;
}

.experience-card.purple {
    border-top: 5px solid #a855f7;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-header h3 {
    font-size: 22px;
    color: #0f172a;
}

.status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status.completed {
    background: #dcfce7;
    color: #16a34a;
}

.duration {
    margin: 10px 0 14px;
    color: #64748b;
}

.experience-card ul {
    padding-left: 18px;
}

.experience-card ul li {
    margin-bottom: 8px;
    color: #334155;
}

/* Status badge */
.status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status.completed {
    background: #dcfce7;
    color: #166534;
}

/* Bullet list */
.experience-card ul {
    margin-top: 10px;
    padding-left: 18px;
}

.experience-card ul li {
    margin-bottom: 6px;
}

/* ================ CERTIFICATE MODAL =========== */
.view-btn{
    margin-top:15px;
    padding:10px 16px;
    border:none;
    background:#2563eb;
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

.cert-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    justify-content:center;
    align-items:center;
    z-index:2000;
}

.cert-modal img{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

.close-btn{
    position:absolute;
    top:20px;
    right:30px;
    font-size:28px;
    color:white;
    cursor:pointer;
}

/* ================= EDUCATION ================= */
#education {
    padding: 80px 100px;
}

.education-card {
    max-width: 1000px;
    margin: auto;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 18px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-6px);
}

/* ICON CIRCLE */
.edu-icon {
    min-width: 70px;
    height: 70px;
    background: #e0ecff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-icon img {
    width: 36px;
    height: 36px;
}

/* DETAILS */
.edu-details h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

.edu-details .college {
    margin-top: 6px;
    font-size: 16px;
    color: #475569;
}

.edu-details .duration {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    color: #64748b;
}

/* CGPA PILL */
.edu-pill {
    margin-top: 16px;
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: #ffffff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(34,197,94,0.35);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .edu-icon {
        margin-bottom: 10px;
    }
}

/* ================= SKILLS & EXPERTISE ================= */
.skills-section {
    padding: 80px 100px;
    background: #ffffff;
}

.skills-section .section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #0f172a;
}

/* Wrapper */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Skill Box */
.skill-box {
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-6px);
}

.skill-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #0f172a;
}

/* Skill Pills */
.skill-pill {
    margin-bottom: 14px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

/* Colors */
.skill-pill.blue {
    background: #eef4ff;
    color: #2563eb;
}

.skill-pill.green {
    background: #ecfdf5;
    color: #16a34a;
}

.skill-pill.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .skills-section {
        padding: 60px 20px;
    }

    .skills-section .section-title {
        font-size: 30px;
    }
}

/* ================= PROJECTS ================= */

.projects-section {
    padding: 80px 100px;
    background: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.project-card{
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.12),
        0 20px 50px rgba(0,0,0,0.08);
}

.project-card:hover{
    transform: translateY(-10px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.15),
        0 25px 60px rgba(79,70,229,0.25);
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0f172a;
}

.project-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* Top color borders */
.border-blue { border-top: 5px solid #6366f1; }
.border-green { border-top: 5px solid #22c55e; }
.border-orange { border-top: 5px solid #f97316; }
.border-purple { border-top: 5px solid #a855f7; }
.border-pink { border-top: 5px solid #ec4899; }

/* Tech tags */
.tech-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px 5px 10px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: default;
    /* default — overridden per nth-child below */
    background: linear-gradient(135deg, #eef2ff, #f0fdf4);
    border: 1.5px solid #c7d2fe;
    color: #4338ca;
}

/* Colored dot before each tag */
.tech-tags span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.75;
    flex-shrink: 0;
}

.tech-tags span:hover {
    transform: translateY(-2px) scale(1.04);
}

/* Cycling accent colors — 6 variants */
.tech-tags span:nth-child(6n+1) {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-color: #a5b4fc;
    color: #4338ca;
}
.tech-tags span:nth-child(6n+1):hover {
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.tech-tags span:nth-child(6n+2) {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
    color: #047857;
}
.tech-tags span:nth-child(6n+2):hover {
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

.tech-tags span:nth-child(6n+3) {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #fdba74;
    color: #c2410c;
}
.tech-tags span:nth-child(6n+3):hover {
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}

.tech-tags span:nth-child(6n+4) {
    background: linear-gradient(135deg, #fdf4ff, #f3e8ff);
    border-color: #d8b4fe;
    color: #7e22ce;
}
.tech-tags span:nth-child(6n+4):hover {
    box-shadow: 0 4px 14px rgba(168,85,247,0.35);
}

.tech-tags span:nth-child(6n+5) {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border-color: #fda4af;
    color: #be123c;
}
.tech-tags span:nth-child(6n+5):hover {
    box-shadow: 0 4px 14px rgba(244,63,94,0.35);
}

.tech-tags span:nth-child(6n+6) {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #7dd3fc;
    color: #0369a1;
}
.tech-tags span:nth-child(6n+6):hover {
    box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}

/* Project button */ 
.project-actions { 
    margin-top: 20px; 
    display: flex; 
    justify-content: center;
}  

/* centers horizontally */  
.btn-demo { 
    display: inline-block; 
    padding: 10px 20px; 
    border-radius: 30px; 
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none; 
    background: linear-gradient(135deg, #4f46e5, #7c3aed); 
    color: #fff;
    transition: all 0.3s ease; 
}

.btn-demo:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35); 
}

/* Optional highlight for flagship project */ 
.featured { 
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.15); 
}

/* GitHub Button */
.github-btn-wrapper {
    margin-top: 50px;
    text-align: center;
}

.github-btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 30px;
    background: linear-gradient(to right, #0f172a, #1e293b);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.github-btn:hover {
    transform: translateY(-4px);
}

/* ================= TYPING ANIMATION ================= */

.typing {
    display: flex;
    gap: 4px;
    padding: 6px 10px;
}

.typing span { 
    display:inline-block; 
    width:6px; 
    height:6px; 
    margin:3px; 
    background:#555; 
    border-radius:50%; 
    animation:typing 1.2s infinite; 
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing{ 
    0%{opacity:0} 
    50%{opacity:1} 
    100%{opacity:0} 
}

/* ================= CONTACT SECTION ================= */

.contact-section {
    padding: 80px 100px;
    padding-bottom: 60px;
    background: #ffffff;
    text-align: center;
}

.contact-card {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #0f172a;
}

.contact-item p,
.contact-item a {
    font-size: 15px;
    color: #2563eb;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Icons */
.icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon.email {
    background: #e0ecff;
    color: #2563eb;
}

.icon.phone {
    background: #dcfce7;
    color: #16a34a;
}

.icon.location {
    background: #f3e8ff;
    color: #9333ea;
}

.icon.linkedin {
    background: #e0f2fe;
    color: #0a66c2;
}

/* Responsive */ 
@media (max-width: 768px) { 
.contact-card { 
    grid-template-columns: 1fr; 
    padding: 30px; 
} }

/* ================= MESSAGE SECTION ================= */ 
.message-section { 
    padding: 80px 40px; 
    text-align: center; 
} 

.message-form { 
    max-width: 900px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 25px;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

/* INPUT ROW */ 
.input-row { 
    display: flex; 
    gap: 25px;
    width: 100%;
} 

.input-row input { 
    flex: 1;
    min-width: 0;
}

/* INPUT STYLE */ 
.message-form input, 
.message-form textarea { 
    background: #0b1220; 
    border: 2px solid #00ff9c; 
    border-radius: 12px; 
    padding: 18px; 
    font-size: 16px; 
    color: white; 
    width: 100%;
    box-sizing: border-box;
}

.message-form input:focus, 
.message-form textarea:focus { 
    outline: none; 
    border-color: #00ffd0; 
    box-shadow: 0 0 12px #00ffd066; 
}

.message-form input::placeholder, 
.message-form textarea::placeholder { 
    color: #a0a0a0; 
}

/* BUTTON */ 
.send-btn { 
    background: #1db954; 
    border: none; 
    padding: 18px; 
    font-size: 18px; 
    border-radius: 12px; 
    color: white; 
    cursor: pointer; 
    transition: 0.3s;
    width: 100%;
}

.send-btn:hover { 
    background: #159946; 
    transform: scale(1.03); 
}

/* MESSAGE CARD */ 
.message-card { 
    max-width: 900px; 
    width: calc(100% - 40px);
    margin: 0 auto 60px;
    padding: 40px; 
    background: linear-gradient(145deg, #0c1428, #0a0f1c); 
    border-radius: 18px; 
    border: 1px solid rgba(0,255,156,0.2); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 12px rgba(0,255,156,0.08); 
    transition: 0.3s;
    box-sizing: border-box;
}

.message-card:hover { 
    box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 18px rgba(0,255,156,0.12);
}

/* ================= TOAST NOTIFICATION ================= */ 
.toast { 
    position:fixed; 
    bottom:30px; 
    right:30px; 
    background:#1db954; 
    color:white; 
    padding:14px 22px; 
    border-radius:8px; 
    font-size:15px; 
    box-shadow:0 5px 20px rgba(0,0,0,0.2); 
    opacity:0; 
    transform:translateY(20px); 
    transition:0.4s; z-index:999; 
} 

.toast.show { 
    opacity:1; 
    transform:translateY(0); 
}

/* =============================== AI FLOATING PORTFOLIO BOT =============================== */

/* === FIXED BOTTOM-RIGHT LAUNCHER BUTTON === */
.bot-float-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Teal-to-navy circle matching the reference image */
    background: radial-gradient(circle at 50% 45%,
        #3ee6f5 0%,
        #00b4d8 30%,
        #0077b6 60%,
        #02224a 100%);
    box-shadow:
        0 0 18px rgba(0, 220, 255, 0.6),
        0 0 40px rgba(0, 180, 230, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.3);
    /* Float animation */
    animation: botFloat 2.8s ease-in-out infinite,
               botGlow  2.8s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.bot-float-wrapper:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow:
        0 0 28px rgba(0, 230, 255, 0.85),
        0 0 55px rgba(0, 200, 240, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.35);
    animation-play-state: paused;
}

/* Robot SVG icon centered inside the circle */
.bot-launcher-img {
    width: 58px;
    height: 58px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.bot-float-wrapper:hover .bot-launcher-img {
    transform: scale(1.08);
}

/* Float up-down animation */
@keyframes botFloat {
    0%   { transform: translateY(0px); }
    45%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Glow pulse on the circle */
@keyframes botGlow {
    0%   { box-shadow: 0 0 18px rgba(0,220,255,0.55), 0 0 35px rgba(0,180,230,0.3), 0 8px 20px rgba(0,0,0,0.25); }
    45%  { box-shadow: 0 0 30px rgba(0,230,255,0.9),  0 0 60px rgba(0,200,240,0.55), 0 14px 30px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 0 18px rgba(0,220,255,0.55), 0 0 35px rgba(0,180,230,0.3), 0 8px 20px rgba(0,0,0,0.25); }
}

/* Hide leftover elements from roaming mode */
.bot-color-ring,
.bot-float-shadow {
    display: none;
}


/* === CHAT CONTAINER === */
#ai-bot-chat {
    position: fixed;
    bottom: 100px;
    right: 22px;
    width: 355px;
    max-height: 520px;
    display: none;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 4px 14px rgba(0,0,0,0.10);
    animation: chatOpen 0.35s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 9999;
    border: 1px solid rgba(0,0,0,0.07);
}

@keyframes chatOpen {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)     scale(1);    opacity: 1; }
}

/* === HEADER === */
.ai-header {
    background: linear-gradient(135deg, #5b5ef4, #7c3aed);
    color: white;
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.bot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bot avatar circle in header */
.bot-header-info .bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.4);
    overflow: hidden;
    padding: 2px;
}

/* Mascot image inside header avatar */
.bot-header-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.bot-header-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.3px;
}

.bot-header-info p {
    font-size: 12px;
    margin: 0;
    color: rgba(255,255,255,0.80);
    font-weight: 400;
}

/* Close button */
#ai-close {
    background: rgba(255,255,255,0.18);
    border: none;
    color: white;
    font-size: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
    font-weight: 700;
}

#ai-close:hover {
    background: rgba(255,255,255,0.35);
}

/* === MESSAGES AREA === */
#ai-messages {
    flex: 1;
    padding: 14px 12px;
    overflow-y: auto;
    background: #f7f8fc;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

/* === MESSAGE BUBBLES === */
.ai-msg {
    max-width: 80%;
    font-size: 13.5px;
    line-height: 1.5;
    animation: fadeInUp 0.25s ease;
    display: flex;
}

/* Bot bubble — LEFT side, blue */
.ai-msg.bot {
    align-self: flex-start;
    margin-right: auto;
}

.ai-msg.bot .msg-row {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.ai-msg.bot .bot-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: none; /* hidden — the header already shows bot identity */
}

.ai-msg.bot .msg-text {
    background: linear-gradient(135deg, #4a6cf7, #6a4dff);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 8px rgba(74,108,247,0.25);
    font-weight: 400;
}

/* Links inside bot bubbles — white + cyan underline so they're clearly visible */
.ai-msg.bot .msg-text a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(160, 220, 255, 0.8);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.ai-msg.bot .msg-text a:hover {
    color: #a8edff;
    text-decoration-color: #a8edff;
}

/* User bubble — RIGHT side, light gray */
.ai-msg.user {
    align-self: flex-end;
    margin-left: auto;
    justify-content: flex-end;
}

.ai-msg.user .msg-text {
    background: #e4e6ee;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    font-weight: 500;
}

/* Typing dots in bot color */
.typing {
    display: flex;
    gap: 4px;
    padding: 4px 6px;
    align-items: center;
}

.typing span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: typingDot 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

/* Bubble pop-in */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === QUICK ACTION BUTTONS === */
.quick-actions {
    padding: 8px 10px 6px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    background: #ffffff;
    border-top: 1px solid #eef0f5;
    flex-shrink: 0;
}

.quick-btn {
    padding: 6px 13px;
    border-radius: 20px;
    border: 1.5px solid #6366f1;
    background: #ffffff;
    color: #5b5ef4;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #5b5ef4, #7c3aed);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91,94,244,0.35);
}

/* === INPUT AREA === */
.ai-input {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    background: #ffffff;
    border-top: 1px solid #eef0f5;
    gap: 8px;
    flex-shrink: 0;
}

#ai-input {
    flex: 1;
    border: 1.5px solid #e2e5ef;
    padding: 9px 14px;
    border-radius: 22px;
    background: #f5f6fa;
    font-size: 13.5px;
    outline: none;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

#ai-input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

#ai-input::placeholder {
    color: #9ca3af;
}

/* Arrow send button */
#ai-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b5ef4, #7c3aed);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(91,94,244,0.4);
}

#ai-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(91,94,244,0.55);
}

/* === SCROLLBAR === */
#ai-messages::-webkit-scrollbar {
    width: 4px;
}

#ai-messages::-webkit-scrollbar-track {
    background: transparent;
}

#ai-messages::-webkit-scrollbar-thumb {
    background: #c7c9d9;
    border-radius: 10px;
}


/* ================= FOOTER ================= */ 
footer { 
    background-color: #0a1f44; 
    color: #ffffff; 
    text-align: center; 
    padding: 6px 10px; 
    font-size: 13px; 
    line-height: 1.4;
    width: 100%; 
}

footer p { 
    margin: 2px 0; 
}

footer .footer-note { 
    font-size: 12px; 
    color: #c0c0c0; 
}

/* ================= GLOBAL RESPONSIVE ================= */

/* ---------- TABLET (≤1024px) ---------- */
@media (max-width:1024px){

    .navbar{
        padding:16px 40px;
    }

    .nav-links{
        gap:20px;
    }

    section,
    #about,
    #experience,
    #education,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 24px 30px;
    }

    .section-title {
        margin-top: 0;
        margin-bottom: 24px;
    }
    
    .hero-content {
        padding-top: 15px;
        padding-bottom: 25px;
    }

    .contact-section {
        padding-bottom: 50px;
    }

    .hero-content h1{
        font-size:38px;
    }

    .hero-content h3{
        font-size:20px;
    }

    .hero-content p{
        font-size:15px;
    }

    .projects-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-wrapper{
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card{
        grid-template-columns: 1fr 1fr;
        padding: 30px;
    }

    .message-card {
        width: calc(100% - 80px);
        padding: 30px;
    }

    /* BOT RESIZING (TABLET) */
    .bot-float-wrapper {
        width: 68px;
        height: 68px;
        bottom: 20px;
        right: 20px;
    }
    .bot-launcher-img {
        width: 52px;
        height: 52px;
    }
}


/* ---------- MOBILE (≤768px) ---------- */
@media (max-width:768px){

    /* NAVBAR */
    .navbar{
        padding:14px 20px;
    }

    .menu-toggle{
        display:block;
    }

    /* ALL SECTIONS — use high specificity to override ID selectors */
    section,
    #about,
    #experience,
    #education,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 12px 16px;
    }

    .section-title {
        margin-top: 0 !important;
        margin-bottom: 20px;
        font-size: 28px;
    }

    /* HERO GAP FIX */
    .hero {
        height: auto;
        min-height: unset;
    }

    .hero-content {
        justify-content: flex-start;
        padding-top: 15px;
    }

    .contact-section {
        padding-bottom: 30px;
    }

    /* HERO */
    .hero-content{
        padding: 15px 16px 30px;
    }

    .hero-content h1{
        font-size:28px;
    }

    .hero-content h3{
        font-size:18px;
    }

    .hero-content p{
        font-size:14px;
    }

    /* PROFILE IMAGE */
    .profile-wrapper img,
    .hero-photo{
        width:140px;
        height:140px;
        border-width: 3px;
    }

    /* EXPERIENCE */
    .experience-card{
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .exp-header{
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* EDUCATION */
    .education-card{
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
        margin-bottom: 20px;
    }

    /* SKILLS */
    .skills-section {
        padding: 50px 16px;
    }

    .skills-wrapper{
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-box{
        padding: 20px;
    }

    /* PROJECTS */
    .projects-section {
        padding: 50px 16px;
    }

    .projects-grid{
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card{
        padding: 20px 16px;
    }

    /* CONTACT CARD */
    .contact-section {
        padding: 50px 16px 30px;
    }

    .contact-card{
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 20px;
        margin-top: 24px;
    }

    .contact-item{
        flex-direction: row;
        align-items: center;
    }

    /* SEND MESSAGE CARD */
    .message-card {
        width: calc(100% - 32px);
        padding: 24px 16px;
        margin: 0 auto 40px;
        border-radius: 14px;
    }

    .input-row {
        flex-direction: column;
        gap: 16px;
    }

    .message-form {
        gap: 16px;
    }

    .message-form input,
    .message-form textarea {
        padding: 14px;
        font-size: 15px;
    }

    .send-btn {
        padding: 14px;
        font-size: 16px;
    }

    /* FOOTER */
    footer{
        font-size:12px;
        padding:15px 10px;
    }

    /* BOT RESIZING (MOBILE) */
    .bot-float-wrapper {
        width: 60px;
        height: 60px;
        bottom: 16px;
        right: 16px;
    }
    .bot-launcher-img {
        width: 46px;
        height: 46px;
    }
    #ai-bot-chat {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 85px;
    }
}


/* ---------- SMALL MOBILE (≤480px) ---------- */
@media (max-width:480px){

    section,
    #about,
    #experience,
    #education,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 20px 14px;
    }

    .contact-section {
        padding-bottom: 20px;
    }

    .hero-content h1{
        font-size:24px;
        margin-top: 0;
    }

    .hero-content h3{
        font-size:16px;
    }

    .hero-content p{
        font-size:13px;
    }

    .logo{
        font-size:18px;
    }

    .profile-wrapper img,
    .hero-photo{
        width:110px;
        height:110px;
    }

    .contact-card {
        padding: 20px 14px;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .message-card {
        width: calc(100% - 28px);
        padding: 20px 14px;
        margin: 0 auto 30px;
    }

    .message-form input,
    .message-form textarea {
        padding: 12px;
        font-size: 14px;
    }

    .project-card {
        padding: 18px 14px;
    }

    .section-title {
        font-size: 26px;
        margin-top: 0;
        margin-bottom: 20px;
    }

    /* BOT RESIZING (SMALL MOBILE) */
    .bot-float-wrapper {
        width: 54px;
        height: 54px;
        bottom: 12px;
        right: 12px;
    }
    .bot-launcher-img {
        width: 41px;
        height: 41px;
    }
}
