: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); 
}
.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 */
html, body {
  margin: 0;
  padding: 0;
  background-color: #000; /* black behind everything */
  min-height: 100%;
}


section {
  margin: 0;
  padding: 0;
  background-color: #000; /* black behind section */
}



body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--branding-color);
}

/* Main content area */
main, .content-container {
  flex: 1; /* take up all available space */
}

body {
  padding-top: 0 !important; /* overrides Bootstrap spacing */
  background: var(--branding-color);
  color: var(--subtle-white);
  font-family: var(--heading-font-family);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--subtle-white);
}


/* Navbar */

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;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 4rem;
  background: var(--branding-color); /* black background */
  color: var(--subtle-white); /* soft white text */
}

.hero h1,
.hero h3,
.hero h4 {
  color: var(--subtle-white); /* ensures all headings are soft white */
}

.hero .btn-branding {
  border-radius: 4px;
  color: var(--subtle-white);
  font-size: 1rem;
  padding: 10px 25px;
  border: 2px solid var(--subtle-white);
  background: var(--branding-color);
  transition: all 0.3s ease;
}

.hero .btn-branding:hover {
  background: var(--subtle-white); /* invert colors on hover */
  color: var(--branding-color);
}

/* Contact Me Button in White Section */
.contact-info {
  position: relative;       /* container for absolute positioning */
  height: 100vh;            /* full screen height */
  display: flex;            /* use flex to center content */
  justify-content: center;  /* horizontally center */
  align-items: flex-start;  /* start from top, we'll offset with padding */
  padding-top: 25%;         /* push content down 25% of the section height */
  overflow: hidden;
  background-color: #000;   /* solid black behind video */
  color: #fff;              /* all text white */
}

.contact-info .background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(50%);
}

.contact-info .container {
  position: relative;  /* sits above the video */
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 600px;    /* limits text width */
}

.contact-info .btn-contact {
  display: inline-block;
  margin-top: 2rem;
  padding: 15px 40px;              /* bigger button */
  font-size: 1.3rem;               /* larger text */
  font-weight: bold;
  border-radius: 6px;
  background: var(--branding-color); /* black background */
  color: var(--subtle-white);        /* soft white text */
  border: 2px solid var(--branding-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info .btn-contact:hover {
  background: var(--accent-red);    /* red hover */
  border-color: var(--accent-red);
  color: var(--subtle-white);
}

/* Footer */

/* Footer stays at the bottom */
/* Footer */
footer {
  background: var(--branding-color); /* solid black */
  color: var(--subtle-white);        /* soft white text */
  padding: 2rem 0;
  text-align: center;
}

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

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(--subtle-white); /* keep soft white */
}

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

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

/* Responsive */
@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h3 {
    font-size: 1.2rem;
  }

  .hero h4 {
    font-size: 1rem;
  }

  .contact-info h1 {
    font-size: 2rem;
  }

  .contact-info h3 {
    font-size: 1.2rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
/* ================== 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;
    }
}

