@import url('https://api.fontshare.com/v2/css?f[]=satoshi@1&display=swap');

/* Base global styles */
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Satoshi', sans-serif;
  background-color: #ffffff;
  color: #0f172a;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: fadeIn 0.5s ease-in;
}

/* Fade-in animation for smooth load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make links transition smoothly */
a {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Consistent section padding */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

nav a.active {
  background-color: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* Footer layout fix */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#footer {
  margin-top: auto;
  background-color: #f9fafb;
  padding: 2rem 0;
}

/* Smooth header scroll-hide */
header {
  transition: opacity .4s ease, transform .4s ease;
  will-change: opacity, transform;
}
header.header-hidden {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

/* Light Gray Scrollbar — clean & subtle */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(180, 180, 180, 0.35);
  border-radius: 20px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 150, 150, 0.55);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 180, 180, 0.35) transparent;
}

.terminal-text {
  position: absolute;
  top: 100px;
  left: 50px;
  right: 50px;          /* Keeps text inside the SVG’s right edge */
  font-size: 15px;
  font-family: monospace;
  color: #334155;
  white-space: pre-wrap; /* Wraps lines naturally */
  overflow-wrap: break-word; /* Breaks long lines safely */
  line-height: 1.6;
  max-width: 500px;     /* Keeps text within visual bounds */
}

.terminal-text::after {
  content: '_';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .bottom-text, /* or whatever class that paragraph has */
  .text-right {
    position: static !important;
    display: block !important;
    text-align: center !important;
    margin-top: 2rem;
    padding: 0 1rem;
  }
}

