html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  font-size: 14px;
  box-sizing: border-box;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* Utility class for Geist Mono */
.geist-mono {
  font-family:
    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    "Courier New", monospace;
}

:root {
  /* FORCE LIGHT MODE BY DEFAULT */
  color-scheme: light;

  --bg-color: light-dark(#ffffff, #0a0a0a);
  --text-color: light-dark(#000000, #ededed);
  --border-color: light-dark(#eaeaea, #2a2a2a);
  --title-secondary-color: light-dark(#636363, #a1a1aa);

  --btn-bg: light-dark(#ffffff, #121212);
  --btn-text: light-dark(#000000, #ffffff);
  --btn-hover-bg: light-dark(#f5f5f5, #1e1e1e);

  --primary-color: #1a9951;
  --complementary-color: #d92671;

  --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* PURE CSS THEME TOGGLE LOGIC */
:root:has(#theme-checkbox:checked) {
  color-scheme: dark;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

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

.header {
  border-bottom: 1px solid var(--border-color);
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10rem;
  transition:
    border-color 0.3s ease,
    padding 0.3s ease;
}

.header > ul {
  list-style-type: none;
  color: var(--title-secondary-color);
}

.main {
  display: flex;
  flex-direction: column;
  padding: 0 10rem;
  transition: padding 0.3s ease;
}

.footer {
  border-top: 1px solid var(--border-color);
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10rem;
  transition:
    border-color 0.3s ease,
    padding 0.3s ease;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-email {
  font-size: 12px;
  color: var(--title-secondary-color);
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.copyright {
  font-size: 12px;
  color: var(--title-secondary-color);
}

.title-secondary,
.text-muted-foreground {
  color: var(--title-secondary-color);
}

h1,
h1 > span {
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.description {
  color: var(--title-secondary-color);
  font-size: 18px;
  max-width: 48rem;
  line-height: 2rem;
  font-weight: 300;
  margin: 0.5rem 0;
}

#hero {
  min-height: calc(70vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  margin: 4.4rem 0 5rem;
}

.hero-header {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  background-color: var(--bg-color);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.hero-header > p {
  font-size: 12px;
  margin: 0;
}

.blinking-dot {
  position: relative;
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.blinking-dot::after {
  content: "";
  position: absolute;
  inset: -0.1rem;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  animation: var(--animate-ping);
  transform-origin: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.cta-button,
.cta-button-secondary {
  padding: 0.75rem 1.5rem;
  height: 3rem;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cta-button {
  background-color: var(--primary-color);
  color: #ffffff;
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.cta-button:hover:not(:disabled) {
  background-color: var(--complementary-color);
  transform: translateY(-1px);
}

.cta-button-secondary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--border-color);
}

.cta-button-secondary:hover {
  background-color: var(--btn-hover-bg);
  border-color: var(--complementary-color);
  color: var(--complementary-color);
}

.theme-toggle-label {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-size: 12px;
  user-select: none;
  transition: all 0.2s ease;
}

.theme-toggle-label:hover {
  border-color: var(--complementary-color);
  color: var(--complementary-color);
}

/* ================================
   CONTACT SECTION STYLES
   ================================ */

#contact {
  margin: 5rem 0 10rem;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--title-secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.contact-form .cta-button {
  width: 100%;
  margin-top: 0.75rem;
}

/* ================================
   SUCCESS MESSAGE STYLES
   ================================ */

.success-message {
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  background-color: var(--btn-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  animation: fadeIn 0.4s ease forwards;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(26, 153, 81, 0.1);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.success-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.success-message .description {
  font-size: 14px;
  margin: 0;
}

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

/* ================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ================================ */

/* Small Desktops & Tablets */
@media (max-width: 1024px) {
  .header,
  .main,
  .footer {
    padding: 0 4rem;
  }

  h1,
  h1 > span {
    font-size: 4rem;
  }
}

/* Large Phones & Small Tablets */
@media (max-width: 768px) {
  .header,
  .main,
  .footer {
    padding: 0 1.5rem;
  }

  h1,
  h1 > span {
    font-size: 3rem;
  }

  .description {
    font-size: 16px;
  }

  /* Stack footer items neatly on mobile */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    height: auto;
    padding: 2.5rem 1.5rem;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  h1,
  h1 > span {
    font-size: 2.5rem;
  }

  #hero {
    margin: 3rem 0;
  }

  /* Make buttons full width for easier tapping */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-button,
  .cta-button-secondary {
    width: 100%;
  }
}
