/**
 * Custom Styles for Harry Ramsay's Personal Site
 * Works alongside Tailwind CSS
 */

/* ============================================
   CSS Variables for Theming
   ============================================ */
:root {
  --color-teal: #15aeb5;
  --color-cream: #fef6e3;
  --color-charcoal: #393e47;

  /* Animation durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* ============================================
   Base Styles
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
.reduce-motion,
.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-25%) translateX(-50%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0) translateX(-50%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Staggered animation delays for lists */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* ============================================
   Typography Enhancements
   ============================================ */
.prose p {
  line-height: 1.75;
}

.prose a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration: none;
}

/* Line clamp for truncating text */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Navigation Enhancements
   ============================================ */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-teal);
  transition: width var(--duration-normal) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============================================
   Card Hover Effects
   ============================================ */
article {
  transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

article:hover {
  transform: translateY(-2px);
}

/* ============================================
   Button Styles
   ============================================ */
.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-charcoal);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all var(--duration-fast) ease;
}

.btn-primary:hover {
  background-color: #118b91;
  transform: scale(1.02);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 174, 181, 0.4);
}

/* ============================================
   Image Styles
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

/* Portrait hover effect */
.portrait-hover {
  transition: filter var(--duration-slow) ease, transform var(--duration-slow) ease;
}

.portrait-hover:hover {
  filter: grayscale(0);
  transform: scale(1.02);
}

/* ============================================
   Scrollbar Styling (Optional)
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-charcoal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a5058;
}

.dark ::-webkit-scrollbar-track {
  background: #1c1e22;
}

.dark ::-webkit-scrollbar-thumb {
  background: #656a73;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

  header,
  footer,
  .no-print {
    display: none !important;
  }

  main {
    padding-top: 0 !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* ============================================
   Description Styles
   ============================================ */
.description {
  position: absolute;
  top: 50%;
  /*transform: translate(-50%, -55%);*/
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  cursor: default;
}

.description h1 {
  color: #FEF8E8;
  font-weight: lighter;
  font-size: 75px;
}

.description p {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.5;
}

.project {
  font-size: 35px;
}

.sub-project {
  font-size: 20px;
}

/* Social Icons */
.fab {
  font-size: 20px;
  width: 30px;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
}

.fab:hover {
  opacity: 0.7;
}

.fa-facebook-f {
  color: #FEF8E8;
}

.fa-twitter {
  color: #FEF8E8;
}

/* .fa-snapchat-ghost {/
  color: #FEF8E8;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
} */
.fa-instagram {
  color: #FEF8E8;
}

.fa-linkedin {
  color: #FEF8E8;
}

.fa-adobe {
  color: #FEF8E8;
}

.fa-discord {
  color: #FEF8E8;
}

.fa-paypal {
  color: #FEF8E8;
}

.page-footer {
  background-color: #111314;
  color: #cccccc;
  padding: 10px 0 10px;
}

.footer-copyright {
  color: #666;
  padding: 10px 0;
}


/* About Section */
.IAmText {
  font-family: 'Open Sans', sans-serif;
}

.IAmText h1 {
  color: #282D30;
  font-weight: bold;
  font-size: 75px;
}

/* Horizontal Rule */

hr.short {
  width: 8%;
  border-top: 6px solid;
  color: #373B44;
}

hr.left {
  text-align: left;
}

hr.right {
  text-align: right;
}

/* education */
.fas {
  font-size: 80px;
  width: 100px;
  color: #15aeb5;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
}

/* contact */
.emaillink {
  font-family: 'Open Sans', sans-serif;
  font-weight: lighter;
  letter-spacing: 0.1em;
  text-align: center;
  color: #fff;
  text-decoration: none;
}

.emaillink:hover {
  color: #15aeb5;
  text-decoration: none;
}