:root {
  --primary: #DAC098;
  --secondary: #E7D7BE;
  --background: #ECE7E0;
  --accent: #332619;
  --text: #140b00;
  --parafont: "PT Sans", sans-serif;
  --headingfont: "Montserrat", serif;
}
/* Basic html propreties and fonts */
html,body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--text);
  font-family: var(--parafont);
  font-size: 68%;

  scroll-behavior: smooth;
  scroll-padding-top: 100px;

  * {
    box-sizing: border-box;
  }
}
h1,h2{
  font-family: var(--headingfont);
  font-weight: 600;
  text-transform: uppercase;
  margin: 20px 0;
  font-size: 1.5rem;
}
li,a {
  font-weight: 600;
  font-style: normal;
  font-size: 1.5em;
  list-style-type: none;
  margin: 0;
  padding: 1.5px;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}
p {
  font-weight: 500;
  font-style: normal;
  font-size: 2em;
  list-style-type: none;
  margin: 5px 0;
  padding: 2px;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}
li:hover,
 a:hover {
  opacity: 0.9;
}
.extramargin {
  padding: 20px 0;
  max-width: 100%;
  width: 90%;
  margin: auto;
}
/* Nav and home page content */
.navi {
  --_nav-primary: rgb(218, 192, 152);
  --_nav-accent: rgb(51, 38, 25);

  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: var(--_nav-primary);
  border-bottom: var(--_nav-accent) 3px solid;
  padding: 2rem 0;

  /* Fixed nav bar */
  position: fixed;
  top: 0;
  width: 100%;
  margin-top: 0;
  z-index: 100;

  ul {
    padding: 10px;
  }
}
.navi.sticking {
  --_nav-primary: rgb(218, 192, 152, 0.75);
  --_nav_accent: rgb(51, 38, 25, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
}
.naviitem li {
  margin: 0 20px;
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
  transition: all 250ms ease;
  a {
    font-weight: 600 !important;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
  }
}
.naviitem a:hover::before {
  bottom: 0px;
  right: .35px;
  left: 0;
}
.naviitem a::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transition: all 0.15s ease-in;
}

.splashpagecontent {
  width: 1200px;
  max-width: 100%;
  height: 750px;
  margin: 5% auto;
  gap: 50px;

  text-align: center;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.splashpagecontent > div {
  background-color: var(--secondary);
  padding: 25px 50px;
  border-radius: 25px;
}
.image-content { 
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  animation: grow 0.4s ease-in;
  
  
  img {
  max-width: 400px;
  max-height: 400px;
  object-fit: contain;
  border-radius: 50%;
  border: var(--accent) 3px solid;
 }
}
@media screen and (max-width: 640px) {
  .navi {
    padding: 0;
  }
  .naviitem {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 !important;

    /* li {
      flex: 1 0 25%;
    } */
  }
  .text-content {
    width: 100% !important;
  }
  .image-content {
    background: transparent !important;
  }
  .separator {
    min-height: 200px !important;
  }
  footer {
    text-align: center !important;
    flex-wrap: wrap;
    justify-content: center !important;
  }
}
@media screen and (max-width: 1100px) {
  .navi {
    padding: 1.5rem 0;
  }
  .splashpage {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .splashpagecontent {
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 1200px;
    height: 800px;
    gap: 0;

    .text-content {
      border-radius: 0 !important;
    }
  }
  .image-content img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border: var(--accent) 3px solid;
  }
  .homecontent {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
    padding: 0;
  }
  .itemcard {
    width: 90% !important;
    height: max-content !important;
    overflow: hidden;
  }
  .itemcard p {
    margin: 10px 15px;
  }
  .separator {
    margin: 20px 0 !important;
    min-height: 200px !important;
  }
  .footer-flex li {
    text-wrap: nowrap !important;
  }
  .header p {
    width: 70% !important;
    margin: 0 auto !important;
  }
  .imagegallery {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    height: auto !important;

    .imagecontain {
      width: 100%;
      height: 100%;
    }
  }
}

/* Home page links and item cards */
.homecontent {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 30px;
  overflow: hidden;
}
.itemcard {
  width: 35%;
  height: 230px;
  padding: 15px;
  background-color: var(--primary);
  text-align: center;
}
/* header and image gallery css */
.header {
  text-align: center;
  p {
    width: 50%;
    margin: 0 auto;
  }
}
/* Image grid classes */
.wide { 
  grid-column: span 2; 
  grid-row: span 2; 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slim { 
  grid-column: span 1; 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.wide.visible,
.slim.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes _slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.imagegallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 95%;
  padding-block-start: 8%;
  margin: 25px auto;
  scroll-margin-top: 120px;
}

/* Image grid classes */
.wide { 
  grid-column: span 2; 
  grid-row: span 2; 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slim { 
  grid-column: span 1; 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Media query for mid-sized screens */
@media screen and (min-width: 640px) and (max-width: 1100px) {
  .imagegallery {
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    gap: 20px;
  }
  
  .wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.imagecontain {
  position: relative;
  border-radius: 8px;
  filter: drop-shadow(0px 0px 3px var(--accent));
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.imagecontain.visible {
  opacity: 1;
  transform: translateY(0);
}

.imagecontain:hover,
.imagecontain:focus {
  /* Removed scale effect */
  filter: drop-shadow(0px 4px 6px var(--accent));
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);

  opacity: 0; 
  transition: opacity 0.5s ease;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  

  p {
    color: #f1f1f1;
    font-size: 2.3em;
    margin: 0 5px;
  }
  a {
    color: #f1f1f1;
  }
}
.imagecontain:hover .overlay {
  opacity: 1;
}
.imagecontain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
/* Separator content */

.separator {
  margin: 20px auto;

  background-image: url(Images/photoshoppractice.png);
  width: 100%;
  height: 600px;
  min-height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  /* background-attachment: scroll; */

  h2 {
    text-align: center;
    margin: 15px 0;
  }
}

/* skills container */
.skillscontainer {
  padding: 20px 0;
  margin: 60px auto;
  position: relative;
  width: 70%;

  border-radius: 10px;
  background-color: var(--secondary);
  text-align: center;

  h3 {
    margin: 0;
  }
  p {
    margin: 0;
  }
}
.skillbox {
  height: 100%;
}
/* Skill bar containers */
.container {
  width: 80%;
  border-radius: 5px;
  margin: 15px auto;
  background-color: snow;

  border: var(--accent) 3px solid;
}
.skill {
  padding-top: 10px;
  padding-left: 15px;
  padding-bottom: 10px;
  position: relative;
  text-align: start;
  overflow: hidden;

}
.skill span p {
  color: snow;
}
/* Skills bar animations */

#html {
  animation: htmlani 1s ease-out forwards;
  background-color: var(--accent);
}
#css {
  animation: cssani 1s ease-out forwards;
  background-color: var(--accent);
}
#js {
  animation: jsani 1s ease-out forwards;
  background-color: var(--accent);
}
#ps {
  animation: psani 1s ease-out forwards;
  background-color: var(--accent);
}
#il {
  animation: ilani 1s ease-out forwards;
  background-color: var(--accent);
}
#sql {
  animation: sqlani 1s ease-out forwards;
  background-color: var(--accent);
}
#php {
  animation: phpani 1s ease-out forwards;
  background-color: var(--accent);
}
#scss {
  animation: scssani 1s ease-out forwards;
  background-color: var(--accent);
}
#react {
  animation: reactani 1s ease-out forwards;
  background-color: var(--accent);
}
#three {
  animation: threeani 1s ease-out forwards;
  background-color: var(--accent);
}


/* Keyframes for each animation */
@keyframes htmlani { from { width: 0%; } to { width: 80%; } }
@keyframes cssani { from { width: 0%; } to { width: 80%; } }
@keyframes jsani { from { width: 0%; } to { width: 80%; } }
@keyframes psani { from { width: 0%; } to { width: 65%; } }
@keyframes ilani { from { width: 0%; } to { width: 65%; } }
@keyframes sqlani { from { width: 0%; } to { width: 65%; } }
@keyframes phpani { from { width: 0%; } to { width: 45%; } }
@keyframes scssani { from { width: 0%; } to { width: 55%; } }
@keyframes reactani { from { width: 0%; } to { width: 35%; } }
@keyframes threeani { from { width: 0%; } to { width: 35%; } }

/* Seprate keyframe animations for on scroll */
@keyframes fade-in-scroll {
  from { transform: translateY(-300%); opacity: 0; }
  to { transform: translateY(0%); opacity: 1; }
}
@keyframes grow {
  from { scale: 0.5; opacity: 0 }
  to { scale: 1; opacity: 1;}
}

/* footer propreties below  */
footer {
  padding: 20px 15px;
  background-color: var(--primary); 

  display: flex;
  justify-content: space-between;
  align-items: center;
  
  ul {
    padding-inline: 5px;
    margin-inline: 10px;
    width: fit-content;
  }
  span {
    font-size: 1em;
  }
}
#wrap {
  display: inline;
  float: left;
  display: flex;
  flex-direction: column;
  transition: padding 250ms ease;

  li {
    margin-block: 10px;
    margin-inline: 10px;
    transition: all 0.15s ease-in;
  }
  li:hover {
    margin-inline-start: 20px;
  }
}
#servicelist {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0; 
  display: flex;
  transition: opacity 1s ease-in;
}

#servicelist.visible {
  opacity: 1; 
}

#servicelist ul {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#servicelist li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter {
  font-size: 2em;
  font-weight: bold;
  color: var(--text);
  text-align: center;
}

.counter + span {
  font-size: 1.2em;
  color: var(--text);
  text-align: center;
}

/* Mobile menu styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
  margin: 10px;
  margin-inline: 20px;
  position: absolute;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media screen and (max-width: 800px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navi {
    padding: 1rem 0;
    justify-content: center;
    align-items: flex-end;
    height: 62.63px;
  }
  
  .naviitem {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    justify-content: center;
    align-items: center;
    transform: translateY(-200%);
    transition: transform 0.4s ease;
    z-index: 150;
  }
  
  .naviitem.active {
    --_nav-primary: rgb(218, 192, 152, 0.75);
    --_nav_accent: rgb(51, 38, 25, 0.75);
    --backdrop-filter: blur(20px) saturate(180%);

    transform: translateY(0);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    height: 100%;
    padding: 1rem 0;
    border-bottom: var(--_nav-accent) 3px solid;
    backdrop-filter: var(--backdrop-filter);
  }
  
  .naviitem li {
    font-size: 300%;
    margin: 15px 0;
  }
  

  .navi .naviitem li,
  .navi .naviitem li a {
    font-weight: 400 !important;
  }
  #navigation-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
  }  
  #navigation-menu .naviitem li {
    font-weight: 100 !important;
  }
  
  .naviitem a {
    font-size: 1.5em;
  }
  .splashpagecontent {
    margin-block: 5% !important;
  }
}

/* Commission section */
.commission-container {
  background-color: var(--primary);
  padding: 50px 20px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.commission-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Images/20240305_093235943_iOS.png');
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: right -50px center;
  opacity: 0.1;
  z-index: 0;
}

.commission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.commission-content h2 {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--accent);
}

.commission-content > p {
  font-size: 1.8em;
  margin-bottom: 35px;
}

.commission-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  flex: 1 0 20%;
  width: 150px;
}

.feature-icon {
  font-size: 2.5em;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature p {
  font-size: 1.5em;
  text-align: center;
}

.commission-button {
  display: inline-block;
  background-color: var(--accent);
  color: white !important;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.5em;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  
}

.commission-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Media query for mobile */
@media screen and (max-width: 800px) {
  .commission-features {
    flex: 1 0 15%;
    align-items: center;
    gap: 15px;
  }
  
  .commission-container::before {
    background-position: center;
    opacity: 0.05;
  }
}

/* About page styles - Mobile optimized */
.about-container {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  text-align: center;
}

.about-header h1 {
  font-size: 3em;
  margin-bottom: 30px;
  color: var(--accent);
}

.about-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.about-section {
  background-color: var(--secondary);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.about-section:hover {
  transform: translateY(-5px);
}

.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.about-section p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Mobile optimizations */
@media screen and (max-width: 800px) {
  .about-container {
    margin-top: 80px;
    padding: 0 15px;
  }
  
  .about-header {
    margin-bottom: 30px;
  }
  
  .about-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
  }
  
  .about-image {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .about-section {
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  }
  
  .about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .about-section p {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  
  /* Make the skills section stand out on mobile */
  .grid_priority {
    order: -1;
    background-color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 22px;
  }
}

/* Small phone optimization */
@media screen and (max-width: 480px) {
  .about-container {
    margin-top: 70px;
    padding: 0 10px;
  }
  
  .about-header h1 {
    font-size: 2.2em;
  }
  
  .about-image {
    width: 120px;
    height: 120px;
  }
  
  .about-section {
    padding: 15px;
    border-radius: 8px;
  }
  
  .about-section h2 {
    font-size: 1.6em;
  }
  
  .about-section p {
    font-size: 1.3em;
  }
}

/* Services page styles */
.services-container {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 20px;
}
/* note: max-width causes a few issues  */
.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  text-align: center;
}

.services-header h1 {
  font-size: 3em;
  margin-bottom: 30px;
  color: var(--accent);
}

.services-content h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-priortity {
  font-style: italic;
  text-align: center;
  font-size: clamp(2em, 4vw, 1.5em);
  max-width: 55%;
  margin: 35px auto;
  color: var(--text);
  font-weight: 400;
}

.available-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  width: 100%;
}

.service {
  background-color: var(--secondary);
  padding: clamp(15px, 3vw, 25px);
  border-radius: 10px;
  min-height: 240px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service:hover {
  transform: translateY(-5px);
}

.service h3 {
  font-size: clamp(2em, 4.5vw, 2.5em);
  margin-bottom: 15px;
  color: var(--accent);
  text-align: left;
  font-style: normal;
}

.service p {
  font-size: clamp(1.7em, 3.5vw, 2em);
  line-height: 1.5;
  margin-bottom: 10px;
  display: block;
}

._descseparator {
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(218, 192, 152, 0.8);
  margin: 15px 0;
}

.services-content h4 {
  text-align: center;
  font-size: 1.9rem;
  margin-top: 30px;
  font-style: italic;
  color: var(--text);
  overflow: hidden;
}

.services-content h4 a {
  color: var(--accent);
  text-decoration: underline;
  font-size: 2rem;
  font-weight: 600;
  transition: transform 300ms ease;
  transform: translate(0px, 0px);
}

.services-content h4 a:hover {
  transform: translateY(-3px);
}


/* Tablet styles */
@media screen and (max-width: 1100px) {
  .services-content {
    padding: 0 15px;
  }
  
  .available-services {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .service {
    min-height: 220px;
  }
}

/* Mobile styles */
@media screen and (max-width: 800px) {
  .services-content {
    padding: 0 10px;
  }
  
  .available-services {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service {
    min-height: auto;
    padding: 20px;
  }
  
  .service-priortity {
    max-width: 95%;
    margin: 25px auto;
  }
}

/* Small mobile styles */
@media screen and (max-width: 480px) {
  .services-content {
    padding: 0 5px;
  }
  
  .service {
    padding: 15px;
    border-radius: 8px;
  }
  
  .service-priortity {
    max-width: 100%;
    margin: 20px auto;
  }
}
