/* ===== SONEW DESIGN - Main Stylesheet ===== */

:root {
    --primary: #f30000;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
}

h1, h2, h3, .heading-font {
    font-family: 'Outfit', sans-serif;
}

/* ---- Grid background ---- */
.bg-grid-pattern {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
}

/* ---- Glass Nav ---- */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---- Hero glow ---- */
.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(243, 0, 0, 0.06) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Text Switcher ---- */
.text-switcher {
    display: inline-block;
    position: relative;
    vertical-align: top;
    overflow: hidden;
    height: 1.2em;
}
.switcher-item {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    white-space: nowrap;
}
.switcher-item.active {
    transform: translateY(0);
    position: relative;
}
.switcher-item.exit {
    transform: translateY(-100%);
}

/* ---- Chat Widget ---- */
#chat-widget {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.chat-message.user {
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
    margin-left: auto;
}
.chat-message.ai {
    background-color: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 2px;
}

/* ---- Typing dots ---- */
.dot-pulse {
    position: relative;
    left: -9999px;
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background-color: var(--primary);
    color: var(--primary);
    box-shadow: 9999px 0 0 0 var(--primary);
    animation: dot-pulse 1.5s infinite linear;
}
@keyframes dot-pulse {
    0%       { box-shadow: 9999px 0 0 -5px var(--primary); }
    30%      { box-shadow: 9999px 0 0  2px var(--primary); }
    60%, 100%{ box-shadow: 9999px 0 0 -5px var(--primary); }
}

/* ---- Work card zoom ---- */
.work-card img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover img {
    transform: scale(1.08);
}

/* ---- Custom logo override ---- */
.custom-logo-link img {
    height: 40px;
    width: auto;
}

/* ---- WP admin bar offset ---- */
.admin-bar #main-nav {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar #main-nav {
        top: 46px;
    }
}
