/* ========================================
   DESIGN SYSTEM — SKY BLUE × GREEN × EARTH
   ======================================== */

:root {
    /* Palette */
    --c-primary: #4AADCF;
    --c-primary-dark: #3891B0;
    --c-primary-glow: rgba(74, 173, 207, 0.25);
    --c-secondary: #5BA86B;
    --c-secondary-dark: #4A8F58;
    --c-accent: #F4A261;
    --c-accent-glow: rgba(244, 162, 97, 0.3);

    --c-bg-dark: #1B2A2F;
    --c-bg-dark-2: #243438;
    --c-bg-light: #F0EDE5;
    --c-surface: #E8E2D7;
    --c-surface-hover: #DED7CA;

    --c-text: #2C3E3A;
    --c-text-light: #F0EDE5;
    --c-text-muted: #6B8F7B;
    --c-text-muted-light: rgba(240, 237, 229, 0.5);

    /* Typography */
    --f-heading: 'Space Grotesk', sans-serif;
    --f-body: 'Noto Sans Thai', sans-serif;
    --f-accent: 'Instrument Serif', serif;

    /* Spacing */
    --s-page: clamp(1.25rem, 5vw, 6rem);
    --s-section: clamp(4rem, 10vh, 8rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.2s;
    --t-normal: 0.4s;
    --t-slow: 0.8s;

    /* Border Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 24px;
    --r-xl: 40px;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--f-body);
    color: var(--c-text);
    background: var(--c-bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ========== CURSOR GLOW ========== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c-primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--s-page);
    background: rgba(16, 27, 32, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--t-normal) var(--ease-out),
        box-shadow var(--t-normal) var(--ease-out),
        padding var(--t-normal) var(--ease-out);
}

.nav.scrolled {
    background: rgba(27, 42, 47, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--c-text-light);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    z-index: 1001;
}

.nav__logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter var(--t-fast);
}

.nav__logo:hover .nav__logo-img {
    filter: brightness(1) invert(0);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__lang {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(240, 237, 225, 0.15);
}

.lang-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.4;
    transition: all var(--t-fast) var(--ease-out);
    border: 2px solid transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--c-primary);
    transform: scale(1.1);
}

/* ========== MUSIC PLAYER ========== */
.nav__music {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 1.5rem;
    margin-right: 0.5rem;
    border-right: 1px solid rgba(240, 237, 225, 0.15);
}

.music-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--c-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    opacity: 0.8;
}

.music-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--c-primary);
}

.music-icon {
    width: 20px;
    height: 20px;
}

.music-volume {
    width: 60px;
    display: flex;
    align-items: center;
}

.music-volume input[type=range] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(240, 237, 225, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-volume input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-primary);
    cursor: pointer;
    transition: transform 0.1s;
}

.music-volume input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__links.open {
    display: block;
    position: absolute;
    top: 100%;
    right: var(--s-page);
    background: rgba(27, 42, 47, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    width: min(320px, 90vw);
    z-index: 1001;
}

.nav__links.open .nav__link,
.nav__links.open .nav__music {
    display: block;
    width: 100%;
}

.nav__links.open .nav__link {
    margin-bottom: 1rem;
}

.nav__link {
    color: var(--c-text-muted-light);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--t-fast) var(--ease-out);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: width var(--t-normal) var(--ease-out);
}

.nav__link:hover {
    color: var(--c-text-light);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--c-primary);
    color: var(--c-bg-dark) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    font-weight: 600;
    transition: background var(--t-fast), transform var(--t-fast);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--c-accent);
    transform: translateY(-2px);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--c-text-light);
    border-radius: 2px;
    transition: all var(--t-normal) var(--ease-out);
    transform-origin: center;
}

.nav__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-dark);
    overflow: hidden;
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-primary);
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.particle--logo {
    background-image: url('images/mainlogo_pofstudio_notext.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent !important;
    border-radius: 0;
    filter: brightness(0) invert(1) opacity(0.6);
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    20% {
        opacity: 0.6;
        transform: scale(1);
    }

    80% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0);
    }
}

.hero__circuit-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.15;
}

.circuit-svg {
    width: 100%;
    height: 100%;
}

.circuit-path {
    fill: none;
    stroke: var(--c-primary);
    stroke-width: 1.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: circuitDraw 4s ease forwards;
}

.circuit-path--2 {
    stroke: var(--c-secondary);
    animation-delay: 0.5s;
}

.circuit-path--3 {
    stroke: var(--c-accent);
    animation-delay: 1s;
    stroke-width: 1;
}

@keyframes circuitDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.circuit-node {
    fill: var(--c-primary);
    opacity: 0;
    animation: nodeAppear 0.5s ease forwards;
}

.circuit-node:nth-child(4) {
    animation-delay: 2s;
    fill: var(--c-secondary);
}

.circuit-node:nth-child(5) {
    animation-delay: 2.2s;
    fill: var(--c-secondary);
}

.circuit-node:nth-child(6) {
    animation-delay: 2.4s;
    fill: var(--c-accent);
}

.circuit-node:nth-child(7) {
    animation-delay: 2.6s;
    fill: var(--c-accent);
}

.circuit-node:nth-child(8) {
    animation-delay: 2.8s;
}

@keyframes nodeAppear {
    to {
        opacity: 0.8;
    }
}
/* ========== FAQ & CONTACT SECTION ========== */
.faq-contact {
    display: grid;
    grid-template-columns: 1fr 1fr; /* แบ่งเป็น 2 คอลัมน์เท่าๆ กัน */
    gap: 4rem;
    padding: 6rem 10%;
    align-items: start;
    background-color: transparent; /* ให้สีกลืนกับพื้นหลังเดิมของเว็บ */
}

/* สำหรับแท็บเล็ตและมือถือ ให้เรียงลงมา */
@media (max-width: 992px) {
    .faq-contact {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 5%;
    }
}

.faq-contact .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--c-text, #1e293b);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* --- FAQ Styles --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-text, #1e293b);
    font-family: 'Space Grotesk', sans-serif;
}

/* ซ่อนลูกศรเดิมของเบราว์เซอร์ */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* สร้างเครื่องหมาย + / - ใหม่ */
.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #64748b;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 1.5rem;
    line-height: 1.6;
    color: #475569;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Contact Form Styles --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box; /* สำคัญ: ป้องกันกล่องทะลุเฟรม */
}

/* เอฟเฟกต์ตอนคลิกพิมพ์ */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e293b;
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.1);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form .submit-btn {
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 0.5rem;
}

.contact-form .submit-btn:hover {
    background: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}


/* 🌟 สไตล์สำหรับ Floating Sub-menu */
.float-btn-group {
    position: relative;
    display: flex;
    align-items: center;
}
.float-submenu {
    position: absolute;
    right: 100%; /* ให้เด้งออกไปทางซ้ายของปุ่ม */
    margin-right: 15px; 
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}
/* เวลาเอาเมาส์ชี้ให้เมนูโผล่ออกมา */
.float-btn-group:hover .float-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.float-submenu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}
.float-submenu a:hover {
    background: #334155;
    color: #00ffcc; /* เปลี่ยนสีข้อความให้เข้ากับธีมเว็บ */
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--s-page);
    max-width: 1100px;
}

.hero__label {
    color: var(--c-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.8rem;
}

.hero__title-line {
    font-family: var(--f-heading);
    font-size: clamp(2.5rem, 6vw, 5rem); /* ลดจาก 7.5rem เหลือ 5rem */
    font-weight: 600; /* ลดจาก 700 เหลือ 600 */
    color: var(--c-text-light);
    line-height: 1.05;
    letter-spacing: -0.03em;
    padding-right: 0.5em;
    padding-bottom: 0.1em;
}

.hero__title-line--accent {
    font-family: var(--f-accent);
    font-style: italic;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    color: var(--c-text-muted-light);
    font-size: clamp(0.8rem, 1.4rem, 1rem);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero__subtitle em {
    font-family: var(--f-accent);
    color: var(--c-primary);
    font-style: italic;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--c-primary);
    color: var(--c-bg-dark);
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all var(--t-normal) var(--ease-out);
}

.hero__cta:hover {
    background: var(--c-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--c-accent-glow);
}

.hero__cta svg {
    transition: transform var(--t-fast);
}

.hero__cta:hover svg {
    transform: translate(3px, -3px);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.hero__scroll-indicator span {
    color: var(--c-text-muted-light);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    font-weight: 500;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--c-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ========== AI ASSISTANT SECTION ========== */
.ai-assistant {
    padding: var(--s-section) var(--s-page);
    background: rgba(239, 236, 229, 0.75);
    color: var(--c-text);
}

.ai-assistant__container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}

.ai-assistant__header {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.ai-assistant__header::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    margin: 1.8rem auto 0;
    background: linear-gradient(90deg, rgba(74, 173, 207, 0.8), rgba(90, 168, 107, 0.2));
}

.ai-assistant__chat {
    display: flex;
    justify-content: center;
}

.chat-window {
    width: 100%;
    max-width: 920px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(27, 42, 47, 0.08);
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 30px 80px rgba(12, 20, 22, 0.08);
}

.chat-messages {
    max-height: 460px;
    overflow-y: auto;
    display: grid;
    gap: 1rem;
    padding-right: 0.5rem;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(74, 173, 207, 0.45);
    border-radius: 999px;
}

.message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.message__avatar {
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(74, 173, 207, 0.12);
    color: var(--c-primary);
    display: grid;
    place-items: center;
    border: 1px solid rgba(74, 173, 207, 0.2);
}

.message__content {
    background: rgba(27, 42, 47, 0.05);
    border: 1px solid rgba(27, 42, 47, 0.1);
    border-radius: 24px;
    padding: 1rem 1.15rem;
    color: var(--c-text);
    line-height: 1.7;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message__content {
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: var(--c-bg-dark);
    border-color: rgba(74, 173, 207, 0.25);
}

.bot-message .message__avatar {
    background: rgba(74, 173, 207, 0.12);
}

.typing-indicator .message__content {
    background: rgba(27, 42, 47, 0.08);
    min-width: 120px;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(27, 42, 47, 0.55);
    animation: typingBounce 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.chat-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    margin-top: 1.2rem;
    align-items: center;
}

.chat-input input {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(27, 42, 47, 0.12);
    background: #fff;
    color: var(--c-text);
    font-size: 0.95rem;
}

.chat-input input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 173, 207, 0.12);
}

.send-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-primary);
    color: var(--c-bg-dark);
    display: grid;
    place-items: center;
    transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.send-btn:hover {
    transform: translateY(-2px);
    background: var(--c-secondary);
}

@media (max-width: 992px) {
    .ai-assistant__container {
        gap: 2rem;
    }

    .hero__content,
    .ai-assistant__header,
    .works__categories,
    .skills__container,
    .process__container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .chat-window {
        padding: 1.25rem;
    }

    .chat-input {
        grid-template-columns: 1fr;
    }

    .send-btn {
        width: 100%;
        border-radius: 18px;
        height: 52px;
    }

    .nav {
        padding: 1rem 1.5rem;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--c-bg-dark);
    color: var(--c-text-light);
    padding: var(--s-section) 0;
    margin-top: var(--s-section);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--s-page);
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer__logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer__logo-text {
    font-family: var(--f-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer__tagline {
    font-family: var(--f-accent);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--c-primary);
    margin-bottom: 1rem;
}

.footer__desc {
    color: var(--c-text-muted-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__section {
    min-width: 0;
}

.footer__title {
    font-family: var(--f-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--c-text-light);
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 0.6rem;
}

.footer__link {
    color: var(--c-text-muted-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--t-fast);
}

.footer__link:hover {
    color: var(--c-primary);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 173, 207, 0.1);
    color: var(--c-text-muted-light);
    display: grid;
    place-items: center;
    transition: all var(--t-fast);
}

.footer__social-link:hover {
    background: var(--c-primary);
    color: var(--c-bg-dark);
    transform: translateY(-2px);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--c-text-muted-light);
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal-link {
    color: var(--c-text-muted-light);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--t-fast);
}

.footer__legal-link:hover {
    color: var(--c-primary);
}

@media (max-width: 992px) {
    .footer__main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer__links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========== SECTION SHARED ========== */
.section-label {
    color: var(--c-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--f-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.section-title em {
    font-family: var(--f-accent);
    font-style: italic;
    color: var(--c-primary);
}

.section-title--center {
    text-align: center;
}

.section-desc {
    color: var(--c-text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    line-height: 1.7;
}

/* ========== WORKS SECTION ========== */
.works {
    padding: var(--s-section) 0;
    background: var(--c-bg-light);
}

.works__header {
    padding: 0 var(--s-page);
    margin-bottom: 2.5rem;
}

.works__filters {
    display: flex;
    gap: 0.6rem;
    padding: 0 var(--s-page);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--c-text-muted);
    border: 1.5px solid var(--c-surface);
    background: transparent;
    transition: all var(--t-fast) var(--ease-out);
}

.filter-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.filter-btn.active {
    background: var(--c-bg-dark);
    color: var(--c-text-light);
    border-color: var(--c-bg-dark);
}

.works__categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.works__category-section {
    position: relative;
}

.works__category-title {
    font-family: var(--f-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 1.5rem;
    padding: 0 var(--s-page);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.works__category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(74, 173, 207, 0.3), transparent);
}

.works__scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--s-page);
    scrollbar-width: thin;
    scrollbar-color: var(--c-primary) rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.works__scroll-container::-webkit-scrollbar {
    height: 6px;
}

.works__scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 100px;
}

.works__scroll-container::-webkit-scrollbar-thumb {
    background: var(--c-primary);
    border-radius: 100px;
}

.works__track {
    display: flex;
    gap: 1.5rem;
    padding: 0 var(--s-page) 2rem;
    width: max-content;
}

/* Ensure padding-right works for scroll scrolling */
.works__track::after {
    content: '';
    display: block;
    width: 1px;
    height: 1px;
    margin-left: -1px;
}

.work-card {
    position: relative;
    flex: 0 0 340px;
    height: 420px;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--t-normal) var(--ease-out),
        box-shadow var(--t-normal) var(--ease-out),
        opacity var(--t-normal) var(--ease-out);
}

.work-card.hidden {
    display: none;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(27, 42, 47, 0.15);
}

.work-card__img {
    position: absolute;
    inset: 0;
    background: var(--c-surface);
}

.work-card__img img,
.work-card__img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}

.work-card:hover .work-card__img img,
.work-card:hover .work-card__img video {
    transform: scale(1.08);
}

.work-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(27, 42, 47, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-light);
    font-size: 1rem;
    z-index: 2;
    transition: transform var(--t-fast), background var(--t-fast);
}

.work-card:hover .work-card__play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--c-primary);
}

.work-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(27, 42, 47, 0.95), transparent);
    z-index: 2;
}

.work-card__category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-primary);
    background: rgba(74, 173, 207, 0.15);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.work-card__title {
    font-family: var(--f-heading);
    color: var(--c-text-light);
    font-size: 1.15rem;
    font-weight: 600;
}

.work-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 42, 47, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    transition: opacity var(--t-normal) var(--ease-out);
}

.work-card__overlay span {
    color: var(--c-text-light);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 2rem;
    border: 2px solid var(--c-primary);
    border-radius: 100px;
    transition: all var(--t-fast);
}

.work-card:hover .work-card__overlay {
    opacity: 1;
}

.work-card:hover .work-card__overlay span {
    background: var(--c-primary);
    color: var(--c-bg-dark);
}

.works__scroll-progress {
    display: none;
    width: min(300px, 60%);
    height: 3px;
    background: var(--c-surface);
    border-radius: 100px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.works__scroll-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    border-radius: 100px;
    transition: transform 0.1s ease-out;
}

/* ========== SKILLS SECTION ========== */
.skills {
    padding: var(--s-section) var(--s-page);
    background: var(--c-bg-dark);
    color: var(--c-text-light);
}

.skills .section-desc {
    color: var(--c-text-muted-light);
}

.skills__container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.skill-card {
    background: var(--c-bg-dark-2);
    border: 1px solid rgba(74, 173, 207, 0.1);
    border-radius: var(--r-md);
    padding: 1.8rem 1.4rem;
    transition: all var(--t-normal) var(--ease-out);
}

.skill-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(74, 173, 207, 0.08);
}

.skill-card__icon {
    width: 40px;
    height: 40px;
    color: var(--c-primary);
    margin-bottom: 1.2rem;
}

.skill-card__icon svg {
    width: 100%;
    height: 100%;
}

.skill-card__title {
    font-family: var(--f-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--c-text-light);
}

.skill-card__desc {
    font-size: 0.8rem;
    color: var(--c-text-muted-light);
    line-height: 1.6;
}

/* ========== PROCESS SECTION ========== */
.process {
    padding: var(--s-section) var(--s-page);
    background: var(--c-bg-light);
    overflow: hidden;
}

.process__container {
    max-width: 1100px;
    margin: 0 auto;
}

.process .section-label {
    text-align: center;
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-accent));
    opacity: 0.3;
}

.process__step {
    text-align: center;
    position: relative;
}

.process__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-family: var(--f-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background: var(--c-bg-light);
    position: relative;
    z-index: 1;
    transition: all var(--t-normal) var(--ease-out);
}

.process__step:hover .process__number {
    background: var(--c-primary);
    color: var(--c-bg-dark);
    box-shadow: 0 0 30px var(--c-primary-glow);
}

.process__step-title {
    font-family: var(--f-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--c-text);
    margin-bottom: 0.6rem;
}

.process__step-desc {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: var(--s-section) var(--s-page);
    background: var(--c-surface);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about__avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--c-primary);
    box-shadow: 0 10px 40px rgba(74, 173, 207, 0.15);
    flex-shrink: 0;
}

.about__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__desc {
    color: var(--c-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--c-bg-dark);
    color: var(--c-text-light);
    border-radius: var(--r-md);
    padding: 2rem 1.2rem;
    text-align: center;
    transition: transform var(--t-normal) var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card__number {
    display: block;
    font-family: var(--f-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stat-card__number::after {
    content: '+';
}

.stat-card__label {
    font-size: 0.75rem;
    color: var(--c-text-muted-light);
    letter-spacing: 0.05em;
    line-height: 1.5;
}

/* ========== CONTACT / FOOTER ========== */
.contact {
    padding: var(--s-section) var(--s-page);
    background: var(--c-bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--c-primary-glow), transparent 70%);
    pointer-events: none;
}

.contact__container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.contact .section-label {
    color: var(--c-primary);
}

.contact__title {
    font-family: var(--f-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--c-text-light);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.contact__title em {
    font-family: var(--f-accent);
    font-style: italic;
    color: var(--c-primary);
}

.contact__desc {
    color: var(--c-text-muted-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact__email {
    display: inline-block;
    font-family: var(--f-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--c-text-light);
    border-bottom: 3px solid var(--c-primary);
    padding-bottom: 0.3rem;
    transition: all var(--t-normal) var(--ease-out);
    margin-bottom: 4rem;
}

.contact__email:hover {
    color: var(--c-primary);
    border-color: var(--c-accent);
}

.contact__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(240, 237, 229, 0.1);
    padding-top: 2rem;
}

.contact__copy,
.contact__location {
    font-size: 0.7rem;
    color: var(--c-text-muted-light);
    letter-spacing: 0.1em;
}

.contact__url {
    transition: color var(--t-fast);
}

.contact__url:hover {
    color: var(--c-primary);
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(27, 42, 47, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-normal) var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--c-text-light);
    font-size: 1.8rem;
    z-index: 2;
    transition: color var(--t-fast);
    cursor: pointer;
}

.lightbox__close:hover {
    color: var(--c-primary);
}

.lightbox__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__content img,
.lightbox__content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.lightbox--pdf .lightbox__container {
    max-width: 90vw;
    max-height: 95vh;
    width: 80vw;
}

.lightbox--pdf .lightbox__content {
    width: 100%;
    height: 85vh;
}

.lightbox--pdf .lightbox__content iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--r-md);
    background: #fff;
}

.lightbox__actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.lightbox__btn {
    display: inline-block;
    background: var(--c-primary);
    color: var(--c-bg-dark);
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all var(--t-fast);
}

.lightbox__btn:hover {
    background: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--c-accent-glow);
}

.lightbox__content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.lightbox__content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--r-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

/* ========== REVEAL ANIMATIONS ========== */
html:not(.js) .reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--t-slow) var(--ease-out),
        transform var(--t-slow) var(--ease-out);
    transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .skills__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        justify-items: center;
    }

    .about__avatar {
        width: 180px;
        height: 180px;
    }

    .process__timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .process__timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        inset: 0;
        background: rgba(27, 42, 47, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform var(--t-normal) var(--ease-out);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 1.1rem;
        color: var(--c-text-light);
    }

    /* Move music player into center of vertical menu on mobile */
    .nav__music {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        flex-direction: column;
        gap: 1.2rem;
        order: -1; /* Place it at the top of the mobile menu */
        margin-bottom: 1rem;
    }

    .music-btn {
        width: 45px;
        height: 45px;
        background: rgba(240, 237, 225, 0.05);
    }

    .music-volume {
        width: 120px;
    }

    .nav__right {
        gap: 1rem;
    }

    .nav__lang {
        border-right: none;
        padding-right: 0;
    }

    .nav__burger {
        display: flex;
    }

    .hero__title-line {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .works__category-title {
        font-size: 1.5rem;
    }

    .work-card {
        flex: 0 0 280px;
        height: 360px;
    }

    .work-card {
        height: 360px;
    }

    .skills__grid {
        grid-template-columns: 1fr;
    }

    .process__timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process__step {
        text-align: left;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 1.2rem;
        align-items: center;
    }

    .process__number {
        grid-row: span 2;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .process__step-title {
        margin-bottom: 0.2rem;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1.4rem 0.8rem;
    }

    .stat-card__number {
        font-size: 2rem;
    }

    .contact__bottom {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .works__filters {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.7rem;
    }

    .works__category-title {
        font-size: 1.3rem;
    }

    .work-card {
        flex: 0 0 260px;
        height: 330px;
    }

    .work-card {
        height: 330px;
    }
}

/* ========== FLOATING TOOLS ========== */
.floating-tools {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(27, 42, 47, 0.9);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(74, 173, 207, 0.3);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--t-fast) var(--ease-out);
    position: relative;
    text-decoration: none;
}

.float-btn:hover {
    background: var(--c-primary);
    color: var(--c-bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 173, 207, 0.4);
}

.float-btn svg {
    width: 24px;
    height: 24px;
}

/* Tooltip on hover */
.float-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    background: var(--c-bg-dark);
    color: var(--c-text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all var(--t-fast) var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

#goTopBtn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    background: var(--c-secondary);
    color: var(--c-bg-dark);
    border-color: var(--c-secondary);
}

#goTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#goTopBtn:hover {
    background: var(--c-secondary-dark);
}

@media (max-width: 768px) {
    .floating-tools {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
    }

    .float-btn svg {
        width: 20px;
        height: 20px;
    }

    .float-btn::before {
        display: none;
        /* Hide tooltips on mobile to avoid screen overflow */
    }
}/ *   = = = = = = = = = =   A I   A S S I S T A N T   = = = = = = = = = =   * / 
 . a i - a s s i s t a n t   { 
         p a d d i n g :   v a r ( - - s - s e c t i o n )   v a r ( - - s - p a g e ) ; 
         b a c k g r o u n d :   v a r ( - - c - b g - d a r k ) ; 
         c o l o r :   v a r ( - - c - t e x t - l i g h t ) ; 
 } 
 
 . a i - a s s i s t a n t _ _ c o n t a i n e r   { 
         m a x - w i d t h :   1 2 0 0 p x ; 
         m a r g i n :   0   a u t o ; 
 } 
 
 . a i - a s s i s t a n t _ _ h e a d e r   { 
         t e x t - a l i g n :   c e n t e r ; 
         m a r g i n - b o t t o m :   4 r e m ; 
 } 
 
 . a i - a s s i s t a n t _ _ c h a t   { 
         m a x - w i d t h :   8 0 0 p x ; 
         m a r g i n :   0   a u t o ; 
 } 
 
 . c h a t - w i n d o w   { 
         b a c k g r o u n d :   v a r ( - - c - b g - d a r k - 2 ) ; 
         b o r d e r - r a d i u s :   v a r ( - - r - l g ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
         o v e r f l o w :   h i d d e n ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         h e i g h t :   5 0 0 p x ; 
 } 
 
 . c h a t - m e s s a g e s   { 
         f l e x :   1 ; 
         o v e r f l o w - y :   a u t o ; 
         p a d d i n g :   1 . 5 r e m ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         g a p :   1 r e m ; 
 } 
 
 . m e s s a g e   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 r e m ; 
         m a x - w i d t h :   8 0 % ; 
 } 
 
 . m e s s a g e _ _ a v a t a r   { 
         w i d t h :   4 0 p x ; 
         h e i g h t :   4 0 p x ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         b a c k g r o u n d :   v a r ( - - c - p r i m a r y ) ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         c o l o r :   w h i t e ; 
         f l e x - s h r i n k :   0 ; 
 } 
 
 . m e s s a g e _ _ c o n t e n t   { 
         b a c k g r o u n d :   v a r ( - - c - s u r f a c e ) ; 
         c o l o r :   v a r ( - - c - t e x t ) ; 
         p a d d i n g :   1 r e m   1 . 5 r e m ; 
         b o r d e r - r a d i u s :   v a r ( - - r - m d ) ; 
         l i n e - h e i g h t :   1 . 6 ; 
 } 
 
 . b o t - m e s s a g e   { 
         a l i g n - s e l f :   f l e x - s t a r t ; 
 } 
 
 . u s e r - m e s s a g e   { 
         a l i g n - s e l f :   f l e x - e n d ; 
         f l e x - d i r e c t i o n :   r o w - r e v e r s e ; 
 } 
 
 . u s e r - m e s s a g e   . m e s s a g e _ _ a v a t a r   { 
         b a c k g r o u n d :   v a r ( - - c - s e c o n d a r y ) ; 
 } 
 
 . u s e r - m e s s a g e   . m e s s a g e _ _ c o n t e n t   { 
         b a c k g r o u n d :   v a r ( - - c - p r i m a r y ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . c h a t - i n p u t   { 
         b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
         p a d d i n g :   1 . 5 r e m ; 
         d i s p l a y :   f l e x ; 
         g a p :   1 r e m ; 
 } 
 
 . c h a t - i n p u t   i n p u t   { 
         f l e x :   1 ; 
         b a c k g r o u n d :   v a r ( - - c - b g - d a r k - 2 ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ; 
         b o r d e r - r a d i u s :   v a r ( - - r - m d ) ; 
         p a d d i n g :   1 r e m   1 . 5 r e m ; 
         c o l o r :   v a r ( - - c - t e x t - l i g h t ) ; 
         f o n t - f a m i l y :   v a r ( - - f - b o d y ) ; 
 } 
 
 . c h a t - i n p u t   i n p u t : : p l a c e h o l d e r   { 
         c o l o r :   v a r ( - - c - t e x t - m u t e d - l i g h t ) ; 
 } 
 
 . c h a t - i n p u t   i n p u t : f o c u s   { 
         o u t l i n e :   n o n e ; 
         b o r d e r - c o l o r :   v a r ( - - c - p r i m a r y ) ; 
 } 
 
 . s e n d - b t n   { 
         b a c k g r o u n d :   v a r ( - - c - p r i m a r y ) ; 
         c o l o r :   w h i t e ; 
         b o r d e r - r a d i u s :   v a r ( - - r - m d ) ; 
         p a d d i n g :   1 r e m ; 
         t r a n s i t i o n :   b a c k g r o u n d   v a r ( - - t - f a s t )   v a r ( - - e a s e - o u t ) ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
 } 
 
 . s e n d - b t n : h o v e r   { 
         b a c k g r o u n d :   v a r ( - - c - p r i m a r y - d a r k ) ; 
 } 
 
 . s e n d - b t n   s v g   { 
         w i d t h :   2 0 p x ; 
         h e i g h t :   2 0 p x ; 
 } 
 
 / *   = = = = = = = = = =   R E S P O N S I V E   = = = = = = = = = =   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         . a i - a s s i s t a n t   { 
                 p a d d i n g :   4 r e m   v a r ( - - s - p a g e ) ; 
         } 
         
         . c h a t - w i n d o w   { 
                 h e i g h t :   4 0 0 p x ; 
         } 
         
         . m e s s a g e   { 
                 m a x - w i d t h :   9 0 % ; 
         } 
         
         . c h a t - i n p u t   { 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
         } 
         
         . s e n d - b t n   { 
                 a l i g n - s e l f :   f l e x - e n d ; 
                 w i d t h :   1 0 0 % ; 
                 m a x - w i d t h :   1 2 0 p x ; 
         } 
 } 
 
 . t y p i n g - i n d i c a t o r   . t y p i n g - d o t s   { 
         d i s p l a y :   f l e x ; 
         g a p :   4 p x ; 
         a l i g n - i t e m s :   c e n t e r ; 
 } 
 
 . t y p i n g - i n d i c a t o r   . t y p i n g - d o t s   s p a n   { 
         w i d t h :   6 p x ; 
         h e i g h t :   6 p x ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         b a c k g r o u n d :   v a r ( - - c - t e x t - m u t e d ) ; 
         a n i m a t i o n :   t y p i n g   1 . 4 s   i n f i n i t e   e a s e - i n - o u t ; 
 } 
 
 . t y p i n g - i n d i c a t o r   . t y p i n g - d o t s   s p a n : n t h - c h i l d ( 1 )   {   a n i m a t i o n - d e l a y :   - 0 . 3 2 s ;   } 
 . t y p i n g - i n d i c a t o r   . t y p i n g - d o t s   s p a n : n t h - c h i l d ( 2 )   {   a n i m a t i o n - d e l a y :   - 0 . 1 6 s ;   } 
 
 @ k e y f r a m e s   t y p i n g   { 
         0 % ,   8 0 % ,   1 0 0 %   { 
                 o p a c i t y :   0 . 3 ; 
                 t r a n s f o r m :   s c a l e ( 0 . 8 ) ; 
         } 
         4 0 %   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   s c a l e ( 1 ) ; 
         } 
 } 
 
 