/* ================================================================
   SAZZAD HOSSAIN — PORTFOLIO DESIGN SYSTEM
   Clean editorial minimalism with Fraunces + DM Sans
   ================================================================ */

/* ----------------------------------------------------------------
   0. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #FAFAFA;
    --bg-secondary: #EEF0F7;
    --bg-card: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
    --accent: #111111;
    --accent-light: #F5F5F5;
    --tertiary: #FF4A21;
    --white: #FFFFFF;
    --black: #111111;

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --radius-round: 50%;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.32, 1);
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-smooth: 500ms var(--ease-out);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    opacity: 0.7;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ----------------------------------------------------------------
   1. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.display-heading {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.display-heading em,
.display-heading i,
.heading-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

.section-heading {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------
   2. LAYOUT
   ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

section {
    padding: var(--section-padding) 0;
}

.text-center {
    text-align: center;
}

.text-tertiary {
    color: var(--tertiary);
}

/* ----------------------------------------------------------------
   3. NAVIGATION — Floating pill navbar
   ---------------------------------------------------------------- */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 600px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 12px 16px 12px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.92);
}

.nav-logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-right: auto;
    white-space: nowrap;
    user-select: none;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.nav-icon:hover {
    background: var(--accent-light);
    opacity: 1;
    border-color: var(--border-color);
}

.nav-icon.active {
    background: #E8E8E8;
    border-radius: var(--radius-round);
}

.nav-icon svg,
.nav-icon i {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

/* Mobile nav helpers - hidden on desktop */
@media (min-width: 769px) {
    .nav-label,
    .mobile-nav-header,
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Mobile nav */
.nav-mobile-toggle,
.nav-mobile-close {
    display: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   4. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
}

.hero-headline {
    font-size: clamp(40px, 6vw, 72px);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-headline em {
    font-style: italic;
}

.hero-subtext {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px 12px 14px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-smooth);
    border: 1px solid var(--black);
}

.btn-primary:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 74, 33, 0.3);
    background: var(--tertiary);
    border-color: var(--tertiary);
}

.btn-primary-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    object-fit: cover;
}

.btn-primary-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.btn-primary-text .label {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.btn-primary-text .sublabel {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
    line-height: 1.3;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border-strong);
    transition: all var(--transition-smooth);
}

.btn-secondary:hover {
    opacity: 1;
    background: var(--accent-light);
    transform: translateY(-2px);
}

.hero-tagline {
    font-size: 14px;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   5. CLIENT LOGOS — Marquee
   ---------------------------------------------------------------- */
.logo-marquee {
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 64px;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-logo {
    height: 28px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.marquee-logo:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   6. WORK / PROJECTS — Carousel with device frame
   ---------------------------------------------------------------- */
.work-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.carousel-wrapper {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
}

.carousel-device-frame {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    padding: 24px;
    overflow: hidden;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    transition: transform 600ms var(--ease-out);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.carousel-slide-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.project-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--tertiary);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.carousel-slide-image {
    width: 100%;
    aspect-ratio: 1920 / 1080;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.carousel-slide-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.carousel-slide-tags span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    margin-left: 16px;
    vertical-align: middle;
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D4D4D4;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.carousel-dot.active {
    background: #888888;
    width: 28px;
    border-radius: 5px;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-round);
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--accent-light);
    border-color: var(--text-primary);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

/* ----------------------------------------------------------------
   7. ABOUT SECTION
   ---------------------------------------------------------------- */
.about-section {
    background: var(--bg-secondary);
    padding: var(--section-padding) 0;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Photo cards — draggable, fanned out */
.about-photos {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
}

.about-photo-card {
    position: absolute;
    width: 260px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    padding: 10px;
    cursor: grab;
    transition: box-shadow var(--transition-normal);
    user-select: none;
}

.about-photo-card:active {
    cursor: grabbing;
    box-shadow: var(--shadow-hover);
}

.about-photo-card:nth-child(1) {
    transform: rotate(-6deg) translateX(-40px);
    z-index: 1;
}

.about-photo-card:nth-child(2) {
    transform: rotate(4deg) translateX(40px);
    z-index: 2;
}

.about-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 6px);
}

.about-photo-caption {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    padding: 12px 8px 6px;
}

/* ----------------------------------------------------------------
   8. PROFESSIONAL JOURNEY
   ---------------------------------------------------------------- */
.journey-section {
    background: var(--bg-secondary);
    padding: 0 0 var(--section-padding);
}

.journey-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.journey-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

.experience-list {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.experience-item:first-child {
    border-top: 1px solid var(--border-color);
}

.experience-item:hover {
    padding-left: 8px;
}

.experience-year {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.experience-role {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
}

.experience-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--white);
    padding: 8px;
    border: 1px solid var(--border-color);
}

/* ----------------------------------------------------------------
   9. SERVICES — "We are great at"
   ---------------------------------------------------------------- */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
}

.services-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

.services-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    border-top: 1px dashed var(--border-strong);
}

.services-divider-badge {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

.services-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
}

.services-heading em {
    font-style: italic;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-round);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    background: var(--white);
}

.service-icon:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    transform: scale(1.08);
}

.service-icon svg,
.service-icon i {
    width: 28px;
    height: 28px;
}

.service-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

/* ----------------------------------------------------------------
   10. SOCIAL PLATFORMS — "Find us on..."
   ---------------------------------------------------------------- */
.social-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.social-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.social-heading em {
    font-style: italic;
    font-weight: 400;
}

.social-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
}

.social-item:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.social-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-round);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    background: var(--white);
}

.social-item:hover .social-icon-circle {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.social-icon-circle svg {
    width: 24px;
    height: 24px;
}

.social-item-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   11. FAQ — Accordion
   ---------------------------------------------------------------- */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.faq-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
}

.faq-heading em {
    font-style: italic;
    font-weight: 400;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.open {
    border-radius: var(--radius-md);
    border-color: var(--border-strong);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
    background: transparent;
    font-family: var(--font-body);
}

.faq-question:hover {
    background: var(--accent-light);
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
}

.faq-item.open .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--ease-out), padding 400ms var(--ease-out);
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ CTA card */
.faq-cta {
    max-width: 720px;
    margin: 48px auto 0;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.faq-cta-text h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}

.faq-cta-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.faq-cta .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.faq-cta .btn-primary:hover {
    background: #F0F0F0;
}

/* ----------------------------------------------------------------
   12. CTA BOTTOM — "Get started in seconds"
   ---------------------------------------------------------------- */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    text-align: center;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-heading em {
    font-style: italic;
    font-weight: 400;
}

.cta-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-tagline {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   13. CONTACT FORM (inline section)
   ---------------------------------------------------------------- */
.contact-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding-top: 40px;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--black);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact-form .btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.contact-success {
    text-align: center;
    padding: 40px 0;
}

.contact-success svg {
    width: 64px;
    height: 64px;
    color: #1D9E75;
    margin-bottom: 16px;
}

.contact-success h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

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

.form-error {
    color: #D85A30;
    font-size: 13px;
    margin-top: 4px;
}

/* ----------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------- */
.footer {
    padding: 80px 0 32px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-round);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social-icon:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    opacity: 1;
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 48px;
    opacity: 0.08;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* ----------------------------------------------------------------
   15. TESTIMONIALS
   ---------------------------------------------------------------- */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.testimonials-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 10px 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 300px;
    scroll-snap-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-quote {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author-photo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-round);
    object-fit: cover;
}

.testimonial-author-info .name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.testimonial-author-info .role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   16. BLOG & CASE STUDY PAGES
   ---------------------------------------------------------------- */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 17px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    padding: 60px 0;
}

.content-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.content-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.content-card-body {
    padding: 24px;
}

.content-card-body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.content-card-body .meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.content-card-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-card-body .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--tertiary);
}

/* Detail pages */
.detail-page {
    padding: 140px 0 80px;
}

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

.detail-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.detail-header h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-header .meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.detail-body {
    max-width: 720px;
    margin: 0 auto;
}

.detail-body h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 16px;
}

.detail-body h3 {
    font-size: 22px;
    margin-top: 36px;
    margin-bottom: 12px;
}

.detail-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.detail-body img {
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.detail-body ul, .detail-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.detail-body li {
    list-style: disc;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-nav {
    max-width: 720px;
    margin: 60px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.detail-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

/* ----------------------------------------------------------------
   17. SCROLL REVEAL ANIMATION
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ----------------------------------------------------------------
   18. LOADING SPINNER (for contact form)
   ---------------------------------------------------------------- */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 600ms linear infinite;
    display: none;
}

.btn-submit.loading .spinner {
    display: block;
}

.btn-submit.loading .btn-label {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
   19. RESPONSIVE — Mobile-first breakpoints
   ---------------------------------------------------------------- */
@media (max-width: 1200px) {
    :root {
        --section-padding: 96px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 72px;
    }

    .nav-wrapper {
        left: 16px;
        right: 16px;
        transform: none;
        max-width: none;
        width: auto;
        display: block !important;
        gap: 0 !important;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .navbar {
        width: 100%;
        justify-content: space-between;
        overflow: visible;
        padding: 8px 8px 8px 16px;
    }

    .navbar.nav-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }

    .nav-links.mobile-open {
        display: flex;
        position: fixed;
        /* create a card modal shape */
        top: 16px;
        left: 16px;
        right: 16px;
        bottom: auto;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-hover);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        z-index: 1001;
        animation: fadeIn 300ms ease;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        width: 100%;
    }

    .mobile-nav-logo img {
        height: 32px;
        width: auto;
        object-fit: contain;
    }

    .nav-links.mobile-open .nav-icon {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;
        padding: 12px 16px;
        background: var(--accent-light);
        border-radius: var(--radius-sm);
        margin-bottom: 8px;
    }

    /* Undo nav-icon hover for mobile to keep it simple, or leave it */
    .nav-links.mobile-open .nav-icon:hover {
        background: var(--accent-light);
        border-color: transparent;
    }

    .nav-links.mobile-open .nav-label {
        display: inline-block;
        background: var(--black);
        color: var(--white);
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 14px;
        padding: 4px 14px;
        border-radius: var(--radius-pill);
    }
    
    .nav-links.mobile-open .nav-icon svg,
    .nav-links.mobile-open .nav-icon i {
        margin: 0;
    }

    /* specific styling for the bottom black "Contact ->" button */
    .nav-links.mobile-open .nav-contact-btn {
        background: var(--black);
        color: var(--white);
        margin-top: 8px; /* match spacing of other items */
        justify-content: space-between;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    
    .nav-links.mobile-open .nav-contact-btn > i {
        display: block;
    }
    
    .nav-links.mobile-open .nav-contact-btn .nav-label {
        background: transparent;
        color: var(--white);
        font-size: 14px;
        font-weight: 500;
        padding: 0;
        margin-left: 8px;
    }

    /* Hide the generic X close if we brought it into the header */
    .nav-links.mobile-open > .nav-mobile-close {
        display: none;
    }
    
    .nav-links.mobile-open .mobile-nav-header .nav-mobile-close {
        display: flex;
        position: static;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        background: transparent;
        border-radius: var(--radius-round);
        padding: 0;
        margin: 0;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-headline {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 0;
    }

    .experience-logo {
        display: none;
    }

    .social-grid {
        gap: 20px;
    }

    .faq-cta {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-photos {
        height: 320px;
    }

    .about-photo-card {
        width: 200px;
    }

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

    .carousel-device-frame {
        padding: 16px;
    }

    .testimonials-grid {
        padding: 10px 16px 40px;
    }
    
    .testimonial-card {
        flex: 0 0 85vw;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .about-photos {
        height: 280px;
    }

    .about-photo-card {
        width: 170px;
    }

    .carousel-controls {
        gap: 12px;
    }
}

/* ----------------------------------------------------------------
   20. UTILITY CLASSES
   ---------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }
}

/* ==========================================================================
   CAMPAIGN MODAL
   ========================================================================== */
.campaign-overlay {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 400px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.campaign-overlay.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.campaign-modal {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .campaign-modal {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.campaign-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-color-secondary);
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.campaign-close:hover {
    color: var(--text-color);
}

.campaign-track-container {
    overflow: hidden;
    width: 100%;
}

.campaign-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.campaign-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.campaign-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
}

.campaign-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.campaign-desc {
    font-size: 0.95rem;
    color: var(--text-color-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.campaign-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
}

.campaign-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.campaign-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.campaign-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.5);
}

@media (max-width: 768px) {
    .campaign-overlay {
        bottom: 16px;
        right: 16px;
        width: calc(100% - 32px);
    }
}

/* ── Social Share ── */
.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.share-btn svg {
    color: inherit;
    transition: color 0.3s ease;
}

.share-btn:hover {
    background: var(--accent);
    color: var(--bg-primary) !important;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15); /* Neutral shadow instead of green */
}

.share-btn:hover svg {
    color: var(--bg-primary) !important;
}

.share-btn.copied {
    background: var(--accent);
    color: var(--bg-primary) !important;
    border-color: var(--accent);
}

.share-btn.copied svg {
    color: var(--bg-primary) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CANVAS PLAYGROUND — Draw / Write overlay
   ═══════════════════════════════════════════════════════════════ */

#playground-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  touch-action: none;
}
#playground-canvas.active {
  pointer-events: auto;
}

/* ── Floating Toolbar ── */
#playground-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 6px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="dark"] #playground-toolbar {
  background: rgba(30,30,46,0.92);
  border-color: rgba(255,255,255,0.08);
}

/* Toggle button */
.pg-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #6B7280);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.pg-toggle:hover { background: rgba(99,102,241,0.1); color: #6366F1; }
.pg-toggle.active { background: rgba(99,102,241,0.1); color: #6366F1; }

/* Tools panel (hidden by default) */
.pg-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
#playground-toolbar.open .pg-tools {
  max-width: 700px;
  opacity: 1;
  overflow: visible;
}

/* Tool buttons */
.pg-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #6B7280);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.pg-btn:hover { background: rgba(99,102,241,0.1); color: #6366F1; }
.pg-btn.active { background: #6366F1; color: #fff; }
.pg-btn-danger:hover { background: rgba(239,68,68,0.1); color: #EF4444; }

/* Color swatches */
.pg-colors {
  display: flex;
  gap: 4px;
  padding: 0 4px;
}
.pg-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.pg-color:hover { transform: scale(1.2); }
.pg-color.active { border-color: #6366F1; transform: scale(1.15); }

/* Divider */
.pg-divider {
  width: 1px;
  height: 24px;
  background: rgba(0,0,0,0.08);
  margin: 0 4px;
  flex-shrink: 0;
}
[data-theme="dark"] .pg-divider { background: rgba(255,255,255,0.1); }

/* Size slider */
.pg-size-wrap { padding: 0 6px; flex-shrink: 0; }
.pg-size {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.1);
  outline: none;
  cursor: pointer;
}
.pg-size::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6366F1;
  cursor: pointer;
  border: none;
}
.pg-size::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6366F1;
  cursor: pointer;
  border: none;
}

/* Sticky Note */
.pg-sticky-note {
  position: absolute;
  z-index: 9999;
  width: 180px;
  min-height: 180px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.08);
  border-radius: 4px 4px 16px 4px;
  display: flex;
  flex-direction: column;
  transform: rotate(-1deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}
.pg-sticky-note:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.12);
  z-index: 10000;
}
.pg-sticky-content {
  flex-grow: 1;
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  padding: 24px 16px 16px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
}
.pg-sticky-content::placeholder {
  color: inherit;
  opacity: 0.6;
}
.pg-sticky-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.pg-sticky-note:hover .pg-sticky-delete {
  opacity: 0.6;
}
.pg-sticky-delete:hover {
  opacity: 1 !important;
  background: rgba(128,128,128,0.2);
}
/* Send button styling */
.pg-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--text-main, #111);
  color: var(--bg-primary, #fff);
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-family: var(--font-main, 'Space Grotesk', sans-serif);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  height: 36px;
  margin-left: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.pg-btn-send:hover { 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: var(--accent, #6366F1);
  color: #fff;
}
[data-theme="dark"] .pg-btn-send {
  background: var(--accent, #6366F1);
  color: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #playground-toolbar {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 18px;
    padding: 8px;
    max-width: 92vw;
    box-sizing: border-box;
  }
  #playground-toolbar.open {
    flex-direction: column;
    align-items: stretch;
  }
  #playground-toolbar.open .pg-tools {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 6px;
    padding: 6px 0;
    overflow: visible;
  }
  .pg-toggle {
    align-self: center;
  }
  .pg-divider {
    display: none;
  }
  .pg-colors {
    gap: 6px;
    justify-content: center;
  }
  .pg-color { width: 22px; height: 22px; }
  .pg-size { width: 60px; }
  .pg-size-wrap { display: flex; align-items: center; }
  .pg-btn-send {
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: 0;
    border-radius: 10px;
  }
  .pg-btn-send span {
    display: none;
  }
}

/* Canvas Toast Notification */
.pg-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10B981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pg-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}
.progress-ring__progress {
  stroke-dasharray: 125.6; /* 2 * pi * 20 */
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.1s linear;
}
.scroll-icon {
  width: 20px;
  height: 20px;
  color: #111;
  z-index: 2;
}

[data-theme="dark"] .scroll-to-top {
  background: #1E1E2E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .progress-ring__circle {
  stroke: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .progress-ring__progress {
  stroke: #ffffff;
}
[data-theme="dark"] .scroll-icon {
  color: #fff;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 24px;
    right: 24px;
  }
}
