/* Additional custom styles that extend Tailwind */

/* Custom gradients */
.gradient-primary {
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
}

/* Custom button styles */
.btn-primary {
    @apply bg-gradient-to-r from-blue-600 to-emerald-600 text-white font-bold py-3 px-6 rounded-full hover:from-blue-700 hover:to-emerald-700 transition-all duration-300;
}

.btn-secondary {
    @apply bg-gradient-to-r from-cyan-600 to-blue-600 text-white font-bold py-3 px-6 rounded-full hover:from-cyan-700 hover:to-blue-700 transition-all duration-300;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Section styling */
.section-padding {
    @apply py-20;
}

.section-title {
    @apply text-3xl md:text-4xl font-bold text-center mb-4 text-gray-900;
}

.section-subtitle {
    @apply text-xl text-center mb-12 text-gray-600 max-w-3xl mx-auto;
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}


/* Project card styling */
.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Input focus effect */
.input-focus:focus {
    @apply ring-2 ring-blue-500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .section-padding {
        @apply py-12;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-gradient-to-b from-blue-500 to-emerald-500 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gradient-to-b from-blue-600 to-emerald-600;
}

/* Counter animation */
.counter {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 6px;
}

/* Semantic structure improvements */
main {
    display: block;
}

/* Focus management */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #f59e0b; /* amber-500 */
    outline-offset: 2px;
}

/* Link enhancements */
a:not([class*="btn"]):not([class*="button"]):not(.nav-link):not(.footer-link) {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-thickness 0.2s ease;
}

a:hover:not([class*="btn"]):not([class*="button"]):not(.nav-link):not(.footer-link) {
    text-decoration-thickness: 4px;
}

/* Performance optimizations */
.img-lazy {
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

/* Optimized animations */
.animate-fade-in {
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

.animate-slide-up {
    transform: translateY(20px);
    animation: slide-up 0.6s ease-out forwards;
}

@keyframes slide-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Critical CSS for above-the-fold content */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}