/* VARIABLES */
:root {
  --bg: #0A192F;
  --fg: #CCD6F6;
  --accent: #64FFDA;
  --muted: #8892B0;
  --nav-bg: rgba(10,25,47,0.85);
}

/* RESET & BOX-SIZING */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* NAV */
.site-nav {
  position: fixed; top: 0; width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
}
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem;
}
.site-nav .logo {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--accent);
}

/* SECTION BASE */
.section {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.section h2 {
  font-size: 2rem;
  color: var(--fg);
  margin-bottom: 1rem;
  position: relative;
}
.section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--fg);
}
.hero-text .accent {
  color: var(--accent);
}
.subhead {
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 1.5rem;
}
.social-links a {
  margin-right: 1rem;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.social-links a:hover {
  color: var(--accent);
}
.hero-image img {
  width: 250px;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--accent);
}

/* PROJECTS */
.projects-grid {
  display: block;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.project-card {
  background: #112240;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin:2rem;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-info {
  flex: 1;
}
.project-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.project-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.project-links a {
  margin-right: 1rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.project-links a:hover {
  color: var(--accent);
}
.project-visual {
  max-width: 400px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: fill;
   /* Keeps consistent layout */
  background-color: #112240; /* fallback if image doesn't load */
}

/* SKILLS */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.skills-list li {
  background: #112240;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: var(--fg);
  font-size: 0.9rem;
}

/* TIMELINE (Experience & Education) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-item {
  position: relative;
  padding-left: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-item h3 {
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.timeline-item h4 {
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.timeline-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* CONTACT */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 1rem auto 0;
}
.contact-form label {
  color: var(--fg);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: #112240;
  border: none;
  border-radius: 4px;
  color: var(--fg);
}
.contact-form button {
  width: fit-content;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}
.contact-form button:hover {
  opacity: 0.9;
}

a {
  color: #4da6ff; /* Light blue */
  text-decoration: none; /* optional: removes underline */
}

a:hover {
  color: #1e90ff; /* Slightly deeper blue on hover */
  text-decoration: underline; /* optional: adds underline on hover */
}

.box {
  padding: 2rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.resume-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.resume-link:hover {
  background-color: #52e0c4; /* slightly darker accent */
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  margin-right: 1rem;
}

.social-btn.github {
  background-color: #333;
  color: #fff;
}

.social-btn.linkedin {
  background-color: #0077b5;
  color: #fff;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.project-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-right: 0.75rem;
  border: 2px solid transparent;
}

.project-btn.demo {
  background-color: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.project-btn.code {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.project-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: black;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Hover state */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Active/pressed state */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Disabled state */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Icon spacing (if you’re using an <i> or svg inside) */
.btn i,
.btn svg {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}


/* Skills grid like benrogers.dev */
.skills-icons {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 0;
}

.skills-icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #aaa;
  transition: color 0.3s ease, transform 0.3s ease;
}

.skills-icons li i,
.skills-icons li img {
  font-size: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.skills-icons li img {
  filter: brightness(0) invert(1); */
  transition: filter 0.3s ease, transform 0.3s ease;
  opacity: 0.6;
}
.skills-icons li:hover {
  color: #fff; /* stays white */
  
  transform: translateY(-4px);
}

.skills-icons li:hover img {
  filter: brightness(0) invert(1); /* stays white */
  transform: scale(1.1);
  opacity: 1;
}

.custom-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
