@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&display=swap');

*, *::before,*::after {
  box-sizing: border-box;
}

/* Optional, but good practice for some older sticky footer methods and overall consistency */
html {
    height: 100%;
}

body {
    background-color: rgb(255, 254, 249);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    cursor: url("/cursors/bandos godsword.cur"), auto;

    /* --- Added for Sticky Footer --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures body takes at least the full viewport height */
    /* --- End Sticky Footer Additions --- */
  }

  h1 {
    color: rgb(255, 136, 0);
  }

  p {
    color: black;
  }

  ul {
    list-style-type: none;
    margin: 0;
    padding: 5px 0;
    background-color: rgb(255, 254, 249);
    display: flex;
    width: 100%;
  }

  li {
    flex-grow: 1;
    text-align: center;
}

  li a {
    display: inline-block;
    position: relative;
    color: black;
    text-align: center;
    padding: 20px 0;
    text-decoration: none;
    cursor: url("/cursors/bandos godsword.cur"), auto;
  }

/* ... (rest of your existing li a::after, logo-item styles) ... */
li a::after {
  content: '';
  position: absolute;
  height: 2px;
  left: 0;
  width: 100%;
  bottom: 15px;
  background: black;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

li a:hover::after,
li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

li a.logo-item {
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

li a.logo-item:hover {
  color: #666;
  transform: scale(1.08);
}

li a.logo-item::after {
  display: none;
}


/* Gallery styling (existing styles) */
.gallery-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    max-height: calc(100vh - 150px); /* ADJUST 150px ACCURATELY if header/footer heights change significantly */
    display: flex;
    justify-content: center;
    align-items: center center; /* Corrected: was 'align-items: center center;' */
    padding: 5px;
    overflow: hidden;
	cursor: url("/cursors/bandos godsword.cur"), auto;
}

#galleryImage {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
	cursor: url("/cursors/bandos godsword.cur"), auto;
}

.gallery-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 10;
}

.gallery-nav-left {
    left: 0;
    cursor: url("/cursors/bandos godsword.cur"), auto; /* Kept your custom cursor */
    cursor: w-resize; /* Fallback */
}

.gallery-nav-right {
    right: 0;
    cursor: url("/cursors/bandos godsword.cur"), auto; /* Kept your custom cursor */
    cursor: e-resize; /* Fallback */
}

/* --- Main content area modification for Sticky Footer --- */
main {
    flex-grow: 1; /* Allows the main content to expand and push the footer down */
}
/* --- End Main content area modification --- */


/* --- Footer Styling (ensure this is present and updated) --- */
footer {
    text-align: center;
    /* padding: 0; Original */
    padding: 15px 0; /* Added some vertical padding for better spacing */
    width: 100%;
    margin-top: 20px; /* This provides space when content IS long enough to push footer */
    background-color: rgb(255, 254, 249); /* Ensure footer has body background */
                                        /* This is the same as your body background-color */
}


/* ==== Styles for Contact Page (existing styles) ==== */

body.contact-page-style {
    background-color: #f7d21e;
    color: #000000;
    /* The flex properties from the general 'body' rule will still apply here */
}

.contact-content {
    max-width: 700px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

/* ... (rest of your .contact-content styles like h1, p, .clients-section, etc.) ... */
.contact-content h1 {
    font-size: 2.2em;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 40px;
    color: #000000;
}

.contact-content p {
    margin-bottom: 14px;
    line-height: 1.5;
    font-size: 0.95em;
    color: #000000;
}

.contact-content .contact-info p:first-of-type {
    margin-bottom: 5px;
}
.contact-content .contact-info p:nth-of-type(2) {
    margin-bottom: 14px;
}
.contact-content .contact-info p:nth-of-type(3) {
    margin-bottom: 30px;
}
.contact-content .contact-info p:nth-of-type(4) {
    margin-bottom: 14px;
}

.contact-content .clients-section h2 {
    font-size: 1em;
    font-weight: bold;
    margin-top: 35px;
    margin-bottom: 6px;
    color: #000000;
}

.contact-content .clients-section p {
    margin-bottom: 14px;
}

.contact-content .portfolio-note {
    margin-top: 35px;
}
.contact-content .portfolio-note p {
    margin-bottom: 14px;
}

.contact-content a {
    color: #000000;
    text-decoration: underline;
}

.contact-content a:hover {
    color: #333333;
}

/* Ensure footer text and background are correct on the contact page */
body.contact-page-style footer {
    background-color: #f7d21e; /* Match contact page background */
}

body.contact-page-style footer p {
    color: #000000;
}

body.contact-page-style header.header {
    background-color: #f7d21e;
}

body.contact-page-style header.header nav.navbar ul.nav-links {
    background-color: #f7d21e;
}