/* Slate + Teal Theme: professional cool-toned UI with subtle interaction design. */

/* Use Inter + Rubik for modern typography */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;700&display=swap");

/* Root variable overrides */
:root {
  /* ---- Color Palette (Slate + Teal) ---- */
  --tf-primary1: #003f5c;   /* Deep slate blue */
  --tf-primary2: #2f9e9e;   /* Teal hover/accent */
  --tf-primary3: #a8e0df;   /* Light teal background */

  --tf-gray1: #1f1f1f;      /* Primary text */
  --tf-gray2: #555;         /* Secondary text */
  --tf-gray-bg: #fafafa;    /* Neutral background */

  /* ---- Bootstrap Overrides ---- */
  --bs-font-sans-serif: "Inter", sans-serif;
  --bs-link-color: var(--tf-primary1);

  /* ---- Theme-Specific ---- */
  --tf-pill-bg: var(--tf-primary2);
  --tf-icon-fill: var(--tf-primary1);
  --tf-icon-hover: var(--tf-primary2);
  --tf-page-bg-color: var(--tf-gray-bg);
  --tf-footer-bg-color: var(--tf-primary3);
  --tf-projects-bg-color: var(--tf-primary3);

  /* ---- Effects ---- */
  --tf-transition-speed: 0.25s;
  --tf-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
  --tf-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Headings */
h1, h2, h3, h4, h5 {
  color: var(--tf-primary1);
  font-family: "Rubik", sans-serif;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

/* Smooth transitions for all interactive elements */
a, button, .card, .tf-social, img, .nav-link {
  transition: all var(--tf-transition-speed) ease;
}

/* Links */
a {
  text-decoration: none;
  color: var(--tf-primary1);
}

a:hover {
  color: var(--tf-primary2);
  text-decoration: underline;
}

/* Social Media Icons */
.tf-social {
  display: inline-block;
  fill: var(--tf-primary1);
  height: 1.5em;
  width: 1.5em;
  vertical-align: -0.1em;
  cursor: pointer;
}

.tf-social:hover {
  fill: var(--tf-icon-hover);
  transform: translateY(-2px);
}

/* Project Cards */
.card {
  border: none;
  border-radius: 12px;
  background: white;
  box-shadow: var(--tf-shadow-soft);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-hover);
}

/* Rounded Profile Image */
.rounded-circle {
  border-color: var(--tf-primary1);
  border-style: solid;
  border-width: 2px;
  transition: border-color var(--tf-transition-speed);
}

.rounded-circle:hover {
  border-color: var(--tf-primary2);
  transform: scale(1.02);
}

.navbar-brand:hover {
  color: var(--tf-primary1);
  transform: translateY(-2px);
}

/* Navigation Hover Refinements */
.nav-link:hover {
  color: var(--tf-primary2) !important;
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-weight: 500;
  box-shadow: var(--tf-shadow-soft);
}

.btn-primary {
  background-color: var(--tf-primary1);
  border-color: var(--tf-primary1);
  position: relative;
}

.btn-primary:hover {
  background-color: var(--tf-primary2);
  border-color: var(--tf-primary2);
  box-shadow: var(--tf-shadow-hover);
}

.btn-primary:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(47, 158, 158, 0.3);
  animation: pulse 0.6s forwards;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* Footer */
footer {
  background-color: var(--tf-footer-bg-color);
  padding: 2rem 0;
}


/* ------------------------------ */
/* Page Load Animations           */
/* ------------------------------ */

/* Initial hidden state */
body.preload {
  opacity: 0;
  transform: translateY(6px);
}

/* Fade + slide-in */
body.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}
