/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom background for dark mode */
.dark body {
    background-color: #1a202c; /* Deeper dark background */
}

/* Tailwind's @apply for custom classes */
.skill-tag {
    @apply bg-indigo-100 dark:bg-indigo-700 text-indigo-800 dark:text-indigo-100 px-4 py-2 rounded-full font-semibold shadow-sm transition-all duration-300 hover:bg-indigo-200 dark:hover:bg-indigo-600 transform hover:scale-105;
}

/* Dynamic Background Elements */
.background-elements {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle, .square {
    position: absolute;
    background-color: rgba(129, 140, 248, 0.1); /* Indigo-300 with opacity */
    border-radius: 50%;
    opacity: 0;
    animation: float 20s infinite ease-in-out;
}

.dark .circle, .dark .square {
    background-color: rgba(99, 102, 241, 0.15); /* Indigo-500 with opacity for dark mode */
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 20s;
}

.square {
    border-radius: 10%; /* Make squares slightly rounded */
}

.square-1 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: 10s;
    animation-duration: 30s;
}

.square-2 {
    width: 120px;
    height: 120px;
    bottom: 5%;
    left: 25%;
    animation-delay: 15s;
    animation-duration: 22s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.4;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.2;
    }
}

/* Typewriter effect cursor */
#typewriter-text::after {
    content: '|';
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: currentColor; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* Keyframe for hero section fade-in */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.125rem;
    }
}


