/* static/css/styles.css */

/* Converting Tailwind directives to standard CSS for browser compatibility */

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Midnight Glass (For high-impact cards) */
.midnight-glass {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.stitched-card {
    position: relative;
    border: 2px dashed rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.stitched-card:hover {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.05);
    transform: translateY(-4px);
}

.code-snippet {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.625;
}

.accent-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #2563eb;
}

/* MARQUEE SYSTEM */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    min-width: 100%;
    align-items: center;
    justify-content: space-around;
    will-change: transform;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* SVG Stabilization */
.marquee-item svg {
    width: 2rem !important; /* Standardized size (w-8) */
    height: 2rem !important;
    flex-shrink: 0 !important;
    display: block;
    overflow: visible; /* Prevents clipping if paths slightly exceed viewBox */
}

.marquee-item:hover {
    transform: scale(1.05);
}

.bg-mesh-gradient {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent);
}

.bg-whatsapp {
    background-color: #25D366;
    border: 1px solid #1DA851;
}

.offer_bubble_accent_light {
    opacity: 0.2;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
}
.offer_bubble_accent_dark {
    opacity: 0.1;
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, transparent 70%);
}

.price-strike {
    text-decoration: line-through;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-slow-bounce {
    animation: bounce 4s infinite;
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.page-enter {
    animation: fade-in 0.6s ease-out forwards;
    will-change: opacity;
}

.offer-popup {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.dark .offer-popup {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .mobile-offer-snap {
        display: none !important;
        width: 260px !important;
        right: 0 !important;
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        border-radius: 1.5rem 0 0 1.5rem !important;
        border-right: none !important;
    }
}

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

.animate-marquee-news {
    display: inline-block;
    animation: marquee-news 40s linear infinite;
}

.marquee-container-news:hover .animate-marquee-news {
    animation-play-state: paused;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll-reverse {
    animation: scroll-reverse 40s linear infinite;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    width: auto;
    height: auto;
    overflow: visible;
}

.material-symbols-rounded.filled {
    font-variation-settings: 'FILL' 1;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    will-change: transform, opacity;
}

.composited-layer {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* BRAND COLORS UTILITIES (For Marquee) */
.brand-python { color: #000000 !important; } /* Black */
.dark .brand-python { color: #FFFFFF !important; }
.brand-fastapi { color: #05998B !important; }
.brand-react { color: #61DAFB !important; }
.brand-nextjs { color: #000000 !important; }
.dark .brand-nextjs { color: #FFFFFF !important; }
.brand-postgresql { color: #336791 !important; }
.brand-redis { color: #DC382D !important; }
.brand-docker { color: #000000 !important; } /* Black */
.dark .brand-docker { color: #FFFFFF !important; }
.brand-github { color: #181717 !important; } /* Black */
.dark .brand-github { color: #FFFFFF !important; }
.brand-tailwind { color: #06B6D4 !important; }
.brand-google-cloud { color: #4285F4 !important; }

/* SERVICES BRAND COLORS (Simplified to Black, Green, Blue) */
.brand-custom-software { color: #2563EB !important; } /* Blue */
.brand-web-dev { color: #000000 !important; } /* Black */
.dark .brand-web-dev { color: #FFFFFF !important; }
.brand-school-erp { color: #3B82F6 !important; } /* Blue */
.brand-whatsapp { color: #25D366 !important; } /* Green */
.brand-startup-mvp { color: #000000 !important; } /* Black */
.dark .brand-startup-mvp { color: #FFFFFF !important; }
.brand-seo { color: #10B981 !important; } /* Green */
.brand-cloud-infra { color: #2563EB !important; } /* Blue */
.brand-api-systems { color: #059669 !important; } /* Green */

/* Stylistic Price Strike */
.price-strike {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.4) !important;
}

.price-strike::after {
    content: "";
    position: absolute;
    left: -5%;
    top: 50%;
    width: 110%;
    height: 2px;
    background-color: currentColor; /* Matches the text color for a subtle, professional look */
    opacity: 0.6;
    transform: rotate(-12deg);
    border-radius: 1px;
}

.offer-amount-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}