@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Arvo:wght@400;700&family=Poppins:wght@400;600;700;800&display=swap');

/* Modern minimalist portfolio style */
:root {
  --bg: #0f1115;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f8f9fb;
  --muted: #afb3be;
  --accent: #d4a574;
  --accent-dark: #a8865a;
  --radius: 24px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

/* Additional targeted mobile fixes for small phones (ensure no elements stay hidden or clipped) */
@media (max-width: 480px) {
  /* Ensure animated cards are visible by default on small screens */
  .project-card,
  .skill-card,
  .contact-panel,
  .gallery-item,
  .certificate-card,
  .projects-cta,
  .section-header,
  .section-header p,
  .section-header h2,
  .subsection-title,
  .subsection-desc,
  .cta-note {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
  }

  /* Make the 'For More Details' CTA clearly visible and clickable */
  #moreDetailsBtn {
    position: relative !important;
    z-index: 60 !important;
    display: inline-flex !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 48px rgba(0,0,0,0.28) !important;
    min-width: 160px !important;
    text-align: center !important;
  }

  /* Ensure projects-cta container doesn't get clipped */
  .projects-cta {
    position: relative !important;
    z-index: 50 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
  }

  /* Gallery layout: stack, ensure images scale */
  .gallery-masonry {
    flex-direction: column !important;
    gap: 0.85rem !important;
    align-items: stretch !important;
  }

  .gallery-item,
  .gallery-item-sm,
  .gallery-item-md,
  .gallery-item-lg,
  .gallery-item-wide {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Prevent banner/video from overlapping interactive elements */
  .background-video-wrapper {
    z-index: 0 !important;
    pointer-events: none !important;
  }

  main, .container {
    z-index: 5 !important;
    position: relative !important;
  }

  /* Reduce large fixed heights that can push UI off-screen */
  .profile-photo {
    min-height: auto !important;
    max-height: 320px !important;
    object-fit: cover !important;
  }

  /* Footer spacing and visibility */
  .footer {
    padding: 2rem 1rem !important;
  }

  .footer-section p,
  .footer-section a {
    word-break: break-word !important;
  }
}

/* Extra-small and narrow phones adjustments */
@media (max-width: 380px) {
  #moreDetailsBtn { min-width: 140px !important; padding: 0.6rem 0.9rem !important; }
  .brand { font-size: 2.2rem !important; }
  .hero h1 { font-size: 1.6rem !important; }
  .hero p { padding: 0 1rem; }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #0a0a0e;
  position: relative;
  overflow-x: hidden;
}

/* Matrix Canvas Background */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Typewriter Container & Styles */
.typewriter-container {
  position: relative;
  z-index: 2;
  margin: 2rem 0;
  text-align: center;
}

.typewriter-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  color: #f8f9fb;
  text-shadow: 
    0 0 20px rgba(255, 165, 0, 0.6),
    0 0 40px rgba(0, 100, 0, 0.4),
    0 0 60px rgba(30, 144, 255, 0.3);
  display: inline-block;
}

.typewriter-text-large {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  color: #f8f9fb;
  text-shadow:
    0 0 5px rgba(255, 179, 71, 0.65),
    0 0 15px rgba(255, 179, 71, 0.4),
    0 0 28px rgba(255, 179, 71, 0.18),
    0 0 54px rgba(255, 179, 71, 0.08);
  display: inline-block;
}

.typewriter-text-small {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.8rem);
  line-height: 1.1;
  margin: 0 0 0.4rem 0;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  color: #FFB347;
  text-shadow:
    0 0 4px rgba(255, 179, 71, 0.65),
    0 0 12px rgba(255, 179, 71, 0.38),
    0 0 25px rgba(255, 179, 71, 0.18),
    0 0 48px rgba(255, 179, 71, 0.08);
  display: block;
}

/* Blinking Cursor */
.cursor {
  color: #9B111E;
  font-weight: 700;
  margin-left: 0.1em;
  animation: blink 0.8s infinite;
  text-shadow: 0 0 10px rgba(155, 17, 30, 0.8);
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Content overlay to sit above background video */
main {
  position: relative;
  z-index: 1;
}

.background-video-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: blur(3px) brightness(0.62) contrast(0.78) saturate(1.05);
}

.background-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), transparent 18%),
    radial-gradient(circle at 70% 42%, rgba(210, 180, 140, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(10, 12, 17, 0.52), rgba(10, 12, 17, 0.72));
}

img,
button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: transparent;
  border-bottom: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
  padding-top: 84px;
}

.brand {
  display: inline-block;
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 3rem;
  line-height: 1;
  color: #9B111E;
  text-shadow:
    0 0 10px rgba(155, 17, 30, 0.9),
    0 0 22px rgba(155, 17, 30, 0.65),
    0 0 36px rgba(90, 10, 15, 0.35);
  max-width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 28, 48, 0.5), rgba(7, 12, 20, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 10px rgba(0, 212, 255, 0.05);
  color: #a8d5e5;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(20, 42, 70, 0.6), rgba(10, 18, 30, 0.8));
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 212, 255, 0.4),
    inset 0 0 20px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(0, 212, 255, 0.4);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  left: 0;
  transition: transform 0.25s ease;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.nav-toggle.open span {
  background: transparent;
}

.nav-toggle.open span::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span::after {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 3rem 0 6rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 100%;
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1.02;
  margin: 0;
}

.hero p {
  max-width: 42rem;
  margin: 1.5rem auto 2.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-section {
  padding: 4.5rem 0 5.5rem;
}

.profile-grid {
  display: flex;
  justify-content: center;
}

.profile-card {
  display: grid;
  grid-template-columns: 440px auto;
  gap: 3rem;
  align-items: center;
  width: min(100%, 1220px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 3.5rem;
  box-shadow: var(--shadow);
}

.profile-photo-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.profile-photo {
  width: 100%;
  height: auto;
  max-width: 420px;
  min-height: 420px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.profile-copy p {
  max-width: 44rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.8;
}

.profile-description {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.85;
  color: rgba(255, 118, 134, 0.92);
  text-shadow:
    0 0 8px rgba(255, 26, 70, 0.18),
    0 0 16px rgba(255, 26, 70, 0.12);
  margin: 0;
}

@media (max-width: 980px) {
  .profile-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }

  .profile-photo {
    max-width: 100%;
    min-height: 360px;
  }
}

.ruby-glow {
  font-family: 'Arvo', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  color: #f7d6d6;
  text-shadow:
    0 0 6px rgba(182, 17, 37, 0.55),
    0 0 18px rgba(182, 17, 37, 0.32),
    0 0 30px rgba(182, 17, 37, 0.24);
}

.profile-card:hover .ruby-glow {
  text-shadow:
    0 0 10px rgba(182, 17, 37, 0.85),
    0 0 26px rgba(182, 17, 37, 0.5),
    0 0 46px rgba(182, 17, 37, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4a574, #a8865a);
  color: #0f1115;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  box-shadow: 0 0 25px rgba(212, 165, 116, 0.45), 0 0 50px rgba(212, 165, 116, 0.25);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(212, 165, 116, 0.75), 0 0 70px rgba(212, 165, 116, 0.4), 0 18px 40px rgba(212, 165, 116, 0.3), 0 0 100px rgba(212, 165, 116, 0.2);
}

/* Ghost CTA used in projects header */
.btn-ghost {
  background: transparent;
  color: #6dd8ff;
  border: 2px solid rgba(109, 216, 255, 0.35);
  box-shadow: 0 0 28px rgba(109, 216, 255, 0.12);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(109, 216, 255, 0.32), 0 18px 50px rgba(0,0,0,0.18);
}

.projects-cta {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 4rem 0;
}

.community-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
}

.community-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(109, 216, 255, 0.18), transparent 22%),
              radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.12), transparent 18%),
              radial-gradient(circle at 50% 75%, rgba(155, 17, 30, 0.14), transparent 20%);
  pointer-events: none;
}

.community-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  border-radius: 28px;
  background: rgba(10, 14, 24, 0.88);
  border: 1px solid rgba(109, 216, 255, 0.18);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

.community-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #ffffff;
}

.community-copy p {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.75;
}

.community-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(109, 216, 255, 0.24), rgba(155, 17, 30, 0.22));
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(109, 216, 255, 0.4);
  box-shadow: 0 16px 40px rgba(109, 216, 255, 0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

.community-link:hover,
.community-link:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(109, 216, 255, 0.36), rgba(155, 17, 30, 0.32));
}

#projects {
  scroll-margin-top: 60px;
}

#gallery {
  scroll-margin-top: 60px;
}

#about {
  scroll-margin-top: 60px;
}

#skills {
  scroll-margin-top: 120px;
}

#skills .section-header {
  margin-bottom: 2.5rem;
}

.projects-subsection {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-subsection:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.subsection-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.subsection-desc {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60rem;
}

.section-header {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.projects-grid { 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
}

.featured-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: rgba(109, 216, 255, 0.14);
  color: var(--accent);
  border: 1px solid rgba(109, 216, 255, 0.28);
  font-size: 0.95rem;
  font-weight: 600;
}

.project-card,
.skill-card,
.contact-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transform: translateY(0);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.project-card {
  position: relative;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(15, 17, 21, 0.9);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(109, 216, 255, 0.2);
}

.project-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}

.project-thumbnail img,
.project-thumbnail video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumbnail video {
  background: rgba(0, 0, 0, 0.2);
}


.project-thumbnail .placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(109, 216, 255, 0.1), rgba(42, 51, 84, 0.2));
  position: relative;
  overflow: hidden;
}

.project-thumbnail .placeholder-image::after {
  content: "📸";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  opacity: 0.4;
}

.project-card.video-card .project-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.25), rgba(15, 17, 21, 0.45));
  pointer-events: none;
  z-index: 0;
}

.project-card.video-card video {
  filter: brightness(0.95);
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.project-card.video-card .project-thumbnail {
  pointer-events: auto;
}

.project-card.video-card .video-mute-toggle {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.project-card.video-card .video-mute-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}

.project-card.video-card .video-expand-button {
  position: absolute;
  top: 0.85rem;
  right: 3.8rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.project-card.video-card .video-expand-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.3), rgba(15, 17, 21, 0.95));
  display: grid;
  place-items: end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  pointer-events: none;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.project-overlay p {
  margin: 0;
  color: rgba(248, 249, 251, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.certificate-card:hover {
  transform: translateY(-8px);
  border-color: rgba(109, 216, 255, 0.35);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.certificate-preview {
  min-height: 280px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(109, 216, 255, 0.08));
  position: relative;
  overflow: hidden;
}

.certificate-preview img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.certificate-card:hover .certificate-preview img {
  transform: scale(1.04);
}

.certificate-card:hover .certificate-preview {
  transform: scale(1.01);
}

.certificate-placeholder,
.certificate-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  text-align: center;
  padding: 1rem 1.5rem;
}

.certificate-content {
  padding: 1.7rem;
}

.certificate-content h3 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 1.2rem;
}

.certificate-content p {
  margin: 0;
  color: rgba(248, 249, 251, 0.78);
  line-height: 1.75;
}

.certificates-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-card {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  position: relative;
  border: 2px solid rgba(109, 216, 255, 0.25);
  box-shadow: 0 0 28px rgba(109, 216, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.18);
  background: rgba(15, 17, 21, 0.9);
  height: 100%;
  min-height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(109, 216, 255, 0.35), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(109, 216, 255, 0.18), transparent 26%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.skill-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 0 40px rgba(109, 216, 255, 0.3), 0 20px 72px rgba(0, 0, 0, 0.2);
  border-color: rgba(109, 216, 255, 0.55);
}

.skill-card:hover::before {
  filter: blur(16px);
  opacity: 1;
}

.skill-card--featured {
  border-color: rgba(109, 216, 255, 0.35);
  background: linear-gradient(180deg, rgba(109, 216, 255, 0.16), rgba(15, 17, 21, 0.94));
  box-shadow: 0 0 50px rgba(109, 216, 255, 0.2), 0 24px 60px rgba(0, 0, 0, 0.22);
}

.skill-card--featured::before {
  background: radial-gradient(circle at 20% 20%, rgba(109, 216, 255, 0.45), transparent 32%),
    radial-gradient(circle at 78% 80%, rgba(109, 216, 255, 0.18), transparent 28%);
}

.skill-card--featured:hover {
  transform: translateY(-14px) scale(1.05);
  box-shadow: 0 0 54px rgba(109, 216, 255, 0.3), 0 24px 72px rgba(0, 0, 0, 0.22);
  border-color: rgba(109, 216, 255, 0.65);
}

.skill-card--featured:hover h3 {
  color: var(--accent);
}

.skill-card .skill-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.15) rotate(-5deg);
}

.skill-card p {
  margin: 0;
  color: var(--muted);
}

.skill-card h3 {
  transition: color 0.3s ease;
}

.skill-card:hover h3 {
  color: var(--accent);
}

#contact {
  height: 100vh;
  max-height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
}

.contact-panel {
  padding: 5px 10px;
  margin: 0;
  height: auto;
  min-height: auto;
}

.contact-panel h3 {
  margin-bottom: 0.1rem;
  font-size: 1.2rem;
}

.contact-panel p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
}

.contact-panel form {
  display: grid;
  gap: 0.9rem;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-panel input:focus,
.contact-panel textarea:focus {
  border-color: rgba(109, 216, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.contact-panel button {
  width: fit-content;
  padding: 1rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0f1115;
  border-radius: 999px;
  transition: transform 0.24s ease;
}

.contact-panel button:hover,
.contact-panel button:focus-visible {
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 1rem;
}

.social-links a {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(109, 216, 255, 0.16);
}

.contact-info-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.contact-info-box p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-info-box a {
  color: var(--accent);
  text-decoration: none;
}

.contact-form h4 {
  margin: 0 0 0.7rem 0;
  font-size: 1.05rem;
  color: var(--accent);
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.events-container {
  margin-top: 1.5rem;
}

.event-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(212, 165, 116, 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.event-placeholder p {
  margin: 0.5rem 0;
  color: var(--muted);
}

/* Tally Form Wrapper */
.tally-form-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tally-form-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

.footer {
  background: rgba(15, 17, 21, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0 4.5rem; /* extra bottom space for centered social buttons */
  margin-top: 3rem;
}

/* Ensure footer acts as positioning context for centered buttons */
.footer {
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  z-index: 5;
}

.footer-social .footer-social-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

/* Position the social buttons correctly */
.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

@media (max-width: 480px) {
  .footer-social {
    gap: 12px;
  }
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 21, 0.88);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(109, 216, 255, 0.12);
}

/* Gallery Masonry Layout */
.gallery-masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
  box-shadow: var(--shadow);
  transform: translateY(0);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  display: inline-flex;
  flex-direction: column;
  flex: 1 1 220px;
  max-width: 260px;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(109, 216, 255, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: none;
}

/* Size variations */
.gallery-item-sm,
.gallery-item-md {
  flex: 1 1 220px;
  max-width: 260px;
}

.gallery-item-lg {
  flex: 1 1 320px;
  max-width: 340px;
}

.gallery-item-wide {
  flex: 2 1 460px;
  max-width: 520px;
}

.gallery-item-9,
.gallery-item-10,
.gallery-item-11,
.gallery-item-12 {
  flex: 0 0 auto;
  width: auto;
  max-width: 260px;
}

.gallery-item-11 {
  max-width: 520px;
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.2), rgba(15, 17, 21, 0.95));
  display: grid;
  place-items: end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(7, 8, 14, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: min(42vw, 420px);
  width: min(42vw, 420px);
  max-height: min(80vh, 720px);
  display: grid;
  place-items: center;
  position: relative;
  padding: 1rem;
}

.lightbox-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 660px);
  overflow: hidden;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
}

.lightbox-frame img,
.lightbox-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-frame video {
  display: none;
}

.lightbox-frame img,
.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 17, 21, 0.88);
  color: var(--text);
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: translateY(-1px);
  background: rgba(109, 216, 255, 0.12);
}

@keyframes fadeUp {
  from {
    transform: translateY(18px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s ease forwards;
}

@media (max-width: 768px) {
  .navbar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-header {
    text-align: center;
    justify-content: center;
  }

  #contact {
    height: auto;
    max-height: none;
    min-height: 100vh;
    padding: 2rem 0 !important;
    justify-content: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .certificates-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .profile-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 12, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.1);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 12;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 0.8rem 0.75rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 4.5rem;
  }

  .profile-card {
    padding: 2rem;
  }

  .profile-photo-wrap {
    max-width: 100%;
    margin: 0 auto;
  }

  .projects-grid,
  .certificates-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
  }

  .gallery-item,
  .gallery-item-sm,
  .gallery-item-md,
  .gallery-item-lg,
  .gallery-item-wide {
    width: auto;
    max-width: 100%;
  }

  .section-header {
    text-align: center;
    justify-content: center;
  }

  #contact {
    height: auto;
    max-height: none;
    min-height: 100vh;
    padding: 2rem 0 !important;
    justify-content: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .skill-card,
  .contact-panel {
    border-radius: 20px;
  }

  .social-links {
    justify-content: center;
  }

  .contact-info-box {
    margin: 1rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .projects-subsection {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
  }

  .subsection-title {
    font-size: 1.5rem;
  }

  .subsection-desc {
    font-size: 0.95rem;
  }
}
/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-form h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-form input,
.contact-form textarea {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--surface-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(212, 165, 116, 0.2);
}

/* Footer social buttons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}

.footer-social .footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Make footer buttons larger and high-contrast so they're visible */
.footer-social .social-btn,
.footer-social .footer-social-links a,
.footer-social .social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a574, #a8865a);
  color: #0f1115;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  font-size: 0.95rem;
}

.footer-social .social-btn:hover,
.footer-social .footer-social-links a:hover,
.footer-social .social-links a:hover,
.footer-social .social-btn:focus-visible {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #a8865a, #d4a574);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(212, 165, 116, 0.28);
}

@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }
}

.contact-form textarea {
  resize: vertical;
  font-family: inherit;
}

.contact-form .form-status {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}

.contact-form .form-status.success {
  color: #8cdfa8;
}

.contact-form .form-status.error {
  color: #ff9aa2;
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* Contact Info Box */
.contact-info-box {
  background: var(--surface);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  margin: 0.25rem 0;
  border: 1px solid var(--surface-strong);
}

.contact-info-box h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-info-box p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-info-box strong {
  color: var(--accent);
}

/* Footer Styles */
.footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--surface-strong);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-section a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .section-header,
  .section-header p,
  .section-header h2,
  .subsection-title,
  .subsection-desc,
  .projects-cta,
  .cta-note,
  .certificate-content,
  .certificate-content p,
  .certificate-content h3 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    margin-bottom: 15px !important;
  }
}

@media (max-width: 768px) {
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }
  .footer-social,
  .footer-section {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-social-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }
  .footer-section p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
  }
  .social-btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 768px) {
  /* Fix visibility for mobile */
  .project-card, .skill-card, .contact-panel, .gallery-item, .gallery-item-sm, .gallery-item-md, .gallery-item-lg, .gallery-item-wide, .certificate-card { opacity: 1 !important; visibility: visible !important; transform: none !important; display: block !important; } .btn-ghost { opacity: 1 !important; visibility: visible !important; transform: none !important; display: inline-flex !important; }
  .projects-cta {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* Fix gallery flex layout on mobile */
  .gallery-masonry {
    display: flex !important;
    flex-direction: column !important;
  }
  .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem;
  }
  .gallery-item img {
    width: 100% !important;
    height: auto !important;
  }
  /* Fix projects grid */
  .projects-grid, .certificates-grid, .featured-skill-grid, .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  /* Fix missing text */
  .profile-description, p, h1, h2, h3, h4, .ruby-glow, .community-copy p, .subsection-desc {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}


@media (max-width: 768px) {
  /* Footer mobile fixes */
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }
  .footer-social, .footer-section {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .footer-social-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }
  .footer-section p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .social-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }
  .gallery-masonry {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: stretch !important;
  }
  .gallery-item,
  .gallery-item-sm,
  .gallery-item-md,
  .gallery-item-lg,
  .gallery-item-wide {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .gallery-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-social-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
  }
  .footer-social .social-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
  /* Fix CTA button */
  .projects-cta .btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
  }
  /* Fix missing Photo Gallery container */
  #gallery .container {
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* Fix Projects container */
  #projects .container {
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* General fixes for any sections that might be hidden */
  section {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

@media (max-width: 430px) {
  .footer {
    overflow-x: hidden !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .footer-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    gap: 1rem !important;
  }
  .footer-social {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 auto 1rem !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }
  .footer-social-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-social .social-btn {
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 0.95rem !important;
  }
  .footer-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .gallery-masonry {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: stretch !important;
  }
  .gallery-item,
  .gallery-item-sm,
  .gallery-item-md,
  .gallery-item-lg,
  .gallery-item-wide {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .gallery-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .gallery-overlay {
    left: 0 !important;
    right: 0 !important;
  }
  .container {
    width: calc(100% - 1.5rem) !important;
    max-width: 100% !important;
  }
}


