/* ====== CUSTOM PROPERTIES & VARIABLES ====== */
:root {
    --bg-color: #fafbfc;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent-color: #000000;
    --card-bg: #ffffff;
    --border-color: #eaeaea;
    --grid-line: #e0e0e0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body.dark-theme {
    --bg-color: #121212;
    --text-primary: #f8f9fa;
    --text-secondary: #a0aab8;
    --accent-color: #ffffff;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --grid-line: #2c2c2c;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* ====== RESET & TYPOGRAPHY ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; }

/* ====== BACKGROUND GRID ANIMATION ====== */
.grid-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    z-index: -1;
    opacity: 0.5;
}

/* ====== REUSABLE CLASSES ====== */
.section {
    padding: 5rem 4%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-light {
    position: relative;
    background-color: var(--card-bg);
    z-index: 1;
}

.bg-light::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: inherit;
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sub-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.center-text { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 4rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; text-align: center; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-black {
    background: var(--text-primary);
    color: var(--card-bg);
}

.btn-black:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-white {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-white:hover {
    background: var(--bg-color);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ====== TOP BANNER ====== */
.top-banner {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-banner i { color: #fe5d5d; }

/* ====== NAVIGATION ====== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 10px;
}

.logo-icon.large { width: 60px; height: 60px; font-size: 2rem; }
.logo-icon.small { width: 30px; height: 30px; font-size: 1rem; }

.logo-text h2 { font-size: 1.2rem; font-weight: 700; }
.logo-text p { font-size: 0.8rem; color: var(--text-secondary); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text-secondary); }

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-placeholder { color: #888; cursor: pointer; }
.theme-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 8px 0;
    width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.2s;
    z-index: 1000;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: 0.2s;
}

.theme-option:hover, .theme-option.active {
    background: var(--bg-color);
}

#menu-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

/* ====== HERO SECTION ====== */
.hero {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-item i { margin-right: 5px; color: var(--text-primary); }

/* ====== SERVICES SECTION ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.service-header-row {
    margin-bottom: 1.5rem;
}

.service-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.service-icon-box i {
    color: #000;
    opacity: 0.7;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.service-desc { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; flex-grow: 1; }

.service-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.service-included-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.service-features-list {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-features-list li {
    margin-bottom: 6px;
}

.service-features-list i {
    color: var(--text-primary);
    margin-right: 6px;
    font-size: 0.8rem;
}

/* ====== PORTFOLIO SECTION ====== */
.portfolio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.portfolio-filters-tabs {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--card-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--shadow-hover);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-hover);
}

.portfolio-image-area {
    background-color: var(--bg-color);
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tags-top {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
}

.tag-black {
    background: var(--text-primary); color: var(--card-bg);
    padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600;
}

.tag-white {
    background: var(--card-bg); color: var(--text-primary); border: 1px solid var(--border-color);
    padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600;
}

.portfolio-eye { font-size: 2rem; color: #94a3b8; }

.portfolio-info { padding: 1.5rem; }
.portfolio-info h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.portfolio-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.details-link { font-weight: 600; font-size: 0.9rem; }

/* ====== ABOUT SECTION ====== */
.about-card {
    max-width: 800px;
    margin: 0 auto;
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.prof-sub { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.prof-sub i { margin-right: 5px; }

.bio {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.bio p { margin-bottom: 1rem; }

.about-mini-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.mini-tag {
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-col h3 { font-size: 1.8rem; font-weight: 800; }
.stat-col p { color: var(--text-secondary); font-size: 0.9rem; }

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.value-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.value-icon-box {
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon-box i {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.value-card h4 { font-size: 1.1rem; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

.skills-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.skill-category h4 { margin-bottom: 1rem; font-size: 1rem; }

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* ====== CONTACT SECTION ====== */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info-card { padding: 2.5rem; }
.contact-info-card h4 { margin-bottom: 2rem; font-size: 1.2rem; }

.contact-row {
    display: flex;
    gap: 15px;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.border-0 { border-bottom: none; }

.icon-box {
    width: 40px; height: 40px;
    background: var(--bg-color);
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
}

.contact-row .label { font-size: 0.85rem; font-weight: 600; }
.contact-row .val { font-size: 0.95rem; color: var(--text-secondary); }

.contact-form-card { padding: 2.5rem; }
.contact-form-card h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }

form input, form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
}

form input:focus, form textarea:focus {
    border-color: var(--text-primary);
}

/* ====== FOOTER ====== */
.main-footer {
    padding: 4rem 10% 2rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.brand-col p { color: var(--text-secondary); font-size: 0.9rem; margin: 1.5rem 0; max-width: 300px; }
.socials { display: flex; gap: 15px; }
.socials i { color: var(--text-secondary); cursor: pointer; transition: 0.2s; }
.socials i:hover { color: #000; }

.link-col h4, .info-col h4 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.link-col ul li { margin-bottom: 10px; }
.link-col ul a { color: var(--text-secondary); font-size: 0.9rem; }
.link-col ul a:hover { color: #000; }

.info-col p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; }
.info-col p i { margin-right: 8px; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-bottom strong { color: var(--text-primary); }
.footer-bottom span { color: var(--text-primary); font-weight: bold; }

/* ====== CHATBOT & WHATSAPP ====== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 15px;
    background: #111;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

.btn-float-wa {
    position: fixed;
    height: 50px; width: 50px;
    bottom: 30px; right: 30px;
    background: #25d366; color: #fff;
    border-radius: 25px;
    display: flex; justify-content: flex-start; align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    padding: 0;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
}

.btn-float-wa .fa-whatsapp {
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0;
}

.btn-float-wa .wa-text {
    font-size: 1rem; font-weight: 600; white-space: nowrap;
    opacity: 0; transition: all 0.3s ease; padding-right: 0;
}

.btn-float-wa:hover {
    width: 145px;
}

.btn-float-wa:hover .wa-text {
    opacity: 1; padding-right: 20px;
}

.chatbot-container {
    position: fixed;
    bottom: 95px; right: 30px;
    z-index: 9999;
}

.chatbot-btn {
    width: 50px; height: 50px;
    background: var(--text-primary); color: var(--card-bg);
    border-radius: 50%; border: none;
    font-size: 22px; cursor: pointer;
    box-shadow: var(--shadow-hover);
    transition: 0.3s;
}

.chatbot-btn:hover {
    transform: scale(1.05);
}

.chatbot-window {
    position: absolute;
    bottom: 60px; right: 0;
    width: 340px; height: 450px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    display: none; flex-direction: column;
    padding: 0; overflow: hidden;
    z-index: 1001; /* Ensure above header/footer */
}

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

.chatbot-header {
    background: var(--card-bg); color: var(--text-primary); padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.bot-info { display: flex; align-items: center; gap: 12px; }

.bot-avatar {
    width: 32px; height: 32px;
    background: var(--bg-color); color: var(--text-primary);
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; font-size: 1rem;
}

.bot-info h4 { font-size: 1.05rem; font-weight: 700; margin: 0; }

.close-btn { background: none; border: none; font-size: 1.1rem; color: var(--text-secondary); cursor: pointer; transition: 0.2s; }
.close-btn:hover { color: var(--text-primary); }

/* Messages Area */
.chatbot-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; background: var(--card-bg); }
.chat-message { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.chat-message.left { justify-content: flex-start; }
.chat-message.right { justify-content: flex-end; }

.bot-avatar-small {
    width: 26px; height: 26px; background: var(--bg-color); color: var(--text-primary);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 0.8rem; flex-shrink: 0;
}

.bubble-wrapper { display: flex; flex-direction: column; max-width: 85%; }
.chat-message.right .bubble-wrapper { align-items: flex-end; }
.chat-message.left .bubble-wrapper { align-items: flex-start; }

.chat-message .bubble { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }
.chat-message.left .bubble { background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-primary); border-top-left-radius: 4px; }
.chat-message.right .bubble { background: var(--text-primary); color: var(--card-bg); border-top-right-radius: 4px; }

.timestamp { font-size: 0.7rem; color: var(--text-secondary); margin-top: 6px; }

/* Better Chatbot Input UI */
.chatbot-input-area { padding: 15px; border-top: 1px solid var(--border-color); background: var(--card-bg); }

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 5px 5px 5px 15px;
    transition: 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    padding: 8px 0;
}

.send-btn {
    background: var(--text-primary);
    color: var(--card-bg);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
}

.send-btn:hover {
    transform: scale(1.1);
    background: #000;
}

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

.powered-by { text-align: center; font-size: 0.7rem; color: var(--text-secondary); margin-top: 10px; }

/* ====== WHATSAPP WINDOW OVERRIDES ====== */
.whatsapp-container {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 9999;
}

.wa-window {
    bottom: 60px; /* relative to container */
    border: none !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.wa-header {
    background: #075e54; /* Classic WA Green */
    color: #fff;
}

.wa-avatar {
    background: #fff;
    color: #075e54;
    font-size: 1.5rem;
}

.wa-messages {
    background: #e5ddd5; /* Typical WA background */
    position: relative;
    padding-bottom: 30px;
}

.wa-messages::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.6;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* Generic WA doodle background */
    z-index: 0;
    pointer-events: none;
}

.wa-messages .chat-message {
    z-index: 1;
}

.wa-sender-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #075e54;
    margin-bottom: 2px;
}

.wa-bubble-left {
    background: #fff !important;
    border: none !important;
    color: #111 !important;
    border-top-left-radius: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.wa-input-area {
    background: #f0f0f0;
}

.wa-input-box input {
    background: #fff;
    border: none !important;
    border-radius: 20px;
    padding: 12px 15px;
    color: #111;
    outline: none !important;
    box-shadow: none !important;
}

.wa-input-box button {
    background: #00a884;
    color: #fff;
    border-radius: 50%;
    width: 45px;
}

.wa-input-box button:hover {
    background: #008f6f;
}

/* ====== RESPONSIVE DESIGN ====== */
@media(max-width: 991px) {
    .section { padding: 4rem 5%; }
    .hero h1 { font-size: 3rem; }
    .contact-split, .footer-grid { grid-template-columns: 1fr; }
    .about-profile { flex-direction: column; text-align: center; }
}

@media(max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    #menu-btn { display: block; }
    
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--card-bg); flex-direction: column; gap: 0;
        text-align: center; max-height: 0; overflow: hidden;
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        transition: max-height 0.3s ease;
    }
    .nav-links.active { max-height: 350px; }
    .nav-links li { padding: 15px 0; border-top: 1px solid var(--border-color); }
    
    .hero-buttons { flex-direction: column; padding: 0 10%; }
    .hero-features { flex-direction: column; align-items: center; gap: 10px; }
    .stats-row { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
    
    .portfolio-filters-tabs { flex-wrap: wrap; justify-content: center; }
    
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }

    .chatbot-window {
        width: calc(100vw - 40px);
        max-width: 340px;
        right: 0; 
    }
}

/* ====== TYPING INDICATOR ====== */
.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
