/*
 * Copyright 2021 Spotify AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

a:not([style]),
a:not([style]) p {
  color: #2e2f33;
}

.intro {
  background-image: url(../img/home.jpg);
  background-size: cover;
  background-color: #273443;
}

.jumbotron-hero {
  text-align: left;
  padding: 80px 0 110px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: 150%;
  color: #fff;
  background-color: transparent;
}

.jumbotron-hero p {
  font-size: 20px;
}

.jumbotron-hero a {
  transition: opacity 0.2s;
  font-weight: 700;
  color: #fff;
}

.jumbotron-hero a:hover {
  opacity: 0.8;
}

.jumbotron-hero h1 {
  color: #fff;
  font-weight: 900;
}

.jumbotron-hero fieldset {
  position: relative;
}

.jumbotron-hero fieldset legend {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 0;
}

.jumbotron-hero fieldset legend:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 10px;
  right: 0;
  width: 50vw;
}

.jumbotron-hero fieldset ul {
  padding: 0;
}

.jumbotron-hero fieldset ul > li {
  list-style: none;
  margin-bottom: 15px;
}



#page {
  padding-left: 0;
}

#page h2 {
  font-weight: 700;
  padding-top: 110px;
  font-size: 44px;
  margin-bottom: 24px;
}

#page h2,
#page h2 a {
  color: #263546;
}

#page h2 > a > i {
  position: relative;
  top: 2px;
  float: right;
}

#page h2:first-child {
  padding-top: 55px;
}

#page section a {
  transition: opacity 0.2s;
  opacity: 1;
  display: block;
}

#page section a:hover {
  opacity: 0.9;
}

#page section p {
  font-weight: 400;
}

#page section:last-child {
  margin-bottom: 90px;
}

#page section h3 {
  font-weight: 700;
}


.repo-stats span {
  margin-right: 15px;
  font-weight: 700;
}


/* --- Nomasystems Custom Footer --- */

.custom-noma-footer {
  background-color: #263546; 
  color: #ffffff;
  padding: 60px 0 0 0; 
  position: relative;
  overflow: hidden; 
  margin-top: 50px;
  min-height: 50vh; /* Added min-height */
  display: flex;    /* Added so the content can stretch */
}

/* Ensure the text stays above the watermark SVG */
.footer-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;           /* Added for internal alignment */
  flex-direction: column;  /* Stack top row and bottom row */
  justify-content: space-between; /* Pushes copyright to the bottom */
}

/* Flexbox Row: Full width, 56px padding, space between */
.noma-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 0 56px;
  box-sizing: border-box;
  gap: 32px; /* Adds a minimum 32px gap between the button and the links */
  flex-wrap: wrap; /* Allows safe stacking on extremely tiny screens */
}

/* Copyright Row: Aligned with the right-side links */
.noma-footer-bottom {
  width: 100%;
  padding: 0 56px;
  box-sizing: border-box;
  text-align: right;
  margin-bottom: 15vw; /* Reduced from 40px to sit right on top of the SVG */
}

/* LinkedIn Pill Button (Made stronger to beat the global 'a' tag rule) */
a.noma-btn {
  display: inline-block;
  border: 1px solid #ffffff;
  border-radius: 25px;
  padding: 8px 24px;
  color: #ffffff !important; /* Forces it to stay white */
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a.noma-btn:hover {
  background-color: #ffffff;
  color: #273443 !important; /* Forces it to turn dark on hover */
  text-decoration: none;
}
.noma-btn:hover {
  background-color: #ffffff;
  color: #273443;
  text-decoration: none;
}

/* Right-side Links Menu */
.noma-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.noma-footer-links li {
  margin-bottom: 12px;
}

.noma-footer-links a {
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.9;
}

.noma-footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Copyright Text */
.noma-copyright {
  font-size: 15px;
  margin: 0;
  opacity: 0.9;
}

/* SVG Watermark Positioning & Styling */
.footer-watermark {
  position: absolute;
  bottom: -1vw; 
  left: 0;
  width: 100%;
  padding: 0 56px; /* Adds the horizontal padding to match your text */
  box-sizing: border-box; /* Keeps the padding inside the 100% width */
  z-index: 1;
  pointer-events: none; 
  display: flex;
  justify-content: center;
}

.footer-watermark svg {
  width: 100%;
  height: auto;
  display: block; 
}

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
  .noma-footer-top,
  .noma-footer-bottom,
  .footer-watermark {
    padding: 0 24px; /* Reduces the 56px horizontal padding on smaller screens */
  }
}