/* ==================== RESET & VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --cream-color: #fef3e2;
    --light-blue: #dbeafe;
    --dark-color: #1e293b;
    --text-color: #334155;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0);
}

.navbar.scrolled .nav-profile {
    opacity: 1;
    transform: scale(1);
}

.nav-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.resume-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.resume-btn::after {
    display: none;
}

.nav-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    padding: 140px 0 80px 0;
    background: url('hero-bg.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.main-title {
    font-size: 3.5rem;
    color: var(--dark-color);
    margin: 15px 0;
    line-height: 1.2;
}

.text-blue {
    color: var(--primary-color);
}

.sub-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-description {
    color: var(--text-color);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 35px;
    text-align: justify;
}

.hero-description strong {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.25rem;
}

.hero-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-icon {
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.linkedin {
    background: #0077b5;
    color: white;
}

.message {
    background: #1a1a1a;
    color: white;
}

.call {
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    background: white;
}

.btn-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-visual-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    position: relative;
    margin-bottom: 30px;
}

.main-profile-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
}

/* Trophy Images Grid */
.trophy-gallery {
    width: 100%;
    margin-top: 30px;
}

.trophy-label {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.trophy-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.trophy-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.trophy-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--dark-color);
    transform: rotate(90deg);
}

#modalCaption {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--white);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.about-text strong {
    color: var(--primary-color);
}

.highlight {
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 500;
    margin-top: 30px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
    border-radius: 15px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-weight: 500;
    color: var(--text-color);
}

/* ==================== EXPERIENCE SECTION ==================== */
.experience {
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
}

.experience-item {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.experience-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.company-logo {
    flex-shrink: 0;
}

.company-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    padding: 10px;
    background: var(--light-gray);
}

.experience-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.experience-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.duration {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-content ul {
    list-style: none;
    padding-left: 0;
}

.experience-content li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.experience-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.mt-3 {
    margin-top: 30px;
}

/* ==================== EDUCATION SECTION ==================== */
.education {
    background: var(--white);
}

.education-item {
    display: flex;
    gap: 30px;
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.education-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--white);
    padding: 10px;
}

.education-content h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.education-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.education-content ul {
    list-style: none;
    padding-left: 0;
}

.education-content li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.education-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== CAREER HIGHLIGHTS SECTION ==================== */
.career-highlights {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    padding: 100px 0;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* ========== GOLDEN PROGRESS LINE ========== */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, 
        #d4af37 0%,
        #ffd700 25%,
        #ffed4e 50%,
        #ffd700 75%,
        #d4af37 100%);
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                0 0 40px rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    transition: height 0.3s ease;
}

/* ========== HIGHLIGHTS WRAPPER ========== */
.highlights-wrapper {
    position: relative;
    padding: 40px 0;
}

/* ========== HIGHLIGHT ITEMS ========== */
.highlight-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.highlight-item.left-item {
    grid-template-columns: 1fr 1fr;
}

.highlight-item.right-item {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.highlight-item.right-item > * {
    direction: ltr;
}

/* ========== HIGHLIGHT CONTENT ========== */
.highlight-content {
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.highlight-content h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-date {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-date::before {
    content: '📅';
    font-size: 1.2rem;
}

.highlight-content p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.highlight-content strong {
    color: #d4af37;
    font-weight: 700;
}

/* ========== NEUMORPHIC CARD ========== */
.neumorphic-card {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 15px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 
        12px 12px 20px #e0e0e0,
        -12px -12px 20px #ffffff,
        inset 0 0 0 rgba(0, 0, 0, 0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}

.neumorphic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.neumorphic-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        15px 15px 30px #d0d0d0,
        -15px -15px 30px #ffffff,
        0 0 30px rgba(212, 175, 55, 0.4),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.neumorphic-card:hover::before {
    opacity: 1;
}

.neumorphic-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    transition: all 0.4s ease;
    filter: brightness(1);
}

.neumorphic-card:hover img {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.05);
}

/* Golden Frame Effect */
.neumorphic-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #d4af37, #ffd700, #d4af37) 1;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.neumorphic-card:hover::after {
    opacity: 1;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.skill-category {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category i {
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.certifications {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.cert-sub-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cert-item {
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cert-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cert-item p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cream-color), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-item p a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item p a:hover {
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px 0;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-content p {
    margin: 5px 0;
}

.developer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.developer a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}






    /* Floating Avatar Button */
    #himanshu-ai-btn { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 10000; transition: transform 0.3s ease; }
    #himanshu-ai-btn:hover { transform: scale(1.1); }
    .avatar-img-wrapper { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 3px solid #007bff; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); background: #fff; }
    .avatar-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
    .avatar-label { background: #111; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; margin-top: -10px; z-index: 10; font-weight: 600; border: 1px solid #007bff; text-transform: uppercase; }

    /* Conversation Box */
    #ai-conversation-box { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 320px; height: 350px; background: #1a1a1a; border: 2px solid #007bff; border-radius: 20px; z-index: 10001; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 15px 50px rgba(0,0,0,0.9); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    #ai-conversation-box.active { transform: translate(-50%, -50%) scale(1); }
    .close-ai-box { position: absolute; top: 15px; right: 20px; color: #fff; font-size: 22px; cursor: pointer; opacity: 0.6; }
    .close-ai-box:hover { opacity: 1; }

    /* Speaking Animation */
    .speaking-avatar { width: 140px; height: 140px; border-radius: 50%; margin-bottom: 20px; background: url('profile.jpg') no-repeat center center / cover; border: 3px solid #007bff; }
    .speaking-avatar.is-speaking { animation: pulse-blue 1.5s infinite; }
    @keyframes pulse-blue { 
        0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); } 
        70% { box-shadow: 0 0 0 25px rgba(0, 123, 255, 0); } 
        100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); } 
    }
    .ai-status-text { color: #fff; font-family: 'Poppins', sans-serif; font-size: 14px; text-align: center; padding: 0 20px; }
    
    /* Blur Backdrop */
    #ai-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 10000; display: none; backdrop-filter: blur(8px); }
    #ai-backdrop.active { display: block; }
