@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --green: #0F5C3F;
  --blue: #2C5282;
  --orange: #DD6B20;
  --gray: #EDF2F7;
  --black: #1A202C;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--gray);
  color: var(--black);
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Taste-Skill Implementations */
/* Liquid Glass Refraction */
.glass-panel {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.05);
}

.dark .glass-panel {
    background: rgba(26, 32, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 20px 40px -15px rgba(0,0,0,0.05);
    border-radius: 2.5rem;
}

/* Animations */
.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Split Reveal */
.split-reveal {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-reveal.is-visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-press:active {
    transform: translateY(2px) scale(0.98);
}

/* Bento grid specs */
.bento-card {
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Continuous Pulse for Status */
@keyframes breathing {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.animate-breathing {
    animation: breathing 3s infinite ease-in-out;
}

/* Parallax zoom bg */
.zoom-parallax-bg {
    transition: transform 0.5s ease-out;
}

/* Liquid sweep mask */
.liquid-swipe {
    position: relative;
    overflow: hidden;
}

.liquid-swipe::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s;
}

.liquid-swipe:hover::after {
    left: 150%;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: currentColor;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

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

/* Carousel Animation */
@keyframes infinite-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-carousel {
  display: flex;
  width: max-content;
  animation: infinite-scroll 25s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* Toast System */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: #1A202C;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 4px solid var(--green);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--green) transparent transparent transparent;
}
.lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; }
@keyframes lds-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal System */
.modal-overlay {
    background: rgba(26, 32, 44, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}
