/* ============================================================
   ANTHONY GLOVER — PORTFOLIO
   style.css  |  Dark + Gold + 3D Depth Edition
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg:          #0d0d0d;
  --bg-card:     #161616;
  --bg-nav:      #111111;
  --accent:      #e8b84b;        /* rich warm gold  */
  --accent-dim:  #c49830;        /* darker gold for hover */
  --accent-light: #f5d380;       /* lighter gold for glows */
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --border:      #2a2a2a;
  --radius:      10px;
  --transition:  0.25s ease;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* --- 3D Shadow Layers ---
     Think of these as "elevation" levels, like material design.
     Each level adds a deeper, more spread shadow + an inset top
     highlight that simulates light hitting the top edge of the card. */
  --shadow-resting:
    0 1px 2px  rgba(0, 0, 0, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 14px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --shadow-hover:
    0 2px 4px   rgba(0, 0, 0, 0.65),
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 30px 60px rgba(0, 0, 0, 0.28),
    0 0  48px   rgba(232, 184, 75, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  --shadow-btn:
    0 2px 6px   rgba(232, 184, 75, 0.35),
    0 6px 18px  rgba(232, 184, 75, 0.2),
    0 1px 2px   rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  --shadow-btn-hover:
    0 4px 12px  rgba(232, 184, 75, 0.5),
    0 10px 28px rgba(232, 184, 75, 0.28),
    0 2px 4px   rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  --shadow-navbar:
    0 1px 0    rgba(232, 184, 75, 0.07),
    0 4px 20px rgba(0, 0, 0, 0.55),
    0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Headings get a subtle depth shadow so they feel "raised" off the bg */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-shadow:
    0 2px 8px  rgba(0, 0, 0, 0.5),
    0 1px 2px  rgba(0, 0, 0, 0.6);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

img {
  max-width: 100%;
  display: block;
  /* Crisp rendering + subtle depth shadow on any real images */
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
}

/* --- Utility --- */

/* Gold accent text — glows softly off the dark background */
.accent {
  color: var(--accent);
  text-shadow:
    0 0  16px rgba(232, 184, 75, 0.55),
    0 0  32px rgba(232, 184, 75, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-shadow:
    0 0 10px rgba(232, 184, 75, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* Divider bar — glows like an ember */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 1rem 0 2rem;
  box-shadow:
    0 0 8px  rgba(232, 184, 75, 0.7),
    0 0 20px rgba(232, 184, 75, 0.35),
    0 0 40px rgba(232, 184, 75, 0.15);
}

/* --- Buttons --- */
.btn-accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent) 100%);
  background-size: 200% auto;
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-btn);
  transition:
    background-position var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  cursor: pointer;
}

.btn-accent:hover {
  color: #000;
  background-position: right center;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-3px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-resting);
  transition:
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* --- Navbar --- */
.navbar {
  background-color: var(--bg-nav) !important;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-navbar);
  /* Very subtle gold dust at the bottom edge */
  border-bottom-color: rgba(232, 184, 75, 0.12);
}

.navbar-brand {
  padding: 0;
  line-height: 1;
}

.nav-logo {
  height: 175px;
  width: 175px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: filter 0.2s ease;
}

.navbar-brand:hover .nav-logo {
  filter: drop-shadow(0 2px 14px rgba(232, 184, 75, 0.55));
}

.navbar-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition), text-shadow var(--transition);
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background: rgba(232, 184, 75, 0.08);
  text-shadow: 0 0 12px rgba(232, 184, 75, 0.4);
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid rgba(232, 184, 75, 0.1);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* --- Generic Dark Cards --- */
.card-dark {
  background: linear-gradient(160deg, #1c1c1c 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-resting);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.card-dark:hover {
  border-color: var(--accent);
  transform: translateY(-5px) perspective(900px) rotateX(1.5deg);
  box-shadow: var(--shadow-hover);
}

/* --- Footer --- */
footer {
  background: var(--bg-nav);
  border-top: 1px solid rgba(232, 184, 75, 0.1);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

footer a {
  color: var(--text-muted);
  transition: color var(--transition), text-shadow var(--transition);
}

footer a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(232, 184, 75, 0.35);
}

.footer-logo {
  height: 225px;
  width: 225px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.55));
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Scroll Fade-in --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: block;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  width: 100%;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.4),
    0 0 0 3px  rgba(232, 184, 75, 0.18),
    0 0 16px   rgba(232, 184, 75, 0.12);
  background: var(--bg-card);
  color: var(--text);
}

.form-control::placeholder {
  color: #555;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* --- Skill Badges --- */
.skill-badge {
  background: linear-gradient(160deg, #1c1c1c 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-resting);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.skill-badge:hover {
  border-color: var(--accent);
  transform: translateY(-5px) perspective(600px) rotateX(3deg);
  box-shadow: var(--shadow-hover);
}

.skill-badge .skill-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
  /* Drop shadow behind emoji icons adds nice depth */
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
}

.skill-badge .skill-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.skill-badge .skill-level {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Project Cards --- */
.project-card {
  background: linear-gradient(160deg, #1c1c1c 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-resting);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-7px) perspective(900px) rotateX(1.5deg);
  box-shadow: var(--shadow-hover);
}

/* Project thumbnail — gold-tinted dark gradient */
.project-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e1a0d 0%, #13110a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  border-bottom: 1px solid rgba(232, 184, 75, 0.1);
  /* Inner shadow at bottom creates depth between thumb and body */
  box-shadow: inset 0 -8px 24px rgba(0,0,0,0.5);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  text-shadow:
    0 0 24px rgba(232, 184, 75, 0.6),
    0 4px 8px rgba(0,0,0,0.6);
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

/* Tags — gold tint, glow on hover */
.tag {
  background: rgba(232, 184, 75, 0.1);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(232, 184, 75, 0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow var(--transition), background var(--transition);
}

.tag:hover {
  background: rgba(232, 184, 75, 0.18);
  box-shadow:
    0 0 8px rgba(232, 184, 75, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

/* --- Contact Info Blocks --- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(160deg, #1c1c1c 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-resting);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.contact-info-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.contact-info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.contact-info-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text);
}

/* --- Alert / Success Message --- */
.alert-success-custom {
  background: rgba(232, 184, 75, 0.08);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  display: none;
  box-shadow:
    0 0 16px rgba(232, 184, 75, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 3.5rem 0 2rem; }
  .footer-links { gap: 1rem; }
  /* Disable perspective transforms on mobile — can feel jittery on touch */
  .card-dark:hover,
  .skill-badge:hover,
  .project-card:hover {
    transform: translateY(-4px);
  }
}
