/* =============================
   THEME VARIABLES
============================= */
* {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}


canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}


:root {
  --bg: #ffffff;
  --text: #000000;
  --accent: #ffb549;
}

.dark {
  --bg: #000000;
  --text: #ffffff;
  --accent: #ffb549;
}

/* =============================
   BASE STYLING
============================= */

body {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.fade-in {
  opacity: 1;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
  text-align: center;
}

.container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

/* =============================
   TEXT STYLES
============================= */

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.headline {
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 7vw, 70px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0;
  transition: transform 1.3s ease-out;
  position: relative;
  top: 6%;
}

.hollow-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  margin-right: 8px;
  animation: fadeInDown 1.3s ease forwards;
}

.solid-text {
  color: var(--text);
  animation: fadeInDown 1.3s ease forwards;
}

.subtext {
  font-size: clamp(18px, 3vw, 28px);
  position: relative;
  top: 7%;
  font-weight: 500;
  margin: 2px 7px 0;
  animation: fadeInDown 1.3s ease forwards;

}

.status {
  display: block;          /* forces new line */
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
  justify-content: center;
  margin-top: 0px;
  position: relative;
  left: -31%;
  animation: fadeInDown 1.3s ease forwards;
}


/* =============================
   THEME TOGGLE BUTTON
============================= */
.toggle-label {
  position: fixed;
  top: 3%;
  align-content: center;
  cursor: pointer;
  transform:scale(0.6) ;
  z-index: 9999;
}

.toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* === Outer Track === */
.toggle-slot {
  position: relative;
  width: 7em;
  height: 3.5em;
  border-radius: 10em;
  background: rgb(0, 0, 0);
  transition: background 0.3s ease;
}

/* === Moving Circle === */
.toggle-button {
  position: absolute;
  top: 0.25em;
  left: 0.3em;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: #000000;
  box-shadow: inset 0 0 0 0.75em #ffffff;
  transition: transform 0.5s cubic-bezier(.26,2,.46,.71), background 0.3s;
}

/* === Icons === */
.sun-icon-wrapper,
.moon-icon-wrapper {
  position: absolute;
  top: 2em;
  left: 2em;
  font-size: 1.2em;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(.26,2,.46,.71);
}


/* === Checked State === */
.toggle-checkbox:checked ~ .toggle-slot {
  background: #ffffff;
}

.toggle-checkbox:checked ~ .toggle-slot .toggle-button {
  transform: translateX(3.6em);
  background: #ffffff;
  box-shadow: inset 0 0 0 0.75em rgb(0, 0, 0);
}

.toggle-checkbox:checked ~ .toggle-slot .sun-icon-wrapper {
  opacity: 0;
  transform: translateX(1em);
}

.toggle-checkbox:checked ~ .toggle-slot .moon-icon-wrapper {
  opacity: 1;
  transform: translateX(0) rotate(-15deg);
}


/* =============================
   FOOTER
============================= */
footer {
  position: fixed;
  bottom: -3px;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.footer-link {
  position: fixed;
  bottom: 20px;   /* adjust position */
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  text-align: left;
  z-index: 1000;
}

.footer-link .footer-item {
  color: var(--text);
  text-decoration: none;
  position: relative;
  display: inline-block;  /* ensures underline matches text length */
  white-space: nowrap;    /* prevents breaking into multiple lines */
}

/* Underline effect */
.footer-link .footer-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.3s ease;
}

.footer-link .footer-item:hover::after {
  width: 100%;  /* underline matches text length */
}

.footer-links-right {
  position: fixed;
  bottom: 18px;
  right: 20px;
  display: flex;
  flex-direction: column; /* stacked vertically */
  align-items: right;    /* center horizontally */
  gap: 0px;
  font-family: 'Poppins', sans-serif;
}

.footer-links-right a {
  position: relative;
  display: inline-block;
  color: var(--text); /* normal text color */
  text-decoration: none;
  padding-bottom: 2px;
}

.footer-links-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: currentColor; /* will match text color */
  transition: width 0.3s ease;   /* only width transitions */
}

.footer-links-right a.upwork:hover::after { background-color: #00bfa5; width: 100%; }
.footer-links-right a.linkedin:hover::after { background-color: #0077b5; width: 100%; }
.footer-links-right a.instagram:hover::after { background-color: #e4405f; width: 100%; }

/* Keep line color during shrink: do not transition background-color */
.footer-links-right a::after {
  transition: width 0.3s ease; 
}


/* =============================
   NAME HOVER POP-UP + ANIMATION
============================= */
/* Make #name a proper relative container */
#name {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Move only the text upward on hover, not the tooltip */
/* Only move the span on hover, not the container */
#name span {
  display: inline-block;
  transition: transform 0.4s ease;
}

#name:hover span {
  transform: translateY(-10px);
}

/* Text move & glow */
#name .name-text {
  display: inline-block;
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

/* Move up and add glow on hover */
#name:hover .name-text {
  transform: translateY(-10px);
  /* Light theme glow: black */
  text-shadow: 0 0 8px rgba(0,0,0,0.0),
               0 0 12px rgba(0,0,0,0.5),
               0 0 16px rgba(0,0,0,0.4);
}

/* Dark theme glow: white */
.dark #name:hover .name-text {
  text-shadow: 0 0 8px rgba(255,255,255,0.0),
               0 0 12px rgba(255,255,255,0.5),
               0 0 16px rgba(255,255,255,0.4);
}


/* Tooltip */
#name .tooltip {
  position: absolute;
  bottom: 120%; /* adjust so it doesn't collide */
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

/* Tooltip arrow */
#name .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--text) transparent transparent transparent;
}

/* Show tooltip on hover */
#name:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}



/* =============================
   INLINE MENU BASE
============================= */
.menu-inline {
  display: flex;
  gap: 60px; /* space between items */
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: -1px;
  animation: fadeInDown 1.3s ease forwards;
}

.btn {
  position: relative;
  top: 90%;
  background: transparent;
  color: #000;
  border: none;
  padding: 12px 35px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Arrow */
.btn::before {
  content: "> ";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0.5;
  color: inherit;
  font-size: 18px;
  transition: all 0.4s ease;
}

/* Underline */
.btn::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 15%;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: width 0.4s ease;
}

/* Hover effects */
.btn:hover::before {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

.btn:hover::after {
  width: 70%;
}

/* === Dark Mode === */
.dark .btn {
  color: #fff;
}

.dark .btn::after {
  background: #fff;
}

/* LOGO */

.logo {
  text-decoration: none;       /* removes underline */
  position: fixed;
  top: 3.5%;
  left: 40px;
  font-family: 'Poppins', sans-serif;
  font-weight: 650;
  font-size: 35px;
  color: transparent;           /* hollow text */
  -webkit-text-stroke: 1.5px var(--text);
  letter-spacing: -1px;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 1000;

  /* Smooth edges */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 0 1px var(--text);
}

.logo:hover {
  color: var(--text);          /* fill text on hover */
  transform: translateY(-5px); /* slight move up */
}

.logo span {
  display: inline-block;
  transform: translateX(-5px);
}


/* === Hamburger Icon === */
.hamburger {
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001; /* Above everything */
}

.hamburger input {
  display: none;
}

.hamburger svg {
  height: 2.5em;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

/* Animate hamburger to X */
.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* =============================
   HAMBURGER MENU STYLING
============================= */

/* === Wrapper for Hamburger Checkbox + Icon === */
.hamburger-wrapper {
  position: relative;
  z-index: 1150; /* Ensures icon is above the menu */
}

/* === Hamburger Checkbox (hidden) === */
#hamburger-toggle {
  display: none;
}

/* === Hamburger Icon === */
/* Hamburger icon */
.hamburger {
  position: fixed;   /* keeps it above content */
  top: 1%;         /* adjust to match header height */
  right: 40px;       /* distance from right edge */
  width: 3em;
  height: 7em;
  z-index: 1150;     /* above menu */
  cursor: pointer;
}


.hamburger input {
  display: none;
}

.hamburger svg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Hamburger Lines === */
.line {
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 0.6s cubic-bezier(0.4,0,0.2,1),
              stroke-dashoffset 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

/* === Transform Hamburger to Cross on Check === */
#hamburger-toggle:checked + .hamburger svg {
  transform: rotate(-45deg);
}

#hamburger-toggle:checked + .hamburger svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* =============================
   FULLSCREEN HAMBURGER MENU
============================= */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1000; /* Below hamburger icon */
}

/* === Menu Items === */
.hamburger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.hamburger-menu ul li {
  margin: 20px 0;
}

.hamburger-menu ul li a {
  text-decoration: none;
  font-size: 2rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.hamburger-menu ul li a:hover {
  color: var(--accent);
}

/* === Show Menu When Checked === */
#hamburger-toggle:checked ~ .hamburger-menu {
  opacity: 1;
  pointer-events: auto;
}


/* === FAQ BUTTON === */
.faq-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: clamp(10%, 20%, 25%); /* adjusts with viewport */
  right: clamp(2%, 10%, 25%);
  cursor: pointer;
  z-index: 1200;
  background: radial-gradient(circle at center, var(--faq-inner, #000) 60%, var(--faq-outer, #333) 100%);
  color: var(--faq-color, #fff);
  box-shadow: 0 0 10px var(--faq-shadow, rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

/* Optional: extra adjustment for very small screens */
@media (max-width: 1300px) {
  .faq-button {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 20%;
  }
}


.faq-button svg {
  width: 1.5em;
  height: 1.5em;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.faq-button:hover svg {
  animation: jello-vertical 0.7s both;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 70px;
  opacity: 0;
  background-color: var(--tooltip-bg, #000);
  color: var(--tooltip-color, #fff);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.faq-button:hover .tooltip {
  opacity: 1;
  bottom: 90px;
}

/* Dark Theme */
.dark .faq-button {
  --faq-inner: #fff;
  --faq-outer: #ccc;
  --faq-color: #000;
  --faq-shadow: rgba(0,0,0,0.1);
  background: radial-gradient(circle at center, var(--faq-inner) 60%, var(--faq-outer) 100%);
  color: var(--faq-color);
  box-shadow: 0 0 10px var(--faq-shadow);
}

.dark .tooltip {
  --tooltip-bg: #fff;
  --tooltip-color: #000;
  background-color: var(--tooltip-bg);
  color: var(--tooltip-color);
}

/* Jello Animation */
@keyframes jello-vertical {
  0% { transform: scale3d(1,1,1); }
  30% { transform: scale3d(0.75,1.25,1); }
  40% { transform: scale3d(1.25,0.75,1); }
  50% { transform: scale3d(0.85,1.15,1); }
  65% { transform: scale3d(1.05,0.95,1); }
  75% { transform: scale3d(0.95,1.05,1); }
  100% { transform: scale3d(1,1,1); }
}

