/* === GLOBAL STYLES (shared across all pages) === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

header {
    display: none;
}

nav {
    grid-row: 1;
    grid-column: 1;
    background-color: rgb(9, 0, 0);
    color: rgb(217, 217, 217);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

nav a {
    color: rgb(217, 217, 217);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    position: relative;
    grid-row: 2;
    grid-column: 1;
    background-image: url('/drake-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

footer {
    grid-row: 3;
    grid-column: 1;
    background-color: rgb(9, 0, 0);
    color: rgb(217, 217, 217);
    text-align: center;
    padding: 10px;
}

/* === INDEX PAGE === */
.text-box {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.welcome-text {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.sub-text {
    font-size: 20px;
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* === PROJECTS PAGE === */
.project-container {
    position: relative;
    width: 90%;
    height: 90%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 20px;
    gap: 20px;
    color: white;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 10px;
    max-height: 100%;
}

.project-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.project-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
    overflow-y: auto;
}

#project-link {
    font-size: 18px;
    font-weight: bold;
    color: cyan;
    text-decoration: none;
}

#project-link:hover {
    text-decoration: underline;
}

#project-image {
    width: 100%;
    max-height: auto;
    object-fit: contain;
    max-width: 100%;
    border-radius: 5px;
    display: none;
}

.project-details h2 {
    margin-bottom: 10px;
}

/* === CONTACT PAGE === */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  /* Stack nav links vertically
  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  } */

  /* Projects page: stack project items vertically */
  .project-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .project-item {
    width: 100%;
    text-align: left;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
  }

  .project-details {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    overflow-wrap: break-word;
  }

  .project-details.show {
    display: flex;
  }

  #project-link {
    font-size: 14px;
    font-weight: bold;
    color: cyan;
    text-decoration: none;
  }

  .project-details img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
  }

  /* Contact page: stack social links */
  .social-links {
    flex-direction: column;
    gap: 10px;
  }
}

