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

/* Global Variables Using the Three Colours */
:root {
  --bg-color: #dbf2fb;           /* Light Blue Background */
  --text-color: #2eafd7;         /* 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);
  /* Use Montserrat for the main body text */
  font-family: 'Montserrat', sans-serif;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  margin: 0;
  padding: 0;
}

/* Header (Navbar) Styles */
.navbar {
  background-color: var(--header-bg) !important;
}
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-item {
  color: var(--header-text) !important;
}
.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  /* For nav links outside dropdown, retain their hover colour change */
  color: var(--text-color) !important;
}

/* Dropdown Menu Styles (More Section) */
/* Remove any hover background and text colour changes, only scaling */
.navbar .dropdown-menu {
  background-color: var(--header-bg) !important;
}
.navbar .dropdown-item {
  color: #ffffff !important; /* Set a consistent white text for clarity */
  transition: transform 0.3s ease;
}
.navbar .dropdown-item:hover {
  transform: scale(1.25);
  background-color: transparent !important;
  /* Keep the text colour unchanged */
  color: #ffffff !important;
}

/* Default Anchor Tags (for non-button links) */
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 (for both <button> elements and anchor tags with .btn or .btn-large) */
button,
.btn,
.btn-large,
a.btn,
a.btn-large {
  background: linear-gradient(45deg, var(--accent-color), var(--text-color));
  color: #fff; /* White text for high contrast */
  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 ("ACCESS ALL PREVIOUS") */
.big-text {
  font-size: 45px;
  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 (Scrolling) Text Element */
/* Using Montserrat Bold to match the "ACCESS ALL PREVIOUS" style */
.element {
  font-family: 'Montserrat', sans-serif;
  font-size: 45px;
  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 (matches scrolling text) */
.typed-cursor {
  font-family: 'Montserrat', 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 for Typed Text */
@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--accent-color);
  }
  to {
    text-shadow: 0 0 20px var(--accent-color);
  }
}

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