@import "base.css";

/* --- Atmospheric Background Dots --- */
.bg-blob-dot {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    transition: var(--transition-smooth);
}

.blob-1 {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.blob-2 {
    top: 30%;
    left: -15%;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
}

.blob-3 {
    top: 60%;
    right: -10%;
    background: radial-gradient(circle, #a855f7, transparent 70%); /* Purple accent */
}

.blob-4 {
    bottom: -10%;
    left: 20%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

body.light-theme .bg-blob-dot {
    opacity: 0.08;
}

/* Navigation Styles */
#main-nav {
    padding: 25px 0;
    transition: var(--transition-smooth);
    z-index: 10000;
}

#main-nav.navbar-scrolled {
    padding: 15px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    z-index: 10001;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    margin: 0 15px;
    position: relative;
    padding: 5px 0 !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Custom Hamburger Toggler */
.custom-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    z-index: 10001;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: var(--transition-fast);
}

.toggler-icon:nth-child(1) { top: 0; }
.toggler-icon:nth-child(2) { top: 9px; }
.toggler-icon:nth-child(3) { top: 18px; }

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Nav Extra Toggles - Premium Redesign */
.nav-extra {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.btn-icon:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 150px;
    padding: 10px;
    display: none;
    z-index: 10002;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-menu-custom.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lang-item {
    display: block;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.lang-item:hover, .lang-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Dropdown Animations and Styles */
.dropdown-toggle::after {
    display: none !important;
}
.dropdown-toggle i.transition-transform {
    transition: transform 0.3s ease;
}
.dropdown-toggle[aria-expanded="true"] i.transition-transform {
    transform: rotate(180deg);
}
.dropdown-menu.glass-card .dropdown-item {
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.dropdown-menu.glass-card .dropdown-item:hover,
.dropdown-menu.glass-card .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Premium Hover Interactions */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
}

.link-hover {
    position: relative;
    display: inline-block;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition-fast);
}

.link-hover:hover::after {
    width: 100%;
}

/* Hero Section */
#hero.hero-chat-section {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 64px) 0 72px;
    overflow: hidden;
    isolation: isolate;
}

#hero-tech-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #020617;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(2, 6, 23, 0.05), var(--bg-darker) 96%);
    background-size: 72px 72px, 72px 72px, 100% 100%;
}

.hero-chat-container {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - var(--header-height) - 136px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-chat-content {
    width: min(860px, 100%);
    text-align: center;
}

.hero-kicker {
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-chat-title {
    min-height: 1.15em;
    margin-bottom: 18px;
    font-size: clamp(3.25rem, 9vw, 7.75rem);
    line-height: 0.95;
}

.hero-chat-title .typed-cursor {
    color: var(--secondary-color);
    font-weight: 300;
}

.hero-role-line {
    margin: -4px auto 14px;
    color: rgba(125, 211, 252, 0.92);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-chat-subtitle {
    width: min(760px, 100%);
    margin: 0 auto 34px;
    color: rgba(248, 250, 252, 0.88);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    line-height: 1.65;
}

.hero-prompt-panel {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 16px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(125, 211, 252, 0.22);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.hero-chat-log {
    max-height: 218px;
    overflow-y: auto;
    padding: 4px 4px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.8) transparent;
}

.conversation-loading {
    display: grid;
    gap: 14px;
    padding: 4px 2px 12px;
}

.conversation-loading-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-loading-row {
    justify-content: flex-end;
}

.conversation-loading-avatar,
.conversation-loading-line {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.conversation-loading-avatar::after,
.conversation-loading-line::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.18), transparent);
    animation: conversationSkeleton 1.25s ease-in-out infinite;
}

.conversation-loading-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.conversation-loading-line {
    height: 42px;
    border-radius: 8px;
}

.conversation-loading-line.long {
    width: min(420px, 72%);
}

.conversation-loading-line.medium {
    width: min(340px, 58%);
}

.conversation-loading-line.short {
    width: min(260px, 46%);
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(129, 140, 248, 0.12);
}

.hero-chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    text-align: left;
}

.hero-chat-message p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.user-message p {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.35);
}

.message-content {
    padding: 12px 14px;
    border-radius: 8px;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.error-message .message-content {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.42);
    border-color: rgba(248, 113, 113, 0.48);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.16);
}

.error-message .message-avatar {
    background: linear-gradient(135deg, #ef4444, #fb7185);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.28);
}

.message-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.35);
}

.message-avatar img {
    width: 88%;
    height: 88%;
    object-fit: cover;
    border-radius: 50%;
}

.user-message .message-avatar {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-prompt-avatars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.hero-prompt-avatars.is-visible {
    margin-bottom: 14px;
    max-height: 44px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-prompt-avatars.is-hidden {
    opacity: 0;
    transform: translateY(18px);
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.hero-prompt-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid rgba(125, 211, 252, 0.32);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.28);
}

.hero-prompt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-prompt-avatar-user {
    background: rgba(255, 255, 255, 0.1);
}

.hero-prompt-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-prompt-form textarea {
    width: 100%;
    min-height: 48px;
    max-height: 140px;
    resize: none;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
    line-height: 1.55;
}

.hero-prompt-form textarea::placeholder {
    color: rgba(148, 163, 184, 0.82);
}

.hero-send-btn {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
    transition: var(--transition-fast);
}

.hero-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.34);
}

.hero-prompt-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-prompt-suggestions button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.82);
    background: rgba(255, 255, 255, 0.06);
    transition: var(--transition-fast);
}

.hero-prompt-suggestions button:hover {
    color: #fff;
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(6, 182, 212, 0.14);
}

.hero-discover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 24px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.22);
}

.hero-discover-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(6, 182, 212, 0.32);
}

.hero-discover-btn i {
    font-size: 0.9rem;
}

body.light-theme #hero-tech-canvas {
    background: #eef6ff;
}

body.light-theme .hero-grid-overlay {
    background:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(248, 250, 252, 0.15), var(--bg-darker) 96%);
    background-size: 72px 72px, 72px 72px, 100% 100%;
}

body.light-theme .hero-chat-subtitle,
body.light-theme .hero-role-line,
body.light-theme .hero-chat-message p,
body.light-theme .hero-prompt-suggestions button {
    color: var(--text-main);
}

body.light-theme .hero-prompt-panel {
    background: rgba(255, 255, 255, 0.72);
}

body.light-theme .hero-prompt-form {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.12);
}

/* About Section Styles */
.about-image-stack {
    position: relative;
    padding: 40px;
}

.about-card-main {
    overflow: hidden;
    padding: 10px;
    border-radius: 24px;
}

.about-card-main img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
}

.about-card-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 20px 30px;
    transform: translate(20px, 20px);
    z-index: 5;
}

.floating-anim {
    animation: float-small 4s ease-in-out infinite;
}

@keyframes float-small {
    0%, 100% { transform: translate(20px, 20px); }
    50% { transform: translate(20px, 10px); }
}

/* Project Cards */
.project-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 24px;
}

.project-img, .blog-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-img {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

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

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

/* Contact Section */
.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 24px;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Modal Styling */
.modal-backdrop {
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Premium Pagination - Theme Consistent */
.premium-pagination .page-item {
    margin: 0 5px;
}

.premium-pagination .page-item .page-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: none;
}

.premium-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.premium-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.premium-pagination .page-item.disabled .page-link {
    opacity: 0.2;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

body.light-theme .premium-pagination .page-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

body.light-theme .premium-pagination .page-item.active .page-link {
    color: white !important;
}

/* Project Showcase Styles */
.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-item {
    display: block;
}

/* Sophisticated Tech Stack */
.skill-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-box {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    transform: rotateY(180deg);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.skill-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition-fast);
}

.skill-card:hover .skill-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .skill-icon-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .skill-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.hero-text-desc {
    text-align: justify;
    text-justify: inter-word;
}

.exp-list {
    padding-left: 1rem;
}

.exp-list li {
    margin-bottom: 5px;
    position: relative;
}

.exp-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -18px;
    height: 2px;
    width: 10px;
    background: #6c757d!important;
}

.exp-list::marker {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.hero-chat-message {
    display: flex;
    align-items: flex-start;
}

.thinking-text {
    font-size: 16px;
    color: #8a8f98;
}

.thinking-text .dot {
    opacity: 0;
    animation: blinkDot 1.4s infinite;
}

.thinking-text .dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-text .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-text .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blinkDot {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes conversationSkeleton {
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px;
    }

    #hero {
        padding-top: calc(var(--header-height) + 60px); 
        min-height: auto;
        padding-bottom: 80px;
    }

    #hero.hero-chat-section {
        min-height: 100vh;
        padding-top: calc(var(--header-height) + 48px);
    }

    .hero-content {
        text-align: center;
        margin-bottom: 60px;
    }

    .hero-btns {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-avatar {
        max-height: 350px;
    }

    .hero-chat-container {
        min-height: calc(100vh - var(--header-height) - 128px);
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 1050;
        background: rgba(2, 6, 23, 0.98); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px;
        border-radius: 24px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .nav-link {
        margin: 0 !important;
        padding: 12px 20px !important;
        text-align: center;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .nav-extra {
        gap: 15px;
    }

    .btn-icon {
        font-size: 1.1rem;
    }

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

    .timeline-item .row {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.6rem;
    }

    .glass-card {
        padding: 30px 20px !important;
    }

    .hero-prompt-panel.glass-card {
        padding: 12px !important;
    }

    .hero-chat-title {
        font-size: clamp(3rem, 17vw, 4.7rem);
    }

    .hero-chat-subtitle {
        font-size: 1rem;
    }

    .hero-role-line {
        margin-top: -2px;
        font-size: 0.98rem;
        letter-spacing: 0.02em;
    }

    .hero-chat-log {
        max-height: 260px;
    }

    .hero-prompt-form {
        gap: 8px;
        padding: 10px;
    }

    .hero-send-btn {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .hero-prompt-suggestions {
        justify-content: center;
    }

    .hero-blob, .bg-blob-dot {
        display: none!important;
    }

    .hero-avatar {
        max-height: 100% !important;
    }

    .hero-text-desc {
        text-align: center;
        text-justify: inter-word;
    }

    .lead {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .display-3 {
        font-size: 2.3rem;
    }

    .hero-btns .btn-premium {
        width: 100%;
    }

    .hero-chat-message p {
        font-size: 0.92rem;
    }

    .hero-prompt-suggestions button {
        flex: 1 1 100%;
    }
}
