/* DBS DESIGNING™ Master Stylesheet 
    Consolidated Production Version 
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --lime: #E8FF8E;
    --dark: #0A0A0B;
    --card-bg: rgba(255, 255, 255, 0.03);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark);
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.text-lime { color: var(--lime); }
.bg-lime { background-color: var(--lime); }
.border-lime { border-color: var(--lime); }

/* Custom UI Elements */
.glass-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(232, 255, 142, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Fix for cutting letters (g, y, p, q) */
.ai-gradient {
    /* High-Fidelity 4-Point Gradient: Lime -> Blue -> White -> Lime */
    background: linear-gradient(90deg, 
        #E8FF8E 0%, 
        #00D1FF 33%, 
        #ffffff 66%, 
        #E8FF8E 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    display: inline-block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
    line-height: 1.1;
}
@keyframes shine {
    to { background-position: 200% center; }
}

.nav-link {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9ca3af;
    transition: color 0.3s;
}

.nav-link:hover { color: white; }

/* Chat & Scroll Styles */
.chat-scroll::-webkit-scrollbar { width: 4px; }
.chat-scroll::-webkit-scrollbar-thumb { background: rgba(232, 255, 142, 0.2); border-radius: 10px; }

/* Modal System */
.modal {
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btn-primary {
    background-color: var(--lime);
    color: black;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.75rem;
}

.btn-primary:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 30px rgba(232, 255, 142, 0.3); 
}

.service-card i { transition: transform 0.5s ease; }
.service-card:hover i { transform: rotate(15deg) scale(1.2); }

/* Hero Animation */
.hero-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 255, 142, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: move 20s infinite alternate;
}

@keyframes move {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(20%, 20%); }
}

/* Footer & Logo Slider */
.footer-ai-bg {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.footer-ai-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(at 0% 0%, hsla(70, 100%, 78%, 0.15) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(180, 100%, 50%, 0.1) 0, transparent 50%), 
        radial-gradient(at 50% 100%, hsla(70, 100%, 78%, 0.15) 0, transparent 50%);
    background-size: 200% 200%;
    animation: footerFlow 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes footerFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.footer-content { position: relative; z-index: 10; }

.footer-social {
    color: white;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-social:hover {
    color: var(--lime);
    opacity: 1;
    transform: scale(1.2);
}

.logo-slider {
    background-color: #000 !important; /* Force deep black */
    position: relative;
}

/* Remove the mask-image lines you had before */
.logo-slider {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.logo-item {
    height: 2.5rem;
    padding: 0 1.5rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
}

.logo-item:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Siri-Style Wave Animation */
.wave-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: wave-flow 8s ease-in-out infinite alternate;
}

.wave-path:nth-child(1) { animation-duration: 6s; animation-delay: -1s; }
.wave-path:nth-child(2) { animation-duration: 10s; animation-delay: -2s; }
.wave-path:nth-child(4) { animation-duration: 7s; animation-delay: -3s; }

@keyframes wave-flow {
    0% { stroke-dashoffset: 1000; transform: scaleY(0.8) translateY(10px); }
    50% { transform: scaleY(1.2) translateY(-10px); }
    100% { stroke-dashoffset: 0; transform: scaleY(1) translateY(0); }
}

@media (min-width: 768px) {
    .logo-item { height: 4rem; padding: 0 3rem; }
}

/* Portfolio Specifics */
.portfolio-card { perspective: 1200px; }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
    transition: all 0.7s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease, filter 0.8s ease;
    filter: brightness(0.6) contrast(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    pointer-events: none;
}

.tag {
    color: #E8FF8E;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.title {
    color: white;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

.glass-cta {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
}

.glass-cta:hover {
    border-color: rgba(232, 255, 142, 0.3);
    background: rgba(232, 255, 142, 0.02);
}

.portfolio-card:hover .card-inner {
    transform: translateY(-12px);
    border-color: rgba(232, 255, 142, 0.4);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.9);
}

.portfolio-card:hover .card-bg {
    transform: scale(1.1);
    filter: brightness(1) contrast(1);
}

@media (max-width: 768px) {
    .card-inner { border-radius: 24px; }
    .card-overlay { padding: 1.5rem; }
    .title { font-size: 1.5rem; }
}

/* Fix for long emails/text cutting off in chat */
.break-words {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important; /* Forces break even if no space */
    hyphens: auto;
}