html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111111;
}

.grid-background {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 4rem 4rem;
    background-position: center center;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.7);
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.gradient-text {
    background: linear-gradient(90deg, #a855f7, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-backdrop {
    transition: opacity 0.3s ease-in-out;
}
.modal-content {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #a855f7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tech-stack-container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.tech-stack-glass-bar {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(22, 22, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tech-item {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: rgb(156 163 175);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.tech-item:hover {
    color: rgb(255 255 255);
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.tech-separator {
    font-size: 1.5rem;
    line-height: 2rem;
    user-select: none;
    background: linear-gradient(90deg, #a855f7, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.project-card {
    background-color: #161616;
    border: 1px solid rgb(55 65 81);
    border-radius: 0.75rem;
    overflow: hidden;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.project-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.1);
    border-color: rgba(107, 33, 168, 0.5);
}

.tech-tag {
    background-color: rgb(31 41 55);
    color: rgb(209 213 219);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
    font-weight: 300;
    background-color: rgba(55, 65, 81, 0.5);
    border: 1px solid rgb(55 65 81);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.project-button:hover {
    background-color: rgb(55 65 81);
}

.about-image-container {
    position: relative;
    padding: 1rem;
}

.about-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 2px; 
    background: linear-gradient(45deg, #a855f7, #f97316); 
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
          mask-composite: exclude; 
}
.circle-img {
    transition: opacity 0.6s ease-in-out;
}


.frosted-card {
    background-color: rgba(22, 22, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tech-item {
    @apply text-lg font-semibold text-gray-400 transition-all duration-300;
}

.tech-item:hover {
    @apply text-white scale-105;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.tech-separator {
    @apply gradient-text text-2xl select-none;
}



.project-card {
    @apply bg-[#161616] border border-gray-800 rounded-xl overflow-hidden transition-all duration-300;
}
.project-card:hover {
    @apply transform -translate-y-2 shadow-2xl shadow-purple-900/20 border-purple-800/50;
}

.tech-tag {
    @apply bg-gray-800 text-gray-400 text-xs font-medium px-2.5 py-1 rounded-full;
}

.project-button {
    @apply font-semibold py-2 px-4 rounded-full transition-colors duration-300;
}

/* CAROUSEL/GALLERY STYLES */
.image-gallery {
    @apply relative overflow-hidden;
    height: 13rem; /* Fixed height for image area (208px = h-52) */
}

.gallery-image {
    @apply absolute top-0 left-0 w-full h-full object-cover transition-opacity duration-500;
}

.gallery-btn {
    @apply absolute top-1/2 -translate-y-1/2 p-2 rounded-full bg-black/50 text-white/80 hover:bg-black/80 transition-colors z-20;
}

.gallery-btn:disabled {
    @apply opacity-30 cursor-not-allowed;
}
.gallery-pagination {
    @apply absolute bottom-2 left-1/2 transform -translate-x-1/2 flex space-x-2 z-20;
}
.dot {
    @apply w-2 h-2 rounded-full bg-white/50 transition-colors duration-300;
}
.dot.active {
    @apply bg-orange-500;
}

.pixel-intro {
    font-family: "Press Start 2P", monospace;
    letter-spacing: 2px;
}

.blinker {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}
.fade-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Custom modal scrollbar */
#aiModal .overflow-y-auto::-webkit-scrollbar,
#scraperModal .overflow-y-auto::-webkit-scrollbar,
#aiAppModal .overflow-y-auto::-webkit-scrollbar {
  width: 10px;
}

#aiModal .overflow-y-auto::-webkit-scrollbar-track,
#scraperModal .overflow-y-auto::-webkit-scrollbar-track,
#aiAppModal .overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

#aiModal .overflow-y-auto::-webkit-scrollbar-thumb,
#scraperModal .overflow-y-auto::-webkit-scrollbar-thumb,
#aiAppModal .overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #f97316);
  border-radius: 10px;
}

#aiModal .overflow-y-auto::-webkit-scrollbar-thumb:hover,
#scraperModal .overflow-y-auto::-webkit-scrollbar-thumb:hover,
#aiAppModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c084fc, #fb923c);
}

img {
    max-width: 100%;
    height: auto;
}
* {
    max-width: 100%;
    box-sizing: border-box;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}
.pixel-typing {
  font-size: 12px;
}
@media (min-width: 768px) {
  .pixel-typing {
    font-size: 16px;
  }
}