/* Renamed from site.css — base styles for the project
   Keep global layout, theme variables and large component groups here.
   Individual components and utilities should live in separate files under
   /wwwroot/css/components and /wwwroot/css/utilities.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(99, 102, 241, 0.4);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e2e8f0;
  background: #0f172a;
  background-attachment: fixed;
}

.fullscreen-body {
    margin-bottom: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.fullscreen-body main {
    min-height: 100vh;
    width: 100vw;
}

/* Custom scrollbar for modern look */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Modern typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted-900);
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.25rem; font-weight: 800; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

p {
  line-height: 1.7;
  color: #475569;
}

a {
  color: var(--brand-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-600);
}

/* Accessibility: Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: #6366f1; /* Using hex directly to ensure visibility before variable load if any */
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s ease;
  border-bottom-right-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Theme variables for modern premium look */
:root {
  --brand-500: #818cf8; /* softer indigo */
  --brand-600: #6366f1;
  --brand-700: #4f46e5;
  --brand-50: #f5f7ff;
  --brand-100: #eef2ff;
  --muted-100: #f8fafc;
  --muted-200: #e2e8f0;
  --muted-800: #1e293b;
  --muted-900: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.9);
  --accent: #818cf8;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.015);
}

.hero {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.02) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(10px);
}

.hero .display-5 {
  color: var(--muted-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card {
  border: none;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card h5, .card h3 {
  color: var(--muted-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  box-shadow: var(--shadow-md);
  color: white;
  font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--muted-200);
  padding: 2rem 0;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.02);
}

/* Make images in hero look consistent */
.hero img {
  max-width: 100%;
  height: auto;
}

/* Split Viewport Layout */
.split-viewport {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}


@media (max-width: 768px) {
    .split-viewport {
        flex-direction: column;
        min-height: auto;
    }
    .split-section {
        min-height: 300px;
    }
}

.split-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    cursor: pointer;
}

/* Interaction: Grow on hover */
@media (min-width: 769px) {
    .split-section:hover, 
    .split-section.focused {
        flex: 1.5;
    }
}

.split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 1;
}

.split-section:hover .split-bg,
.split-section.focused .split-bg {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.split-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 350px;
}

.split-icon {
    transition: transform 0.4s ease;
    opacity: 0.9;
}

.split-section:hover .split-icon {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
}

.logo-box {

    display: inline-flex;
    flex-wrap: wrap;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    padding: 8px;
    justify-content: center;
    align-items: center;
}

.logo-box span {
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    line-height: 1.1;
    letter-spacing: 2px;
    word-break: break-all;
}

.dynamic-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}

.split-title {

    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white !important;
}

.split-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

@media (min-width: 769px) {
    .split-description {
        opacity: 0;
    }
    .split-section:hover .split-description,
    .split-section.focused .split-description {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .split-description {
        opacity: 1;
        transform: translateY(0);
    }
}

.split-link {
    color: white;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s;
}

.split-link:hover {
    color: white;
    border-color: white;
}

/* Color schemes mimicking the screenshot style */
.split-praxis .split-bg {
    background-color: rgba(0,123,255,0.4);
    background-size: cover;
}

.split-praxis .logo-box { border-color: #00d2ff; }
.split-praxis .split-title { color: #00d2ff !important; }

.split-jobs .split-bg {
    background-color: rgba(46,204,113,0.4);
    background-size: cover;
}

.split-jobs .logo-box { border-color: #2ecc71; }
.split-jobs .split-title { color: #2ecc71 !important; }


.split-legal .split-bg {
    background-color: rgba(108,117,125,0.4);
    background-size: cover;
}

.split-legal .logo-box { border-color: #adb5bd; }
.split-legal .split-title { color: #adb5bd !important; }
