/* SINKHRON - Base Styles and Design System Variables */
/* ================================================= */

/* Font Import - Gilroy Font Family */
@font-face {
  font-family: 'Gilroy-Extrabold';
  src: url('../fonts/Gilroy/Gilroy-Extrabold.woff2') format('woff2'),
       url('../fonts/Gilroy/Gilroy-Extrabold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy-Medium';
  src: url('../fonts/Gilroy/Gilroy-Medium.woff2') format('woff2'),
       url('../fonts/Gilroy/Gilroy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy-Mediumitalic';
  src: url('../fonts/Gilroy/Gilroy-MediumItalic.woff2') format('woff2'),
       url('../fonts/Gilroy/Gilroy-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy-Semibold';
  src: url('../fonts/Gilroy/Gilroy-Semibold.woff2') format('woff2'),
       url('../fonts/Gilroy/Gilroy-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy-Light';
  src: url('../fonts/Gilroy/Gilroy-Light.woff2') format('woff2'),
       url('../fonts/Gilroy/Gilroy-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ================================================= */
/* CSS CUSTOM PROPERTIES - DESIGN SYSTEM */
/* ================================================= */

/* Design System Variables */
:root {
  /* Typography */
  --font-primary-GEB: 'Gilroy-Extrabold', sans-serif;
  --font-primary-GSB: 'Gilroy-Semibold', sans-serif;
  --font-primary-GMB: 'Gilroy-Medium', sans-serif;
  --font-primary-GMBI: 'Gilroy-MediumItalic', sans-serif;
  --font-primary-GLB: 'Gilroy-Light', sans-serif;

  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Color Palette */
  --color-brightly-orange: #f43a09;
  --color-grandpa-orange: #ffb766;
  --color-grey-blue-green: #c2edda;
  --color-live-green: #68d388;
  
  /* Semantic Colors */
  --color-primary: var(--color-brightly-orange);
  --color-secondary: var(--color-brightly-orange);
  --color-accent: var(--color-live-green);
  --color-neutral: var(--color-grey-blue-green);
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fbff;
  --bg-tertiary: var(--color-grey-blue-green);
  --bg-card: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.95);
  --bg-footer: rgba(255, 255, 255, 0.98);
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;
  
  /* Border Colors */
  --border-color: rgba(194, 237, 218, 0.3);
  --border-light: rgba(194, 237, 218, 0.15);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--color-brightly-orange) 0%, var(--color-grandpa-orange) 50%, var(--color-live-green) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(194, 237, 218, 0.1) 100%);
  --gradient-section: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(194, 237, 218, 0.2) 100%);
  --gradient-navbar: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  --gradient-footer: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(194, 237, 218, 0.3) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(244, 58, 9, 0.1);
  --shadow-md: 0 4px 12px rgba(244, 58, 9, 0.15);
  --shadow-lg: 0 8px 24px rgba(244, 58, 9, 0.2);
  --shadow-xl: 0 16px 40px rgba(244, 58, 9, 0.25);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius Scale */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* Transition Durations */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  
  /* Easing Functions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Modern Shape Design Variables */
  --shape-curve-sm: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  --shape-curve-md: polygon(0 0, 100% 0, 100% 92%, 70% 100%, 30% 100%, 0 92%);
  --shape-curve-compact: polygon(0 0, 100% 0, 100% 90%, 80% 95%, 20% 95%, 0 90%);
  --shape-wave: polygon(0 0, 100% 0, 100% 80%, 90% 85%, 80% 90%, 70% 95%, 60% 90%, 50% 85%, 40% 90%, 30% 95%, 20% 90%, 10% 85%, 0 80%);
  
  /* Backdrop Filters */
  --backdrop-blur-sm: blur(8px);
  --backdrop-blur-md: blur(16px);
  --backdrop-blur-lg: blur(24px);
  
  /* Advanced Shadows for Shape Design */
  --shadow-glow-sm: 0 4px 20px rgba(244, 58, 9, 0.15), 0 1px 3px rgba(244, 58, 9, 0.1);
  --shadow-glow-md: 0 8px 32px rgba(244, 58, 9, 0.2), 0 2px 6px rgba(244, 58, 9, 0.1);
  --shadow-glow-lg: 0 16px 48px rgba(244, 58, 9, 0.25), 0 4px 12px rgba(244, 58, 9, 0.15);
  --shadow-inner: inset 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.06);
  
  /* Morphing Gradients for Header */
  --gradient-header-shape: linear-gradient(135deg, rgba(244, 58, 9, 0.95) 0%, rgba(255, 183, 102, 0.9) 35%, rgba(194, 237, 218, 0.85) 70%, rgba(255, 255, 255, 0.9) 100%);
  --gradient-menu-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(194, 237, 218, 0.6) 50%, rgba(255, 183, 102, 0.4) 100%);
  --gradient-button-shape: linear-gradient(135deg, var(--color-brightly-orange) 0%, var(--color-grandpa-orange) 100%);
  
  /* Animation Timing Variables */
  --duration-micro: 0.1s;
  --duration-quick: 0.2s;
  --duration-smooth: 0.4s;
  --duration-elegant: 0.6s;
  --duration-luxurious: 0.8s;
}


/* ================================================= */
/* RESET AND BASE STYLES */
/* ================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

body {
  background: var(--gradient-section);
  color: var(--text-primary);
  font-family: var(--font-primary-GEB);
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: var(--font-weight-medium);
  transition: all 0.4s var(--ease-out);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-top: 80px; /* Account for fixed header */
}

/* ================================================= */
/* TYPOGRAPHY SYSTEM */
/* ================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary-GEB);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color var(--duration-normal) ease;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: var(--font-weight-semibold);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--font-weight-medium);
}

h5 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-light);
  font-family: var(--font-primary-GLB);
}

.lead {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  line-height: 1.7;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0;
}

/* ================================================= */
/* UTILITY CLASSES */
/* ================================================= */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }

.font-light { font-weight: var(--font-weight-light); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Background Utilities */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-card { background: var(--bg-card); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.m-1 { margin: var(--space-xs); }
.mt-1 { margin-top: var(--space-xs); }
.mb-1 { margin-bottom: var(--space-xs); }

.m-2 { margin: var(--space-sm); }
.mt-2 { margin-top: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-sm); }

.m-3 { margin: var(--space-md); }
.mt-3 { margin-top: var(--space-md); }
.mb-3 { margin-bottom: var(--space-md); }

.m-4 { margin: var(--space-lg); }
.mt-4 { margin-top: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-lg); }

.m-5 { margin: var(--space-xl); }
.mt-5 { margin-top: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

.p-1 { padding: var(--space-xs); }
.pt-1 { padding-top: var(--space-xs); }
.pb-1 { padding-bottom: var(--space-xs); }

.p-2 { padding: var(--space-sm); }
.pt-2 { padding-top: var(--space-sm); }
.pb-2 { padding-bottom: var(--space-sm); }

.p-3 { padding: var(--space-md); }
.pt-3 { padding-top: var(--space-md); }
.pb-3 { padding-bottom: var(--space-md); }

.p-4 { padding: var(--space-lg); }
.pt-4 { padding-top: var(--space-lg); }
.pb-4 { padding-bottom: var(--space-lg); }

.p-5 { padding: var(--space-xl); }
.pt-5 { padding-top: var(--space-xl); }
.pb-5 { padding-bottom: var(--space-xl); }

/* Flexbox Utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* Border Utilities */
.border { border: 1px solid var(--border-color); }
.border-light { border: 1px solid var(--border-light); }
.border-0 { border: 0; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 50%; }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* Position Utilities */
.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* ================================================= */
/* BUTTON SYSTEM */
/* ================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary-GEB);
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

/* Override Bootstrap Button Styles Globally */
.btn-primary {
  background: var(--gradient-button-shape) !important;
  color: var(--text-inverse) !important;
  border-color: var(--color-primary) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-grandpa-orange) 0%, var(--color-brightly-orange) 100%) !important;
  color: var(--text-inverse) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:focus,
.btn-primary:focus-visible {
  background: var(--gradient-button-shape) !important;
  color: var(--text-inverse) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 58, 9, 0.25) !important;
}

.btn-primary:active,
.btn-primary.active {
  background: linear-gradient(135deg, var(--color-grandpa-orange) 0%, var(--color-brightly-orange) 100%) !important;
  color: var(--text-inverse) !important;
  border-color: var(--color-primary) !important;
}

.btn-outline-primary {
  background: transparent !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.btn-outline-primary:hover {
  background: var(--gradient-button-shape) !important;
  color: var(--text-inverse) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  background: transparent !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 58, 9, 0.25) !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
  background: var(--gradient-button-shape) !important;
  color: var(--text-inverse) !important;
  border-color: var(--color-primary) !important;
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--text-inverse);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ================================================= */
/* FORM CONTROLS SYSTEM - Override Bootstrap */
/* ================================================= */

/* Override Bootstrap form control styles */
.form-control {
  border-color: var(--border-color) !important;
}

.form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 58, 9, 0.25) !important;
}

.form-select {
  border-color: var(--border-color) !important;
}

.form-select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 58, 9, 0.25) !important;
}

.form-check-input:checked {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.form-check-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 58, 9, 0.25) !important;
}

/* Input group styles */
.input-group .form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 58, 9, 0.25) !important;
}

/* ================================================= */
/* CARD SYSTEM */
/* ================================================= */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--gradient-card);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

/* ================================================= */
/* RESPONSIVE UTILITIES */
/* ================================================= */

/* Mobile First Breakpoints */
@media (min-width: 576px) {
  body { padding-top: 75px; }
}

@media (min-width: 768px) {
  body { padding-top: 80px; }
}

@media (min-width: 992px) {
  body { padding-top: 85px; }
}

@media (min-width: 1200px) {
  body { padding-top: 90px; }
}

/* Hide/Show on different screen sizes */
@media (max-width: 575.98px) {
  .d-sm-none { display: none; }
}

@media (max-width: 767.98px) {
  .d-md-none { display: none; }
}

@media (max-width: 991.98px) {
  .d-lg-none { display: none; }
  body { padding-top: 70px; }
}

@media (min-width: 576px) {
  .d-sm-block { display: block; }
}

@media (min-width: 768px) {
  .d-md-block { display: block; }
}

@media (min-width: 992px) {
  .d-lg-block { display: block; }
}

/* ================================================= */
/* PRINT STYLES */
/* ================================================= */

@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  .main-nav {
    display: none;
  }
  
  body {
    padding-top: 0;
  }
}

/* ================================================= */
/* PREVENT HORIZONTAL OVERFLOW - GLOBAL PROTECTION */
/* ================================================= */

/* Prevent horizontal overflow in containers - EXCLUDING hero section */
.clients-partners-section .container,
.clients-partners-section .container-fluid,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.row {
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Specific overflow protection for problematic sections */
.clients-partners-section,
.graduates-section,
.sections-container {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Hero section specific protection (preserve its styling) */
.hero-section {
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}