/**
 * Typography & Text styles
 */

/* html is set to 62.5% so that all the REM measurements are based on 10px sizing. So basically 1.5rem = 15px */
html {
  font-size: 62.5%;
}
body {
  font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  max-width: 1100px; /* Increased max-width for the overall content area */
  margin: 25px auto;
}

/**
 * Links
 */
a {
  font-weight: normal;
  text-decoration: none; 
  color:#ddffff;
}
a:focus {
  outline: thin dotted;
}

small {
  font-size: 75%;
}

/**
 * Headings
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
  text-rendering: optimizeLegibility; /* voodoo to enable ligatures and kerning | https://developer.mozilla.org/en-US/docs/CSS/text-rendering */
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 300;
}
h1 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h2 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem; }
h3 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h4 { font-size: 1.8rem; line-height: 1.5;  letter-spacing: -.05rem; }
h5 { font-size: 1.5rem; line-height: 1.6;  letter-spacing: 0; }
h6 { font-size: 1.4rem; line-height: 1.6;  letter-spacing: 0; }

/**
 * Paragraphs
 */
p {
  margin: 0 auto 1.5em auto; /* bottom margin for paragraphs */
} 



/**
 * Quotes & Blockquotes
 */
q {
  quotes: '\00201C' '\00201D';
}
q:before {
  content: open-quote;
}
q:after {
  content: close-quote;
}

/**
 * Layout styles
 */

/* Full size background image */
html, #container, .inner { background-color:transparent;}
html {
  background:url(images/background.gif) center center no-repeat fixed;
  background-size:cover;
}
header, #content, footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 30px;
  color: #FFFFFF;
}
iframe {
  max-width:100%;
}

/* Menu Links */
ul.main-menu {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  list-style: none;
}

/* Utility classes */
.hide {
  display:none;
}
.show {
  display:block;
}

.ribbon {
  padding: 15px 0; /* Add some vertical padding */
  text-align: center; /* Center the links */
  position: relative; /* Needed for pseudo-elements (optional ribbon tails) */
}

.ribbon ul {
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
  display: inline-block; /* Allows centering and adjusting width */
}

.ribbon li {
  display: inline; /* Display list items horizontally */
  margin: 0 15px; /* Add spacing between links */
}

.ribbon a {
  text-decoration: none; /* Remove underlines from links */
  color: #ffffff; /* Dark gray link color */
  padding: 8px 12px; /* Add padding around the link text */
  border-radius: 5px; /* Slightly rounded corners (optional) */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

.ribbon a:hover {
  background-color: rgb(80, 80, 80); /* Lighter background on hover */
}

/* Optional: Adding "Ribbon Tails" using Pseudo-elements */
.ribbon::before,
.ribbon::after {
  content: '';
  position: absolute;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.ribbon::before {
  left: 0;
  border-left: 15px solid #f0f0f0; /* Match background color */
}

.ribbon::after {
  right: 0;
  border-right: 15px solid #f0f0f0; /* Match background color */
}

.ribbon {
  /* Your existing ribbon styles */
  position: fixed; /* Make the ribbon fixed to the viewport */
  top: 0; /* Position it at the very top */
  left: 0; /* Position it at the very left */
  width: 100%; /* Make it span the entire width of the viewport */
  z-index: 1000; /* Ensure it stays on top of other elements (adjust if needed) */
  margin-bottom: 0; /* Remove the bottom margin we added earlier */
  background-color: rgba(0, 0, 0, 0.8)
}

/* You might need to adjust the padding of your header or main content */
#header {
  padding-top: 60px;
  margin-top: 54px;  
}

/* --- Project Card Styles (Reused for consistency) --- */

.projects-grid {
    display: grid; /* Enable CSS Grid for horizontal layout */
    /* This will create columns that are at least 300px wide, adjusting to fit as many as possible */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Use minmax for responsive columns */
    gap: 20px; /* Space between the cards */
    margin-top: 20px; /* Space below the "Things I've worked on" heading */
    justify-content: center; /* Center the grid items if there's extra space */
    align-items: stretch; /* Ensures uniform height in rows */
}


.project-card {
    background-color: #1e1e1e; 
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
    text-align: center; /* Center content within card */
}

.project-card:hover {
    transform: translateY(-5px); /* Lift card slightly on hover */
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.project-image {
    max-width: 100%;
    object-fit: cover; /* Ensures image fits without cropping */
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.6rem; /* Adjust based on your h3, h4 sizes */
    font-weight: bold;
    color: #ffffff;
    flex-grow: 1; /* Allows title to take available space */
}

.project-details p {
    margin: 5px 0;
    font-size: 1.3rem; /* Smaller font for details */
    color: #b0b0b0; /* Lighter grey for details */
}

.project-link {
    color: #00b0f4;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 10px;
    display: block;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #4dc0f9; /* Slightly brighter on hover */
    text-decoration: underline; /* Add underline on hover */
}

.project-icons {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex; /* Arrange icons in a row */
    align-items: center;
    font-size: 24px;
    gap: 10px;

}

.project-icons img {
    height: 24px; /* Adjust size as needed */
    width: auto; /* Maintain aspect ratio */
}

.project-description {
    font-size: 1.4rem;
    color: #cccccc;
    margin-top: auto; /* Pushes the description to the bottom of the card */
    padding-top: 10px; /* Space above description if content pushes it down */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
    text-align: justify; /* Justify text for a cleaner look */
}

/* --- New Section Styles --- */

/* Home Page */
.tagline {
    font-size: 1.8rem;
    font-weight: 500;
    color: #cccccc;
    margin-top: -1.5rem; /* Pull slightly closer to H1 */
    margin-bottom: 3rem;
}

.project-spotlight-card {
    background-color: #1e1e1e; /* Slightly darker than main cards */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    max-width: 600px; /* Keep spotlight card a bit wider if desired */
    margin: 30px auto; /* Center it */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-spotlight-card .project-header,
.project-spotlight-card .project-details,
.project-spotlight-card .project-link,
.project-spotlight-card .project-icons,
.project-spotlight-card .project-description {
    /* Inherit/adjust styles from general project-card, or define new ones if needed */
    margin-bottom: 10px; /* Adjust spacing */
}

.project-spotlight-card .project-status {
    background-color: #00b0f4; /* Different accent color for spotlight */
}

.project-image-container {
    text-align: left; /* Center the image if it's smaller than the container */ 
}

.project-main-image {
    max-width: 100%; /* Ensures the image doesn't overflow its container */
    height: 150px; /* Set a fixed height for consistency, or use auto if preferred */
    object-fit: contain; /* Covers the area, cropping if necessary */
    border-radius: 8px; /* Slightly rounded corners for the image */
}

.button {
    display: inline-block;
    background-color: #5865f2; /* Discord blue */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start in flex column */
}

.button:hover {
    background-color: #434fb3;
}


/* About Page */
.timeline {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid #ffffff; /* Vertical line */
    margin-bottom: 30px;
}

.timeline li {
    position: relative;
    padding: 10px 0 10px 25px;
    margin-bottom: 15px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -8px; /* Position dot on the line */
    top: 15px;
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 2px solid #1e1e1e; /* Border matching card background */
}

.timeline-year {
    font-weight: bold;
    color: #ffffff;
    margin-right: 10px;
    font-size: 1.1em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.skill-item {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.skill-item i {
    font-size: 1.8rem;
    color: #ffffff; /* Icon color */
}

.skill-item:hover {
    background-color: #2c2f33;
    transform: translateY(-3px);
}


/* My Devices Page */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust min-width as needed */
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: stretch; /* Uniform height */
}

.device-card {
    background-color: #1e1e1e; 
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
    text-align: center; /* Center content within card */
}

.device-title {
    font-size: 1.6rem; /* Adjust based on your h3, h4 sizes */
    font-weight: bold;
    color: #ffffff;
    flex-grow: 1; /* Allows title to take available space */
}

.device-card:hover {
    transform: translateY(-5px);
}

.device-image {
    max-width: 100%;
    height: 150px; /* Fixed height for images, adjust as needed */
    object-fit: contain; /* Ensures image fits without cropping */
    border-radius: 4px;
    margin-bottom: 15px;
}

.device-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.device-spec {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin: 5px 0;
}

.device-role {
    font-size: 1.4rem;
    color: #cccccc;
    margin-top: 15px;
    flex-grow: 1; /* Pushes content to top, role to bottom */
}


/* Contact Page */
.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    color: #ffffff; /* Link color */
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-item i {
    font-size: 2.5rem; /* Larger icon size */
    color: #ffffff; /* Primary icon color */
}

.contact-item:hover {
    background-color: #2c2f33;
    transform: translateY(-3px);
}

/* Optional QR Code Styling */
.qr-code {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}
.qr-code img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}
.qr-code p {
    font-size: 1.4rem;
    color: #cccccc;
}