/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:  "Sora", sans-serif;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  width: 100%;
  background-color: wheat;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  color: black;
  padding: 0 8%;
}

/* ===== DESKTOP NAV (DEFAULT) ===== */

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 160px; /* desktop logo size */
}

.brand-text {
  display: none; /* hide mobile text on desktop */
}

.menu-button {
  display: none; /* hide MENU button on desktop */
}


/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 0;
}

nav a {
  text-decoration: none;
  color: black;
  position: relative;
  display: inline-block;
  justify-content: center;
    font-weight: bold; /* makes text bold */
    font-family: 'Poppins', sans-serif; /* change to any font you like */
    font-size: 18px; /* optional: adjust size */
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  background: black;
  transition: width 0.3s ease-in-out;
  display: block;
  margin-top: 5px;
}

nav a:hover::after {
  width: 100%;
}

.logo {
  width: 160px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 30px;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: wheat;
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(247, 242, 242, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li,
.sidebar a {
  width: 100%;
}

.menu-button a {
    display: flex;
    align-items: center;
    gap: 6px;
}



/* HERO HEADER */
.hero h1 {
  font-size: 70px;
  margin-top: 12%;
  text-align: center;
}

header {
  text-align: center;
  background: url('images/ClevelandSkylineNeo-Rouge-copy.jpg') no-repeat;
  background-size: cover;
  overflow: hidden;
  padding: 10px 50px 60px;
  line-height: 1.5;
}

/* BUTTONS */
.hero button,
.skills button {
  background: black;
  border: 0;
  outline: none;
  padding: 15px 35px;
  color: wheat;
  margin-top: 25px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero button:hover,
.skills button:hover {
  background: #333;
}

/* CARDS */
.card {
  margin: 50px;
  padding: 20px 40px 40px;
  max-width: 400px;
  text-align: left;
  background: wheat;
  border-bottom: 4px solid wheat;
  border-radius: 6px;
  transition: all 0.5s;
  min-height: 300px; /* or whatever height fits your design */
  width: 100%;
  object-fit: contain; /* prevents distortion */

}

.card:hover {
  border-color: black;
}

.card .thumbnail {
  width: 100%;
}

.card h2 {
  min-height: 3.5em;
}


.tag {
  background-color: wheat;
  color: black;
  padding: 10px;
  border-radius: 5px;
  display: table;
  margin: 10px auto;
}

h2 {
  padding: 15px 0;

}

/* SKILLS LIST */
ul.skills {
  padding: 0;
  text-align: center;
}

.skills li {
  border-radius: 6px;
  display: inline-block;
  background: wheat;
  color: black;
  padding: 5px 10px;
  margin: 2px;
}

/* FOOTER */
footer {
  width: 100%;
  min-height: 30px;
  padding: 20px 0 40px 20px;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer ul li {
  display: inline-block;
}

a.social {
  display: inline-block;
  text-indent: -9999px;
  margin-left: 5px;
  width: 30px;
  height: 30px;
  background-size: 30px 30px;
  opacity: 0.4;
  transition: all 0.5s;
}

a.social:hover {
  opacity: 1;
}

a.twitter { background-image: url(images/twitter.svg); }
a.linkedin { background-image: url(images/linkedin.svg); }
a.github { background-image: url(images/github.svg); }

/* INDICATORS */
.indicator {
  margin-top: 150px;
}
.indicator span {
  display: inline-block;
  background: black;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  margin-right: 10px;
}
.indicator span.active {
  background: #bfbfbf;
}

/* FLEX LAYOUT */
.flex {
  display: flex;
  justify-content: space-around;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}



/* MEDIA QUERIES */
@media (max-width: 800px) {
  .hideOnMobile { display: none; }
  .menu-button { display: block; }
}

@media (max-width: 400px) {
  .sidebar { width: 100%; }
}

/* Mobile H1 fix for iPhone */
@media (max-width: 430px) {
/* Better H1 alignment on iPhone */
.hero h1 {
    font-size: 2rem;           /* adjust size for readability */
    line-height: 1.2;          /* tighter spacing but still readable */
    text-align: center;        /* keep centered */
    word-break: normal;        /* avoid breaking every word */
    overflow-wrap: break-word; /* allow wrapping naturally */
    max-width: 90%;            /* give some horizontal breathing room */
    margin: 0 auto 20px auto;  /* center horizontally and add bottom spacing */
}

}


@media(max-width: 800px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
    .hero {
        background-position: 150px 350px;
    }
}

@media(max-width: 400px) {
    .sidebar {
        width: 100%;
    }
    .hero {
        background-position: 150px 350px;
    }
}

/* iPhone / Small Mobile Styles */
@media screen and (max-width: 430px) {
    
    /* fix hero padding so text isn't touching the edges */
    .hero {
        padding: 0 5%;
        background-size: 0%; /* also hides your background */
        background-image: none !important;
        background-color: wheat;
    }

        nav a::after {
        transition: none;
        width: 0 !important;
    }

  }
/* iPhone / Small Device Layout */
@media screen and (max-width: 430px) {

    /* hide background image too */
    .hero {
        background-image: none !important;
        background-size: 0%;
        padding: 0 5%;
    }

    /* Keep the main heading but resize it for iPhones */
    .hero h1 {
        font-size: 42px;
        margin-top: 150px;
        line-height: 1.1;
    }

    /* Make the "Upgrade your game" button centered and clean */
    .hero button {
        width: 100%;
        max-width: 300px;
        padding: 15px;
        font-size: 18px;
        display: block;
        margin: 30px auto 0 auto;
    }
    /* iPhone brand row */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* show text only on iPhone */
.brand-text {
    display: inline-block;
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 30px;
}

.menu-text {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* shrink logo only on iPhone */
.logo {
    width: 65px;
}

/* keep hamburger pushed right */
nav {
    justify-content: space-between;
}

}
