/* Basic body styles - consider adding Tailwind CDN to HTML for full styling */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #000; /* Corresponds to --foreground-rgb: 0, 0, 0 */
  background-color: #fff; /* Corresponds to --background-start-rgb: 255, 255, 255 */
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem; /* px-4 */
}

@media (min-width: 640px) { /* sm */
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) { /* md */
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) { /* lg */
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) { /* xl */
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) { /* 2xl */
  .container {
    max-width: 1536px;
  }
}

.clip-hero {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Styles from globals.css (Tailwind base and custom) */
:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 255, 255, 255;
  --background-end-rgb: 255, 255, 255;
  
  /* ShadCN/UI variables - these would ideally be generated by Tailwind or manually mapped */
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  --radius: 0.5rem;
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}

.hero-background-clip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to right, #EFF6FF, #DBEAFE); /* from-blue-50 to-blue-100 */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    height: 90vh; /* h-[90vh] */
}

@media (min-width: 768px) { /* md */
    .hero-background-clip {
        height: 80vh; /* md:h-[80vh] */
    }
}

/* Basic button styling to mimic Tailwind */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    font-weight: 500; /* font-medium */
    border-radius: 0.5rem; /* rounded-lg */
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 300ms;
}

.button-primary {
    background-color: #2563EB; /* bg-blue-600 */
    color: white;
}
.button-primary:hover {
    background-color: #1D4ED8; /* hover:bg-blue-700 */
}

.button-secondary {
    background-color: white;
    color: #2563EB; /* text-blue-600 */
    border: 1px solid #2563EB; /* border border-blue-600 */
}
.button-secondary:hover {
    background-color: #F3F4F6; /* hover:bg-gray-100 */
}

/* Add other necessary global styles or utility classes here */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Animations for fade-in and card hover */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  60% { opacity: 0.7; transform: translateY(8px) scale(1.01); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes softSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes softScaleIn {
  from { opacity: 0.7; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.soft-slide-in {
  animation: softSlideIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.soft-scale-in {
  animation: softScaleIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.card-modern {
  box-shadow: 0 4px 24px 0 rgba(37,99,235,0.08), 0 1.5px 6px 0 rgba(0,0,0,0.03);
  border-radius: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  background: #fff;
  will-change: transform, box-shadow;
  animation: softScaleIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.card-modern:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(37,99,235,0.16), 0 3px 12px 0 rgba(0,0,0,0.06);
}

img.modern-img {
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(37,99,235,0.10);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  animation: softScaleIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
img.modern-img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.button, .button-primary, .button-secondary {
  transition: background 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: background, color, box-shadow, transform;
}
.button:active, .button-primary:active, .button-secondary:active {
  transform: scale(0.97);
}

/* Animate nav links on hover */
nav a, .nav-link {
  transition: color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: color, background, box-shadow, transform;
}
nav a:hover, .nav-link:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 2px 8px 0 rgba(37,99,235,0.10);
}

/* Animate footer social icons */
footer a {
  transition: color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: color, transform;
}
footer a:hover {
  color: #fff;
  transform: scale(1.15);
}
