/* Minimal Tailwind-like utilities for TIS Agentica */
/* Display */
.hidden { display: none !important; }
.lg\:block { display: block !important; }
@media (min-width: 1024px) {
    .lg\:block { display: block !important; }
    .lg\:hidden { display: none !important; }
}

/* Grid */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Flex */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-12 { gap: 3rem !important; }
.gap-16 { gap: 4rem !important; }

/* Spacing */
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-32 { padding-top: 8rem !important; padding-bottom: 8rem !important; }
.pt-12 { padding-top: 3rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-20 { margin-top: 5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Typography */
.text-center { text-align: center !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.font-black { font-weight: 900 !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-4xl { font-size: 2.25rem !important; }
.text-5xl { font-size: 3rem !important; }
.text-6xl { font-size: 3.75rem !important; }
.text-7xl { font-size: 4.5rem !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-09 { line-height: 0.9 !important; }
.italic { font-style: italic !important; }

/* Colors */
.text-white { color: #fff !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-tis-teal { color: #0097A7 !important; }

/* Background */
.bg-slate-950 { background-color: #020617 !important; }

/* Reveal animation - JS-driven via IntersectionObserver in theme.js */
/* Do NOT use CSS animation here - it conflicts with JS transforms */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed, .reveal[style*="opacity: 1"] {
    opacity: 1;
    transform: translateY(0);
}

/* Service flip card */
.service-flip-card {
    perspective: 1000px;
    height: 400px;
}
.service-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.service-flip-card:hover .service-flip-inner {
    transform: rotateY(180deg);
}
.service-front, .service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.service-back {
    transform: rotateY(180deg);
}

/* Hero section */
.min-h-80vh { min-height: 80vh !important; }
.min-h-screen { min-height: 100vh !important; }

/* Max width */
.max-w-4xl { max-width: 56rem !important; }
.max-w-7xl { max-width: 80rem !important; }

/* Buttons */
.btn-primary {
    background-color: #0097A7;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: rgba(0, 151, 167, 0.8);
}
.btn-secondary {
    border: 2px solid #0097A7;
    color: #0097A7;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-secondary:hover {
    background-color: rgba(0, 151, 167, 0.1);
}

/* Glass effect */
.glass {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

/* Additional utilities */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.overflow-x-hidden { overflow-x: hidden !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }
.z-\[-1\] { z-index: -1 !important; }
.pointer-events-none { pointer-events: none !important; }

/* Width */
.w-32 { width: 8rem !important; }
.w-40 { width: 10rem !important; }
.w-full { width: 100% !important; }
.max-w-xl { max-width: 36rem !important; }

/* Height */
.h-full { height: 100% !important; }

/* Padding */
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.p-8 { padding: 2rem !important; }

/* Margin / Spacing */
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-8 > * + * { margin-top: 2rem !important; }
.space-y-16 > * + * { margin-top: 4rem !important; }
.pt-4 { padding-top: 1rem !important; }

/* Flex */
.inline-flex { display: inline-flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-between { justify-content: space-between !important; }
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row !important; }
}
@media (min-width: 1024px) {
    .lg\:flex-nowrap { flex-wrap: nowrap !important; }
    .lg\:w-1\/2 { width: 50% !important; }
}

/* Gap */
.gap-2 { gap: 0.5rem !important; }

/* Border */
.border { border-width: 1px !important; }
.border-y { border-top-width: 1px !important; border-bottom-width: 1px !important; }
.border-t { border-top-width: 1px !important; }
.border-white-5 { border-color: rgba(255, 255, 255, 0.05) !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }

/* Aspect */
.aspect-square { aspect-ratio: 1 / 1 !important; }

/* Object */
.object-cover { object-fit: cover !important; }

/* Text sizes */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-\[10px\] { font-size: 10px !important; }

/* Tracking */
.tracking-tighter { letter-spacing: -0.05em !important; }

/* Custom colors - TIS shades */
.bg-tis-teal-10 { background-color: rgba(0, 151, 167, 0.1) !important; }
.border-tis-teal-30 { border-color: rgba(0, 151, 167, 0.3) !important; }
.text-tis-emerald { color: #10b981 !important; }
.bg-tis-emerald { background-color: #10b981 !important; }
.bg-tis-emerald-10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.border-tis-emerald-30 { border-color: rgba(16, 185, 129, 0.3) !important; }
.bg-tis-emerald-30 { background-color: rgba(16, 185, 129, 0.3) !important; }
.bg-tis-rust { background-color: #b45309 !important; }
.bg-tis-slate-700 { background-color: #334155 !important; }
.text-tis-rust { color: #b45309 !important; }

/* Background gradients */
.bg-corporate-gradient { 
    background: linear-gradient(135deg, #020617 0%, #0097A7 50%, #020617 100%) !important;
}

/* Text glow */
.text-glow-primary { text-shadow: 0 0 20px rgba(0, 151, 167, 0.5); }

/* Animations */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Buttons service */
.btn-service {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.875rem;
}
.btn-service:hover { opacity: 0.9; transform: translateY(-2px); }

/* Responsive display */
@media (min-width: 768px) {
    .md\:block { display: block !important; }
    .md\:hidden { display: none !important; }
    .md\:w-40 { width: 10rem !important; }
    .md\:text-5xl { font-size: 3rem !important; }
    .md\:text-6xl { font-size: 3.75rem !important; }
    .md\:text-7xl { font-size: 4.5rem !important; }
}
@media (max-width: 767px) {
    .hidden.md\:block { display: none !important; }
}
@media (min-width: 1024px) {
    .lg\:hidden { display: none !important; }
    .lg\:block { display: block !important; }
}

/* Text opacity */
.opacity-50 { opacity: 0.5 !important; }
.hover\:opacity-100:hover { opacity: 1 !important; }
.grayscale { filter: grayscale(100%); }
.hover\:grayscale-0:hover { filter: grayscale(0%); }
.transition-all { transition: all 0.3s; }

/* Height */
.h-3 { height: 0.75rem !important; }
.w-3 { width: 0.75rem !important; }
.h-8 { height: 2rem !important; }
.w-px { width: 1px !important; }
