html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  position: relative;   /* so that ::before is positioned relative to the viewport */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;   
  background: linear-gradient(
    120deg,
    #fafbfc 0%,
    #e8e4f9 50%,
    #fafbfc 100%
  );

  background-size: 200% 200%;
  animation: gradient-slide 30s ease infinite;
}

/* Keyframes to drift the gradient diagonally */
@keyframes gradient-slide {
  0%   { background-position: 0%   0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0%   0%; }
}

/* Add one faint floating circle to add depth */
body::after {
  content: "";
  position: fixed;
  top: 25%;
  left: 75%;
  width: 400px;
  height: 400px;
  background-color: rgba(108, 99, 255, 0.02); /*  #6c63ff at 2% opacity */
  border-radius: 50%;
  z-index: -1;    /* still behind all content */
  filter: blur(3px);
  animation: float-slow 35s ease-in-out infinite;
}

/* Drift that circle up/down by ±40px over 35 seconds */
@keyframes float-slow {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

nav {
    background: #23272b;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 800px;
    margin: 2rem auto;
#    padding: 2rem;
#    background: #fff;
    border-radius: 12px;
#    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

footer {
    bottom: 0;
    text-align: center;
    padding: 1rem;
    background: #f2f2f2;
    color: #777;
    position: relative;
    width: 100%;
    margin-top: 10vh; /* push the footer to the bottom */
}

footer a  {
    font-family: 'Fira Mono', monospace;
    color: #63a4ff;
}

.title {
	display: flex;
	justify-content: center;
}

@keyframes zoomFade {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply the animation to .zoom-fade-in */
.zoom-fade-in {
  animation: zoomFade 1.2s ease-out forwards;
}


/* Define a simple “fade-in” keyframes for the second group */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hide them initially, then fade in after 1.5s */
.show-after-zoom-fade-in {
  opacity: 0; /* start hidden */

  animation-name: fadeIn;
  animation-duration: 0.5s;           /* how long the “fadeIn” takes */
  animation-timing-function: ease-out; 
  animation-fill-mode: forwards;       /* so it stays at opacity:1 afterward */
  animation-delay: 1.5s;              /* WAIT until zoomFade (1.5s) is finished */
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px 0 rgba(36, 37, 38, 0.11);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-card {
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.subtitle {
    font-size: 1.25rem;
    color: #6c63ff;
    font-weight: 600;
    margin-bottom: 0.25em;
}

.portrait {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.portrait img {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #23272b;
    margin-left: -0.8rem;
}


.services {
    list-style: none;
    padding: 0;
}
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: -2rem;
}

.services-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-title {
    display: block;
    font-weight: 600;
    font-size: 1.07rem;
    color: #23272b;
    margin-bottom: 0.2em;
}

.service-desc {
    color: #626468;
    font-size: 0.97rem;
}

.aboutme {
    color: #626468;
    font-size: 0.97rem;
}


.cta {
    margin-top: 2rem;
    text-align: right;
}

.cta-btn {
    background: linear-gradient(90deg, #6c63ff, #23272b);
    color: #fff;
    font-weight: 600;
    padding: 0.9rem 2.1rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1.08rem;
    box-shadow: 0 3px 12px 0 rgba(36, 37, 38, 0.09);
    transition: background 0.2s;
}

.cta-btn:hover {
    background: linear-gradient(90deg, #23272b, #6c63ff);
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
input, textarea {
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}
button {
    background: #23272b;
    color: #fff;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}
button:hover {
    background: #2d3136;
}
#flash-messages {
    list-style: none;
    padding: 0;
}
.success {
    color: #218838;
    font-weight: bold;
}
.error {
    color: #c82333;
    font-weight: bold;
}
@media (max-width: 600px) {
    .portrait {
        flex-direction: column;
        text-align: center;
    }
}

h1, .subtitle {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}

#terminal-popup.hidden {
  display: none;
}
#terminal-popup {
  display: none; /* default hidden */
  /* your flex layout, positioning, backdrop, etc. */
}

.terminal-cursor {
    color: #6c63ff;
    margin-right: 0.2em;
}

.typewriter {
    font-family: 'Fira Mono', monospace;
    color: #23272b;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #6c63ff;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    50% { border-color: transparent; }
}

.code-block {
    background: #23272b;
    color: #e9e9e9;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    font-family: 'Fira Mono', 'Consolas', monospace;
    box-shadow: 0 4px 24px rgba(36, 37, 38, 0.13);
    margin-bottom: 2rem;
    font-size: 1rem;
    overflow-x: auto;
}
.keyword { color: #6c63ff; }
.classname { color: #63a4ff; }
.method, .function { color: #aaff63; }

.sudo {
    font-family: 'Fira Mono', monospace;
    color: #63a4ff;
}


