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

/*

Hide scrollbars

*/
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/*

Animations

Include fadeIn and slideUp for smooth element entrances

*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background: linear-gradient(
    -45deg,
    var(--bg-gradient-1),
    var(--bg-gradient-2),
    var(--bg-gradient-3),
    var(--bg-gradient-4)
  );
  color: var(--text);
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.5s ease, color 0.5s ease;
}

/*

Loading bar

*/
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--text));
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/*

Topbar

Styles for the top navigation bar
Includes logo, links, and theme switcher

*/
.topbar {
  position: sticky;
  top: 0px;
  left: 0px;
  right: 0px;
  height: 100px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.topbar-inner {
  display: flex;
  width: 110%;
  max-width: 14000px;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  pointer-events: auto;
}

.topbar-nav-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09);
}

.topbar-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.topbar-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.03);
}
.topbar-link:active {
  transform: translateY(-2px);
}

.topbar-link[aria-current="page"],
.topbar-link.active {
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.199));
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.068);
}

.topbar .theme-switch-wrapper {
  position: static;
  right: 0;
}

.theme-switch-wrapper {
  position: absolute;
  right: 30px;
  top: 30px;
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  width: 70px;
  height: 34px;
  position: relative;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: 0.25s;
  border-radius: 34px;
}

.theme-switch .slider:before {
  position: absolute;
  z-index: 2;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: transparent;
  background-image: url("images/icons/sun-light.svg");
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.25s;
  border-radius: 50%;
}

.theme-switch input:checked + .slider {
  background-color: var(--accent);
}

.theme-switch input:checked + .slider:before {
  transform: translateX(36px);
  background-image: url("images/icons/half-moon.svg");
}

/*

Section

Styles for the section
Includes background, border, and shadow

*/

section {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0px 0px rgba(255, 255, 255, 0);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  z-index: 1;
}

section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
  z-index: 1;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
  text-align: center;
}

/*

Back to top button

Styles for the back to top button

*/
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  font-size: 2rem;
  color: var(--text);
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1);
}

/*

Headers

Multiple headers can be used throughout the page

*/

header {
  text-align: center;
  padding: 80px 0;
  margin: 0 -20px; /* Extend to the edges */
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header p {
  font-family: "Roboto Mono", monospace;
  font-size: 1.1rem;
  color: var(--muted);
}

/*

HOME PAGE

Includes

background blobs,
hero section,
scroll indicator,
technology showcase,
back to top button

*/

/*

Blobs

Styles for the floating background blobs
Animation for smooth floating effect

*/
.floating-blob {
  position: fixed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
  animation: floatBlob 20s ease-in-out infinite;
  will-change: transform, opacity;
}

.blob1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-duration: 25s;
  animation-delay: 0s;
  background: rgba(135, 206, 235, 0.2); /* Sky blue */
}

.blob2 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 15%;
  animation-duration: 30s;
  animation-delay: 5s;
  background: rgba(221, 160, 221, 0.2); /* Plum */
}

.blob3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-duration: 22s;
  animation-delay: 10s;
  background: rgba(255, 182, 193, 0.2); /* Light pink */
}

.blob4 {
  width: 180px;
  height: 180px;
  top: 30%;
  right: 5%;
  animation-duration: 28s;
  animation-delay: 15s;
  background: rgba(144, 238, 144, 0.2); /* Light green */
}

.blob5 {
  width: 120px;
  height: 120px;
  bottom: 10%;
  right: 25%;
  animation-duration: 26s;
  animation-delay: 20s;
  background: rgba(255, 218, 185, 0.2); /* Peach */
}

.blob6 {
  width: 140px;
  height: 140px;
  top: 20%;
  left: 45%;
  animation-duration: 24s;
  animation-delay: 25s;
  background: rgba(173, 216, 230, 0.2); /* Light blue */
}

.blob7 {
  width: 110px;
  height: 110px;
  bottom: 30%;
  left: 30%;
  animation-duration: 27s;
  animation-delay: 30s;
  background: rgba(230, 230, 250, 0.2); /* Lavender */
}

@keyframes floatBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.5;
  }
  16.67% {
    transform: translate3d(50px, -30px, 0) scale(1.1);
    opacity: 0.6;
  }
  33.33% {
    transform: translate3d(-40px, 20px, 0) scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(30px, 50px, 0) scale(1.05);
    opacity: 0.65;
  }
  66.67% {
    transform: translate3d(-50px, -20px, 0) scale(0.95);
    opacity: 0.6;
  }
  83.33% {
    transform: translate3d(40px, 30px, 0) scale(1.08);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.5;
  }
}

/*

Status and location indicators

*/
.status-indicator {
  position: absolute;
  top: -3rem;
  left: -1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.ping {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);
}

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

/* .hero-email {
  position: absolute;
  top: -3.5rem;
  left: 50%rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-email a {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
} */

.location-indicator {
  position: absolute;
  top: -3rem;
  right: -1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.location-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

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

/*

Main hero content

Includes

hero badge,
hero title,
hero subtitle,
hero description,
hero actions,
buttons

*/

.hero {
  position: relative;
  text-align: center;
  max-width: 960px;
  margin: 80px auto 120px;
  padding: 120px 96px;
  border-radius: 36px;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(135, 206, 235, 0.16),
    rgba(221, 160, 221, 0.18)
  );
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  animation: fadeIn 1s ease;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      60% 60% at 20% 20%,
      rgba(135, 206, 235, 0.3),
      transparent
    ),
    radial-gradient(55% 55% at 80% 0%, rgba(221, 160, 221, 0.35), transparent);
  opacity: 0.8;
  z-index: 0;
  filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.hero-emoji {
  font-size: 1.3rem;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

html.light .hero-title {
  background: linear-gradient(0deg, #1f7177, #000000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.dark .hero-title {
  background: linear-gradient(0deg, #7fadb9, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
}

.hero-description {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  gap: 18px;
}

.hero-badge {
  animation: slideUp 0.8s ease 0.1s both;
}

.hero-title {
  animation: slideUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  animation: slideUp 0.8s ease 0.3s both;
}

.hero-description {
  animation: slideUp 0.8s ease 0.4s both;
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: slideUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/*

Scroll indicator

Styles for the scroll indicator
Bouncing arrow animation

*/
.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: -50px;
}

.arrow {
  font-size: 4rem;
  color: var(--text);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/*

Tech showcase

Includes

technology grid,
technology cards


*/
.tech-showcase {
  position: relative;
  max-width: 100%;
  margin: 80px;
  padding: 70px;
  border-radius: 36px;
  background: linear-gradient(
    135deg,
    rgba(135, 206, 235, 0.16),
    rgba(221, 160, 221, 0.18)
  );
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  z-index: 1;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 20px;
  justify-items: center;
}

.tech-card {
  width: 125px;
  height: 160px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.tech-card img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.tech-card p {
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin: 0;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/*

PROJECT PAGE

Includes

project grid,
project cards

*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin: 60px auto;
  max-width: 100vw;
  padding: 0 20px;
  animation: fadeIn 1s ease;
  margin-top: 100px;
}

.project-card {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0px 0px rgba(255, 255, 255, 0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.card-media {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-media::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--panel-bg), transparent);
  pointer-events: none;
}

.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .card-media video {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  flex: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.card-tags {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.card-tags span {
  background: var(--accent);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Roboto Mono", monospace;
}

/*

ABOUT PAGE

Includes

about section,
profile image

*/
.about-main {
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
  animation: fadeIn 1s ease;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  margin-left: -100px;
}

.text {
  flex: 1;
}

.text h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease 0.2s both;
}

.text p {
  font-size: 1.2rem;
  line-height: 1.8;
  animation: slideUp 0.8s ease 0.4s both;
}

.profile-image {
  animation: slideUp 0.8s ease 0.6s both;
  position: relative;
  flex-shrink: 0;
  top: 0px;
  left: 50px;
}

.profile-image img {
  width: 500px;
  height: 700px;
  border-radius: 20px;
  object-fit: cover;
  border: 5px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/*

CONTACT PAGE

Includes

contact panel,
social bubbles

*/
.contact-main {
  margin: 60px auto;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 0.6s ease;
  margin-top: 150px;
}

.contact-panel {
  background: var(--panel-bg);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 36px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  max-width: 720px;
  margin: 40px auto;
  transform: translateY(-10px);
  position: relative;
}

.contact-panel h1 {
  margin-bottom: 12px;
  font-size: 2.6rem;
}

.contact-list {
  list-style: none;
  margin: 16px 0 8px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list a {
  color: var(--text);
  /* use main text color so links appear black in light theme */
  text-decoration: none;
  font-size: 1.15rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-panel .note {
  margin-top: 18px;
  color: var(--muted);
  font-family: "Roboto Mono", monospace;
}

/* enlarge general panel text for better presence */
.contact-panel p,
.contact-panel li,
.contact-panel strong {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Floating social bubbles */
.social-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.bubble img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: none;
}

.bubble:focus,
.bubble:hover {
  transform: translateY(-100px) scale(1.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  animation-play-state: paused;
}

/* Positions (relative to contact-panel) */

.bubble-instagram {
  animation: float1 8s ease-in-out infinite;
}

.bubble-linkedin {
  animation: float2 10s ease-in-out infinite;
}

.bubble-github {
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(3px, -4px);
  }
  66% {
    transform: translate(3px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-4px, 3px);
  }
  66% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes float3 {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(4px, -3px);
  }
  66% {
    transform: translate(-2px, 2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/*

Footer styles

*/
footer {
  text-align: center;
  margin: 30px 0 10px;
  color: var(--muted);
  font-family: "Roboto Mono", monospace;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* Theme variables */
html.light {
  --bg-gradient-1: #ffffff;
  --bg-gradient-2: #87ceeb;
  --bg-gradient-3: #dda0dd;
  --bg-gradient-4: #ffffff;
  --text: #212529;
  --panel-bg: rgba(255, 255, 255, 0.25);
  --border: rgba(255, 255, 255, 0.2);
  --muted: #6c757d;
  --accent: #dda0dd;
}

html.dark {
  --bg-gradient-1: #232526;
  --bg-gradient-2: #414345;
  --bg-gradient-3: #232526;
  --bg-gradient-4: #414345;
  --text: #e9ecef;
  --panel-bg: rgba(73, 72, 72, 0.25);
  --border: rgba(255, 255, 255, 0.3);
  --muted: #adb5bd;
  --accent: #80bfff;
}

/* Limit to max 4 cards per row on large screens */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Consolidated responsive styles */

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .card-media {
    height: 160px;
  }
  .card-media::after {
    height: 60px;
  }
  .card-content {
    padding: 16px;
  }
  .card-content h3 {
    font-size: 1.2rem;
  }
  .card-tags {
    padding: 0 16px 16px;
  }
  .contact-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 250px);
  }
  .about-container {
    flex-direction: column;
    margin-left: 0;
    margin-top: 20px;
    gap: 50px;
    text-align: center;
  }
  .text h1 {
    font-size: 3rem;
  }
  .profile-image {
    left: 0;
  }
  .profile-image img {
    width: 300px;
    height: 400px;
  }
  .bubble {
    width: 44px;
    height: 44px;
  }
  .topbar-inner {
    padding: 12px 8px;
    gap: 8px;
  }
  .topbar-nav-full {
    gap: 4px;
  }
  .topbar-link {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  .site-logo {
    width: 36px;
    height: 36px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-media {
    height: 140px;
  }
  .card-media::after {
    height: 50px;
  }
  .text h1 {
    font-size: 2.5rem;
  }
  .profile-image img {
    width: 250px;
    height: 350px;
  }
  .hero {
    margin: 40px 16px 80px;
    padding: 60px 48px;
  }
  .hero-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
  }
  .hero-title {
    font-size: clamp(2.3rem, 78vw, 3.4rem);
  }
  .hero-subtitle {
    font-size: 1.4rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .buttons {
    gap: 15px;
    flex-wrap: wrap;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .tech-showcase {
    max-width: 100%;
    padding: 20px;
  }
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  .tech-card {
    width: 100px;
    height: 125px;
    padding: 10px;
  }
  .tech-card img {
    width: 50px;
    height: 50px;
  }
  .projects-grid {
    margin-top: 50px;
  }
  .contact-panel {
    padding: 24px;
  }
  .contact-panel h1 {
    font-size: 2rem;
  }
  .contact-list a {
    font-size: 1rem;
  }
  .theme-switch-wrapper {
    right: 15px;
    top: 15px;
  }
  .theme-switch {
    width: 60px;
    height: 30px;
  }
  .theme-switch .slider:before {
    height: 22px;
    width: 22px;
    background-size: 16px 16px;
  }
  .theme-switch input:checked + .slider:before {
    transform: translateX(30px);
  }
  header h1 {
    font-size: 2.5rem;
  }
  section {
    padding: 25px;
  }
  .contact-main {
    margin-top: 40px;
  }
  section h2 {
    font-size: 1.8rem;
  }
  .floating-blob {
    width: 100px !important;
    height: 100px !important;
  }
}

.scroll-indicator .arrow {
  font-size: 2.5rem;
}

@media (max-width: 480px) {
  .topbar {
    height: 50px;
  }
  .topbar-inner {
    padding: 10px 6px;
    gap: 6px;
  }
  .topbar-nav-full {
    gap: 2px;
  }
  .topbar-link {
    padding: 4px 6px;
    font-size: 0.8rem;
  }
  .site-logo {
    width: 28px;
    height: 28px;
  }
  .bubble {
    width: 36px;
    height: 36px;
  }
  .social-bubbles {
    grid-template-columns: 1fr;
    margin-left: 20px;
  }
  .hero {
    margin: 30px 20px 60px 20px;
    padding: 42px 32px;
    border-radius: 28px;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .theme-switch-wrapper {
    right: 15px;
    top: 15px;
  }
  .theme-switch {
    width: 60px;
    height: 30px;
  }
  .theme-switch .slider:before {
    height: 22px;
    width: 22px;
    background-size: 16px 16px;
  }
  .theme-switch input:checked + .slider:before {
    transform: translateX(30px);
  }
  .text h1 {
    font-size: 2rem;
  }
  .profile-image img {
    width: 200px;
    height: 300px;
  }
  .contact-main {
    margin-top: 40px;
  }
  .scroll-indicator .arrow {
    font-size: 3.6rem;
  }
  .tech-showcase {
    max-width: 95vw;
    margin: 40px 2.5vw;
    padding: 20px;
  }
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
  }
  .tech-card {
    width: 90px;
    height: 115px;
    padding: 8px;
  }
  .tech-card img {
    width: 45px;
    height: 45px;
  }
  section h2 {
    font-size: 1.5rem;
  }
  .floating-blob {
    display: none;
  }
  .status-indicator {
    display: none;
  }
  .location-indicator {
    display: none;
  }
}
