/* Global Design System & Custom Components - The Oblique Group */

/* Refined Brand Palette Specifications */
:root {
    --color-primary: #0F172A;   /* Midnight Navy */
    --color-accent: #B11226;    /* Brand Crimson Red */
    --color-secondary: #B11226; /* Accent Red */
    --color-bg: #FFFFFF;        /* White */
    --color-neutral: #E5E7EB;   /* Light Gray */
    --color-text: #1F2937;      /* Charcoal */
}

/* Brand Accent Red & Section Headings */
:root {
    --color-primary: #0F172A;   /* Midnight Navy */
    --color-accent: #B11226;    /* Brand Crimson Red */
    --color-secondary: #B11226; /* Accent Red */
    --color-bg: #FFFFFF;        /* White */
    --color-neutral: #E5E7EB;   /* Light Gray */
    --color-text: #1F2937;      /* Charcoal */
}

/* Category & Section Mono Headings in Red */
.font-label-mono.text-crimson-red,
.text-crimson-red.font-label-mono,
p.font-label-mono.text-crimson-red,
span.font-label-mono.text-crimson-red {
    color: #B11226 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    letter-spacing: 0.12em !important;
}

/* All Links & Body Text Remain Black/Charcoal (Red only on Hover) */
.text-charcoal,
a.text-charcoal {
    color: #1F2937 !important;
    font-weight: 400;
}

a.text-charcoal:hover {
    color: #B11226 !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Explicit Typography Overrides matching live site */
.font-display-xl, .font-headline-lg, .font-headline-md, .font-headline-sm {
    font-family: 'Space Grotesk', sans-serif !important;
}

.font-body-lg, .font-body-md {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
}

.text-display-xl {
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
}

@media (max-width: 768px) {
    .text-display-xl {
        font-size: 36px !important;
    }
}

.text-headline-lg {
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
}

@media (max-width: 768px) {
    .text-headline-lg {
        font-size: 32px !important;
    }
}

.text-headline-md {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.text-headline-sm {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.text-body-lg {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.text-body-md {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glassmorphism & Card Components */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-neutral);
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.04);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-neutral);
}

.glass-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Custom Background Patterns & Glow Effects */
.hero-gradient {
    background: radial-gradient(120% 120% at 50% 10%, rgba(177, 18, 38, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.bg-grid-pattern {
    background-size: 30px 30px;
    background-image: linear-gradient(to right, rgba(229, 231, 235, 0.6) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(229, 231, 235, 0.6) 1px, transparent 1px);
}

.soft-glow {
    box-shadow: 0 0 80px -20px rgba(177, 18, 38, 0.25);
}

/* Micro-interactions & Animations */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-8px);
}

.floating-ui-card {
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.04);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-ui-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 50px 120px -20px rgba(15, 23, 42, 0.08);
}

.text-stroke {
    -webkit-text-stroke: 1px currentColor;
    color: transparent;
}

.oblique-mask {
    clip-path: polygon(10% 0, 100% 0%, 90% 100%, 0% 100%);
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-entry {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Custom Inputs */
.architectural-input {
    border: none;
    border-bottom: 1px solid #1F2937;
    background: transparent;
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.architectural-input:focus {
    outline: none;
    border-bottom-color: #B11226;
    box-shadow: 0 2px 0 0 rgba(177, 18, 38, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
    background: #0F172A;
    border-radius: 9999px;
}

/* Smooth Floating Animation for Widgets */
@keyframes oblique-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.03); }
}
.animate-oblique-float {
  animation: oblique-float 3s ease-in-out infinite;
}

/* Hero Slash Brand Mark - 3D Rotate + Float */
@keyframes float {
  0%   { transform: perspective(900px) rotateY(0deg)   translateY(0px); }
  25%  { transform: perspective(900px) rotateY(90deg)  translateY(-10px); }
  50%  { transform: perspective(900px) rotateY(180deg) translateY(0px); }
  75%  { transform: perspective(900px) rotateY(270deg) translateY(-10px); }
  100% { transform: perspective(900px) rotateY(360deg) translateY(0px); }
}
.animate-float {
  animation: float 8s linear infinite;
  transform-style: preserve-3d;
}

/* Dedicated Smooth Float for Hero Video */
@keyframes video-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(0.5deg); }
}
.animate-video-float {
  animation: video-float 4s ease-in-out infinite;
}

/* Orbit Ring Spin Animations */
@keyframes orbit-spin-cw {
  from { transform: rotateX(22deg) rotateZ(0deg); }
  to   { transform: rotateX(22deg) rotateZ(360deg); }
}
@keyframes orbit-spin-ccw {
  from { transform: rotateY(30deg) rotateZ(0deg); }
  to   { transform: rotateY(30deg) rotateZ(-360deg); }
}
@keyframes orbit-dot {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orbit-ring-1    { animation: orbit-spin-cw  12s linear infinite; }
.orbit-ring-2    { animation: orbit-spin-ccw 18s linear infinite; }
.orbit-dot-track { animation: orbit-dot      12s linear infinite; }

/* Horizontal Infinite Scrolling Marquee */
@keyframes oblique-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-oblique-marquee {
  display: flex;
  width: max-content;
  animation: oblique-marquee 30s linear infinite;
}
.animate-oblique-marquee:hover {
  animation-play-state: paused;
}

/* Soft Edge Fade Mask for Tickers */
.mask-fade-edges {
  mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

/* Industries We Serve Grid: Uniform Card Heights on MD/LG Screens */
@media (min-width: 768px) {
  .industry-grid > div {
    min-height: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
}
