/* ===========================
   GLOBAL RESET & VARIABLES
=========================== */
:root {
  --bg: #0a0a0a;       /* deep black */
  --surface: #111;     /* card surface */
  --border: #222;      /* subtle borders */
  --text: #f5f5f5;     /* main text */
  --muted: #999;       /* secondary text */
  --accent: #ffffff;   /* highlight in white */
  --radius: 10px;      /* rounded corners */
  --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", sans-serif;
  background: var(--bg) url("assets/hero-texture.jpg") center/cover fixed no-repeat;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Dark overlay over background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: -2;
}

/* ===========================
   LAYOUT CONTAINERS
=========================== */
.container { width: min(1100px, 90%); margin: 0 auto; }
.section { padding: 100px 0; }
.section-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.9rem;
}
.section-title {
  font-family: "Anton", sans-serif;
  font-size: 3rem;
  margin: 10px 0 40px;
  color: var(--accent);
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: "Anton", sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.brand-top { letter-spacing: 0.15em; }
.brand-bottom { font-size: 1.1rem; color: var(--muted); }

.nav-list {
  display: flex;
  gap: 24px;
}
.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  transition: color var(--transition);
}
.nav-list a.is-active,
.nav-list a:hover { color: var(--accent); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  text-align: center;
  padding: 160px 0 140px;
  border-bottom: 1px solid var(--border);
}
.mega {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 20px 0;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn:hover { opacity: 0.85; }

/* ===========================
   PROJECT GRID
=========================== */
.project-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0; 
  transform: translateY(40px); 
}
.project-card.visible {
  opacity: 1; 
  transform: translateY(0);
  transition: all 0.8s ease;
}
.project-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: filter var(--transition);
}
.project-card:hover .project-media img {
  filter: grayscale(0%) brightness(1.1);
}
.project-body { padding: 20px; }
.project-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.project-body ul { padding-left: 20px; }
.project-body li {
  color: var(--muted);
  margin-bottom: 6px;
  position: relative;
}
.project-body li::before {
  content: "–";
  position: absolute;
  left: -14px;
  color: var(--accent);
}

/* ===========================
   OTHER SECTIONS
=========================== */
#skills ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#skills li {
  font-size: 1.25rem;         /* larger text */
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* when visible */
#skills li.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  text-align: center;
  padding: 40px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ===========================
   BACKGROUND GRAIN
=========================== */
#grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Force-visible Contact Links (place at END of styles.css) ===== */
#contact p { margin: 10px 0; font-size: 1.15rem; }

#contact a,
#contact a:link,
#contact a:visited,
#contact a:active,
#contact a:focus {
  color: #ffffff !important;            /* always white */
  text-decoration: underline;           /* visible underline */
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 800;
  display: inline-block;                /* improves click target */
  position: relative;
  z-index: 2;                           /* above any backgrounds */
  pointer-events: auto;                 /* ensure clickable */
}

#contact a:hover {
  color: #d9d9d9 !important;
  text-decoration-color: #d9d9d9;
}

/* If any overlay is accidentally on top, disable pointer capture */
#contact, #contact * {
  pointer-events: auto;
}

/* Make sure no full-width element covers the contact area */
canvas#grain { z-index: -1 !important; }

/* ===========================
   Resume Download Button Styles
   (kept minimal to match your theme)
=========================== */
.btn-download {
  display: inline-block;
  padding: 0.65rem 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid currentColor;
  color: var(--accent);
  background: transparent;
  transition: transform 120ms ease, box-shadow 120ms ease;
  margin-top: 0.8rem;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.small-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ripple effect element */
.ripple {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255,255,255,0.35);
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
