/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors from Brand Pack */
  --xamai-primary: #0f4c5c;
  /* Deep Teal */
  --xamai-secondary: #5f2c82;
  /* Deep Purple */
  --xamai-accent: #49a09d;
  /* Soft Teal */
  --xamai-bg: #ffffff;
  /* Clean White */
  --xamai-neutral-bg: #f8f9fa;
  /* Soft Grey */
  --xamai-text-dark: #212529;
  --xamai-text-light: #6c757d;

  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-family-base);
  color: var(--xamai-text-dark);
  background: var(--xamai-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navbar Customization */
.navbar-xamai {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

/* Global Nav Link (Default) */
.nav-link {
  font-weight: 500;
  color: var(--xamai-text-light);
  /* Default light grey */
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--xamai-primary);
}

/* Navbar Specific Links - Inverted for White Background */
.navbar-xamai .nav-link {
  color: var(--xamai-text-light) !important;
}

.navbar-xamai .nav-link:hover {
  color: var(--xamai-primary) !important;
  /* Teal on hover */
  opacity: 1;
}

.navbar-xamai .nav-link.active {
  color: var(--xamai-primary) !important;
  font-weight: 700;
}

/* Animated Burger Menu */
.navbar-toggler {
  border: none;
  padding: 0;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.x-icon {
  width: 30px;
  height: 24px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
}

.x-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--xamai-text-dark);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.x-icon span:nth-child(1) {
  top: 0px;
}

.x-icon span:nth-child(2) {
  top: 10px;
}

.x-icon span:nth-child(3) {
  top: 20px;
}

/* Open State - Purple and Slanted X */
.navbar-toggler[aria-expanded="true"] .x-icon span {
  background: var(--xamai-secondary);
  /* Purple */
}

.navbar-toggler[aria-expanded="true"] .x-icon span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .x-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.navbar-toggler[aria-expanded="true"] .x-icon span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Sidebar Customization */
.sidebar .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--xamai-text-light);
}

.sidebar .nav-link:hover {
  background-color: rgba(15, 76, 92, 0.05);
  color: var(--xamai-primary);
}

.sidebar .nav-link.active {
  background-color: var(--xamai-primary);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 76, 92, 0.2);
}

.sidebar i {
  font-size: 1.1rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--xamai-primary);
  border-color: var(--xamai-primary);
  border-radius: 50rem;
  /* Pill shape */
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0b3844;
  /* Darker shade of primary */
  border-color: #0b3844;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--xamai-primary);
  border-color: var(--xamai-primary);
  border-radius: 50rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

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

.btn-secondary {
  background-color: var(--xamai-secondary);
  border-color: var(--xamai-secondary);
  border-radius: 50rem;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #4a2266;
  border-color: #4a2266;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  color: var(--xamai-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--xamai-primary), var(--xamai-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--xamai-text-light);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
  border: none;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(15, 76, 92, 0.1);
  border-color: transparent;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.bg-soft-teal {
  background-color: rgba(73, 160, 157, 0.1);
  color: var(--xamai-primary);
}

.bg-soft-purple {
  background-color: rgba(95, 44, 130, 0.1);
  color: var(--xamai-secondary);
}

/* Tutor Section */
.tutor-section {
  background-color: var(--xamai-neutral-bg);
  padding: 5rem 0;
  border-radius: 2rem;
  margin: 4rem 0;
}

.tutor-highlight {
  position: relative;
  padding: 3rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  background-color: var(--xamai-primary);
  color: rgba(255, 255, 255, 0.8);
}