*:root {
  --rich-black: #0e121a; /* Header */
  --rich-black-alpha: rgba(14, 18, 26, 0.6);
  --rich-black-alpha2: rgba(26, 32, 45, 0.9);
  --card-hover: rgba(0, 0, 0, 0.6); /* Card going back */
  --card-hover1: rgba(22, 22, 22, 0.7); /* Card going back */
  --card-hover2: rgba(75, 24, 18, 0.6);
  --card-hover3: rgba(75, 24, 18, 0.6); /* Card highlighted */
  --yinmn-blue: #3c4f76; /* Background */
  --antiflash-white: #f3f4f6;
  --grey: rgba(88, 105, 143, 0.4); /* Divider */
  --grey2: rgba(255, 255, 255, 0.1);
  --grey3: rgba(88, 105, 143, 0.1); /* Divider */
  --slate-gray: #6b7b9a; /* DIV Background 2 */
  --deep-space: #1b2c42; /* DIV Background 3 */
  --steel-blue: #4682b4; /* Links */
  --steel-blue-hover: #6b9ecb; /* Link Hover */
  --slate-blue: #6a5acd; /* Card Descriptions */
  --amber: #ffc107; /* Accents, Logo, Hover Links */
  --amber-transparent: rgba(255, 193, 7, 0.8); /* Experience Bar */
  --amber-hover: #d17a00; /* CTA Button */
  --amber-dark-hover: #b36800; /* CTA Button Hover */
  --tangerine: #ff7300; /* CTA Button */
  --tangerine-shade: #cc5800; /* CTA Button Hover */
  --orange-breath: #b34f00; /* Breath Effect */
  --talent-icon-background: #272f41; /* Talent Card Background */
  --golden-sand: #e5c07b; /* Category Titles */
  --ivory-cream: #f0e6d2; /* Category Descriptions */
  --positive-green: #3aa635;
  --muted-teal: #4C9E9E;
  --deep-teal: #006D6D;
  --accent-maroon: #4b0e0e;

  --health-high: #3b4a6b;
  --health-medium: #3b4a6b;
  --health-low: #3b4a6b;

  --mana-high: #003366;
  --mana-medium: #003366;
  --mana-low: #003366;

  
    --amber-light: #ffc107; /* Start color of gradient */
    --amber-dark: #a56000;  /* End color of gradient */
    --amber-dark2: #d17a00;  /* End color of gradient */
  
 
  --deep-burgundy: #800020;
  --cta-orange: #c24c07;
  --olive-green: #556b2f;
  --gunmetal-gray: #2a3439;
  --ocean-blue: #336699;
  --soft-black: #191919;
  --charcoal-gray: #2d2d2d;
  --deep-navy: #1c2b3a;

  --maroon: #800000;
  --cranberry: #a52a2a;
  --deep-red: #990000;
  --crimson: #DC143C; /* Crimson */
  --subtle-red: #d64c4c;
  --forest-green: #228b22;
  --moss-green: #8a9a5b;
  --army-green: #4b5320;
  --midnight-blue: #003366;
  --azure-blue: #007fff;
  --pewter: #4f4f4f;
  --graphite: #383838;
  --titanium-gray: #5d5d5d;
  --slate-gray-alt: #2e2e2e;
  --ash-gray: #3a3a3a;
  --onyx: #353839;
}
* {
  box-sizing: border-box;
}
/* For Webkit Browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 16px; /* Narrow scrollbar */
  background-color: transparent; /* Transparent track */
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Dark thumb with light transparency */
  border-radius: 10px; /* Round the corners */
  border: 2px solid transparent; /* Slight padding effect */
  background-clip: padding-box; /* Ensures the border doesn't affect the thumb appearance */
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5); /* Slightly more opaque on hover */
}
::-webkit-scrollbar-track {
  background-color: transparent; /* Fully transparent track */
}
/* For Firefox */
html {
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* Dark thumb with transparent track */
}
html:hover {
  scrollbar-color: rgba(0, 0, 0, 0.5) transparent; /* Darker thumb on hover */
}
/* Optional: Horizontal scrollbar */
::-webkit-scrollbar-horizontal {
  height: 16px;
}
@font-face {
  font-family: QuattrocentoSans-Regular;
  src: url("/fonts/QuattrocentoSans-Regular.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: QuattrocentoSans-Bold;
  src: url("/fonts/QuattrocentoSans-Bold.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cinzel-Regular;
  src: url("/fonts/Cinzel-Regular.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cinzel-SemiBold;
  src: url("/fonts/Cinzel-SemiBold.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cinzel-Bold;
  src: url("/fonts/Cinzel-Bold.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: OpenSans-Light;
  src: url("/fonts/OpenSans-Light.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: OpenSans-Regular;
  src: url("/fonts/OpenSans-Regular.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: OpenSans-SemiBold;
  src: url("/fonts/OpenSans-SemiBold.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body {
  padding: 0;
  margin: 0;
  background-color: var(--rich-black);
  color: var(--antiflash-white);
  z-index: 0;
  font-family: "QuattrocentoSans-Regular", sans-serif;
}

section {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0px 0px rgba(0, 0, 0, 0.5);
}

.camelot-sons-of-rome {
  background-image: url("/img/camelot-sons-of-rome-ss.webp");
  background-size: cover;
}

.purely-prepped {
  background-image: url("/img/purely-prepped-ss.webp");
  background-size: cover;
}

.ian-doers-talent-calc {
  background-image: url("/img/talent-card.webp");
  background-size: cover;
}

.strikethrough {
  text-decoration: line-through;
  color: #ccc;
}
.bold{
  color: var(--ivory-cream);
  font-family: 'QuattrocentoSans-Bold', sans-serif;
  font-weight: 600;
}
.bold-no-upper{
  font-weight: 600;
}
.accent-amber {
  /* display: contents; */
  color: var(--amber);
}
.display-contents{
  display: contents !important;
}
.display-unset{
  display: unset !important;
}
.accent-tangerine {
  display: contents;
  color: var(--tangerine);
}
.accent-ivory-cream {
  display: contents;
  color: var(--ivory-cream);
}
.accent-maroon{
  color: var(--accent-maroon);
}
.accent-amber-bold {
  color: var(--amber);
  font-family: 'QuattrocentoSans-Bold', sans-serif;
  font-size: 600;
  text-transform: uppercase;
}
.accent-deep-red {
  display: contents;
  color: rgb(253, 61, 61);
}
.accent-steel-blue {
  color: var(--steel-blue-hover);
}

.accent-steel-blue-bold {
  color: var(--steel-blue);
  font-family: 'QuattrocentoSans-Bold', sans-serif;
  font-size: 600;
}
/* .accent-steel-blue-bold:hover {
  color: var(--steel-blue-hover);

} */

.rpg-profile-title {
  background: linear-gradient(90deg, var(--amber), var(--tangerine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.about-paragraph-img{
  width: 20px;
  height: 20px;
  margin: 0 4px 0 0;
  display: inline-grid;

}

.center-icon{
  padding: 16px 0 0;
  display: flex;
  justify-content: center;
  font-size: 20px;
}

.center{
  text-align: center;
}
.large-text{
  padding: 6px 0;
  font-size: 18px;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  text-transform: uppercase;
}
.font-size-20{
  font-size: 20px !important;
}
.font-size-22{
  font-size: 22px !important;
}
.lowercase {
  text-transform: lowercase;
}
.uppercase {
  text-transform: uppercase;
}
.hidden {
  display: none !important;
}
.underline{
  text-decoration: underline !important;
}
hr {
  width: 90%;
}
header {
  height: 100px;
  background-color: var(--rich-black);
  color: var(--antiflash-white);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas: "logo name links";
  padding: 0 5%;
  width: 100%;
  margin: 0;
  position: fixed;
  z-index: 10;
  opacity: 0; /* Start invisible */
  animation: fadeInHeader 3s ease forwards 1s; /* Fade in with delay */
}

/* Default header color */
#main-header {
  transition: background-color 0.5s ease-in-out box-shadow 0.5s ease;
  transition-delay: 0.5s;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.1),
    rgba(14, 18, 26, 1)
  );
  /*border-radius: 16px;*/
  border-bottom: 1px var(--grey3) solid;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /*border: 2px solid rgba(255, 255, 255, 0.3);*/
}
/* Rotating outline effect using box-shadow */
.rotating-outline {
  box-shadow: 0 0 0 3px var(--orange-breath),
    /* Outer glow outline */ 0 0 10px 5px var(--orange-breath),
    0 0 20px 10px rgba(255, 193, 7, 0.5); /* Soft outer glow */
  animation: rotate-outline 3s infinite linear;
  transition-delay: 0.8s;
}

/* Define the keyframes for the rotating effect */
@keyframes rotate-outline {
  0% {
    box-shadow: 0 0 0 3px var(--orange-breath),
      0 0 10px 5px var(--orange-breath), 0 0 5px 10px rgba(255, 193, 7, 0.5);
  }
  50% {
    box-shadow: 0 0 0 3px var(--orange-breath),
      0 0 15px 10px var(--orange-breath), 0 0 25px 15px rgba(255, 193, 7, 0.3);
  }
  100% {
    box-shadow: 0 0 0 3px var(--orange-breath),
      0 0 10px 5px var(--orange-breath), 0 0 5px 10px rgba(255, 193, 7, 0.5);
  }
}

header .header-name {
  grid-area: name;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 3fr 1fr;
  gap: 0px 0px;
  grid-template-areas:
    "header-title header-title header-title"
    "design develop create";
  margin: 0;
  padding: 0;
  justify-self: center;
}
header .header-name a {
  text-decoration: none;
  margin: 0;
}
header .header-title {
  grid-area: header-title;
  text-decoration: none;
  justify-self: center;
  align-self: center;
}
header .logo {
  grid-area: logo;
  align-self: center;
  justify-self: center;
  width: 65px;
  height: 65px;
}
header .design {
  grid-area: design;
  user-select: none;
  justify-self: left;
  align-self: start;
}
header .develop {
  grid-area: develop;
  user-select: none;
  justify-self: right;
  align-self: start;
}
header .create {
  grid-area: create;
  user-select: none;
  justify-self: right;
  align-self: start;
}
header img {
  width: 65px;
  height: 65px;
  padding: 0;
  margin: 0;
}
header h1 {
  color: var(--antiflash-white);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Cinzel-Regular", serif;
  font-weight: 400;
  font-size: clamp(1.557858769931663vw, 28px, 34px);
  margin: 0;
}
header h2 {
  color: var(--amber);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Regular", sans-serif;
  font-weight: 200;
  font-size: clamp(0.5466970387243736vw, 11px, 12px);
  margin: 0;
}
nav {
  grid-area: links;
  display: flex;
  align-self: center;
  justify-self: center;
  width: auto;
  gap: 0 40px;
  font-size: clamp(0.6378132118451025vw, 14px, 14px);
  text-transform: uppercase;
}
nav a {
  color: var(--antiflash-white);
  text-decoration: none;
}
nav a:hover {
  text-decoration: none;
  color: var(--amber);
  transition: color 0.2s ease;
}

.mobile-overlay {
  display: none;
}
.mobile-overlay-content {
  display: none;
}
.mobile-sub-title {
  display: none;
}
/* Hero Section - Desktop */
#hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  height: 100vh;
  background: var(--yinmn-blue);
  background-image: url("/img/computer-bg-splash-desktop5.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Hero overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65); /* Slightly darker for better contrast */
  z-index: 5;
  opacity: 1;
  animation: fadeOutOverlay 3s ease forwards;
}

/* Hero overlay with circular gradient */
.hero-lightbulb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
        circle at 88% 17%,
        rgba(255, 193, 7, 0.2) 10%, /* Slightly brighter inner glow */
        rgba(255, 193, 7, 0.10) 38%,
        rgba(0, 0, 0, 0.5) 46%,
        rgba(0, 0, 0, 0.8) 100%
    );
  z-index: 0;
  opacity: 1;
  animation: fadeInCard 4s ease;
}



/* Fade-in for the card */
@keyframes fadeInCard {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Overlay animation */
@keyframes fadeOutOverlay {
  0% {
    opacity: 1; /* Fully black at the start */
  }
  100% {
    opacity: 0; /* Fully transparent */

  }
}

/* Zoom-out effect for the background - Desktop */
@keyframes zoomOutBackgroundDesktop {
  0% {
    background-size: 150%; /* Start zoomed in */
  }
  75% {
    background-size: 100%; /* Zoom out to 100% */
  }
  100% {
    background-size: cover; /* Fit the entire background after zoom */
  }
} /* Keyframes for the header fade-in */
@keyframes fadeInHeader {
  0% {
    opacity: 0;
    transform: translateY(-20px); /* Start with slight upward movement */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* End in place */
  }
}

.hero-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  box-shadow: none;
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  max-height: unset;
  min-height: unset;
  padding: 0;
  margin: 0 auto;
  max-width: 100%; /* Set to 100% but controlled by wrapper */
  position: relative;
  z-index: 10; /* Ensure it stays on top */
  opacity: 0; /* Start invisible */
  animation: fadeInCard 2.5s ease forwards 1.5s; /* Fade in after overlay */
}

/* Hero card wrapper */
.hero-card-wrapper {
  position: relative;
  z-index: 9; /* Behind the card itself but above background */
  background-color: unset;
  border-radius: 16px;
  padding: 20px;
  margin: 0 auto; /* Center the wrapper */
  max-width: 100%;
  transition: transform 0.3s ease;
  opacity: 0; /* Start invisible */
  animation: fadeInCard 2.5s ease forwards 1.5s; /* Sync with the card */
}

.hero-card-wrapper:hover {
  transform: none; /* No transform on hover for the hero */
}

/* Remove padding on the pseudo-elements */
.hero-card-wrapper::before,
.hero-card-wrapper::after {
  display: none;
  content: "";
  position: absolute;
  margin: 20px;
  inset: 0; /* Use 'inset: 0' to ensure it scales with the parent */
  border-radius: inherit;
  background: unset; /* Ensure the background color matches */
  z-index: -2; /* Ensure it's behind the card */
}
/* Styles for the hero text */
.hero-text {
  position: relative;
  z-index: 10;
  padding: 40px 80px;
  margin: auto;
  display: flex;
  flex-direction: column;

  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Heading - Letter by letter fade-in */
.hero-text h2 {
  font-size: clamp(3.75rem, 3.5761rem + 0.8696vw, 4.25rem);
  font-family: "Cinzel-Regular", serif;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.5px;
  color: var(--amber);
}

/* Paragraph - Letter by letter fade-in */
.hero-text p {
  font-size: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
  line-height: 1.6;
  font-weight: normal;
  color: var(--antiflash-white);
  opacity: 1;
}

/* CTA button */
.cta-button {
  background: linear-gradient(to bottom, #ff8c00, #ffc107); /* Default gradient */
  color: var(--rich-black);
  text-transform: uppercase;
  border-radius: 16px;
  font-size: clamp(18px, 1.8281535648994516vw, 20px);
  cursor: pointer;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.6); /* Matches glow intensity */
  padding: 20px 40px;
  width: auto;
  text-decoration: none;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  text-align: center;
  background-size: 200%;
  opacity: 1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  will-change: background-color, box-shadow, transform;
  justify-self: center;
  align-self: center;
}

.cta-button:hover {
  background: linear-gradient(to bottom, #ffa726, #ffcc33); /* Slightly lighter gradient */
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.8); /* Slightly brighter shadow */
  transform: scale(1.03); /* Subtle scale-up */
}

.diagonal-divider.flipped {
  transform: scaleX(-1); /* Flips the element horizontally */
}
/* About */
#about {
  width: 100%;
  display: flex;
  justify-content: center;
  background-image: url("/img/about-background17.jpg");
  background-size: cover;
  background-attachment: fixed;
  padding: 40px 0;
}
.about-wrapper {
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 8px 20px;
}

/* About container should span both columns in the first row */
.about-grid {
  grid-column: 1; /* Span across both columns */
  grid-row: 1 / span 2; /* First row */
  display: grid;
  grid-template-columns: 1fr; /* Two columns inside the about container */
  grid-template-rows: auto;
  gap: 0; /* Space between the left and right */
  max-width: 1400px;
  width: 100%;
  max-height: 100%;
  margin: 0;
  align-items: start;
}

/* Skills Section - left column, second row */
.skills {
  grid-column: 1; /* First column */
  grid-row: 2; /* Second row */
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(14, 18, 26, 0.08)
  );
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: auto;
}
#rpgOverlay ul{
list-style-type: none;
}

.skills2 {
  grid-column: 2; /* Second column */
  grid-row: 2; /* Second row */
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(14, 18, 26, 0.08)
  );
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: auto;
}

/* Paragraphs */
.about-text p {
  color: var(--antiflash-white);
}
.skills,
.skills2, .skills3,
.about-container, .inspiration-container, .location-container, .rpg-container, .rpg-icon-description {
  color: var(--antiflash-white);
  padding: 20px;
  background: rgba(14, 18, 26, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: 100%;
  width: 100%;
}

/* RPG description on the right of the about-container */
.about-container {
  grid-column: 1; /* Second column */
  grid-row: 1; /* Second row */
  padding: 20px;

  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: auto;
}

.inspiration-container{
  grid-column: 2; /* Second column */
  grid-row: 1;
  padding: 20px;

  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: auto;
}


.p-title {
  color: var(--amber);
  font-weight: bold;
  margin: 0;
  display: inline-flex;
  align-items: last baseline;
}
.p-title svg{
  margin: 0 6px 0;
  padding: 0;
  height: 26px;
  vertical-align: text-top;
}
.about-container .last-style {
  padding: 0 0 24px !important;
  height: auto;
}
/*Other */
/* About Section */
/*Other */
#about ul {
  padding-left: 0;
  margin-left: 0;
  list-style-position: inside;
}
#about-location ul li {
  margin: 0 !important;
}
#about-location p,
#about-location strong {
  padding: 0 !important;
  margin: 0 !important;
}
#about li {
  font-size: 14px;
  line-height: 1.7;
  list-style-type: none;
  font-family: 'OpenSans-Light';
  font-weight: 300;
  letter-spacing: 0.5px;

}
.skills li, .skills2 li{
  display: grid;
  grid-template-rows: auto;
}
#about hr {
  color: rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-right: none;
  border-left: none;
  width: 100%;
  margin: 2px auto 20px;
}
.about-hr {
  margin: 0px 0 24px !important;
}
.rpg-name hr {
  color: rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-right: none;
  border-left: none;
  width: 100%;
  margin: 0 auto 20px !important;
}
#about .p-title {
  margin-top: 20px;
  justify-self: left !important;
}
#about .skill-desciption {
  margin-bottom: 24px;
}
#about strong i {
  padding: 0 6px 0 0;
}
#about h4 strong {
  display: block;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--tangerine);
  font-size: 22px;
  margin: 0 0 16px;
}

#about strong {
  font-size: 17px;
  display: block;
  color: var(--amber);
  margin: 0 0 12px;
  align-self: end;
  justify-self: center;
}
/* Skills List Container */
.skills-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: auto;
  gap: 24px 16px;
  font-size: 15px;
  padding: 0;
}

.skill-item li strong{
  grid-row: 1 !important;

  margin: 0 0 4px !important;
  text-transform: uppercase;
}
.skill-item{
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  background: rgba(50, 50, 50, 0.4);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--grey);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.skill-item:hover { /* Optional hover for desktop */

  box-shadow: 0 0 16px rgba(255, 165, 0, 0.6), 0 0 32px rgba(255, 165, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 165, 0, 0.8) !important;
  transform: scale(1.05);
}
.skill-item .skills-list{
  grid-row: 2 !important;

}
.skills-list{
  grid-row: 2 !important;
}
.rpg-overlay{
  display: none;
}

/* RPG Intro Overlay */

.rpg-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* Hide by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.rpg-intro-overlay-content {
  background: #333;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #636363;
  color: #f3f4f6; /* Light color for readability */
  text-align: center;
  max-width: 300px;
}

.rpg-intro-overlay-content img{
  width: 120px;
  height: 120px;
}

.rpg-intro-overlay-content p{
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  
}
/* .rpg-intro-overlay-content h3{
  color: var(--golden-sand);
} */

#accept-button {
  margin: 32px auto 16px;
  padding: 16px 36px;
  background: linear-gradient(to bottom, #ff8c00, #ffc107); /* Default gradient */
  color: var(--rich-black);
  border: none;
  border-radius: 5px;

  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  /* font-family: "QuattrocentoSans-SemiBold", sans-serif; */
  font-weight: 600;


    
    text-align: center;
    align-self: center;
    font-family: "QuattrocentoSans-Bold", sans-serif;

    
    background-size: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(192, 71, 1, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
will-change: background-color, box-shadow, transform;
}

#accept-button:hover {
  background: linear-gradient(to bottom, #ffa726, #ffcc33); /* Slightly lighter gradient */
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.6); /* Slightly brighter shadow */
  transform: scale(1.03); /* Subtle scale-up */
}

/* RPG Profile Section */


/* Profile Picture */
.rpg-picture {
  display: grid;
  grid-column: 1; /* Span across both columns for the image */
  grid-row: 1; /* First row */
  justify-items: center;
  width: 100%; /* Make sure it takes up full width */
  height: 100%;
  margin: 16px 0;
  text-align: center; /* Center the image */
  padding: 8px 12px;
  position: relative;
}


/* RPG Name Heading */
.rpg-name {
  grid-column: 2 / span 2;
  grid-row: 1;

  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto;
  height: 100%;
  margin: 0;
  justify-self: stretch;
  align-self: center;
  text-align: center;
  text-transform: uppercase;
  font-size: 24px;
  padding: 0;
  color: var(--antiflash-white);
  font-family: "Cinzel-Regular", serif;
  gap: 0 12px;
}

/* RPG Table */
.rpg-table {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));

  max-width: 100%;
  gap: 24px;
  padding: 20px 40px;
  margin: 0;
  border-radius: 0;
  height: auto;
  background: rgba(0, 0, 0, 0.5);
  justify-items: center;
  align-items: stretch;
}

.rpg-row:hover, .rpg-row-mobile:hover {
  border-radius: 50px;
  background-color: var(--yinmn-blue);
  color: var(--amber);
}

.about-container p, .location-container p, .inspiration-container p {
  padding: 0 0 16px !important;
  line-height: 1.5;
  text-indent: 24px;
  letter-spacing: normal;

  font-size: 16px;

  margin: 0;
}
.about-container strong p {
  padding: 0 0 16px !important;
  line-height: 1.5px;

  height: auto; /* Adjust height dynamically based on content */
}
.about-container p:last-of-type {
  padding: 0 0 24px !important;
  line-height: 1.5;
  text-indent: 24px;
  letter-spacing: normal;
  height: auto; /* Adjust height dynamically based on content */
}


/* RPG description should span both rows on column 2 */
/* RPG details should span both rows */
.rpg-details {
  display: grid;
  grid-column: 1 / -1;
  /* grid-row: 2; */
  grid-template-columns: 1fr 1fr;
  padding: 0 0 20px;
  text-align: left;
  width: 100%;
  height: 100%;
  margin: 0;
  justify-content: center;
  color: var(--antiflash-white);
  background-color: var(--rich-black);
  border-radius: 0 0 16px 16px;
  grid-template-rows: auto;
  gap: 0;
}

.stat-grid {
  
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(min-content, minmax(200px, 1fr));
  grid-auto-rows: auto; 
  width: 100%;
  gap: 20px 12px;
  align-items: start;
  padding: 0 20px;
  margin: 16px 0 0;
  border-radius: 0;
  background: transparent;
}
.stat-item {
  display: grid;
  flex-direction: column;
}
.stat-divider {
  grid-row: 2;
  grid-column: 1 / span 2;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grey);
}
/* Left Label */
.stat-label {
  font-size: 14px;
  font-weight: bold;
  color: var(--golden-sand); /* Gold-like color */
  text-align: center;
  justify-self: right;
  margin: 0;
  grid-column: 1 / span 2;
  grid-row: 1;
  width: 100%;
}
/* Top Attribute */

/* Right Value */
.stat-value {
  font-size: 14px;
  text-align: left;
  color: var(--ivory-cream); /* Light contrasting color */
  padding: 8px 0 0 0;
  margin: 0;
  justify-self: left;
  width: 100%; /* Adjust this to your layout */
  align-self: center;
}

/* Top Attribute */

.stat-name {
  text-align: center;
  grid-column: 1 / span 2;
  align-self: center;
  font-size: 18px;
  text-transform: uppercase;
  justify-self: center;
  font-weight: 600;
  color: var(--amber); /* Amber color for the stat name */
}



.rpg-icon, .rpg-icon-mobile {
  display: inline-block;
  will-change: transform;
  width: 48px;
  height: 48px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transform-origin: center;
  transition: transform 0.6s ease, fill 0.6s ease;
  fill: rgba(0, 0, 0, 0.9);
}

.rpg-row.active .rpg-icon,
.rpg-icon:hover, .rpg-row-mobile.active .rpg-icon-mobile, .rpg-icon-mobile:hover{
  transform: scale(1.3); /* Zoom for active state */
  fill: var(--amber);
}
.rpg-row svg,
.rpg-row img {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}







.portfolio-header-background {
  position: absolute; /* Allows it to cover the entire parent container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      at left bottom,
      rgba(60, 40, 6, 0.05),
      transparent 50%
    ),
    linear-gradient(
      359deg,
      rgba(90, 41, 6, 0.5) 1%,
      rgba(0, 0, 32, 0.05),
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.9)
    ),
    url("/img/designs-header-bg3.jpg");
  background-size: cover; /* Ensures image covers the entire area */
  background-position: left 0% bottom 70%;
  transform: scaleX(-1);

  z-index: -1; /* Places it behind the main content */
  opacity: 1; /* Adjusts overlay transparency for readability */
}
.profile-header img {
  display: flex;
  grid-column: 1;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  justify-self: center;
}

.profile-header p {
  margin: 0;
}

.rpg-row {
  /* Ensure each row spans one column */
  display: flex;
  height: 52px;
  width: 52px; /* Fixed height to prevent shifting */
  border-radius: 50px;
  justify-content: center;
  align-items: center;
  align-content: center;
  justify-items: center;
  background: var(--grey);
}



.rpg-icon-description {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  margin: auto;
  clear: both;
  padding: 20px;
  font-size: 14px;
  word-wrap: break-word; /* Handle long words properly */
  overflow-wrap: break-word;
  height: 100%; /* Allow height to adjust based on content */
  line-height: 1.5; /* Better readability */
  text-align: center; /* Align description text centrally */
  justify-content: center;
  width: 100%;
  align-items: start;
}

.desktop-cta-location {
  display: none;
  /*margin: 60px 0 40px;*/
}


.skills p,
.skills2 p {
  line-height: 1.5;
  text-indent: 24px;
  padding: 0 0 16px;
}

/* Portfolio */



#portfolio hr {
  color: rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-right: none;
  border-left: none;
  width: 100%;
  margin: 20px auto;
}
.portfolio-header {
  display: grid;

  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
  z-index: 6;
  width: 100%;

  margin: 0;
  padding: 40px 30%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0px 0px rgba(0, 0, 0, 0.5);
}

.ember-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 4;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: 60px;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 128, 9, 0.8); /* Ember color */
  border-radius: 50%;
  opacity: 0;
  z-index: 4;
  animation: rise 20s infinite;
}

@keyframes rise {
  0% {
    transform: translateY(10vh) scale(0.5);
    opacity: 1;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-90vh) scale(1.5);
    opacity: 0;
  }
}
/* Fullscreen wrapper */
.portfolio-wrapper-desktop {
  /* background: linear-gradient(180deg, rgba(110, 35, 27, 0.8), rgba(5, 28, 47, 0.95) 80%); */
  background: linear-gradient(to bottom, #1b263b, #0e121a), url("/img/transparent-bg/subtle-carbon.png");
  background-blend-mode: overlay;
  
  /* background-color: var(--deep-space); */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  position: relative;

  display: grid;
  padding: 0 0 4%;
  gap: 40px;

}

.site-portfolio-cards-desktop {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  grid-auto-rows: min-content; /* Allow rows to grow dynamically */
  align-items: start; /* Align items to the top of the row */
  place-items: center;
  padding: 0 10%;
}

.site-card-desktop {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto; /* Ensure space for the expandable section */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  align-self: self-start;
  box-shadow: 0 0 8px;
}

.site-card-desktop:hover {
  will-change: box-shadow, border-color;
  box-shadow: 0 0 12px rgba(255, 191, 0, 0.8);
  border-color: rgba(255, 191, 0, 0.8) !important;
  
}

.site-card-desktop h3 {
  text-align: center;
  color: var(--antiflash-white);
  
  /* Explicitly define multiple background layers */
  background-image: 
      linear-gradient(180deg, #1a2434 0%, #2a3749 100%), 
      url("/img/transparent-bg/gradient-squares.png");
  background-blend-mode: overlay;
  
  margin: 0;
  padding: 10px;
  letter-spacing: 0.5px;
  font-weight: 300;
  font-family: "Cinzel-SemiBold", serif;
  font-size: 26px;
}

.site-card-background {
  /* background-color: #2a2a40; */
  background: rgba(255, 193, 7, 0.2);  
  overflow: hidden;
  max-height: 0; /* Initially hidden */
  transition: max-height .6s ease, padding .6s ease;
  padding: 0 20px; /* Adjust padding as necessary */
  position: relative; /* Ensure it flows naturally */
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2); /* Top shadow */
}

.site-card-desktop:hover .site-card-background {
  max-height: 800px;
  padding: 0 20px 20px; /* Add padding for expanded content */
}

.site-card-desktop:hover h3{
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.6); 
}

.site-card-desktop:hover{
  transform: translateY(-5px); /* Optional: Slight lift effect */
}


.category-value li svg, .focus-value li svg{
  height: 14px;
  fill: var(--amber);
  margin: 0 8px 1% 0;
  vertical-align: text-bottom;

}

.category-value li:hover svg, .focus-value li:hover svg {
  fill: #ff9d07; /* Change the SVG color */
  transform: scale(1.1); /* Slightly enlarge the SVG */
  }
  /* Hover Effect */
  .category-value li:hover, .focus-value li:hover{
  color: #ffc107; /* Light up on hover to engage the user */
  transform: scale(1.02); /* Slight zoom effect */
  transition: all 0.2s ease;
  }
  

.site-card-background .card-description{
  font-size: 14px;
}

.site-card-desktop img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.3s ease;
  cursor: pointer;
}

.site-card-desktop:hover img {
  filter: brightness(1);
}



@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Modal Container */
.image-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10; /* Ensure it’s above all other elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scrolling if content is larger than the screen */
  background-color: rgba(0, 0, 0, 0.8); /* Dim background */
}
/* Modal Content (Image) */
.image-modal-content {
  max-width: 90%; /* Scale image to fit the modal */
  max-height: 90%; /* Ensure the image fits within the modal */
  display: block;
  margin: auto; /* Center the image horizontally */

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Add a shadow for aesthetics */
  object-fit: contain; 
  animation: zoomIn 0.3s ease-in-out;
}



/* Close Button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ffc107;
}

@keyframes siteCardFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.portfolio-h2{
  grid-row: 1;
  grid-column: 1 / -1;

  padding: 40px 0 20px;
  margin: 0 30%;
}
.portfolio-header p {
  text-align: left;
  text-indent: 14px;
  z-index: 5;
  width: 100%;
  grid-column: 1;
  justify-content: left;
  padding: 12px 0;
  margin: 12px 0;
  line-height: 1.7;
  font-size: clamp(1.0625rem, 1.019rem + 0.2174vw, 1.1875rem);
}
.portfolio-header hr {
  z-index: 5;
}
.portfolio-header p:last-of-type {
  z-index: 5;
  text-indent: 14px;
  text-align: left;
  width: 100%;
  grid-column: 1;
  justify-content: left;
  padding: 12px 0;
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: clamp(1.0625rem, 1.019rem + 0.2174vw, 1.1875rem);
}

.site-card-background .category-focus{
  padding: 12px 40px 0;
  display: grid;
  grid-column: 1 / span 2;
  grid-row: 2;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  justify-items: center;
  gap: 2px 0;
}

.category {
  grid-row: 1;
    grid-column: 1;
}
.site-focus {
  grid-row: 1;
    grid-column: 2;
}

.category, .site-focus{
  font-weight: 600;
  text-transform: uppercase;
  margin: 4px 0;
  letter-spacing: 0.7px;
  font-size: 13px;
  color: var(--amber); /* Category font color */
  font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
}

.category-value {
  grid-column: 1;
  grid-row: 2;
}

.focus-value {
  grid-column: 2;
  grid-row: 2;
}

.category-focus li{
  margin: 2px 0;
}

.category-value, .focus-value{
  list-style-type: none;
  font-style: italic;
  align-self: self-start;
  text-align: left;
  justify-self: center;
  color: var(--ivory-cream); /* Category font color */
  margin: 0;
  padding: 0;
  letter-spacing: 0.3px;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 13px;
}

.card-description {
  line-height: 1.5;
  margin: 8px 0 20px 0;
  background-color: rgba(14, 16, 26, 0.3);
  padding: 20px;
  border-radius: 8px;
  font-family: 'OpenSans-Light', sans-serif;  
}
.portfolio-logo-and-webtext {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  background-image: 
      linear-gradient(180deg, #1a2434 0%, #2a3749 100%), 
      url("/img/transparent-bg/gradient-squares.png");
  background-blend-mode: overlay;
  align-items: center;
  margin-top: auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0px 0px rgba(0, 0, 0, 0.5);
  font-size: 13px;/* Pushes this section to the bottom */
}
.left-portfolio {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-family: 'OpenSans-Light', sans-serif;
}
/* Logo on the Bottom Left */
.portfolio-logo {
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.2));
}
.portfolio-logo img {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  filter: brightness(1);
}
.webtext a {

  color: var(--amber);
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-family: 'OpenSans-Regular', sans-serif;
  letter-spacing: .1px;
}
.webtext a:hover {
  color: var(--steel-blue-hover);
  text-decoration: none;
}
.portfolio-logo-and-webtext .year {
  align-self: right;
  font-size: 14px;
  padding: 0;
  margin: 0;
}

.diagonal-divider {
  position: relative;
  width: 100%;
  height: 160px;
  z-index: 0;
  background-color: var(--rich-black); /* Adjust this to match your design */
  
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0px 0px rgba(0, 0, 0, 0.5);
}
.diagonal-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--tangerine-shade),
    var(--amber)
  ); /* Adjust to your desired color */
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: -2;

}
/* Services Section */
#services {
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: var(--yinmn-blue);
  background-image: url("/img/services-bg-desktop.webp");
  background-size: cover;
  background-attachment: fixed;
  min-height: 80vh;
  padding: 0 0 40px;
  color: var(--antiflash-white);
  text-align: center;
  position: relative; /* Ensure the background image is positioned correctly */
  z-index: 1;
  align-items: center;
}

#services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    14,
    18,
    26,
    0.2); /* Adjust the color and transparency */
  z-index: -1; /* Keep it behind the content */
}

#services hr {
  color: rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-right: none;
  border-left: none;
  width: calc(100% - 40px);
  margin: 20px auto;
}

.services-container {
  display: flex;
  max-width: 1400px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
}
.services-container h2 {
  font-size: clamp(2.1867881548974943vw, 32px, 48px);
  background-color: var(--rich-black);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  color: var(--amber);
  font-family: "Cinzel-Regular", serif;
  margin-bottom: 40px;
}
.services-grid {
  display: grid;
  max-width: 1400px;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
/* Ensure the entire wrapper moves on hover */
.service-card-wrapper {
  position: relative; /* Allows the card's ::before and ::after pseudo-elements to act correctly */
  z-index: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Apply transition to the wrapper */
  will-change: transform, box-shadow;
  border-radius: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid rgba(99, 99, 99, 1);
  max-width: 800px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4),
    rgba(14, 18, 26, 0.8)
  ); /* Lighter opacity */
  background: var(--rich-black-alpha);
  padding: 40px 20px;
  min-height: 100%;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
        background: linear-gradient(to bottom, rgba(50, 50, 50, 0.5), rgba(20, 20, 20, 0.9));
}
.service-card:hover, .service-card:active, .service-card:focus-within{
  box-shadow: 0 0 16px rgba(255, 165, 0, 0.5), 0 0 32px rgba(255, 165, 0, 0.3); /* Softer amber glow */

  /* transform: scale(1.03); */
  background: linear-gradient(to bottom, rgba(18, 14, 27, 0.5), rgba(20, 20, 20, 1));
  border-color: rgba(255, 140, 0, 0.8); /* Slightly deeper amber */
  will-change: transform, box-shadow, background;
   /* Slight scale-up effect */
}


.services-header:hover {
  transform: none;
}
.services-header {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
  z-index: 6;
  width: 100%;
  background-color: var(--yinmn-blue);
  margin: 0 0 40px;
  padding: 40px 30%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0px 0px rgba(0, 0, 0, 0.5);
}
.services-header hr {
  grid-column: 1;
  display: flex !important;
  justify-content: left !important;
  width: 100% !important;
  margin: 20px 0 !important;
}
/* Icon at the top (row 1) */
.service-icon svg{
  grid-row: 1;
  text-align: center;


  height: 40px;
  padding: 0;

  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.4));

}

.price-range {
  grid-row: 3;
  font-size: clamp(1rem, 1.2rem + 0.1vw, 1.25rem);
  font-weight: bold;
  color: var(--golden-sand);
  margin: 4px 0 16px;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}
.service-card:hover .price-range {
  color: var(--amber);
  transform: scale(1.1);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* .service-card:hover h3, .service-card:hover .service-icon, .service-card:hover .service-description {

  transform: scale(1.05);
  transition: transform 0.3s ease;
} */
.services-header-background {
  position: absolute; /* Allows it to cover the entire parent container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 650px;
  background: linear-gradient(
      165deg,
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.5),
      rgba(255, 156, 7, 0.2)
    ),
    url("/img/services-header-bg7.webp");
  background-size: cover; /* Ensures image covers the entire area */
  background-position: right 100% bottom 60%;
  background-repeat: no-repeat;

  z-index: -1; /* Places it behind the main content */
  opacity: 1; /* Adjusts overlay transparency for readability */
}




.portfolio-header h2, .portfolio-h2 h2, .services-header h2{
  
  grid-column: 1;
  z-index: 5;
  text-align: center;
  width: 100%;
  font-size: clamp(2.1867881548974943vw, 32px, 48px);
  color: var(--amber);
  font-weight: 700;
  margin: 0 0 12px;
  font-family: "Cinzel-Regular", serif;
  background: radial-gradient(circle, rgba(107, 123, 154, 0.3) 0%, rgba(27, 38, 59, 0) 70%);

}

/* Paragraph (row 4) */
.service-details .service-description {
  grid-row: 4;
  font-size: clamp(.95rem, 0.8408rem + 0.1087vw, 1.025rem);
  margin: 0;
  font-family: 'OpenSans-Light', sans-serif;
  font-weight: 400;
  padding: 0 4px;
  letter-spacing: .3px;
  align-items: self-start;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* Soft shadow */
  text-align: left;
  line-height: 26px;
  color: var(--antiflash-white);
  min-height: 150px; /* Set a minimum height for alignment */
  z-index: 4;
}


.services-header p {
  text-align: left;
  width: 100%;
  grid-column: 1;
  justify-content: left;
  padding: 12px 0;
  margin: 12px 0;
  line-height: 25px;
  font-size: clamp(1.0625rem, 1.019rem + 0.2174vw, 1.1875rem);
}
.services-header p:last-of-type {
  text-align: left;
  width: 100%;
  grid-column: 1;
  justify-content: left;
  padding: 12px 0;
  margin: 0 0 12px;
  line-height: 25px;
  font-size: clamp(1.0625rem, 1.019rem + 0.2174vw, 1.1875rem);
}
.service-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: auto 100px 50px auto;
  height: 100%;
  justify-self: start; /* Ensures the content is spaced evenly */
  align-items: center;
}
/* Heading (row 2) */
.service-details h3 {
  grid-row: 2;
  padding: 20px 20px 16px;
  text-align: center;
  font-size: clamp(1.5rem, 1.413rem + 0.4348vw, 1.75rem);
  letter-spacing: 1.25px;
  min-height: 70px; /* Ensures all headers have the same height */
  color: var(--tangerine);
  text-transform: uppercase;
  margin: 0;
  height: 100%;
  justify-content: flex-start;
}
/* First horizontal line (row 3) */
.service-details hr {
  grid-row: 5;
  align-self: start !important;
  justify-content: left !important;
  width: 100% !important;
  margin: 8px 0 20px !important;
  color: rgba(229, 192, 123, 0.5) !important;
}

.service-button{
background: linear-gradient(to bottom, var(--slate-gray), var(--deep-space));

    

    border-radius: 16px;
    text-transform: uppercase;
    font-family: "QuattrocentoSans-Bold", sans-serif;
    
    font-weight: 400;
    font-size: 18px;
    margin: auto;
    width: unset;
    /* -webkit-text-stroke: .25px var(--accent-maroon); */
    color: var(--ivory-cream);

    cursor: pointer;
    padding: 18px 40px;
    text-decoration: none;
    text-align: center;
 
    box-shadow: 0 0 6px rgba(107, 123, 154, 0.6);
    border: 2px solid #5a7cab;

    transition: background 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  .service-button:hover {
    background: linear-gradient(to bottom, var(--deep-space), var(--slate-gray));
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4); /* Softer glow */


    transform: scale(1.05); /* Slight zoom-in effect */
    color: #f3f4f6; /* Anti-Flash White for hover text */
  }

  .service-button:focus {
    outline: 3px dashed #5a7cab; /* Matches your site theme */
    outline-offset: 4px;
}

/* Unordered List (row 6) */
.service-card ul {
  grid-row: 6;
  list-style-type: none; /* Remove default bullet points */
  padding: 8px;
  margin: 0 8px 20px;
  color: var(--antiflash-white); /* Matches the text color of the card */
  text-align: left;
  align-self: start;
  justify-self: center;
  background: rgba(255, 193, 7, 0.05);
  border-radius: 8px;
}

/* Styling for the LI */
.service-card ul li {
  position: relative; /* For custom bullet placement */
  line-height: 2; /* Adjust to create more breathing room */

  margin-bottom: 0; /* Space between list items */
  font-size: 17px;
  font-weight: 300; /* Light text for a modern look */

}

.service-card ul li svg{
  height: 20px;
  fill: var(--amber);
  margin: .5% 12px 0 0;
  vertical-align: text-bottom;
}
.service-card ul li:hover svg {
fill: #ff9d07; /* Change the SVG color */
transform: scale(1.1); /* Slightly enlarge the SVG */
}
/* Hover Effect */
.service-card ul li:hover{
color: #ffc107; /* Light up on hover to engage the user */
transform: scale(1.02); /* Slight zoom effect */
transition: all 0.3s ease;
}









/* Contact Section */
#contact {
  /* background-color: var(--rich-black); Add transparency to the background */
  background: url("/img/transparent-bg/notebook.png"), var(--rich-black);
}
#contact h2 {
  font-size: clamp(2rem, 1.5vw + 1rem, 3rem);
  /* Explanation:
    - Minimum size: 2rem (32px)
    - Preferred responsive growth: 1.5vw + 1rem
    - Maximum size: 3rem (48px) */
  color: var(--amber);
  text-align: left; /* Align the heading to the left */
  font-family: "Cinzel-Regular", serif;
  font-weight: 700;
  margin: 0 auto;
  padding: 0;
}
#contact p {
  text-indent: 14px;
  padding: 0;
  margin: 0;
  font-size: clamp(1rem, 0.9674rem + 0.163vw, 1.0938rem);
  /* Explanation:
    - Minimum size: 1rem (16px)
    - Preferred responsive growth: 1vw + 0.01rem
    - Maximum size: 1.25rem (20px) */
  line-height: 1.6; /* For better readability */
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal fluid columns */
  grid-template-rows: auto auto;
  align-items: start; /* Align items to the top of the grid */
  padding: 80px 20px;
  max-width: 1400px;
  margin: auto;
  gap: auto; /* Space between columns */
}
.contact-header-desktop{
  display: unset;
}
.contact-header-mobile{
  display: none;
}
/* Contact details on the left */
.contact-header {
  grid-column: 1; /* Left column */
  grid-row: 1;
  justify-content: center;
  align-items: center;
}
.contact-description {
  padding-right: 20px;
}
/* Contact Form on the right */
.contact-submit {
  grid-column: 2; /* Right column */
  grid-row: 1 / span 2;
  height: 100%;
  width: 70%;
  justify-self: end;
}
.contact-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: 40px 150px auto; /* 3 columns: icon, label, content */
  gap: 10px 20px; /* Adjust spacing between rows and columns */
  align-items: center;
  margin-bottom: 20px;
  max-width: 600px; /* Optional: limit width */
  letter-spacing: 0.7px;
}
.contact-title {
  font-size: clamp(1rem, 0.9674rem + 0.163vw, 1.0938rem);
  color: var(--antiflash-white);
  font-weight: 600;

  text-align: left; /* Align label text to the left */
}
.contact-content {
  font-size: clamp(1rem, 0.9674rem + 0.163vw, 1.0938rem);
  color: var(--antiflash-white);
  text-align: left; /* Align content text to the left */
}
.contact-grid svg{
  margin: 0;
  padding: 0;
  height: clamp(1rem, 0.9674rem + 0.163vw, 1.0938rem);
  vertical-align: text-top;
  justify-self: stretch;
}
.contact-header hr {
  width: 100%;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-right: none;
  border-left: none;
  margin: 40px 0;
}
/* Contact form styling */
form {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(243, 244, 246, 0.1); /* Transparent form background */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05); /* Transparent input fields */
  color: #f3f4f6; /* Text color */
  font-family: "QuattrocentoSans-Regular", sans-serif;
  font-size: 16px;
  transition: border 0.3s ease;
}
form textarea {
  min-height: 120px;
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5); /* Lighter placeholder */
  
}
form input:focus,
form textarea:focus {
  border-color: var(--amber); /* Border color on focus */
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
}


form button {
  background: linear-gradient(to bottom, #ff8c00, #ffc107); /* Default gradient */
  color: var(--rich-black);
  box-shadow: 0 4px 12px rgba(192, 71, 1, 0.4);
  font-family: "QuattrocentoSans-Bold", sans-serif;

  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  will-change: background-color, box-shadow, transform;
  padding: 16px 36px;
}
form button:hover {
  background: linear-gradient(to bottom, #ffa726, #ffcc33); /* Slightly lighter gradient */
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.6); /* Slightly brighter shadow */
  transform: scale(1.03); /* Subtle scale-up */
}



#form-message {
  font-family: "OpenSans-SemiBold", sans-serif; /* Or your preferred font */
  font-size: 14px; /* Adjust the size as needed */
  color: var(--amber); /* Use your defined color variables */
  padding: 32px 20px 20px;
  text-align: center; /* Align text center */
  border-radius: 8px; /* Rounded corners for the message box */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
}
/* Success Message */
#form-message.form-success {
  color: var(--amber);
}
/* Error Message */
#form-message.form-error {
  color: var(--deep-red);
}
/* Footer Section */
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  min-height: 200px;
  width: 100%;
  gap: 16px;
  background-color: var(--rich-black);
  text-align: center;
}
footer p {
  margin: 0 4px; /* Add horizontal space around the text */
  padding: 0;
  color: var(--antiflash-white);
}
.divider {
  flex-grow: 1;
  margin: 0 12px;
  height: 1px;
  background-color: var(--grey);
}
.copyright {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 20px 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}
.copyright-name {
  display: flex;
  font-size: 14px;
  color: var(--slate-gray);
}
.footer-links {
  display: flex;
  flex-direction: row;

  justify-content: center;
  align-items: center;
  width: auto;
  gap: 0 20px;
  font-size: clamp(0.6378132118451025vw, 16px, 16px);
}
.footer-links a {
  color: var(--steel-blue);
  text-decoration: none;
}
.footer-links a:hover {
  color: #6b9ecb;
  text-decoration: none;
}


.cell-phone, .envelope, .pindrop {
  transition: transform 0.3s ease;
}

.cell-phone.rotated, .envelope.rotated, .pindrop.rotated{
  transform: rotate(45deg);
}

#unfinished {
  background: linear-gradient(to bottom, #0e121a, #2c3e50);
  padding: 20px;
  text-align: center;
  color: #f3f4f6; /* Anti-Flash White */
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 7;
}

.announcement-box {
  border: 1px solid #e5c07b;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: auto 20%;
  height: 100%;
  justify-content: center;
}

.announcement-title {
  font-size: 1.8rem;
  color: #ffc107; /* Amber */
  margin-bottom: 20px;
}

.announcement-text {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #f3f4f6; /* Anti-Flash White */
  margin-bottom: 10px;
}

.announcement-subtext {
  font-size: 1rem;
  color: #6b9ecb; /* Steel Blue Hover */
  margin-top: 10px;
}

/* Mobile Screens */
@media screen and (max-width: 768px) {
  .announcement-box{
    margin: auto 5%
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    overflow-x: hidden;
  }
  header {
    background-color: var(--rich-black);
    display: flex;
    position: fixed;
    height: 75px;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    opacity: 0;

    animation: fadeInHeader 2.5s ease forwards .5s;
  }
  /* Default header color */
  #main-header {
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1),
      rgba(14, 18, 26, 1)
    ); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.5s ease-in-out;

    border: none;
    border-bottom: 1px var(--grey2) solid;
    border-radius: unset;
    /*transition: outline 0.3s ease-out;*/
  }

  header .header-name {
    display: flex;
    flex-direction: column; /* Stack the title and the subsections vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    width: 100%;
  }
  header .header-title {
    margin-bottom: 5px;
  }
  header .header-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding: 0;
  }
  header .header-name .mobile-sub-title h2 {
    display: flex; /* Treat them as inline elements */
    margin: 0 8px; /* Add space between them */
    font-size: 12px;
    padding: 0;
    text-align: center;
    align-self: center; /* Override any inherited alignment */
  }
  header .header-name .mobile-sub-title {
    display: flex;
  }
  header .header-name .design,
  header .header-name .develop,
  header .header-name .create {
    display: none;
  }
  header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
  }
  header img {
    width: 50px;
    height: 50px;
  }
  nav a {
    display: none;
  }

#mobileHamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 22px;
  width: 50px;
  transform: scale(0.8);
  margin: 8px 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  align-items: center;
}

#mobileHamburger span {
    display: block;
    height: 4px;
    width: 100%;
    margin: -2px 0;
    background-color: var(--antiflash-white);
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
    justify-content: center;
}

#mobileHamburger span:nth-child(1){
  background-color: var(--slate-gray);
}
#mobileHamburger span:nth-child(2){
  background-color: var(--amber);
}
#mobileHamburger span:nth-child(3){
  background-color: var(--antiflash-white);
}
/* Animation when menu is open */
#mobileHamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px) translateX(7px);
}

#mobileHamburger.open span:nth-child(2) {
    opacity: 0; /* Hide middle bar */
}

#mobileHamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px) translateX(7px);
}
#mobileHamburger.open span {
  background-color: var(--steel-blue-hover); /* Color changes when active */
}

  .mobile-overlay {
    display: flex;
    height: 100vh;
    margin: 0;
    width: 0;
    padding: 20px 0 0 0;
    position: fixed;
    z-index: 102;
    top: -18px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s ease-in-out;
    will-change: width, height;
  }
  .lazyload {
    opacity: 0;
    transition: opacity 0.5s;
  }
  .lazyload.lazyloaded {
    opacity: 1;
  }
  .mobile-overlay.active {
    width: 100%;
  }
  .mobile-overlay .closebtn {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 50px;
    height: 50px;
    font-size: 72px;
    color: var(--antiflash-white);
    text-decoration: none;
  }
  
  .mobile-overlay .closebtn:hover, .mobile-overlay .closebtn:focus {
    color: var(--amber);
    
  }
  .mobile-overlay-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    margin-top: 80px;
    overflow-y: visible;
  }
  .mobile-overlay-content h2 {
    position: absolute;
    top: 0;
    margin-top: 26px;
    left: 5%;
    font-size: 32px;
    font-weight: 800;
    color: var(--antiflash-white);
    font-family: "Cinzel-Regular", serif;
  }
  .dropdown-content a:first-child,
  .dropdown-content a:last-child {
    margin: 0;
  }
  .dropdown {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .dropdown:first-of-type {
    margin-top: 20px;
  }
  .overlay-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    width: 90%;
    font-family: "Cinzel-Regular", serif;
    color: var(--antiflash-white);
    text-align: center;
    padding: 12px;
    margin: 4px auto;
    cursor: pointer;
  }
  .overlay-link.selected, .overlay-link:hover {
    color: var(--steel-blue-hover);

  }
  .mobile-overlay .dropdown .dropbtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 90%;
    font-family: "Cinzel-Regular", serif;
    color: var(--amber);
    text-align: center;
    background-color: var(--rich-black);
    padding: 12px;
    margin: 4px auto;
    cursor: pointer;
    border-radius: 15px;
  }
  .mobile-overlay .dropdown a {
    text-decoration: none;
  }
  .cta-button {

    font-size: 18px;
    height: 60px;
    text-align: center;
    align-self: center;
    justify-self: unset;
    padding: auto;
    margin: auto;
    background-size: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(192, 71, 1, 0.4);
  }


  /* Hero Section */
  #hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 20%, transparent 80%), url("/img/computer-bg-splash-mobile3.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    z-index: 0;
    animation: none;
  }
  
  #hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.2),
      transparent
    );
    z-index: 1;
    pointer-events: none;
  }
  
  .hero-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  /* Overlay */
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--rich-black); /* Full-screen black */
    z-index: 5; /* Ensure it's on top */
    opacity: 1; /* Fully opaque at the start */
    animation: fadeOutOverlay 3s ease forwards; /* Trigger fade out */
  }
  .hero-lightbulb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background: radial-gradient(
      circle at 95% 42%, 
      rgba(255, 165, 0, 0.05) 10%, 
      rgba(255, 140, 0, 0.08) 35%, 
      rgba(255, 120, 0, 0.03) 60%
    );

    z-index: 0;
    /* animation: subtleOrangeGlow 30s infinite alternate ease-in-out; */
  }
  
  
  @keyframes subtleOrangeGlow {
    0%, 100% {
      background: radial-gradient(
        circle at 100% 42%, 
        rgba(255, 165, 0, 0.12) 10%, /* Very subtle core glow */
        rgba(255, 140, 0, 0.08) 35%, /* Soft outer orange */
        rgba(255, 120, 0, 0.03) 60% /* Faint fading edge */
      );
    }
    50% {
      background: radial-gradient(
        circle at 100% 42%, 
        rgba(255, 165, 0, 0.18) 11%, /* Slightly brighter core glow */
        rgba(255, 140, 0, 0.1) 38%, /* Slightly expanded soft orange */
        rgba(255, 120, 0, 0.05) 65% /* Just a hint of more brightness */
      );
    }
  }
  

  /* Animation for the overlay fade-out */
  @keyframes fadeOutOverlay {
    0% {
      opacity: 1; /* Start fully opaque */
    }
    100% {
      opacity: 0; /* Fully transparent to reveal content */
      visibility: hidden;
    }
  }

  /* Animation for zooming out the background */
  @keyframes zoomOutBackground {
    0% {
      background-size: 150%; /* Initial zoom */
    }
    100% {
      background-size: 100%; /* After zoom-out, fit the background */
    }
  }

  @keyframes fadeInOverlay {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .hero-card {
    padding: 40px 20px;
    background: transparent;
    border-radius: 16px;
    /* box-shadow: 0 2px 8px rgba(255, 120, 0, 0.4); */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: unset;
    max-height: unset;
    opacity: 0;
    transition: transform 0.3s ease, background-color 0.2s ease-in, box-shadow .3s ease;
    animation: fadeInCardMobile 2s ease forwards 1s, heroCardGlow 8s infinite alternate ease-in-out;

  }
  .hero-card:hover{
    color: #ffc107; /* Light up on hover to engage the user */
    transform: scale(1.02); /* Slight zoom effect */
    transition: all 0.3s ease;
    border-color: var(--amber);
  }
  @keyframes heroCardGlow {
    0%, 100% {
        box-shadow: 0 1px 4px rgba(255, 165, 0, 0.4);
    }
    50% {
        box-shadow: 0 6px 16px rgba(255, 140, 0, 0.6);
    }
}
  .hero-card-wrapper {
    position: relative;
    margin: 40px 20px;
    max-width: 80%;
    z-index: 9; /* Behind the card itself but above background */
    background-color: radial-gradient(
      circle at 98% 0%,
      rgba(131, 60, 35, 0.1),
      rgba(0, 0, 8, 0.2) 48%,
      rgba(0, 0, 8, 0.4) 100%
    );
    border-radius: 16px;
    padding: 0px; /* Apply 20px padding to ensure space around the card */
    transition: transform 0.3s ease background-color .2s ease-in;
    opacity: 0; /* Start invisible */
    animation: fadeInCardMobile 2s ease forwards 1s; /* Sync with the card */
  }
  /* Mobile zoom out effect */
  @keyframes zoomOutBackgroundMobile {
    0% {
      background-size: 150%; /* Start zoomed in */
    }
    75% {
      background-size: 100%; /* Zoom out to 100% */
    }
    100% {
      background-size: cover; /* Fit the entire background after zoom */
    }
  }
  /* Fade-in for the card - Mobile */
  @keyframes fadeInCardMobile {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  .hero-text h2,
  .hero-text p {
    word-wrap: break-word;
    white-space: normal; /* Allow wrapping */
  }
  .hero-text h2 span,
  .hero-text p span {
    display: inline-block;
    opacity: 0;
  }

  .hero-card-wrapper:hover {
    transform: none;
  }
  /* Hero card wrapper pseudo-elements */
  .hero-card-wrapper::before,
  .hero-card-wrapper::after {
    display: unset;
    content: "";
    position: absolute;
    inset: 0; /* Set to cover the card fully */
    border-radius: 16px;
    background: radial-gradient(
      circle at 98% 0%,
      rgba(200, 100, 6, 0.1),
      rgba(0, 0, 8, 0.2) 48%,
      rgba(0, 0, 8, 0.6) 100%
    ); /* Ensure the background color matches */
    z-index: -2; /* Ensure it's behind the card */
    margin: 0; /* Added margin to prevent touching the edges */
    padding: 0;
  }

  /* Ensure pseudo-elements do not have padding */
  .hero-card-wrapper::before {
    padding: 0; /* Remove extra padding here */
  }

  .hero-card-wrapper::after {
    padding: 0; /* Remove extra padding here as well */
  }
  /* Hero Text */
  .hero-text {
    padding: 0;
    margin: auto;
    gap: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  .hero-text h2 {
    font-size: clamp(36px, 7vw, 48px);
    font-family: "Cinzel-SemiBold", serif;
    font-weight: 400;
    max-width: 90%;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Slightly stronger shadow */

    margin: 0;
    padding: 0; /* Prevent line breaks inside words */
    word-wrap: normal; /* Allow text to wrap naturally */
    word-break: keep-all; /* Keep whole words together */
  }
  .hero-text p {
    font-size: clamp(18px, 4vw, 22px);
    margin: 0;
    padding: 0 16px 12px;
    text-align: center;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    word-wrap: normal; /* Allow text to wrap naturally */
    word-break: keep-all; /* Keep whole words together */
  }
  /* Fix word spacing */
  .hero-text h2 span,
  .hero-text p span {
    display: inline-block;
    opacity: 0;
    animation: fadeInRightLetter 1.5s forwards;
  }
  /* Animation for text */
  @keyframes fadeInRightLetter {
    0% {
      opacity: 0;
      transform: translateX(100%);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  #about ul {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
  }
  #about li {
    font-size: 17px;
    padding: 0;
    list-style-type: none;
  }
  #about hr {
    color: rgba(255, 255, 255, 0.3);
    border-bottom: none;
    border-right: none;
    border-left: none;
    width: 100%;
    margin: 20px auto;
  }
  #about .p-title {
    margin-top: 20px;
  }
  #about .skill-desciption {
    margin-bottom: 24px;
  }
  #about h4 {
    display: block;
    text-transform: uppercase;
    color: var(--tangerine);
    font-size: 24px;
    margin-bottom: unset;
    margin-top: 0;
  }
  #about strong {
    display: block;
    color: var(--amber);
    margin-bottom: 12px;
    grid-row: 1;
    align-self: center;
  }

  .skill-item li strong{
    text-align: center;
    margin: 0 !important;
    padding: 12px 0 6px;
    grid-row: 1;
  }
  #about .about-container ul li{
    font-family: 'QuattrocentoSans-Regular', sans-serif;
    line-height: 1.7;
    
  }
  #about-location ul {
    margin: 0 !important;
    padding: 12px 0 0 !important;
  }
  #about-location li {
    grid-row: 2;
    margin: 0 !important;
    padding: 0 0 12px !important;
  }
  #about-location p,
  #about-location strong {
    padding: 0 !important;
    margin: 0 !important;
  }
  #about h4 strong {
    display: block;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: var(--tangerine);
    font-size: 28px;
    margin: 0 0 12px;
  }
  #about {
    background-color: var(--yinmn-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    padding: 60px 20px;
    gap: 60px;
  }
  #about,
  #services {
    background: transparent;
    position: relative;
  }
  #about strong i {
    padding: 0 4px 0 0;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    grid-template-rows: auto;
    padding: 0;
    gap: 0;
    max-height: unset;
  }
  .about-wrapper {
    display: contents;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .skill-item{
    padding: 16px 12px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
  }
  .skill-item:active,
.skill-item:focus-within, .skill-item:hover { /* For mobile touches and accessibility */
    box-shadow: 0 0 16px rgba(255, 165, 0, 0.6), 0 0 32px rgba(255, 165, 0, 0.4); /* Amber glow */
  background-color: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 165, 0, 0.8) !important; /* Match the glow with the border */
    transform: scale(1.05); /* Slight scale-up effect */
}

/* Fullscreen wrapper */
.portfolio-wrapper {
  overflow: hidden; /* Prevent unexpected overflows */
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-rows: auto 175px 140px 5fr; */
  grid-template-rows: auto auto 140px 5fr;
  gap: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  background-size: cover;
  background-position: center;
  /* background: linear-gradient(180deg, rgb(94, 30, 23), rgba(5, 28, 47, 1) 80%); */
  background: linear-gradient(to bottom, #1b263b, #0e121a), url("/img/transparent-bg/subtle-carbon.png");
  background-blend-mode: overlay;
  position: relative;
  width: 100%;

}



.portfolio-h2{
  grid-row: 1;
  grid-column: 1 / 1;
  padding: 40px 40px 0;
  margin: 0;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}
.site-card-graphic.fade-initial {
  animation: fadeInUp 2.8s ease forwards; /* Apply fadeInUp only once */
}

.site-card-graphic-wrapper {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  grid-row: 2;
  margin: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-items: center;
}
/* Site Video / Image */
.site-card-graphic{
  display: grid;  
  max-width: 90%; /* Adjust this value as needed */
  max-height: 400px; /* Optional: Limit height */
  grid-row: 2;
  grid-column: unset;
  align-self: start;
  /* will-change: opacity; */
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  min-height: 220px; /* Set an appropriate height */
  animation-fill-mode: forwards;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 0;
  border: 1px solid rgba(107, 123, 154, 0.4); /* Softens the border */
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  
}

/* Fade-out class */
.site-card-graphic.fade {
  opacity: 0; /* Fade out */
  visibility: visible; /* Still visible during transition */
}
/* Initial fade-in animation */
.fade-initial {
  animation: fadeInUp 2s ease forwards; /* Reduced duration to 2s */
  opacity: 1;
}

.site-card-graphic.fade-out {
  opacity: 0; /* Fade out */
}
.site-card-graphic.fade-in {
  opacity: 1;
  visibility: visible;
}
@keyframes graphicFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px); /* Start slightly below */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End at the original position */
  }
}
/* Show overlay during fade */
.site-card-graphic.fade::before {
  opacity: 0;
}


/* Horizontal scrolling container */
.site-portfolio-cards {
  grid-row: 3;
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 40px;
  -webkit-overflow-scrolling: touch;
  gap: 0 6px;
  scrollbar-width: none;
  transition: opacity 0.3s ease;
  z-index: 1;
  height: 100%;
  align-items: center;
  border-bottom: 1px solid rgba(255, 193, 7, 0.6);

}

.site-portfolio-cards::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


.site-card-graphic img{
  height: auto;
  width: 100%;
  
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(80px); /* Start slightly below */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End at the original position */
  }
}



/* Default state (all cards start here) */
.site-card {
  flex: 0 0 auto;
  margin: 0;
  width: 55%;
  max-width: 300px;
  min-height: 100px;
  height: 35%;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(229, 192, 123, 0.4);
  border-radius: 4px;
  cursor: pointer;
  
  /* Separate transform for hover/active and animation */
  transform: scale(1); /* Default scale */
  transition: transform 0.4s ease, box-shadow 0.3s ease, filter 0.3s ease; /* Smooth transitions */
  z-index: 1; /* Default stacking */
}

.site-card,
.site-card-content {
  opacity: 0; /* Hidden initially */
  visibility: hidden; /* Hidden initially */
  animation-fill-mode: forwards; /* Ensure animation ends with final state */
}

/* Animate when visible, with dynamic duration and delay */
[data-animated="true"] {
  visibility: visible; /* Ensure visibility */
  opacity: 1; /* Fully visible */
  animation: fadeInUp 0.8s ease forwards; /* Apply fadeInUp animation */
}

/* Add animation delay support */
[data-animated="true"][style*="animation-delay"] {
  visibility: visible; /* Ensure the element becomes visible with delay */
  opacity: 0; /* Keep it transparent until animation starts */
}
/* Prevent animation from overriding hover/active scaling */
.site-card[data-animated="true"] {
  animation: none; /* Remove animation after it's complete */
  transition: transform 0.4s ease, box-shadow 0.3s ease, filter 0.3s ease; /* Reapply smooth transitions */
}
/* Card image styles */
.site-card img {
  display: block;
  width: 100%; /* Fill the entire width */
  height: 100%; /* Fill the entire height */
  object-fit: cover; /* Ensures the image covers the container without stretching */
  border-radius: 4px; /* Match the border radius of the card */
  transition: filter 0.3s ease;
  filter: brightness(0.5); /* Default dimmed image */

}
/* Hover state */
.site-card:hover {
  transform: scale(1.3); /* Scale up slightly on hover */
  z-index: 5; /* Bring card to the front */
  box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.3); /* Add shadow effect */
}

/* Active card */
.site-card.active {
  transform: scale(1.3); /* Keep active card scaled up */
  z-index: 10; /* Bring the active card to the very front */
  box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.4); /* Slightly stronger shadow for active state */
  transition: transform 0.4s ease, box-shadow 0.3s ease, border-color 2.3s ease; /* Ensure smooth active transitions */
  border-color: rgba(255, 193, 7, 0.6);
}

/* Image behavior for active card */
.site-card.active img {
  filter: brightness(1); /* Brighten image for active card */
}

.site-card.inactive {
  transform: scale(1); /* Shrink inactive cards */
  z-index: 1; /* Push inactive cards to background */
  transition: transform 0.4s ease, box-shadow 0.3s ease; /* Ensure smooth inactive transitions */
}

/* Image behavior for inactive card */
.site-card.inactive img {
  filter: brightness(0.5); /* Dim image for inactive cards */
}

/* Hover effect (only for non-active cards) */
.site-card:not(.active) {
  transform: scale(1); /* Slightly enlarge on hover */
  z-index: 5;
  box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.3);
}



.site-card-content h3{
  margin: 0;
  padding: 8px 4px 4px;
  font-family: 'QuattrocentoSans-Semi-Bold', sans-serif;
  font-weight: 600;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  color: var(--golden-sand);
  
}
.site-card-content p{
  font-size: 10px;
  margin: 0;
  text-align: center;
  padding: 0 4px 8px;
  color: var(--ivory-cream);
}
/* Video styling */
.site-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay content on top of video */
.site-card-content {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0 !important;
  border-radius: 0px;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin: 0;
  opacity: 0; /* Hidden initially */
  visibility: hidden; /* Hidden initially */
  animation: none; /* No animation initially */
  animation-fill-mode: forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-content{
  overflow-y: auto; /* Allow vertical scrolling */
  grid-column: unset;
  grid-row: 4;
  display: grid;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateY(10px);
  height: auto;

}


/* Visible state */
.site-content.visible {
  opacity: 1;
  transform: translateY(0); /* Slide back into place */
}
@keyframes siteCardFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}



  .rpg-row-mobile {
    grid-template-columns: none; /* Ensure each row spans one column */
    height: 64px;
    width: 64px; /* Fixed height to prevent shifting */
    border-radius: 50px;
    display: block; /* Ensure proper alignment */
    margin: auto; /* Center horizontally */
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
    background: var(--grey);
    padding: 0;
  }
  .rpg-icon-mobile {
    display: flex;
    justify-items: center;
    align-items: center;
    will-change: transform;
    width: 48px;
    height: 48px;
    cursor: pointer;
    margin: auto;
    padding: 0;
    transform-origin: center;
    transition: transform 0.6s ease, fill 0.6s ease;
    fill: rgba(0, 0, 0, 0.9);
  }

  .rpg-icon-mobile:hover {
    fill: var(--amber);
    padding: 0;
    margin: auto;
  }

  .rpg-row-mobile.active .rpg-icon-mobile.active {
    transform: scale(1.5); /* Zoom for active state */
    fill: var(--amber);
  }
  .rpg-row-mobile svg,
  .rpg-row-mobile img {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  /* Ensure the image and name are centered on mobile */


  .rpg-name hr {
    width: 100% !important;
    margin: 0 20px 20px !important;
  }
  /* Ensure the image and name are on the top */
  .rpg-picture {
    display: grid;
    align-items: center;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-column: 1; /* Span across both columns for the image */
    grid-row: 1; /* First row */
    justify-items: center;
    padding: 8px 12px;
    margin: 0;
  }


  .rpg-name {
    font-family: "QuattrocentoSans-Regular", sans-serif;
    text-transform: uppercase;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-column: 2 / span 2; /* Span across both columns for the name */
    grid-row: 1;
    text-align: left; /* Center the name */
    gap: 0 8px;
    width: unset;
  }


  .rpg-details,
  .about-container {
    grid-column: 1 / span 1; /* Ensure they span one column */
  }

  .above-talents {
    margin: 20px auto 0 !important;
  }
  #character-talents,
  #character-equipment,
  #character-vault {
    display: grid;
    grid-column: 1 / -1;
  }
  
  /* RPG Details Table */
  .rpg-details {
    grid-column: 1 / span 2; /* Span across both columns */
    grid-row: 3; /* Third row */
    border-radius: 0;
    grid-template-columns: unset;
    grid-auto-rows: unset;
    padding: 0;
    gap: 0;
    align-content: unset;
    justify-content: unset;
    background-color: var(--rich-black);
  }
  /* Icon Table */
  .rpg-table {
    display: grid;
      grid-column: 1 / span 3;
      grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
      gap: 8px;
      max-width: unset;
      grid-row: unset;
      padding: 8px;
      margin: 0;
      border-radius: 0;
      z-index: 10;
      grid-template-rows: auto auto;
      height: auto;
      background: rgba(0, 0, 0, 0.5);

  }



  .rpg-row-mobile:hover {
    border-radius: 50px;
    background-color: var(--yinmn-blue);
    color: var(--amber);
  }

  .about-container p, .inspiration-container p, .location-container p, .skills p, .skills2 p{
    padding: 0 0 20px !important;
    text-indent: 14px;
    height: auto; /* Adjust height dynamically based on content */
  }
  .about-container p:last-of-type, .inspiration-container p:last-of-type, .location-container p:last-of-type {
    padding: 0 0 20px !important;
    text-indent: 14px;
    line-height: 1.7;
    height: auto; /* Adjust height dynamically based on content */
  }
  .about-container #last-style {
    padding: 0 0 20px !important;
    line-height: 1.7;
    height: auto; /* Adjust height dynamically based on content */
  }
  .about-container {
    display: unset;
    height: unset;
    padding: 0 40px 40px;
  }
  .rpg-icon-description{
    display: none;
  }
  .rpg-icon-description-mobile {
    display: flex;
    grid-row: unset;

    width: 100%; /* Full width */
    height: 500px !important;
    margin: auto;
    clear: both;
    padding: 8px 0;
    font-size: 14px;
    word-wrap: break-word; /* Handle long words properly */
    overflow-wrap: break-word;
    line-height: 1.5; /* Better readability */
    text-align: center; /* Align description text centrally */
    justify-content: center;
    align-items: start;
    background-color: var(--rich-black);
  }

  .stat-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto;
    width: 100%;
    gap: 10px;
    align-items: start;
    padding: 0 8px;
    margin: 8px 0 0;
    border-radius: 0;
    background: transparent;
  }
  .stat-item {
    display: contents;
    grid-auto-flow: unset; /* Allows grid items to span without a wrapper */
  }
  .stat-divider {
    grid-row: unset;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--grey);
  }
  /* Left Label */
  .stat-label {
    font-size: 14px;
    font-weight: bold;
    color: var(--golden-sand); /* Gold-like color */
    text-align: right;
    justify-self: right;
    margin: 0;
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }
  /* Top Attribute */
  .stat-name {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    grid-column: 1 / span 2;
  }
  /* Right Value */
  .stat-value {
    font-size: 14px;
    text-align: left;
    color: var(--ivory-cream); /* Light contrasting color */
    padding: 0;
    margin: 0;
    justify-self: left;
    width: 100%; /* Adjust this to your layout */
    align-self: center;
  }



  .skills,
  .skills2, .about-container, .inspiration-container {
    padding: 20px;
    /* background-color: var(--rich-black-alpha); */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--grey);
    max-width: 100%; /* Ensure skills take up all available space */
  }
  .skills-list-container {
    display: grid;
    grid-template-columns: 1fr; /* Change to 2 columns for mobile */
    gap: 20px 0; /* Adjust the spacing */
    
    text-align: left;
    padding: 0;
  }
  .skills-list{
    grid-row: 2;
    line-height: 1.7;
    letter-spacing: .3px;
    font-size: clamp(.9rem, 0.8674rem + 0.163vw, 1.0938rem);
    padding: 4px 20px 8px;
    font-family: 'OpenSans-Light', sans-serif;
  }
  .skills p,
  .skills2 p,
  .about-container p, .inspiration-container p, .location-container p {
    font-size: 17px;
    padding: 0;
    line-height: 1.7;
    margin: 0;
  }
  .skills p, .skills2 p {
    padding: 0 !important;
  }
  .about-container .cta-button {
    display: flex;
    margin: 40px 20px;
    justify-content: center;
  }
  #about .mid-description hr {
    margin: 0 0 0;
  }
  .desktop-cta-location {
    display: unset;
  }
  .about-hr {
    margin: 28px 0 !important;
  }
  

  #portfolio hr {
    color: rgba(255, 255, 255, 0.3);
    border-bottom: none;
    border-right: none;
    border-left: none;
    width: 100%;
    margin: 20px auto;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
    margin: auto;
    min-height: unset;
    align-items: unset;
  }

  .portfolio-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--rich-black);
    margin: 0;

    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  }
  .portfolio-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 

    linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 80%), /* More subtle transition */
    radial-gradient(at right center, rgba(255, 165, 0, 0.3), transparent 90%), /* Stronger rocket glow */
    url("/img/designs-header-bg-mobile.webp");

    background-blend-mode: multiply;
    background-size: 100% 100%;
    background-position: center right; /* Focus rocket on the right */

    z-index: -1; /* Keeps background behind the text */
    opacity: 1; /* Full visibility */
}

.portfolio-header-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.05)); /* Subtle fade */
  z-index: -1;
}





  .portfolio-header p {
    position: relative;
    text-align: left;
    display: flex;
    justify-content: center;
    padding: 12px;

    margin: 0 0 6px;
    color: #f3f4f6; /* Ensures text remains clear */
    /* -webkit-text-stroke: .5px black; */
    font-size: 17px;
    border-radius: 16px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  }
  .portfolio-header p:last-of-type {
    text-align: left;
    display: flex;
    justify-content: center;
    padding: 12px;
    margin: 6px 0 0;
    /* -webkit-text-stroke: .15px black; */

    font-size: 17px;
  }
  .portfolio-header h2, .services-header h2, .portfolio-h2 h2 {
    grid-column: 1;
    display: flex;
    justify-content: center;
    font-size: 44px;
    font-family: "Cinzel-SemiBold", serif;
    font-weight: 400;
    color: var(--amber);
    padding: 0;
    margin: 0;
    height: 100%;
    background: radial-gradient(circle, rgba(107, 123, 154, 0.3) 0%, rgba(27, 38, 59, 0) 70%);
    text-align: center;
    width: 100%;
  }

  .portfolio-header hr {
    grid-column: 1;
    display: flex !important;
    justify-content: left !important;
    width: 100% !important;
    margin: 20px 0 !important;
  }
  .portfolio-card h3 {
    text-align: left;
    font-size: 28px;
    margin: 12px 0 8px 0;
  }

  .portfolio-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
  }
  .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: brightness(0.4);
    transition: filter 1s ease-in-out;
  }
  .portfolio-image img:hover {
    filter: none;
  }

  .portfolio-image::before {
    content: "";
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
      circle,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.8) 70%
    );
    border-radius: 8px;
    opacity: 1;
    transition: opacity 1s ease-out;
  }

  /*.portfolio-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(75, 24, 18, 0.1) 85%, rgba(33, 33, 33, 0.267) 100%);
}*/

  .portfolio-image.in-view::before {
    animation: overlayFadeOut 3s forwards ease-out;
  }

  .portfolio-card.in-view {
    background: var(--card-hover3);
    animation: fadeIn 1s ease forwards;
  }
  .portfolio-card {
    animation: fadeBack 1s ease forwards;
  }

  @keyframes fadeBack {
    0% {
      background: var(--card-hover3);
    }
    100% {
      background: var(--card-hover);
    }
  }
  @keyframes fadeIn {
    0% {
      background: var(--card-hover);
    }
    100% {
      background: var(--card-hover3);
    }
  }

  .portfolio-image.in-view img {
    filter: brightness(1.1);
  }
  @keyframes overlayFadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  .content-additional{
    transition: opacity 0.3s ease;
    margin: 0;
    padding: 0;
    overflow-y: auto; /* Enable scrolling if content overflows */

  }
  /* Portfolio Details */
  .portfolio-details hr {
    width: 90% !important;
    grid-row: 3;
    grid-column: 1 / span 2;
    margin: 10px auto 16px !important;
    border-color: rgba(255, 193, 7, 0.6);


  }
  .portfolio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 250px;
    padding: 0;
    color: var(--antiflash-white);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    background: rgba(229, 192, 123, 0.25);


  }
  .portfolio-details h3 {
    grid-row: 1;
    grid-column: 1 / -1; /* Spans full width */
    margin: 0 0 10px;
    color: var(--amber);
    font-family: "Cinzel-SemiBold", serif;
    font-size: 30px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.7px;
    padding: 28px 20px;
    z-index: 4;
    background: linear-gradient(180deg, #1a2434 0%, #2a3749 100%), url("/img/transparent-bg/gradient-squares.png");
    background-blend-mode: overlay;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    box-shadow: 0 6px 12px -4px rgba(60, 79, 118, 0.8);



}






  .portfolio-details .category-focus p {
    display: flex;
    padding: 0;
    gap: 0;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0);
  }

  .portfolio-details .category-focus {
    display: grid;
    grid-column: 1 / span 2;
    grid-row: 2;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    gap: 6px 20px;
    padding: 12px 20px;
    font-family: 'OpenSans-Light', sans-serif;
  }

  .portfolio-details .site-focus {
    grid-row: 3;
    grid-column: 1;
    text-align: left;
    align-self: center;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
    margin: 4px 0 0;


    color: var(--amber); /* Match site color */
    font-size: 14px; /* Emphasize slightly */

  }
  .portfolio-details .category {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    align-self: center;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
    margin: 0;


    color: var(--amber); /* Match site color */
    font-size: 14px; /* Emphasize slightly */

  }

  .portfolio-details .category-value {
    grid-column: 1;
    grid-row: 2;
    text-transform: capitalize;
    align-self: self-start;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8); /* Soft white */margin: 0;
    font-style: italic;

  }
  .portfolio-details .focus-value {
    grid-column: 1;
    grid-row: 4;
    text-transform: capitalize;
    align-self: self-start;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8); /* Soft white */
    margin: 0;
    font-style: italic;

  }
  .card-description {
    grid-column: 1 / span 2;
    grid-row: 4;
    font-size: 15px;
    line-height: 1.8;
    margin: 4px 20px 20px;
    padding: 16px 24px;
    border-radius: 16px;
    background-color: rgba(14, 16, 26, 0.3);
    box-shadow: 0 0 4px;
  }
  .portfolio-logo-and-webtext {
    grid-column: 1 / span 2;
    grid-row: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 12px 16px;

    box-shadow: unset;
} 
.left-portfolio {
  display: flex;
  align-items: center;
  gap: 0 24px;
  margin: 0;
  padding: 0;
}
.webtext a {
  font-size: 14px;
 
    color: var(--amber);
  margin: 0;
  padding: 0;

}
.webtext a:hover {
  color: var(--amber-hover);
  text-decoration: none;
}
.portfolio-logo-and-webtext .year {
  align-self: right;
  font-size: 14px;
  padding: 0;
  margin: 0;
}
.portfolio-logo{
  height: 25px;
  width: 25px;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.3));
}
  .fixed-about-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background-image: url("/img/about-background7-mobile3.jpg");
    background-size: cover;
    z-index: -2; /* Ensure it's behind the content */
    display: block; /* Initially hidden */

    pointer-events: none;
  }
  .fixed-services-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* background-image: url('/img/services-bg-mobile3.jpg'); */
    /* background-size: cover;
    background-position: top; */
    z-index: -3; /* Ensure it's behind the content */
    display: none; /* Initially hidden */

    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url("/img/services-bg-mobile3.jpg");
background-size: cover;
background-position: top;
background-repeat: no-repeat;

pointer-events: none;

  }
  .diagonal-divider {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: var(--rich-black); /* Adjust this to match your design */
  }
  .diagonal-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--amber); /* Adjust to your desired color */
    clip-path: polygon(100% 0, 0 0, 100% 100%);
  }

  .card {
    width: 150px;
    height: 84px;
    background-color: darkblue;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .static-cards {
    display: grid;
    width: 100%;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin: 0 20px;
    justify-content: center;
  }

  #services {
    background: transparent;
    background-color: transparent;
    position: relative;
    padding: 0 0 40px;
    display: flex;
    flex-direction: column;
  }
  #services::before {
    background-color: transparent;
  }

  #services hr {
    color: rgba(255, 255, 255, 0.3);
    border-bottom: none;
    border-right: none;
    border-left: none;
    width: calc(100% - 40px);
    margin: 20px auto;
  }

  .services-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--yinmn-blue);
    margin: 0 0 40px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  }

  .services-header-background {
    position: absolute; /* Allows it to cover the entire parent container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: unset;
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.4), rgba(255, 156, 7, 0.1)),
    url("/img/services-header-bg-mobile.webp");
    background-size: cover; /* Ensures image covers the entire area */
    background-position: right 100% bottom 60%;

    z-index: -1; /* Places it behind the main content */
    opacity: 1; /* Adjusts overlay transparency for readability */
  }



  .services-header p {
    text-align: left;
    display: flex;
    text-indent: 14px;
    justify-content: center;
    padding: 12px 12px 4px;
    line-height: 1.7;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-size: 17px;
  }
  .services-header p:last-of-type {
    text-align: left;
    text-indent: 14px;
    display: flex;
    justify-content: center;
    padding: 12px 12px;
    line-height: 1.7;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-size: 17px;
  }

  #services-header::before,
  #services-header::after {
    content: none;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    border-radius: 16px;
    padding: 20px 0;
  }

  .services-container {
    min-height: unset;
    max-width: unset;
    margin: 0 auto;
    padding: 0 20px;
  }

  .p-title svg{
    margin: 0 6px 0;
    padding: 0;
    height: 28px;
    vertical-align: text-top;
  }

  .contact-grid svg{
    margin: 0;
    padding: 0;
    height: 20px;
    vertical-align: text-top;
    justify-self: stretch;
  }

  .service-icon svg{
    height: 36px;
    padding: 0;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.4));

  }
  .service-details {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;

    height: 100%;
    justify-self: start;
    align-items: center;
  }
  .service-details h3 {
    font-family: "QuattrocentoSans-SemiBold", sans-serif;
    min-height: auto;
    font-size: 28px;
    letter-spacing: 0.8px;

    font-weight: 600;
    padding: 0;
    margin: 0;
    display: block;
    text-transform: uppercase;
    color: var(--tangerine);
  }
  .price-range{
    margin: 12px 0 4px;
    }

  .service-details .service-description {

    display: block;
    color: var(--antiflash-white);
    min-height: unset;
    line-height: 1.7; /* Improve readability */
    text-align: left;
    text-indent: unset;
    font-size: clamp(.85rem, 0.894rem + 0.163vw, 1.1038rem);
    margin: 18px 0 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* Soft shadow */
    font-family: 'OpenSans-Light', sans-serif;
    font-weight: 400;


  }
  .highlight {
    color: #f1c27d; /* Subtle color change, adjust as needed */
  }
  /* Styles for Custom PC Builds */

  .service-card {
    will-change: transform, box-shadow, background;
    border: 2px solid rgba(99, 99, 99, 1);
    /* backdrop-filter: blur(3px); */
    color: var(--golden-sand);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* backdrop-filter: blur(3px); */
    /* -webkit-backdrop-filter: blur(3px); */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    padding: 10% 20px 12%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: linear-gradient(to bottom, rgba(50, 50, 50, 0.5), rgba(20, 20, 20, 0.9));



  }


  .test-animation {
    animation: fadeInUp 1s ease forwards;
  }

  .service-card:hover, .service-card:active, .service-card:focus-within{
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.5), 0 0 8px rgba(255, 165, 0, 0.3); /* Softer amber glow */

    transform: scale(1.03);
    background: linear-gradient(to bottom, rgba(18, 14, 27, 0.5), rgba(20, 20, 20, 1));
    border-color: rgba(255, 140, 0, 0.8); /* Slightly deeper amber */
    will-change: transform, box-shadow, background;
     /* Slight scale-up effect */
}
  .service-button {

    padding: 18px 36px;

  }
  
  .service-button:hover {
    background: linear-gradient(to bottom, #6b7b9a, #9ca8ba);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5); /* Amber glow */


    transform: scale(1.05); /* Slight zoom-in effect */
    color: #f3f4f6; /* Anti-Flash White for hover text */
  }
  
  /* Basic Styling for the UL */
  .service-card ul {
    margin: 0 0 24px;
  }

  /* Styling for the LI */
  .service-card ul li {
    font-family: 'OpenSans-Light', sans-serif;
    position: relative; /* For custom bullet placement */
    line-height: 1.6; /* Adjust to create more breathing room */
    margin: 0 3% 8px;
    font-size: 15px;
    font-weight: 300; /* Light text for a modern look */
  }

  .service-card ul li svg{
      height: 20px;
      fill: var(--amber);
      margin: .5% 12px 0 0;
      vertical-align: text-bottom;
}
.service-card ul li:hover svg {
  fill: #ff9d07; /* Change the SVG color */
  transform: scale(1.1); /* Slightly enlarge the SVG */
}
  /* Hover Effect */
  .service-card ul li:hover{
    color: #ffc107; /* Light up on hover to engage the user */
    transform: scale(1.02); /* Slight zoom effect */
    transition: all 0.3s ease;
  }



  /* Contact Section */
  #contact {
    grid-template-columns: 1fr; /* Switch to one column layout */
  }
  .contact-header,
  .contact-submit {
    grid-column: 1; /* Full width for both sections */
  }
  #contact h2 {
    display: flex; 
    justify-content: center;
    text-align: center;
    font-size: 36px;
    font-weight: 400;
    font-family: "Cinzel-SemiBold", serif;
    padding: 0 20px;
    margin: 0 0 12px;
  }

  #contact hr {
    color: rgba(255, 255, 255, 0.3);
    border-bottom: none;
    border-right: none;
    border-left: none;
    width: calc(100% - 20px);
    margin: 20px auto;
  }
  #contact p {
    padding: 12px 12px 4px;
    margin: 0;
    line-height: 1.7;
  }
  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    margin: auto;
    padding: 40px 40px 80px;
    gap: 20px 0;
  }
  .contact-submit {
    grid-column: 1 / span 2;
    grid-row: 3;
    justify-self: center;
    margin: 20px auto auto;
    width: 100%;
    min-height: 300px;
  }
  .contact-grid {
    grid-row: 2;
    justify-content: center;
    grid-template-columns: 40px 100px auto;
    letter-spacing: unset;
  }
  .contact-header-desktop{
    display: none !important;
  }

  form {
    width: 100%; /* Ensure form is full width */
    margin: auto;
  }
  form button {
    font-size: 18px;
  }
  #form-message {
    padding: 20px;
  }
}
@media screen and (min-width: 769px) {

}
@media screen and (min-width: 2060px) {
  header {
      height: 112px;
  }
  header img {
    width: 80px;
    height: 80px;
    padding: 0;
    margin: 0;
  }
  header .logo{
    width: 80px;
    height: 80px;
    padding: 0;
    margin: 0;
  }
  header h1 {
    color: var(--antiflash-white);
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Cinzel-Regular", serif;
    font-weight: 400;
    font-size: clamp(1.6vw, 30px, 36px);
    margin: 0;
  }
  header h2 {
    color: var(--amber);
    text-decoration: none;
    text-transform: uppercase;
    font-family: "QuattrocentoSans-Regular", sans-serif;
    font-weight: 200;
    font-size: clamp(0.65vw, 12px, 13px);
    margin: 0;
  }
  nav a{
    font-size: clamp(0.70vw, 12px, 13px);
  }
  .hero-text h2 {
    font-size: clamp(4rem, 4rem + 1vw, 5rem); /* Slightly larger for 4K */
    line-height: 1.3; /* Maintain readability */
    margin: 0;
    letter-spacing: 1px;
}
.hero-text p {
  font-size: clamp(1.25rem, 1.25rem + 0.3vw, 1.5rem);
  line-height: 1.8; /* Keep this optimal value */
  letter-spacing: 0.75px; /* Slightly wider for better clarity */
  font-weight: 300; /* Lighten slightly for a clean, modern look */
  opacity: 0.9;
}
.cta-button {
  font-size: clamp(20px, 2vw, 24px); /* Scales up for larger resolutions */
  padding: 24px 50px; /* More padding for better proportion */
  border-radius: 20px; /* Slightly rounder for more modern styling */

}

.cta-button:hover {
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.7); /* Stronger glow effect */
  transform: scale(1.05); /* Slightly more dramatic hover scale */
}
.skills p, .skills2 p, .about-container p, .inspiration-container p, .location-container p {
  font-size: 17px;
  padding: 0;
  margin: 0;
}
#about h4 strong {
  display: block;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--tangerine);
  font-size: 26px;
  margin: 0;
}
#about hr{
  margin: 28px auto 28px;
}
#about li {
  padding: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  list-style-type: none;
}
#about li strong{
  margin: auto 0 !important;
  text-align: center;
}
.about-wrapper {
  width: 70%;
  max-width: 1800px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px 20px;
}

    /* Horizontal Connector */
    #row2-talent1::after {
      content: "";
      position: absolute;
      height: 2px;
      width: 28px;
      background-color: #ffa500;
      top: 50%;
      right: -54px;
      transform: translateX(-50%);
      z-index: -1;
      margin-right: 10px;
    }
/* Horizontal Connector */
#row8-talent3::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 28px;
  background-color: #ffa500;
  top: 50%;
  right: -54px;
  transform: translateX(-50%);
  z-index: -1;
  margin-right: 10px;
}
.skills li, .skills2 li{
  grid-template-rows: 80px auto;
  align-items: center;

}
}