:root {
  /* Light Theme (Default) */
  --bg-color: #ECF0F3;
  --text-color: #7d8492;
  --shadow-light: #ffffff;
  --shadow-dark: #d1d9e6;
  --shadow-inset-light: #ffffff;
  --shadow-inset-dark: #d1d9e6;
}

body.dark-mode {
  /* Dark Theme */
  --bg-color: #292d32;
  --text-color: #c7c7c7;
  --shadow-light: #35393f;
  --shadow-dark: #212428;
  --shadow-inset-light: #35393f;
  --shadow-inset-dark: #212428;
}

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

body {
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  /* Prevent scrollbars */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.logo-svg {
  width: 60vmin;
  /* Responsive size */
  height: 60vmin;
  max-width: 600px;
  max-height: 600px;
  /* transition: transform 0.3s ease; Optional subtle movement */
}

.label {
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--text-color);
  text-transform: uppercase;
  opacity: 0.6;

  /* Subtle emboss text matching the theme */
  text-shadow:
    2px 2px 4px var(--shadow-dark),
    -2px -2px 4px var(--shadow-light);
}

/* Toggle Controls */
.controls {
  margin-top: 3rem;
}

.toggle-switch {
  display: inline-block;
  position: relative;
  width: 240px;
  height: 50px;
  background: var(--bg-color);
  border-radius: 25px;
  cursor: pointer;

  /* Neumorphic Shadow for the track (Pressed in) */
  box-shadow:
    inset 5px 5px 10px var(--shadow-inset-dark),
    inset -5px -5px 10px var(--shadow-inset-light);

  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--bg-color);
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);

  /* Neumorphic Button (Sticking out) */
  box-shadow:
    5px 5px 10px var(--shadow-dark),
    -5px -5px 10px var(--shadow-light);

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.slider-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.convex-label {
  opacity: 0;
}

.concave-label {
  opacity: 1;
}


/* Toggle State */
input:checked+.slider {
  transform: translateX(100%);
}

input:checked+.slider .convex-label {
  opacity: 1;
}

input:checked+.slider .concave-label {
  opacity: 0;
}

/* Social Footer */
.social-footer {
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
}

.social-icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  /* Removed transition, physics will handle it */
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--bg-color);
  overflow: visible;
  overflow: visible;
  /* Initial fill, matches bg for neumorphism */
}