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

/* Global Variables Using the Three Colours */
:root {
  --bg-color: #dbf2fb;           /* Light Blue Background */
  --text-color: #2c8ca8;         /* Dark Teal for Regular Text */
  --accent-color: #5927e5;       /* Vibrant Purple Accent */
  --header-bg: var(--accent-color);  /* Header Background: Purple */
  --header-text: var(--bg-color);    /* Header Text: Light Blue */
  --transition-speed: 0.3s;
}

/* Base Styles */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  margin: 0;
  padding: 0;
}

/* Navbar Styling */
.navbar {
  background-color: var(--accent-color) !important;
}

/* Ensure every link, text, and icon in the navbar remains white by default */
.navbar a,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-item {
  color: #fff !important;
}

/* Force SVG icons and any nested elements within navbar-brand to inherit white */
.navbar-brand svg,
.navbar-brand * {
  fill: #fff;
}

/* (Optional) Keep hover state white with no change */
.navbar a:hover {
  color: #fff !important;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
  background-color: var(--accent-color) !important;
}
.navbar .dropdown-item {
  transition: transform 0.3s ease;
}
.navbar .dropdown-item:hover {
  transform: scale(1.25);
  background-color: transparent !important;
  color: #fff !important;
}

/* Card Styling */
.card {
  background-color: #ebe6ff;  /* Light purple that matches the palette */
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Card Image & Body */
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  flex-grow: 1;
}

/* Additional Layout & Utility Styles */
.navbar-logo {
  width: 180px;
}
.custom-img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
}
.text-color {
  color: rgb(45, 145, 178);
}

/* Row and Column Flex Settings */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.col-md-4 {
  display: flex;
  justify-content: stretch;
}

/* Default Anchor Tags */
a {
  color: var(--accent-color);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}
a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
a:hover {
  color: var(--text-color);
  transform: scale(1.2);
}
a:hover::after {
  width: 100%;
}

/* Fancy Buttons */
button,
.btn,
.btn-large,
a.btn,
a.btn-large {
  background: linear-gradient(45deg, var(--accent-color), var(--text-color));
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
button:hover,
.btn:hover,
.btn-large:hover,
a.btn:hover,
a.btn-large:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  color: #fff !important;
}
button::after,
.btn::after,
.btn-large::after,
a.btn::after,
a.btn-large::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
  z-index: 1;
  pointer-events: none;
}
button:hover::after,
.btn:hover::after,
.btn-large:hover::after,
a.btn:hover::after,
a.btn-large:hover::after {
  left: 100%;
}

/* Fancy SVG Icons */
svg {
  transition: transform 0.3s ease;
}
svg:hover {
  transform: scale(1.2);
}

/* Custom Text Color */
.custom-text-color {
  color: var(--accent-color);
  transition: color var(--transition-speed);
}
.custom-text-color:hover {
  color: var(--text-color);
}

/* Big Text Section */
.big-text {
  font-size: 50px;
  font-weight: bold;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: color var(--transition-speed) ease-in-out;
}

/* Animated Typed Text Element */
.element {
  font-family: 'Poppins', sans-serif;
  font-size: 50px;
  font-weight: bold;
  color: var(--accent-color);
  cursor: pointer;
  animation: glow 1.5s ease-in-out infinite alternate;
  display: inline-block;
  vertical-align: bottom;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.element:hover {
  transform: scale(1.2);
}

/* Typed.js Cursor Styling */
.typed-cursor {
  font-family: 'Poppins', sans-serif;
  font-size: 50px;
  font-weight: bold;
  color: var(--accent-color);
  display: inline-block;
  animation: blink 0.7s infinite;
  vertical-align: bottom;
  transition: transform 0.3s ease;
}
.typed-cursor:hover {
  transform: scale(0.5);
}

/* Glow Animation */
@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--accent-color);
  }
  to {
    text-shadow: 0 0 20px var(--accent-color);
  }
}

/* Blink Animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Card Button Spacing */
.card .btn {
  margin-top: auto;
}
