:root {
  --branding-color: rgb(0, 0, 0); 
  --secondary-color: rgb(179, 174, 174);
  --heading-font-family: 'Quicksand', sans-serif;
  --subtle-white: #f5f5f5;
  --accent-red: rgb(165, 4, 4); 
}

/* Full-page background video */
.background-video {
  position: fixed;      /* stays fixed behind content */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;    /* cover whole viewport */
  z-index: -1;          /* behind all other content */
  filter: brightness(50%); /* dim for text contrast */
}

body, h1, h2, h3, p, a, li, .project-card, .skills-grid, .skill-item, footer p, footer .email-link {
  color: #fff !important;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  background: var(--branding-color);
  color: var(--subtle-white);
  font-family: var(--heading-font-family);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--heading-font-family);
  font-weight: bold;
  color: var(--subtle-white);
}

#nav.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px;
    background: transparent;
}

.navbar ul {
    list-style: none;
    float: right;
}

nav li {
    display: inline-block;
    margin-left: 10px;
    line-height: 40px;
}

nav a {
    text-decoration: none;
    color: var(--subtle-white);
    transition: all 0.3s ease;
}

nav a:hover,
nav li.active a {
    color: var(--accent-red);
    font-weight: bold;
}

/* Projects Section */
.project-card {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;    /* center items */
  margin-bottom: 4rem;
  text-align: center;     /* center everything inside */
}

.project-img {
  width: 250px;                  /* slightly larger if needed */
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  filter: blur(6px) brightness(0.6);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.project-card:hover .project-img {
  filter: blur(2px) brightness(0.8);
}

/* Skills grid directly under image */


/* Skills under project images */
.project-card .skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* centers icons under the image */
}

.project-card .skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px; /* keeps them neat */
  text-align: center;
}

.project-card .skill-item i {
  font-size: 2rem;
  color: var(--accent-red); /* icons in your red */
  margin-bottom: 0.3rem;
}

.project-card .skill-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #000;       /* black text */
  font-weight: bold; /* bold text */
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 70px;
}

.skill-item i {
  font-size: 2rem;
  color: var(--accent-red);
  margin-bottom: 0.3rem;
}

.skill-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--subtle-white);
  font-weight: bold;
}




/* Footer*/
footer {
  background: var(--branding-color);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

footer .email-link {
  color: var(--subtle-white);
  text-decoration: none;
}

footer .email-link:hover {
  color: #ccc;
}

footer .social-links a {
  color: var(--subtle-white);
  margin: 0 20px;
  font-size: 2rem;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: var(--accent-red);
}

footer p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

footer p a {
  color: var(--accent-red);
  text-decoration: none;
}

footer p a:hover {
  text-decoration: underline;
}


/* Responsive */
@media screen and (max-width: 992px) {
  .project-card {
    flex-direction: column-reverse;
    text-align: center;
  }

  .project-img {
    margin: 0 auto 1rem auto;
  }

  .skills-grid {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  nav ul {
    float: none;
    text-align: center;
    margin-top: 1rem;
  }

  nav li {
    display: block;
    margin: 10px 0;
  }
}
/* ================== MOBILE NAVBAR ================== */
@media screen and (max-width: 768px) {
    nav.navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 20;
        background: rgba(0, 0, 0, 0.85);
        padding: 10px 0;
    }

    body {
        padding-top: 70px; /* leave space for fixed navbar */
    }

    nav ul {
        float: none;
        text-align: center;
    }

    nav li {
        display: block;
        margin: 5px 0;
    }
}

