/* ==========================================
   PAGES - Page-Specific Styles
   ========================================== */

/* ==========================================
   HOME PAGE
   ========================================== */

/* Header/Hero */
#header {
    width: 100%;
    height: 110vh;
    background-attachment: fixed;
    background-image: var(--header-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Scroll-down arrow */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    animation: bounceArrow 2s ease infinite;
    transition: opacity 0.4s ease;
    cursor: pointer;
    z-index: 10;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.header-text h1 span {
    color: var(--primary);
}

.header-text p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.typing-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

/* About */
#about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    position: relative;
    overflow: hidden;
}

/* --- Code-style Section Headings --- */
.code-heading {
    font-family: var(--font-mono);
}

.code-heading::before {
    content: '// ';
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Dot Grid Background on Hero --- */
#header {
    position: relative;
}

#header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

#header > .container {
    position: relative;
    z-index: 1;
}

/* --- About Grid Layout --- */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

/* --- Profile Column --- */
.about-profile-col {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
}

.about-profile-col .profile-image {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
}

.about-profile-col .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.about-profile-col .profile-image .profile-head-pop {
    display: none;
}

.profile-name {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-role {
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.about-profile-col .profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.about-profile-col .profile-details span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.about-profile-col .profile-details i {
    color: var(--primary);
    width: 16px;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.profile-socials a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* --- Terminal Card --- */
.terminal-card {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 170, 255, 0.05);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.tdot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tdot.red { background: #ff5f57; }
.tdot.yellow { background: #febc2e; }
.tdot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #8b949e;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    min-height: 280px;
}

.terminal-line {
    margin-bottom: 2px;
}

.prompt {
    color: #4ec9b0;
    font-weight: 600;
}

.cmd {
    color: #ce9178;
}

.terminal-output {
    color: #d4d4d4;
    padding-left: 20px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.cursor-blink {
    color: #4ec9b0;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- About Stat Cards --- */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.about-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
}

.about-stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 93, 216, 0.15);
    transform: translateY(-4px);
}

.about-stat-card > i {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.about-stat-card .stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.about-stat-card .stat-num {
    font-size: 1.8rem;
    font-weight: 700;
}

.about-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- VS Code Status Bar Footer --- */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
    background: #007acc;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #fff;
    position: relative;
    z-index: 10;
}

.status-bar .status-left,
.status-bar .status-center,
.status-bar .status-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-bar .status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
}

.status-bar .status-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.light-theme .status-bar {
    background: #68217a;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.profile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.profile-card {
    display: flex;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-top: 0;
}

.profile-image {
    position: relative;
    width: 150px;
    height: 150px;
    margin-right: 30px;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 93, 216, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ease-normal);
}

.profile-image:hover .image-overlay {
    opacity: 1;
}

.profile-info h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-details span {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-details i {
    color: var(--primary);
}

/* Counters */
.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem;
    gap: 0.5rem;
    margin-left: 100px;
}

.counter-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.counter {
    display: flex;
    height: 3rem;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--primary-light);
    line-height: 1;
    overflow: hidden;
}

.digit-wrapper {
    height: 3rem;
    width: 2rem;
    overflow: hidden;
    position: relative;
}

.digit-list {
    display: flex;
    flex-direction: column;
    transition: transform 1s ease-in-out;
}

.digit-list div {
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plus {
    font-size: 3rem;
    color: var(--primary-light);
    margin-left: 0.3rem;
    line-height: 1;
}

.label {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-style: oblique;
    color: var(--text-muted);
    text-align: center;
}

/* Expertise */
.expertise-section h3 {
    margin-bottom: 20px;
    margin-top: 40px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.expertise-item {
    padding: 20px;
    border-radius: var(--radius-md);
    transition: transform var(--ease-normal);
    position: relative;
    cursor: pointer;
    text-align: center;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.expertise-item i {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.expertise-item span {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.expertise-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-normal);
}

.expertise-item:hover::after {
    opacity: 1;
}

/* Experience */
#experience {
    padding: 100px 0;
    background: var(--bg-section);
}

.journey-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active-tab {
    display: block;
    animation: fadeIn 0.5s ease;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 49px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
}

.timeline-badge {
    position: absolute;
    left: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 1;
    box-shadow: 0 0 0 5px rgba(0, 93, 216, 0.2);
    transition: transform var(--ease-normal);
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.2) rotate(15deg);
}

.timeline-card {
    border-radius: var(--radius-md);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.timeline-item:hover .timeline-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
}

/* Git commit hash badge */
.timeline-card::after {
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 0.5px;
}

.timeline-item:nth-child(1) .timeline-card::after { content: '#a3f2b1c'; }
.timeline-item:nth-child(2) .timeline-card::after { content: '#e7d4a9f'; }
.timeline-item:nth-child(3) .timeline-card::after { content: '#b1c8e3d'; }
.timeline-item:nth-child(4) .timeline-card::after { content: '#f9a2c7b'; }
.timeline-item:nth-child(5) .timeline-card::after { content: '#c4e1f8a'; }
.timeline-item:nth-child(6) .timeline-card::after { content: '#d7b3a6e'; }

.timeline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.timeline-date {
    background: rgba(0, 93, 216, 0.2);
    padding: 5px 10px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    margin-left: 15px;
}

.left-align {
    font-size: 20px;
    text-align: left;
    margin: 0;
}

.institute-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    padding: 6px;
    background: white;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: transform var(--ease-normal);
}

.institute-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.institute-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-body p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.specialization {
    color: var(--primary) !important;
    font-weight: 500;
}

.achievements {
    margin-top: 15px;
    padding-left: 20px;
}

.achievements li {
    position: relative;
    margin-bottom: 8px;
    list-style: none;
}

.achievements li::before {
    content: '\25B9';
    position: absolute;
    left: -20px;
    color: var(--primary);
}

/* Skills */
#skills {
    text-align: center;
}

#skills .container-a {
    text-align: center;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.skill-category {
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.skill-category.active {
    display: block;
}

.category-header {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
    display: block;
    width: 100%;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
}

.skills-grid-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin-top: 30px;
    align-items: stretch;
}

.skill-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--ease-normal);
    display: flex;
    flex-direction: column;
}

.skill-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-border);
    box-shadow: 0 8px 24px rgba(0, 170, 255, 0.2);
    transform: translateY(-3px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-name i {
    font-size: 20px;
    color: var(--primary-light);
}

.skill-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: width 1.5s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.skill-tag {
    display: none;
}

/* Achievements Section */
#achievements {
    padding: 80px 0;
    background: var(--bg-section-alt);
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement {
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

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

.achievement i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
}

.achievement h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.achievement p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Responsibilities */
#responsibilities {
    padding: 80px 0;
}

.roles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.role {
    padding: 30px;
    border-radius: var(--radius-lg);
}

.role:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-accent);
}

.role i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.role h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.role h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
}

.role p {
    color: var(--text-secondary);
}

/* Services */
#services {
    padding: 80px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 40px;
}

.services-list div p {
    color: var(--text-secondary);
}

.services-list div {
    background: var(--bg-card);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: var(--radius-md);
    transition: transform var(--ease-normal), box-shadow var(--ease-normal);
    border: 1px solid var(--border-light);
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
    color: var(--primary);
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: var(--primary-light);
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div a:hover {
    color: var(--text-primary);
}

.services-list div:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-accent);
}

/* Home Projects Preview */
#portfolio {
    padding: 80px 0;
    background: var(--bg-body);
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    transition: all var(--ease-normal);
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Contact */
#contact {
    padding: 80px 0 30px;
    background: var(--bg-body);
    color: var(--text-primary);
}

/* --- Chatbot Floating Button --- */
.chatbot-float-btn {
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 66px;
    height: 66px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
}

.chatbot-float-btn:hover {
    transform: scale(1.15) rotate(5deg);
}

.chatbot-btn-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: bounce-chat 2s ease-in-out infinite;
}

@keyframes bounce-chat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 26px;
    height: 26px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid #0a0a0a;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* --- Chatbot Window --- */
.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 520px;
    background: rgba(20, 20, 26, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    display: none;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-window-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 6px;
}

.chatbot-header-image {
    width: 120%;
    height: 120%;
    border-radius: 100%;
    object-fit: contain;
}

.chatbot-info { flex: 1; }

.chatbot-info h4 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.88rem;
    margin: 4px 0 0 0;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.chatbot-minimize {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-minimize:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chatbot-messages::-webkit-scrollbar { width: 7px; }
.chatbot-messages::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0, 170, 255, 0.5); border-radius: 10px; }

.bot-message,
.user-message {
    display: flex;
    gap: 12px;
    animation: fadeInMessage 0.4s ease;
}

.user-message {
    flex-direction: row-reverse;
}

@keyframes fadeInMessage {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #000;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3);
    padding: 6px;
}

.user-message .message-avatar.user-avatar {
    background: linear-gradient(135deg, #666, #888);
    padding: 0;
}

.user-message .message-avatar.user-avatar i {
    font-size: 1.1rem;
    color: #fff;
}

.message-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.message-bubble {
    max-width: 78%;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(40, 42, 54, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bot-message .message-bubble {
    border-bottom-left-radius: 4px;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #1166FF, #0055DD);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-right-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 85, 221, 0.25);
}

.message-bubble p {
    margin: 0;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.message-time {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.chatbot-typing {
    padding: 12px 22px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.typing-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 170, 255, 0.15);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.typing-dots span {
    width: 9px;
    height: 9px;
    background: #00aaff;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
    30% { transform: translateY(-10px); opacity: 1; }
}

.chatbot-input-container {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
}

.chatbot-input-container input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input-container input:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.chatbot-input-container input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.chatbot-send {
    width: 48px;
    height: 48px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chatbot-send:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

.chatbot-send i {
    color: #000;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 100px;
        height: 70vh;
    }
    .chatbot-float-btn {
        width: 56px;
        height: 56px;
        right: 15px;
        bottom: 15px;
    }
}

/* ==========================================
   PROJECTS PAGE
   ========================================== */
#projects {
    padding: 100px 0;
    background: var(--bg-section);
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-header h1 span {
    color: var(--primary);
}

.project-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.project-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-primary);
}

.search-bar input::placeholder {
    color: var(--text-placeholder);
}

.search-bar .fa-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-placeholder);
}

.sort-dropdown select {
    padding: 10px 20px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-primary);
    cursor: pointer;
}

.sort-dropdown select option {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.5s ease forwards;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-accent);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity var(--ease-normal);
}

.project-card:hover .project-links {
    opacity: 1;
}

.demo-link,
.code-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all var(--ease-normal);
}

.demo-link:hover,
.code-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.project-content {
    padding: 20px;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-orange);
    color: #fff;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: bold;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    background: var(--primary-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    color: var(--text-secondary);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.project-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--ease-normal);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-btn:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.project-btn i {
    transition: transform var(--ease-normal);
}

.project-btn:hover i {
    transform: translateX(3px);
}

.project-stats {
    display: flex;
    gap: 15px;
}

.project-stats span {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-more {
    text-align: center;
    margin-top: 50px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--ease-normal);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.view-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Tech tags in experience */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    background: var(--primary-subtle);
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--ease-normal);
}

.tech-tags span:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================
   PRODUCT STUDIO PAGE
   ========================================== */
.career-hero-content {
    margin-top: 15%;
    max-width: 800px;
}

.hero-tagline {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.career-hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.career-hero-content h1 .highlight {
    color: var(--primary);
}

.hero-subtext {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Product Grid */
#live-products {
    padding: 80px 0;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pro-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--ease-smooth), box-shadow var(--ease-smooth);
    border: 1px solid var(--border-subtle);
}

.pro-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pro-visual {
    height: 280px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #111;
}

.pro-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.5s;
}

.pro-card:hover .pro-visual img {
    transform: scale(1.05);
    opacity: 0.6;
}

.pro-visual .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--ease-smooth);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.pro-card:hover .pro-visual .overlay {
    opacity: 1;
}

.view-text {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.pro-info {
    padding: 25px;
}

.pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pro-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.status-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.beta {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.pro-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-stack-mini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack-mini span {
    font-size: 12px;
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.pro-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.pro-btn-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary, #7c3aed));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.pro-btn-live:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.pro-btn-live.disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-faint);
    pointer-events: none;
    cursor: not-allowed;
}

.status-badge.dev {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

/* ==========================================
   PRODUCT DETAIL MODAL (pd-* prefix)
   ========================================== */

/* Hero / Carousel area */
.pd-hero {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

/* Content wrapper below hero */
.pd-content {
    padding: 30px 40px 40px;
}

/* Title bar with product name + action buttons */
.pd-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pd-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pd-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Action buttons (Live Demo / Source Code) */
.pd-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ease-normal);
    cursor: pointer;
    border: none;
}

.pd-btn-live {
    background: var(--primary);
    color: #fff;
}

.pd-btn-live:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pd-btn-repo {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.pd-btn-repo:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Section blocks */
.pd-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.pd-section.pd-section-first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.pd-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-section-title i {
    color: var(--primary);
    font-size: 16px;
}

/* Description */
.pd-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Features grid */
.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pd-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--ease-normal);
}

.pd-feature-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pd-feature-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--primary);
}

.pd-feature-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pd-feature-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Tools & techniques grid */
.pd-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--ease-normal);
}

.pd-tool-tag:hover {
    border-color: var(--primary-border);
    background: var(--bg-card-hover);
}

.pd-tool-tag i {
    font-size: 14px;
}

/* Tool category color accents */
.pd-tool-tag[data-category="language"] i { color: #f59e0b; }
.pd-tool-tag[data-category="framework"] i { color: #3b82f6; }
.pd-tool-tag[data-category="infra"] i { color: #8b5cf6; }
.pd-tool-tag[data-category="database"] i { color: #10b981; }
.pd-tool-tag[data-category="ai"] i { color: #ec4899; }

/* Impact section */
.pd-impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pd-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.pd-chart-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pd-chart-card .chart-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.pd-stats-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--ease-normal);
}

.pd-stat-card:hover {
    border-color: var(--primary-border);
}

.pd-stat-icon {
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.pd-stat-info {
    display: flex;
    flex-direction: column;
}

.pd-stat-info span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-stat-info strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* FAQ accordion */
.pd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--ease-normal);
}

.pd-faq-item.active {
    border-color: var(--primary-border);
}

.pd-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--ease-normal);
}

.pd-faq-question:hover {
    background: var(--bg-card-hover);
}

.pd-faq-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pd-faq-item.active .pd-faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.pd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.pd-faq-item.active .pd-faq-answer {
    max-height: 300px;
}

.pd-faq-answer p {
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 10;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-normal);
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

/* ==========================================
   RESEARCH PAGE
   ========================================== */
#research-section {
    padding: 80px 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.research-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--ease-normal);
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.research-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-border);
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
}

.research-icon {
    font-size: 24px;
    color: var(--primary);
    background: var(--primary-subtle);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.research-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.research-details p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.research-tag {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    border: 1px solid var(--border-medium);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
}

.research-tag.active { color: var(--success); border-color: var(--success); }
.research-tag.prototype { color: var(--warning); border-color: var(--warning); }
.research-tag.published { color: var(--primary-light); border-color: var(--primary-light); }

/* ==========================================
   RESEARCH / PROJECT DETAIL (rd-* prefix)
   Results tables, findings, graph grids
   ========================================== */

/* Results table */
.rd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.rd-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rd-results-table thead {
    background: var(--bg-card-hover);
}

.rd-results-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-medium);
}

.rd-results-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.rd-results-table tbody tr:last-child td {
    border-bottom: none;
}

.rd-results-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.rd-improvement {
    color: var(--success) !important;
    font-weight: 600;
}

/* Key findings list */
.rd-findings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-findings-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: all var(--ease-normal);
}

.rd-findings-list li:hover {
    border-color: var(--primary-border);
    background: var(--bg-card-hover);
}

.rd-findings-list li i {
    color: var(--success);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Graph / visualization grid */
.rd-graph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.rd-graph-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--ease-normal);
}

.rd-graph-item:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.rd-graph-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Status badge variants */
.status-badge.featured {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-badge.published {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.status-badge.research {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

.status-badge.complete {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Lab Section (used on old page, kept for compat) */
#lab {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
}

.lab-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.lab-item {
    background: var(--bg-card-hover);
    padding: 30px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all var(--ease-normal);
    border: 1px solid transparent;
}

.lab-item:hover {
    background: var(--border-medium);
    border-color: var(--border-medium);
    transform: translateY(-5px);
}

.lab-icon {
    font-size: 24px;
    color: var(--primary);
    background: var(--primary-subtle);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.lab-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.lab-details p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.lab-tag {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    border: 1px solid var(--border-medium);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ==========================================
   BLOGS PAGE
   ========================================== */
#blog-section {
    padding: 80px 0;
    min-height: 60vh;
}

.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.blog-search {
    position: relative;
    width: 300px;
}

.blog-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-primary);
}

.blog-search input::placeholder {
    color: var(--text-placeholder);
}

.blog-search .fa-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-placeholder);
}

.tag-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--ease-normal);
    font-size: 13px;
    font-family: var(--font-primary);
}

.tag-pill.active,
.tag-pill:hover {
    background: var(--primary);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--ease-normal);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-accent);
    border-color: var(--primary-border);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 20px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.blog-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    background: var(--primary-subtle);
    color: var(--primary-light);
    font-weight: 500;
}

/* Blog Detail View */
.blog-detail-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all var(--ease-normal);
}

.blog-detail-back:hover {
    transform: translateX(-5px);
}

.blog-detail-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.blog-detail-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-dim);
    font-size: 14px;
    flex-wrap: wrap;
}

.blog-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.blog-detail-content p {
    margin-bottom: 16px;
}

.blog-detail-content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.blog-detail-content pre {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-light);
}

.blog-detail-content pre code {
    background: transparent;
    padding: 0;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
}

.blog-detail-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--border-medium);
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

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

/* --- Tablet (1024px) --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

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

    /* -- Global section spacing -- */
    #about,
    #experience,
    #skills,
    #achievements,
    #contact {
        padding: 50px 0;
    }

    .code-heading {
        font-size: 1.6rem;
    }

    /* -- Hero / Header -- */
    #header {
        height: 100vh;
        min-height: 100vh;
    }

    .header-text {
        margin-top: 60vh;
        font-size: 18px;
    }

    .header-text h1 {
        font-size: 36px;
    }

    /* -- About Section -- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-profile-col {
        padding: 24px 20px;
    }

    .about-profile-col .profile-image {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 1.15rem;
    }

    .terminal-body {
        padding: 16px;
        font-size: 0.78rem;
        line-height: 1.7;
        min-height: auto;
    }

    .terminal-output {
        padding-left: 14px;
    }

    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .about-stat-card {
        padding: 16px 12px;
    }

    .about-stat-card .stat-value,
    .about-stat-card .stat-num {
        font-size: 1.4rem;
    }

    .about-stat-card .stat-label {
        font-size: 0.7rem;
    }

    /* -- Profile card (legacy) -- */
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    /* -- Status bar footer -- */
    .status-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 6px 12px;
    }

    .status-bar .status-left,
    .status-bar .status-right {
        display: none;
    }

    /* -- Timeline / Experience -- */
    .timeline {
        padding: 20px 0;
        padding-left: 0;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 48px;
        margin-bottom: 24px;
    }

    .timeline-badge {
        left: 0;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .timeline-card {
        padding: 20px 16px;
    }

    .timeline-card::after {
        font-size: 0.55rem;
        top: 6px;
        right: 8px;
    }

    .timeline-header h3,
    .left-align {
        font-size: 16px;
    }

    .timeline-date {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .institute-logo {
        width: 50px;
        height: 50px;
        right: 8px;
        top: 8px;
        padding: 3px;
    }

    /* -- Skills -- */
    .skills-tabs {
        gap: 6px;
    }

    .skills-tabs button {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .category-header h3 {
        font-size: 1.2rem;
    }

    .skills-grid-tags {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* -- Projects -- */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-controls {
        flex-direction: column;
        gap: 16px;
    }

    .search-bar {
        width: 100%;
    }

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

    /* -- Product Detail Modal -- */
    .pd-content {
        padding: 24px 20px 30px;
    }

    .pd-title {
        font-size: 22px;
    }

    .pd-title-bar {
        flex-direction: column;
        gap: 14px;
    }

    .pd-actions {
        width: 100%;
    }

    .pd-action-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

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

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

    .pd-stat-info strong {
        font-size: 18px;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    /* -- Contact -- */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    /* -- Blogs -- */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-controls {
        flex-direction: column;
    }

    .blog-search {
        width: 100%;
    }

    .blog-detail-title {
        font-size: 1.6rem;
    }

    /* -- Research / Project Detail -- */
    .rd-results-table th,
    .rd-results-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .rd-findings-list li {
        padding: 12px 14px;
        font-size: 13px;
    }

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

    /* -- Research -- */
    .research-grid {
        grid-template-columns: 1fr;
    }

    .career-hero-content {
        margin-top: 45vh;
    }

    .career-hero-content h1 {
        font-size: 36px;
    }

    /* -- Counter -- */
    .counter-box {
        margin-left: 20px;
        margin-top: 30px;
    }

    /* -- Resume btn -- */
    .resume-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* -- Chatbot -- */
    .chatbot-window {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 110px;
        height: 65vh;
    }
}

/* --- Small phones (600px) --- */
@media (max-width: 600px) {
    #header {
        background-image: var(--header-bg-mobile);
        height: 100vh;
        min-height: 100vh;
    }

    .header-text {
        margin-top: 60vh;
    }

    .header-text h1 {
        font-size: 30px;
        animation: none;
        opacity: 1;
        transform: none;
    }

    .header-text p {
        font-size: 15px;
        animation: none;
        opacity: 1;
        transform: none;
    }

    #header::before {
        display: none;
    }

    .code-heading {
        font-size: 1.3rem;
    }

    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-stat-card .stat-value,
    .about-stat-card .stat-num {
        font-size: 1.2rem;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 12px;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-item {
        padding-left: 42px;
    }

    .timeline-card {
        padding: 16px 12px;
    }

    .institute-logo {
        width: 40px;
        height: 40px;
        right: 6px;
        top: 6px;
        padding: 2px;
    }

    .timeline-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .skills-tabs {
        gap: 4px;
    }

    .skills-tabs button {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .work:hover,
    .services-list div:hover {
        transform: none;
    }
}

/* --- Extra small (480px) --- */
@media (max-width: 480px) {
    .header-text h1 {
        font-size: 26px;
    }

    .header-text {
        font-size: 14px;
    }

    .about-profile-col .profile-image {
        width: 100px;
        height: 100px;
    }

    .about-stat-card {
        padding: 12px 8px;
    }

    .about-stat-card .stat-value,
    .about-stat-card .stat-num {
        font-size: 1rem;
    }

    .about-stat-card .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .timeline-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .timeline-header h3,
    .left-align {
        font-size: 14px;
    }

    .timeline-date {
        font-size: 0.7rem;
    }

    .chatbot-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 100px;
        height: 60vh;
    }

    .chatbot-float-btn {
        width: 52px;
        height: 52px;
        right: 15px;
        bottom: 40px;
    }

    /* -- Research / Project Detail -- */
    .rd-results-table th,
    .rd-results-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .rd-findings-list li {
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
    }

    /* -- Product Detail Modal -- */
    .pd-content {
        padding: 20px 16px 24px;
    }

    .pd-title {
        font-size: 20px;
    }

    .pd-description {
        font-size: 14px;
    }

    .pd-feature-card {
        padding: 18px;
    }

    .pd-feature-card h4 {
        font-size: 14px;
    }

    .pd-faq-question {
        padding: 14px 16px;
        font-size: 13px;
    }

    .pd-faq-answer p {
        padding: 0 16px 14px;
        font-size: 13px;
    }

    .pd-section-title {
        font-size: 16px;
    }
}

/* ==========================================
   PREMIUM FOOTER
   ========================================== */
.premium-footer {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand img {
    width: 40px;
}

.footer-brand span {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color var(--ease-normal);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
    transition: all var(--ease-normal);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
