:root {
  --midnight: #0b132b;
  --gold: #eec643;
  --offwhite: #f7f7f7;
  --violet: #3c1874;
  --text: #d9e2ec;
  --body: #e1e6ed;
  --card-bg: rgba(11, 19, 43, 0.6);
  --border: rgba(247, 247, 247, 0.1);
  --radius: 16px;
  --texture-opacity: 0.22;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0b132b 0%, #1a1f3a 50%, #0b132b 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: var(--body);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(238, 198, 67, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(60, 24, 116, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: floatBackground 30s ease-in-out infinite;
  pointer-events: none;
}

/* ADDED: Subtle, tileable texture overlay (opacity-controlled and reliable across browsers). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../../images/tile.png');
  background-repeat: repeat;
  background-position: 0 0;
  opacity: var(--texture-opacity);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

/* ADDED: Keep main content above the texture layer. */
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatBackground {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(2deg); }
  66% { transform: translate(-20px, 20px) rotate(-2deg); }
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: #fff;
  line-height: 1.2;
}

h2 {
  background: linear-gradient(135deg, #fff 0%, rgba(238, 198, 67, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(238, 198, 67, 0.2);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding: 0 1.5rem 4rem;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(11, 19, 43, 0.85));
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(238, 198, 67, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(238, 198, 67, 0.1);
  z-index: 10;
}

.logo a {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(238, 198, 67, 0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 0 16px rgba(238, 198, 67, 0.6));
  transform: scale(1.05);
}

.logo-showcase {
  background: linear-gradient(135deg, rgba(238, 198, 67, 0.15), rgba(60, 24, 116, 0.15));
  border: 1px solid rgba(238, 198, 67, 0.2);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(238, 198, 67, 0.2), inset 0 0 40px rgba(238, 198, 67, 0.05);
  position: relative;
  overflow: hidden;
}

.logo-showcase::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(238, 198, 67, 0.1) 0%, transparent 70%);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.logo-showcase img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  filter: drop-shadow(0 8px 24px rgba(238, 198, 67, 0.5));
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.mobile-nav {
  display: none;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.site-nav a.active {
  background: rgba(238, 198, 67, 0.2);
  box-shadow: 0 0 20px rgba(238, 198, 67, 0.3);
  border: 1px solid rgba(238, 198, 67, 0.3);
}

.site-nav a:hover {
  background: rgba(238, 198, 67, 0.15);
  box-shadow: 0 0 15px rgba(238, 198, 67, 0.2);
}

.cta-button {
  background: linear-gradient(135deg, #eec643 0%, #f4d469 100%);
  color: var(--midnight);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(238, 198, 67, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(238, 198, 67, 0.6);
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  transition: opacity 0.3s ease;
}

.nav-toggle:hover {
  opacity: 0.7;
}

.nav-toggle span {
  display: block;
  position: absolute;
  width: 26px;
  height: 3px;
  background: var(--gold);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(238, 198, 67, 0.4);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 3px;
  background: var(--gold);
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(238, 198, 67, 0.4);
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.nav-toggle.active span {
  background: transparent;
  box-shadow: none;
}

.nav-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero,
.page-hero {
  padding: 5rem 0 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-hero-copy {
  max-width: 60ch;
  margin: 0 auto;
}

.page-hero-media {
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 60ch;
  margin: 0 auto;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238, 198, 67, 0.08) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 0.8; }
}

.hero h1,
.page-hero h1 {
  text-shadow: 0 0 40px rgba(238, 198, 67, 0.3);
  background: linear-gradient(135deg, #fff 0%, #eec643 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead,
.page-hero p {
  margin-top: 1rem;
  color: var(--body);
}

.page-hero .eyebrow {
  font-size: 0.85rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.3rem);
}

.page-hero p:not(.eyebrow) {
  font-size: 1.05rem;
  max-width: 60ch;
}

.page-hero-illustration {
  display: block;
  width: min(560px, 90vw);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(238, 198, 67, 0.12));
}

.hero-mascot {
  display: block;
  width: min(360px, 78vw);
  height: auto;
  margin: 2rem auto 0;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(238, 198, 67, 0.18));
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 900px) {
  .hero {
    max-width: 1100px;
    text-align: left;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "copy media"
      "actions media";
    gap: 2.5rem;
    align-items: start;
  }

  .hero-copy {
    grid-area: copy;
    margin: 0;
  }

  .hero-media {
    grid-area: media;
    justify-content: flex-end;
  }

  .hero-actions {
    grid-area: actions;
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .hero-mascot {
    width: min(460px, 38vw);
    margin: 0;
  }

  .page-hero {
    max-width: 1100px;
    text-align: left;
  }

  .page-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
  }

  .page-hero--image-right .page-hero-inner {
    grid-template-areas: "copy media";
  }

  .page-hero--image-left .page-hero-inner {
    grid-template-areas: "media copy";
  }

  .page-hero-copy {
    margin: 0;
  }

  .page-hero--image-right .page-hero-copy {
    grid-area: copy;
  }

  .page-hero--image-right .page-hero-media {
    grid-area: media;
    justify-content: flex-end;
    align-self: start;
  }

  .page-hero--image-left .page-hero-copy {
    grid-area: copy;
  }

  .page-hero--image-left .page-hero-media {
    grid-area: media;
    justify-content: flex-start;
    align-self: start;
  }

  .page-hero-illustration {
    width: min(520px, 38vw);
  }
}

.accent.with-illustration {
  position: relative;
  padding-right: min(44vw, 520px);
}

.accent.with-illustration .accent-illustration {
  position: absolute;
  right: 3rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  max-height: calc(100% - 3rem);
  width: min(420px, 36vw);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(238, 198, 67, 0.12));
}

@media (max-width: 760px) {
  .accent.with-illustration {
    padding-right: 4rem;
  }

  .accent.with-illustration .accent-illustration {
    display: none;
  }
}

.hero .primary,
.accent .primary,
.accent a.primary {
  background: linear-gradient(135deg, #eec643 0%, #f4d469 100%);
  color: var(--midnight);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(238, 198, 67, 0.4), 0 0 20px rgba(238, 198, 67, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero .primary::before,
.accent .primary::before,
.accent a.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero .primary:hover,
.accent .primary:hover,
.accent a.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(238, 198, 67, 0.6), 0 0 30px rgba(238, 198, 67, 0.3);
}

.hero .primary:hover::before,
.accent .primary:hover::before,
.accent a.primary:hover::before {
  left: 100%;
}

.hero .secondary {
  border: 1px solid rgba(238, 198, 67, 0.4);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: rgba(238, 198, 67, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero .secondary:hover {
  border-color: var(--gold);
  background: rgba(238, 198, 67, 0.1);
  box-shadow: 0 0 20px rgba(238, 198, 67, 0.2);
}

.section {
  margin: 0 auto;
  max-width: 1100px;
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(238, 198, 67, 0.5);
  position: relative;
  display: inline-block;
}

.eyebrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.info-card,
.portfolio-card,
.service-card,
.portfolio-grid article,
.values article {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(11, 19, 43, 0.6) 100%);
  border: 1px solid rgba(238, 198, 67, 0.3);
  padding: 1.75rem;
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(238, 198, 67, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.service-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(11, 19, 43, 0.7) 100%);
  border-color: rgba(238, 198, 67, 0.4);
}

.info-card::before,
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover,
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(11, 19, 43, 0.8) 100%);
  box-shadow: 0 12px 48px rgba(238, 198, 67, 0.3), 0 0 30px rgba(238, 198, 67, 0.2), 0 0 60px rgba(0, 0, 0, 0.8);
}

.info-card:hover::before,
.service-card:hover::before {
  opacity: 1;
}

.section.accent {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(60, 24, 116, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
  border: 2px solid rgba(238, 198, 67, 0.4);
  border-radius: var(--radius);
  padding: 4rem;
  margin-top: 3rem;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(238, 198, 67, 0.2), inset 0 0 60px rgba(238, 198, 67, 0.05);
  position: relative;
  overflow: hidden;
}

.section.accent::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(238, 198, 67, 0.1) 0%, transparent 50%);
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.section.accent > * {
  position: relative;
  z-index: 1;
}

.about-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.portrait-placeholder {
  background: linear-gradient(135deg, rgba(238, 198, 67, 0.35), rgba(60, 24, 116, 0.35));
  border-radius: var(--radius);
  min-height: 280px;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.link-arrow {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.link-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link-arrow:hover {
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(238, 198, 67, 0.5);
}

.link-arrow:hover::after {
  transform: scaleX(1);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.values article:nth-child(2) {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(11, 19, 43, 0.7) 100%);
  border-color: rgba(238, 198, 67, 0.5);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(11, 19, 43, 0.7) 100%);
  border: 1px solid rgba(238, 198, 67, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 1px rgba(238, 198, 67, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(238, 198, 67, 0.1), transparent);
  transition: left 0.6s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(11, 19, 43, 0.8) 100%);
  box-shadow: 0 16px 48px rgba(238, 198, 67, 0.3), 0 0 40px rgba(60, 24, 116, 0.4), 0 4px 80px rgba(0, 0, 0, 0.9);
}

.portfolio-item:hover::after {
  left: 100%;
}

.portfolio-image-placeholder {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(238, 198, 67, 0.2), rgba(60, 24, 116, 0.25));
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(238, 198, 67, 0.5);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 198, 67, 0.2);
}

.portfolio-image-placeholder::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.portfolio-image {
  background: #050505;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(238, 198, 67, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-card-image {
  display: block;
  width: 100%;
  height: clamp(140px, 18vw, 180px);
  object-fit: contain;
  background: #050505;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1rem;
  border: 1px solid rgba(238, 198, 67, 0.2);
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.portfolio-details {
  padding: 1.75rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.portfolio-details h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.portfolio-tags span {
  background: linear-gradient(135deg, rgba(238, 198, 67, 0.2), rgba(60, 24, 116, 0.15));
  color: var(--gold);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(238, 198, 67, 0.3);
  box-shadow: 0 2px 8px rgba(238, 198, 67, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.portfolio-tags span:hover {
  background: linear-gradient(135deg, rgba(238, 198, 67, 0.3), rgba(60, 24, 116, 0.25));
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 198, 67, 0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.contact-info h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.contact-info ul li {
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--gold);
  transition: opacity 0.2s ease;
}

.contact-info a:hover {
  opacity: 0.8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(11, 19, 43, 0.6) 100%);
  border: 1px solid rgba(238, 198, 67, 0.3);
  padding: 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(238, 198, 67, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 120px;
  color: rgba(238, 198, 67, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(11, 19, 43, 0.7) 100%);
  box-shadow: 0 12px 48px rgba(238, 198, 67, 0.25), 0 0 30px rgba(60, 24, 116, 0.3), 0 0 60px rgba(0, 0, 0, 0.9);
}

.testimonial-card .quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .attribution {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(238, 198, 67, 0.3);
}

.form-message {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.form-message .success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 1rem;
  border-radius: 10px;
}

.form-message .error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 1rem;
  border-radius: 10px;
}

.contact-form {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(11, 19, 43, 0.7) 100%);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid rgba(238, 198, 67, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(238, 198, 67, 0.2);
  display: grid;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(238, 198, 67, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 20px rgba(238, 198, 67, 0.3), inset 0 0 10px rgba(238, 198, 67, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: rgba(217, 226, 236, 0.5);
}

label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

button,
.contact-form button {
  border: none;
  background: linear-gradient(135deg, #eec643 0%, #f4d469 100%);
  color: var(--midnight);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(238, 198, 67, 0.3), 0 0 20px rgba(238, 198, 67, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before,
.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

button:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(238, 198, 67, 0.5), 0 0 30px rgba(238, 198, 67, 0.3);
}

button:hover::before,
.contact-form button:hover::before {
  left: 100%;
}

button:active,
.contact-form button:active {
  transform: translateY(0);
}

.site-footer {
  padding: 2rem 1.5rem 3rem;
  border-top: 2px solid rgba(238, 198, 67, 0.3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(11, 19, 43, 0.3), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gold);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  text-shadow: 0 0 10px rgba(238, 198, 67, 0.5);
}

.footer-links a:hover::after {
  width: 80%;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

/* Mobile Menu Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2550;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    padding: 1rem 1.5rem;
    z-index: 1500;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2600;
    transition: opacity 0.25s ease;
  }

  .mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-panel {
    width: min(86vw, 380px);
    background: rgba(247, 247, 247, 0.98);
    color: #0b132b;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
  }

  .mobile-nav-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0b132b;
    border-bottom: 1px solid rgba(11, 19, 43, 0.08);
    background: transparent;
    transition: background 0.2s ease;
  }

  .mobile-nav-panel a:last-child {
    border-bottom: none;
  }

  .mobile-nav-panel a::after {
    content: '›';
    color: rgba(11, 19, 43, 0.4);
    font-size: 1.2rem;
  }

  .mobile-nav-panel a:hover,
  .mobile-nav-panel a.active {
    background: rgba(11, 19, 43, 0.06);
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 3000;
  }

  .cta-button {
    display: none;
  }

  .logo-img {
    height: 70px;
  }

  .hero,
  .page-hero {
    padding: 3rem 0 2rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  h3 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .card-grid,
  .card-grid.three,
  .card-grid.four,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section.accent {
    padding: 2rem 1.25rem;
    margin-top: 2rem;
  }

  .info-card,
  .portfolio-card,
  .service-card,
  .portfolio-item,
  .testimonial-card {
    padding: 1.5rem;
  }

  .about-preview,
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .logo-showcase {
    padding: 2rem;
  }

  .logo-showcase img {
    max-height: 200px;
  }

  main {
    padding: 0 1.25rem 3rem;
  }

  .site-footer {
    padding: 1.5rem 1.25rem 2rem;
  }
}

/* Tablet adjustments */
@media (max-width: 760px) and (min-width: 480px) {
  .card-grid.three,
  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small mobile devices */
@media (max-width: 479px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .logo-img {
    height: 60px;
  }

  .nav-toggle {
    top: 1.1rem;
    right: 1rem;
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    width: 24px;
  }

  .nav-toggle span::before {
    top: -7px;
  }

  .nav-toggle span::after {
    top: 7px;
  }

  .mobile-nav-panel {
    width: min(90vw, 360px);
  }

  main {
    padding: 0 1rem 2.5rem;
  }

  .hero,
  .page-hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section.accent {
    padding: 1.75rem 1rem;
  }

  .hero-mascot,
  .page-hero-illustration {
    width: 90vw;
  }
}
