/* Glassy floating footer box */
.footer-box {
  margin: 0 auto;
  margin-top: 7rem;
  max-width: 480px;
  border-radius: 1.5em;
  box-shadow: 0 4px 32px 0 #00ffe755, 0 0 0 2.5px #00ffe7cc, 0 1.5px 0 #ffe06644;
  padding: 1.5em 2em 1.2em 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  backdrop-filter: blur(18px) saturate(2.1);
  background: linear-gradient(120deg, rgba(24,24,27,0.92) 60%, rgba(0,255,231,0.13) 100%);
  position: relative;
  z-index: 2;
  animation: floatFooter 3.5s ease-in-out infinite alternate, shimmerFooter 5s linear infinite;
  border-radius: 1.5em;
  overflow: hidden;

@keyframes shimmerFooter {
  0% { box-shadow: 0 4px 32px 0 #00ffe755, 0 0 0 2.5px #00ffe7cc, 0 1.5px 0 #ffe06644; }
  50% { box-shadow: 0 8px 48px 0 #00ffe7cc, 0 0 0 3.5px #ffe066cc, 0 2.5px 0 #ffe06688; }
  100% { box-shadow: 0 4px 32px 0 #00ffe755, 0 0 0 2.5px #00ffe7cc, 0 1.5px 0 #ffe06644; }
}

.footer-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 1.5em;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 60%, #00ffe7 100%);
  opacity: 0.13;
  z-index: 1;
  filter: blur(2px);
  animation: footerGlow 3.5s ease-in-out infinite alternate;
}
@keyframes footerGlow {
  0% { opacity: 0.13; }
  100% { opacity: 0.22; }
}

.footer-box > * {
  position: relative;
  z-index: 2;
}
}
.floating-duck {
  position: absolute;
  left: 8vw;
  top: 40px;
  z-index: 1;
  animation: floatDuck 4.5s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: 0.85;
}
@keyframes floatDuck {
  0% { transform: translateY(0) scale(1) rotate(-6deg); }
  100% { transform: translateY(-24px) scale(1.08) rotate(8deg); }
}

.confetti {
  position: fixed;
  top: -16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.85;
  z-index: 9999;
  animation: confettiDrop 2.8s cubic-bezier(.7,0,.3,1) forwards;
}
@keyframes confettiDrop {
  0% { top: -16px; opacity: 1; }
  80% { opacity: 1; }
  100% { top: 92vh; opacity: 0; }
}

/* Glassy floating footer box, no solid border or background */
@keyframes floatFooter {
  0% { transform: translateY(0) scale(1); box-shadow: 0 8px 32px #00ffe733, 0 1.5px 0 #ffe066; }
  100% { transform: translateY(-8px) scale(1.03); box-shadow: 0 16px 48px #00ffe7aa, 0 2.5px 0 #ffe066; }
}
.footer-fun {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: #b6ffe7;
  font-size: 1.1rem;
  font-family: var(--fun-font);
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px #00ffe7cc;
  user-select: none;
  margin-top: 0.2em;
}
.footer-quirk {
  font-size: 1.2em;
  color: #ffe066;
  font-weight: bold;
  letter-spacing: 1px;
  animation: quack 1.5s infinite alternate cubic-bezier(.7,0,.3,1);
}
.footer-bubble {
  background: #ffe066;
  color: #18181b;
  font-weight: bold;
  border-radius: 1em 1em 1.5em 1em;
  padding: 0.2em 1em 0.2em 1em;
  margin-left: 0.7em;
  font-size: 1.1em;
  box-shadow: 0 2px 8px #ffe06655;
  border: 2px solid #ffe066;
  position: relative;
  top: -0.1em;
  animation: bubblePop 2.2s infinite alternate cubic-bezier(.7,0,.3,1);
}
@keyframes bubblePop {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.13) rotate(3deg); }
}
@keyframes quack {
  0% { transform: rotate(-6deg) scale(1); }
  100% { transform: rotate(6deg) scale(1.12); }
}


.custom-bg-ribbon {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}
/* Duck rides the ribbon path smoothly */
.duck-rider {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}
@keyframes duckRide {
  0%   { transform: translate(60px, 8px) rotate(-8deg) scale(1.05); }
  10%  { transform: translate(180px, -6px) rotate(-4deg) scale(1.08); }
  20%  { transform: translate(320px, 10px) rotate(0deg) scale(1.1); }
  30%  { transform: translate(480px, 0px) rotate(4deg) scale(1.08); }
  40%  { transform: translate(640px, 12px) rotate(8deg) scale(1.1); }
  50%  { transform: translate(800px, 0px) rotate(6deg) scale(1.08); }
  60%  { transform: translate(960px, 10px) rotate(2deg) scale(1.1); }
  70%  { transform: translate(1120px, -4px) rotate(-2deg) scale(1.08); }
  80%  { transform: translate(1280px, 8px) rotate(-6deg) scale(1.05); }
  100% { transform: translate(60px, 8px) rotate(-8deg) scale(1.05); }
}
.ribbon-svg {
  width: 100vw;
  height: 70px;
  display: block;
  pointer-events: none;
  animation: ribbonWobble 7s ease-in-out infinite alternate;
}
.ribbon-duck {
  /* animation: duckFloat 3.5s ease-in-out infinite alternate; */
}
@keyframes ribbonWobble {
  0% { filter: hue-rotate(0deg) brightness(1.1); }
  100% { filter: hue-rotate(30deg) brightness(1.2); }
}
@keyframes duckFloat {
  /* 0% { transform: translateY(0) scale(1) rotate(-6deg); }
  100% { transform: translateY(-10px) scale(1.08) rotate(8deg); } */
}
.duck-rider {
  width: 48px;
  height: 48px;
  position: absolute;
  left: 0;
  top: 0;
  animation: duckRide 5.5s cubic-bezier(.7,0,.3,1) infinite;
  will-change: transform;
}
@keyframes duckRide {
  0%   { transform: translate(60px, 8px) rotate(-8deg) scale(1.05); }
  10%  { transform: translate(180px, -6px) rotate(-4deg) scale(1.08); }
  20%  { transform: translate(320px, 10px) rotate(0deg) scale(1.1); }
  30%  { transform: translate(480px, 0px) rotate(4deg) scale(1.08); }
  40%  { transform: translate(640px, 12px) rotate(8deg) scale(1.1); }
  50%  { transform: translate(800px, 0px) rotate(6deg) scale(1.08); }
  60%  { transform: translate(960px, 10px) rotate(2deg) scale(1.1); }
  70%  { transform: translate(1120px, -4px) rotate(-2deg) scale(1.08); }
  80%  { transform: translate(1280px, 8px) rotate(-6deg) scale(1.05); }
  100% { transform: translate(60px, 8px) rotate(-8deg) scale(1.05); }
}

/* align duck and text baseline */
.site-title {
    position: relative;
    z-index: 1;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 3.5rem 0 2.5rem 0;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
    text-shadow: 0 0 32px #00ffe7cc, 0 2px 8px #000a;
    animation: glow 2.5s ease-in-out infinite alternate;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.5em;
    text-align: center;
    flex-wrap: wrap;
}
.duck-svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3em;
    margin-bottom: -0.2em;
    filter: drop-shadow(0 2px 8px #ffe06688);
    transition: transform 0.2s;
}
.duck-svg:hover svg {
    transform: scale(1.08) rotate(-6deg);
    filter: drop-shadow(0 4px 16px #ffe066cc);
}
.wavy-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 0.2em;
    width: max-content;
}
.wavy-svg {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}

.footer-fun {
    margin-top: 1.2rem;
    color: #b6ffe7;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px #00ffe7cc;
    user-select: none;
}

@media (max-width: 700px) {
    .site-title {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }
    .custom-bg svg {
        height: 80px;
    }
}
.repo-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 0 2rem 0;
    width: 100%;
    max-width: 1100px;
}

#repo-search {
    flex: 1 1 300px;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    background: #232336;
    color: var(--primary-color);
    outline: none;
    box-shadow: 0 2px 12px #00ffe71a;
    transition: box-shadow 0.2s;
}
#repo-search:focus {
    box-shadow: 0 4px 24px #00ffe733;
}

.repo-stats-bar {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px #00ffe7cc;
    margin-left: auto;
    white-space: nowrap;
}

.lang-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}
.lang-badge {
    display: inline-block;
    padding: 0.2em 0.7em;
    border-radius: 1em;
    font-size: 0.95em;
    font-weight: 600;
    color: #18181b;
    background: linear-gradient(90deg, #00ffe7 60%, #b6ffe7 100%);
    box-shadow: 0 1px 4px #00ffe733;
    text-shadow: none;
    border: none;
}
html {
  box-sizing: border-box;
}
:root {
    --primary-color: #00ffe7;
    --background-color: #18181b;
    --text-color: #f1f5f9;
    --card-background: #232336;
    --hover-color: #00ffe7;
    --border-radius: 18px;
    --shadow: 0 4px 32px 0 rgba(0,0,0,0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #18181b 0%, #232336 50%, #00ffe7 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease-in-out infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}






.site-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 3rem 0 2.5rem 0;
    text-align: center;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
    text-shadow: 0 0 32px #00ffe7cc, 0 2px 8px #000a;
    animation: glow 2.5s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 8px #00ffe7cc, 0 2px 8px #000a; }
    100% { text-shadow: 0 0 32px #00ffe7, 0 2px 16px #00ffe7cc; }
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
}

.repo-card {
    background: linear-gradient(135deg, #232336 80%, #00ffe7 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.2rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s, border 0.18s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.repo-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, #00ffe7 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}
.repo-card:hover {
    transform: translateY(-8px) scale(1.04) rotate(-1deg);
    border-color: var(--primary-color);
    box-shadow: 0 8px 40px 0 #00ffe7aa;
}
.repo-card:hover::before {
    opacity: 0.12;
}
.repo-card > * {
    position: relative;
    z-index: 1;
}
.repo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}
.repo-card p {
    color: #b6ffe7;
    margin-bottom: 1.2rem;
    font-size: 1.08rem;
    min-height: 2.2em;
}
.repo-card .repo-stats {
    display: flex;
    gap: 1.2rem;
    font-size: 1rem;
    color: #00ffe7cc;
    margin-top: auto;
}
.repo-card .repo-stats i {
    margin-right: 0.3em;
}
.repo-card a {
    color: inherit;
    text-decoration: none;
}
.loading {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    grid-column: 1 / -1;
    margin: 2rem 0;
}

footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem 0;
    background: none;
}
.gh-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    font-family: inherit;
    transition: color 0.2s;
}
.gh-link:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ffe7cc;
}

@media (max-width: 700px) {
    .site-title {
        font-size: 2.1rem;
    }
    .repo-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .repo-card {
        padding: 1.2rem 1rem 1rem 1rem;
    }
}

/* Removed background-color from footer to prevent dark block behind glassy box */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
