/* =========================
   Imports
========================= */
@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic");

/* =========================
   Theme (edit these to change colors)
========================= */
:root {
  --ink: #1f2933;                /* primary text */
  --muted: #6b7280;              /* secondary text */
  --border: #d1d5db;             /* subtle borders/dividers */
  --surface: rgba(255,255,255,0.65); /* glass card surface */

  --accent: #1f2933;             /* links / highlights */
  --accent-hover: #3f5c75;       /* hover state */
  --nav-bg: #ffffff;             /* navbar background */
  --hr: var(--border);           /* hr color */
}

/* =========================
   Base / Typography
========================= */
body, input, select, textarea {
  color: var(--ink);
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 16pt;
  font-weight: 400;
  line-height: 1.75em;
}

h2 { font-size: 2rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }

hr {
  height: 4px;
  color: var(--hr);
}

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

a:hover {
  color: var(--accent-hover);
}

/* Buttons */
.btn-dark {
  background-color: var(--ink);
  color: white;
}

/* =========================
   Page Background
========================= */
body {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: grayscale(100%);
  z-index: -1;
}

/* =========================
   Layout Containers
========================= */
.container-main {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem;
}

.footer .container { text-align: left; }

/* =========================
   Navbar / Header
========================= */
header { padding: 20px 0; }

.navbar {
  padding: 20px;
  font-size: 25px;
  background: var(--nav-bg);
}

.navbar-brand { font-size: 30px; }

/* =========================
   Components: Cards
========================= */
.blurred-box {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(50px);
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 40px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 500;
}

.card-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 !important;
}

.card-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.card ul {
  font-size: 0.95rem;
  line-height: 1.45;
  padding-left: 1.25rem;
  color: var(--muted);
}

/* Badges */
.badge.text-bg-light.border {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: var(--ink);
}

/* =========================
   Components: Icons
========================= */
.icon-wrapper {
  position: absolute;
  top: 100px;
  right: 40px;
}

.icon-wrapper img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

/* legacy icon list */
ul.icons {
  cursor: default;
  list-style: none;
  padding-left: 0;
  font-size: 1.75em;
}

ul.icons li {
  display: inline-block;
  padding: 0 1em 0 0;
}

ul.icons li:last-child { padding-right: 0; }

ul.icons li .icon:before { font-size: 2.5em; }

ul.icons li a span {
  font-weight: 400;
  font-size: 1em;
  font-family: "Source Sans Pro";
}

/* =========================
   Home Page
========================= */
.home-card { width: min(920px, 100%); }

.home-avatar {
  width: clamp(140px, 35vw, 220px);
  height: clamp(140px, 35vw, 220px);
  object-fit: cover;
  border-radius: 999px;
}

.home-icons {
  display: flex;
  gap: 1rem;
  margin: 0;
  font-size: 1.75rem;
}

.home-icons li { padding: 0; }

.home-icons a {
  font-size: clamp(2.1rem, 6vw, 2.8rem);
  color: var(--accent);
}

.home-icons a:hover {
  color: var(--accent-hover);
  opacity: 0.95;
}

/* =========================
   Projects Page
========================= */
.card-project {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: block;
}

.card-project hr { line-height: normal; }

/* =========================
   Carousel
========================= */
.carousel-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.carousel-wrap { width: min(760px, 100%); }

.carousel-wrap .carousel-inner { aspect-ratio: 16 / 9; }
.carousel-wrap .carousel-item { height: 100%; }

.carousel-wrap .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}

.tool-chip {
  position: relative;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* =========================
   Resume Page (PDF)
========================= */
.resume-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.pdf-wrapper { width: 100%; height: 75vh; }

.pdf-viewer { width: 100%; height: 100%; border: none; }

.resume-download {
  display: none;
  text-align: center;
  margin-top: 1rem;
}

/* =========================
   Media Queries
========================= */
@media (max-width: 576px) {
  .home-icons { font-size: 1.6rem; gap: 0.85rem; }
  .card-text { font-size: 0.98rem; }
}

@media (max-width: 768px) {
  .pdf-wrapper { display: none; }
  .resume-download { display: block; }
}
