/* Custom styles beyond Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: #4FD1C5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #319795;
}

/* Selection color */
::selection {
    background-color: #4FD1C5;
    color: #0A1628;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
}

/* Subtle line decorations */
.section-line {
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #4FD1C5;
}

/* Hover effects for cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu button animation */
#menu-btn.active svg path {
    transform-origin: center;
}

#menu-btn.active svg path:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active svg path:nth-child(2) {
    opacity: 0;
}

#menu-btn.active svg path:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
