/* Base styles */

html {
  color: #222;
  font-size: 16px;
  line-height: 1.4;
}

body {
  font-size: 1rem;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
}

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


:root {
  --accent-color: #A25BB0;
}

.rubiks-cube {
  width: 4rem;
  height: 2.5rem;
  cursor: pointer;
}

.header-div {
  font-size: 1.5rem;
  line-height: 2rem;
  font-family: serif;
  display: flex;
  align-items: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app {
  display: flex;
  flex-direction: column;
  padding-left: 4rem;
  padding-right: 4rem;
  margin-top: 2rem;
  background: #fbfbfb;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2rem;
}

.nav-link {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-family: serif;
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.nav-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: #000;
  opacity: 0;
}

.nav-link:hover .nav-underline {
  opacity: 1;
  animation: underlineSweep 2.4s ease-in-out infinite;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes underlineSweep {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  15%,
  48% {
    transform: scaleX(1);
    transform-origin: left;
  }
  49% {
    transform: scaleX(1);
    transform-origin: right;
  }
  64% {
    transform: scaleX(0);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 16rem;
  padding-bottom: 2rem;
  height: 60vh;
  justify-content: flex-start;
}

.hero-title,
.hero-title * {
  font-weight: 300;
}

.hero-title {
  font-size: 3.75rem;
  line-height: 1.25;
  font-family: serif;
  max-width: 72rem;
  margin: 0;
  padding-bottom: 8rem;
}

.headline-rotator {
  display: inline-grid;
  grid-template-rows: 1fr;
  align-items: baseline;
  overflow: hidden;
  white-space: nowrap;
  min-height: 1.5rem;
}

.headline {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  transition: opacity 500ms ease;
}

.headline.active {
  opacity: 1;
  animation: slideDown 500ms ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-0.35em);
  }
  to {
    transform: translateY(0);
  }
}

.arrow-svg {
  display: block;
  margin: 2rem auto 0;
}

.arrow__path {
  stroke: #111;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: var(--arrow-len, 1200);
  stroke-dashoffset: var(--arrow-len, 1200);

  animation:
    draw 2.2s ease-in-out infinite,
    bounce 2.2s ease-in-out infinite;
  transform-origin: 100px 300px;
}

.arrow__head {
  opacity: 0;
  transform-origin: 100px 300px;
  animation:
    showHead 2.2s ease-in-out infinite,
    bounce 2.2s ease-in-out infinite;
}

@keyframes draw {
  0%   { stroke-dashoffset: var(--arrow-len, 1200); }
  70%  { stroke-dashoffset: 0; }   /* finishes drawing */
  92%  { stroke-dashoffset: 0; }   /* hold */
  100% { stroke-dashoffset: var(--arrow-len, 1200); }/* snap reset for next loop */
}

@keyframes showHead {
  0%, 69% { opacity: 0; }
  70%, 92% { opacity: 1; }
  93%, 100% { opacity: 0; }
}

@keyframes bounce {
  0%, 70% { transform: translateY(0) scale(1); }
  78%     { transform: translateY(4px) scale(1.02); }
  88%     { transform: translateY(-2px) scale(0.995); }
  92%,100%{ transform: translateY(0) scale(1); }
}

.stripe-gradient {
  background: linear-gradient(90deg, #635bff, #ff4d4d, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
  gap: 1rem;
}

.arrow-bounce {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  object-position: center;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}


.section-title {
  font-family: serif;
  font-weight: 300;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.work-experience {
  margin-top: 3rem;
}

.experience-entry {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ccc;
}

.experience-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.experience-title {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.5;
}

.job-title {
  font-weight: bold;
}

.company {
  color: var(--accent-color);
  font-weight: bold;
}

.experience-dates {
  font-size: 1.5rem;
  line-height: 1.5;
  white-space: nowrap;
  margin-left: 2rem;
}

.experience-description {
  font-size: 1.375rem;
  line-height: 1.6;
  margin: 0;
  max-width: 80%;
}

/* Blog Section */
.blog-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: left;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card-wide {
  grid-column: span 2;
}

.blog-card-tall {
  grid-row: span 2;
}

.blog-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  min-height: 200px;
  position: relative;
  --border-angle: 0deg;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: conic-gradient(
    from 0deg at 50% 50%,
    var(--accent-color) 0deg var(--border-angle),
    transparent var(--border-angle) 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-title {
  font-family: serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  color: #222;
}

.blog-date {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  display: block;
}

.blog-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  flex-grow: 1;
}

.readmore-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #222;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  font-family: serif;
  font-size: 1rem;
  min-height: auto;
  box-shadow: none;
  align-self: center;
  justify-self: center;
  width: fit-content;
}

.readmore-text {
  position: relative;
  display: inline-block;
}

.readmore-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: #000;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.readmore-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--accent-color);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-card:hover::after {
  opacity: 1;
  animation: borderSweep 0.6s ease-out forwards;
}

@keyframes borderSweep {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}

.readmore-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.readmore-pill:hover .readmore-text::after {
  opacity: 1;
  animation: underlineSweep 2.4s ease-in-out infinite;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

.readmore-pill:hover .readmore-arrow {
  transform: translateX(4px);
}

.readmore-pill:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.readmore-pill:focus-visible .readmore-text::after {
  opacity: 1;
  animation: underlineSweep 2.4s ease-in-out infinite;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

.readmore-pill:focus-visible .readmore-arrow {
  transform: translateX(4px);
}

.work-in-progress {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #666;
  font-size: 1.125rem;
}

.work-in-progress p {
  margin: 0;
}

@media only screen and (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.25rem;
  }

  .blog-card-wide,
  .blog-card-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .blog-card {
    min-height: 180px;
  }

  .blog-title {
    font-size: 1.25rem;
  }

  .blog-description {
    font-size: 1rem;
  }

  .readmore-pill {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }
}

.about-me-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: left;
}

.about-me-description {
  font-size: 1.375rem;
  line-height: 1.6;
  margin: 3rem 0 0 0;
  max-width: 100%;
}

.about-me-description .nav-link {
  color: var(--accent-color);
}

footer {
  margin-top: 4rem;
  padding: 2rem 4rem;
  width: 100%;
}

.footer-separator {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 0 0 1rem 0;
  padding: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.footer-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
}

.footer-text-centered {
  align-self: center;
}

.footer-rubiks-cube {
  height: 2em;
  width: auto;
  vertical-align: center;
  display: inline-block;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  color: #222;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #222;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
  /* App Container */
  .app {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: 1rem;
  }

  /* Header */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-div {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .rubiks-cube {
    width: 3rem;
    height: 2rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .nav-link {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  /* Hero Section */
  .hero {
    padding-top: 4rem;
    padding-bottom: 1rem;
    height: auto;
    min-height: 50vh;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
    padding-bottom: 2rem;
  }

  .arrow-svg {
    width: 80px;
    height: 160px;
    margin-top: 1rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.75rem;
  }

  /* Main Content */
  .main-content {
    padding: 1rem;
  }

  .work-experience {
    margin-top: 2rem;
  }

  /* Experience Entries */
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .experience-title {
    font-size: 1.25rem;
  }

  .experience-dates {
    font-size: 1rem;
    margin-left: 0;
  }

  .experience-description {
    font-size: 1.125rem;
    max-width: 100%;
  }

  .experience-entry {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Blog Section */
  .blog-section {
    padding: 2rem 1rem 1rem;
  }

  /* About Me Section */
  .about-me-section {
    padding: 2rem 1rem 1rem;
  }

  .about-me-description {
    font-size: 1.125rem;
    margin-top: 2rem;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1.5rem;
    margin-top: 3rem;
  }

  /* Scroll to Top Button */
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }

  /* Toast */
  .toast {
    bottom: 1.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  html {
    color: #e0e0e0;
    background: #202124;
  }

  body {
    background: #202124;
  }

  .app {
    background: #202124;
  }

  ::-moz-selection {
    background: #7a5ba2;
    text-shadow: none;
  }

  ::selection {
    background: #7a5ba2;
    text-shadow: none;
  }

  hr {
    border-top: 1px solid #444;
  }

  .nav-underline {
    background: #e0e0e0;
  }

  .arrow__path {
    stroke: #e0e0e0;
  }

  .arrow__head {
    fill: #e0e0e0;
  }

  .experience-entry {
    border-bottom: 1px solid #444;
  }

  .blog-card {
    background: #2d2d30;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .blog-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .blog-title {
    color: #e0e0e0;
  }

  .blog-date {
    color: #999;
  }

  .blog-description {
    color: #b8b8b8;
  }

  .readmore-pill {
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .readmore-text::after {
    background: #e0e0e0;
  }

  .work-in-progress {
    color: #999;
  }

  .footer-separator {
    border-top: 1px solid #444;
  }

  .footer-text {
    color: #e0e0e0;
  }

  .toast {
    background: rgba(45, 45, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
  }

  .scroll-to-top {
    background: rgba(45, 45, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
  }

  .scroll-to-top:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}


