@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-red: #ad4151;
    --primary-blue: #6B7C93;
    /* Extracted from "Group" text color */
    --steel-gray: #F0F4F8;
    --text-dark: #1F2937;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    /* Mobile Safari / iOS Fix */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

.text-mitra-red {
    color: var(--primary-red);
}

.bg-mitra-red {
    background-color: var(--primary-red);
}

.text-mitra-blue {
    color: var(--primary-blue);
}

/* Custom Utilities */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger Effects */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.is-visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .stagger-item:nth-child(1) {
    transition-delay: 0.1s;
}

.is-visible .stagger-item:nth-child(2) {
    transition-delay: 0.2s;
}

.is-visible .stagger-item:nth-child(3) {
    transition-delay: 0.3s;
}

.is-visible .stagger-item:nth-child(4) {
    transition-delay: 0.4s;
}

.is-visible .stagger-item:nth-child(5) {
    transition-delay: 0.5s;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card & Button Interactions */
.hover-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hover:hover::after {
    width: 300%;
    height: 300%;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15) !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Tailwind v3-Only Classes (Manual Polyfill)
   Classes not available in Tailwind v2 CDN
   ============================================ */

/* --- Opacity Modifier Backgrounds --- */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}
.bg-white\/15 {
    background-color: rgba(255, 255, 255, 0.15);
}
.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}
.bg-white\/85 {
    background-color: rgba(255, 255, 255, 0.85);
}
.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}
.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.hover\:bg-white\/20:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Opacity Modifier Borders --- */
.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Custom Color with Opacity --- */
.bg-mitra-blue\/10 {
    background-color: rgba(107, 124, 147, 0.1);
}
.bg-blue-50\/50 {
    background-color: rgba(239, 246, 255, 0.5);
}

/* --- Backdrop Blur --- */
.backdrop-blur {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.backdrop-blur-md {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* --- Drop Shadow --- */
.drop-shadow-2xl {
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* --- Scroll Margin --- */
.scroll-mt-24 {
    scroll-margin-top: 6rem;
}

/* --- Arbitrary Values --- */
.text-\[6px\] {
    font-size: 6px;
}
.h-\[500px\] {
    height: 500px;
}

/* --- Rounded XL (not in TW2) --- */
.rounded-xl {
    border-radius: 0.75rem;
}
.rounded-2xl {
    border-radius: 1rem;
}

/* --- Ring Utilities --- */
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(173, 65, 81, 0.3);
}
.focus\:ring-red-200:focus {
    box-shadow: 0 0 0 3px rgba(254, 202, 202, 0.5);
}
.focus\:ring-mitra-red:focus {
    box-shadow: 0 0 0 3px rgba(173, 65, 81, 0.3);
}
.focus\:border-mitra-red:focus {
    border-color: #ad4151;
}
.focus\:ring-indigo-200:focus {
    box-shadow: 0 0 0 3px rgba(199, 210, 254, 0.5);
}
.focus\:ring:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.focus\:ring-blue-200:focus {
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.5);
}

/* --- Shadow Utilities (TW3 additions) --- */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Space and sizing utilities not in TW2 --- */
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.5rem;
}
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.75rem;
}

/* --- Text shadow for hero --- */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* --- Outline none --- */
.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* --- File Input Styling --- */
.file\:mr-4::file-selector-button {
    margin-right: 1rem;
}
.file\:py-2::file-selector-button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.file\:px-4::file-selector-button {
    padding-left: 1rem;
    padding-right: 1rem;
}
.file\:rounded-full::file-selector-button {
    border-radius: 9999px;
}
.file\:border-0::file-selector-button {
    border-width: 0;
}
.file\:text-sm::file-selector-button {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.file\:font-semibold::file-selector-button {
    font-weight: 600;
}
.file\:bg-red-50::file-selector-button {
    background-color: #fef2f2;
}
.file\:text-red-700::file-selector-button {
    color: #b91c1c;
}
.hover\:file\:bg-red-100:hover::file-selector-button {
    background-color: #fee2e2;
}
.file\:bg-gray-50::file-selector-button {
    background-color: #f9fafb;
}
.file\:text-gray-700::file-selector-button {
    color: #374151;
}
.hover\:file\:bg-gray-100:hover::file-selector-button {
    background-color: #f3f4f6;
}

/* --- Group hover (TW3 improved) --- */
.group:hover .group-hover\:bg-mitra-red {
    background-color: #ad4151;
}
.group:hover .group-hover\:text-white {
    color: #ffffff;
}

/* --- Transform utilities --- */
.hover\:scale-105:hover {
    transform: scale(1.05);
}
.hover\:scale-110:hover {
    transform: scale(1.1);
}
.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

/* --- Min-width / overflow --- */
.min-w-0 {
    min-width: 0px;
}