/* === GLOBAL RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === UNIVERSAL BOX SIZING === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background: #000000;
  color: #e0dfdc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100vw;
}

/* === CONTAINER === */
.container {
  max-width: min(1400px, 100%);  /* Increased from 1140px to fill 1400px screens with 4-column layout */
  margin: 0 auto;
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
  width: 100%;
  box-sizing: border-box;
}

/* === SECTION PADDING & BACKGROUND === */
section {
  padding: 6rem 0;
  background: var(--featured-gradient-end);
  position: relative;
  z-index: 9999999;
}

.featured-works{
background: linear-gradient(to bottom, var(--featured-gradient-start) 0%, var(--featured-gradient-end) 100%);
}

/* SVG definitions element */
.svg-defs {
  position: absolute;
  height: 0;
  width: 0;
}

/* === HEADINGS === */
h2.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand-gradient-start), var(--brand-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
  margin-bottom: 1rem;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  font-weight: 400;
  text-align: left;
  color: #ccc;
  opacity: 0.85;
  max-width: 600px;
  margin-bottom: 2rem;
}

p {
  font-weight: 400;
}

/* === UTILITY CLASSES === */
.text-light-emphasis {
  color: rgba(255, 255, 255, 0.757);
}

/* === RESPONSIVE BOOTSTRAP UTILITIES === */
/* These use the responsive font-size variables for consistent scaling */
.h5 {
  font-size: var(--font-size-lg);
}

.fs-5 {
  font-size: var(--font-size-sm);
}

small {
  font-size: var(--font-size-xs);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
}

.gradient-text {
  position: relative;
  display: inline-block;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  width: auto;
}

/* Ensure left alignment is maintained for section titles */
.text-start.gradient-text {
  text-align: left !important;
  display: block;
}

.gradient-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffd166, #f68031);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradientCrossfade1 16s ease-in-out infinite;
  z-index: 1;
  line-height: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #9b59b6, #e74c3c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradientCrossfade2 16s ease-in-out infinite;
  z-index: 1;
  line-height: inherit;
  font-size: inherit;
  font-weight: inherit;
}

@keyframes textGradientCrossfade1 {
  0% { opacity: 1; }
  25% { opacity: 0.3; }
  50% { opacity: 0; }
  75% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes textGradientCrossfade2 {
  0% { opacity: 0; }
  25% { opacity: 0.7; }
  50% { opacity: 1; }
  75% { opacity: 0.3; }
  100% { opacity: 0; }
}

.gradient-text-subtitle {
  position: relative;
  display: inline-block;
  font-weight: 600;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

/* Ensure proper alignment for subtitle gradients */
.text-start .gradient-text-subtitle {
  text-align: left;
}

.text-center .gradient-text-subtitle {
  text-align: center;
}

.text-md-start .gradient-text-subtitle {
  text-align: center;
}

@media (min-width: 768px) {
  .text-md-start .gradient-text-subtitle {
    text-align: left;
  }
}

.gradient-text-subtitle::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ffd166, #f68031);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradientCrossfade1 16s ease-in-out infinite;
  z-index: 1;
  line-height: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.gradient-text-subtitle::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #9b59b6, #e74c3c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradientCrossfade2 16s ease-in-out infinite;
  z-index: 1;
  line-height: inherit;
  font-size: inherit;
  font-weight: inherit;
}