/* ============================================
   AMSTEL ADVISORY - DUTCH BFSI DESIGN SYSTEM
   Premium Enterprise-Grade Financial Website
   ============================================ */

/* GOOGLE FONTS - PREMIUM TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* AVENIR FONT STACK - System Fonts + Web Fallback */
@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next'), local('Avenir'), local('-apple-system'), local('BlinkMacSystemFont'),
    local('Segoe UI'), local('Helvetica Neue'), local('sans-serif');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next'), local('Avenir'), local('-apple-system'), local('BlinkMacSystemFont'),
    local('Segoe UI'), local('Helvetica Neue'), local('sans-serif');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next'), local('Avenir'), local('-apple-system'), local('BlinkMacSystemFont'),
    local('Segoe UI'), local('Helvetica Neue'), local('sans-serif');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next'), local('Avenir'), local('-apple-system'), local('BlinkMacSystemFont'),
    local('Segoe UI'), local('Helvetica Neue'), local('sans-serif');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir';
  src: local('Avenir Next'), local('Avenir'), local('-apple-system'), local('BlinkMacSystemFont'),
    local('Segoe UI'), local('Helvetica Neue'), local('sans-serif');
  font-weight: 700;
  font-style: normal;
}

/* ============================================
   DESIGN TOKENS - NETHERLANDS BFSI PALETTE
   ============================================ */

:root {
  /* Primary Colors - Dutch Financial Palette */
  --primary-blue: hsl(200, 65%, 55%);
  --primary-teal: hsl(180, 50%, 50%);
  --primary-soft-blue: hsl(205, 70%, 92%);

  /* Secondary Colors */
  --secondary-grey: hsl(220, 10%, 96%);
  --secondary-light: hsl(0, 0%, 98%);
  --off-white: hsl(210, 20%, 98%);

  /* Accent Colors */
  --accent-navy: hsl(215, 50%, 25%);
  --accent-forest: hsl(155, 40%, 30%);
  --accent-highlight: hsl(200, 80%, 45%);

  /* Neutral Tones */
  --neutral-50: hsl(220, 15%, 98%);
  --neutral-100: hsl(220, 12%, 95%);
  --neutral-200: hsl(220, 10%, 90%);
  --neutral-300: hsl(220, 8%, 75%);
  --neutral-400: hsl(220, 6%, 60%);
  --neutral-500: hsl(220, 5%, 45%);
  --neutral-600: hsl(220, 8%, 30%);
  --neutral-700: hsl(220, 10%, 20%);
  --neutral-800: hsl(220, 12%, 12%);
  --neutral-900: hsl(220, 15%, 8%);

  /* Typography Colors */
  --text-primary: hsl(220, 15%, 12%);
  --text-secondary: hsl(220, 15%, 28%);
  --text-muted: hsl(220, 12%, 40%);
  --text-light: hsl(220, 5%, 70%);
  --text-white: hsl(0, 0%, 100%);

  /* Gradients - Premium BFSI */
  --gradient-hero: linear-gradient(135deg,
      hsl(205, 60%, 45%) 0%,
      hsl(200, 65%, 55%) 50%,
      hsl(180, 50%, 50%) 100%);

  --gradient-subtle: linear-gradient(180deg,
      hsl(210, 20%, 98%) 0%,
      hsl(220, 15%, 96%) 100%);

  --gradient-overlay: linear-gradient(135deg,
      hsla(215, 50%, 25%, 0.9) 0%,
      hsla(200, 60%, 35%, 0.85) 100%);

  /* Spacing System - European Grid - Further Tightened */
  --spacing-xs: 0.2rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3.5rem;
  --spacing-3xl: 5rem;

  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;

  /* Shadows - Subtle Dutch Style */
  --shadow-sm: 0 1px 3px hsla(220, 10%, 20%, 0.08);
  --shadow-md: 0 4px 12px hsla(220, 10%, 20%, 0.1);
  --shadow-lg: 0 8px 24px hsla(220, 10%, 20%, 0.12);
  --shadow-xl: 0 16px 48px hsla(220, 10%, 20%, 0.15);
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Crimson Text', 'Avenir', serif;
  font-weight: 400;
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--secondary-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  letter-spacing: 0.025em;
}

#root {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.03em;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 600;
  letter-spacing: 0.035em;
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: 600;
  letter-spacing: 0.03em;
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  letter-spacing: 0.025em;
}

h4 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  letter-spacing: 0.025em;
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  font-family: 'Crimson Text', serif;
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.02em;
}

.text-large {
  font-family: 'Crimson Text', serif;
  font-size: var(--font-size-lg);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.section {
  width: 100%;
  max-width: 100%;
  padding: var(--spacing-xl) 0;
  position: relative;
  margin: 0;
  display: block;
}

.section-sm {
  padding: var(--spacing-xl) 0;
  margin: 0;
}

.section-lg {
  padding: var(--spacing-3xl) 0;
  margin: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--text-white);
  border-bottom: 1px solid var(--neutral-200);
  padding: var(--spacing-sm) 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.nav.scrolled {
  background: hsla(0, 0%, 100%, 0.98);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xs) 0;
  box-shadow: var(--shadow-md);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  /* Further reduced for tight brand unit */
  text-decoration: none;
}

.logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled .logo {
  height: 48px;
}

.nav-brand-text {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-navy);
  letter-spacing: 0.02em;
  transition: all 0.4s ease;
}

.nav.scrolled .nav-brand-text {
  color: var(--accent-navy);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--accent-navy);
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  letter-spacing: 0.025em;
  position: relative;
}

.nav.scrolled .nav-link {
  color: var(--accent-navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-teal));
  transition: width 0.3s ease-out;
}

.nav-link:hover {
  color: var(--accent-highlight);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section - Premium Background with Overlay */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px var(--spacing-lg) var(--spacing-2xl);
  overflow: hidden;
}

/* Premium Photorealistic Office Background Pattern */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Window light effect */
    linear-gradient(90deg, transparent 0%, hsla(200, 80%, 95%, 0.05) 20%, transparent 40%, hsla(200, 80%, 95%, 0.05) 60%, transparent 80%),
    /* Depth and perspective */
    linear-gradient(180deg, hsl(205, 60%, 40%) 0%, hsl(200, 65%, 50%) 30%, hsl(195, 60%, 55%) 70%, hsl(180, 50%, 45%) 100%),
    /* Subtle grid pattern simulating office structure */
    repeating-linear-gradient(0deg, transparent, transparent 100px, hsla(200, 40%, 30%, 0.03) 100px, hsla(200, 40%, 30%, 0.03) 101px),
    repeating-linear-gradient(90deg, transparent, transparent 100px, hsla(200, 40%, 30%, 0.03) 100px, hsla(200, 40%, 30%, 0.03) 101px);
  background-size: 100% 100%, 100% 100%, 100px 100px, 100px 100px;
  z-index: 0;
}

/* Dramatic Overlay for High-Contrast Text */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Vignette effect */
    radial-gradient(ellipse at center, transparent 0%, hsla(215, 50%, 20%, 0.4) 100%),
    /* Gradient overlay for depth */
    linear-gradient(135deg,
      hsla(215, 50%, 25%, 0.75) 0%,
      hsla(200, 60%, 35%, 0.7) 50%,
      hsla(180, 50%, 40%, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: var(--text-white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--spacing-lg);
  text-shadow:
    0 2px 4px hsla(220, 10%, 10%, 0.3),
    0 4px 12px hsla(220, 10%, 10%, 0.25),
    0 8px 24px hsla(220, 10%, 10%, 0.2);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.hero p {
  font-family: 'Crimson Text', serif;
  color: hsla(0, 0%, 100%, 0.95);
  font-size: var(--font-size-xl);
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  font-weight: 400;
  text-shadow: 0 2px 8px hsla(220, 10%, 10%, 0.3);
  line-height: 1.8;
  letter-spacing: 0.025em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 500;
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 3px;
  letter-spacing: 0.035em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--accent-navy);
  color: var(--text-white);
  box-shadow: 0 4px 15px hsla(215, 50%, 25%, 0.25);
}

.btn-primary:hover {
  background-color: hsl(215, 50%, 20%);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px hsla(215, 50%, 25%, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
  letter-spacing: 0.04em;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--accent-navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px hsla(0, 0%, 0%, 0.2);
}

/* Cards */
.card {
  background: var(--text-white);
  padding: var(--spacing-xl);
  border: 1px solid var(--neutral-200);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
  box-shadow: 0 16px 40px hsla(220, 10%, 20%, 0.15);
  transform: translateY(-6px);
  border-color: var(--primary-blue);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-title {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--accent-navy);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.025em;
}

.card-text {
  font-family: 'Crimson Text', serif;
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* Service Card with Visual Background */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg,
      var(--primary-soft-blue) 0%,
      var(--secondary-grey) 100%);
  z-index: 0;
}

.service-card-content {
  position: relative;
  z-index: 1;
  padding-top: var(--spacing-2xl);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-300);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: var(--text-white);
  box-shadow: 0 0 0 3px hsla(200, 65%, 55%, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Section Backgrounds */
.bg-white {
  background-color: var(--text-white);
}

.bg-light {
  background-color: var(--secondary-light);
}

.bg-grey {
  background-color: var(--secondary-grey);
}

.bg-gradient-subtle {
  background: var(--gradient-subtle);
}

/* Section Headings */
.section-label {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size-4xl);
  font-weight: 600;
  color: var(--accent-navy);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.section-description {
  font-family: 'Crimson Text', serif;
  font-size: var(--font-size-lg);
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: var(--spacing-2xl);
}

/* Portfolio/Project Styles */
.project-card {
  background: var(--text-white);
  padding: var(--spacing-xl);
  border-left: 4px solid var(--primary-blue);
  margin-bottom: var(--spacing-lg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-teal));
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
  border-left-color: var(--accent-forest);
  box-shadow: 0 12px 32px hsla(220, 10%, 20%, 0.15);
  transform: translateX(12px);
}

.project-card:hover::after {
  width: 100%;
}

.project-meta {
  display: inline-block;
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary-blue);
  background: var(--primary-soft-blue);
  padding: var(--spacing-xs) var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

/* About Section Visual with Premium Background */
.about-visual {
  background:
    /* Light rays effect */
    linear-gradient(135deg, transparent 0%, hsla(200, 80%, 90%, 0.1) 30%, transparent 60%),
    /* Main gradient */
    linear-gradient(135deg,
      hsl(205, 60%, 50%) 0%,
      hsl(200, 65%, 55%) 40%,
      hsl(195, 60%, 60%) 70%,
      hsl(180, 50%, 55%) 100%),
    /* Texture overlay */
    repeating-linear-gradient(45deg, transparent, transparent 2px, hsla(200, 40%, 40%, 0.02) 2px, hsla(200, 40%, 40%, 0.02) 4px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   STRICT SPACING & GAP ELIMINATION
   ============================================ */

/* Ultra-strict section spacing control */
section {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  box-sizing: border-box;
}

/* Ensure no body margins */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure HTML element has no gaps */
html {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove any default margins from main structural elements */
main,
article,
aside,
header,
footer,
nav {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Container padding control - only internal spacing */
.container {
  margin: 0 auto;
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

/* Ensure sections with classes maintain zero external spacing */
.section {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Background utility classes must not add margins */
.bg-white,
.bg-light,
.bg-gradient-subtle,
.bg-gradient-hero {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Full-width image containers */
.full-width-image-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

.full-width-image-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* Remove default margins from headings in sections */
section h1,
section h2,
section h3,
section h4,
section h5,
section h6 {
  margin-top: 0;
}

/* Ensure footers are full width with no margins */
footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Grid systems must not add extra spacing */
.grid,
.grid-2,
.grid-3 {
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* Ensure divs don't add unwanted spacing */
div {
  box-sizing: border-box;
}

/* Hero sections must be full width */
.hero {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Navigation must be full width */
.nav {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Remove any potential collapsing margins */
* {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Ensure no overflow creates horizontal scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ============================================
   ANIMATIONS & TRANSITIONS - PROFESSIONAL BFSI
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleInSoft {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes pulseSubtle {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1.1s ease-out forwards;
}

.animate-slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-slide-in-right {
  opacity: 0;
  animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-scale-in {
  opacity: 0;
  animation: scaleInSoft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-shimmer {
  animation: shimmer 2s ease-in-out infinite;
}

.animate-float-in {
  opacity: 0;
  animation: floatIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-pulse-subtle {
  animation: pulseSubtle 2.5s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/* Global Smooth Transitions */
.nav-link,
.btn,
.card,
.project-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Typography Uniformity */
input,
button,
textarea,
select {
  font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .container {
    padding: 0 var(--spacing-lg);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-content {
    padding: 0 var(--spacing-md);
  }

  .nav-links {
    gap: var(--spacing-md);
  }

  .hero {
    min-height: 80vh;
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: var(--font-size-lg);
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .hero p {
    font-size: var(--font-size-base);
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
}