/* Custom Styles for All In One SEO Services */
/* Enhanced with Blue & Yellow Color Scheme and Professional Animations */

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

/* ==================== COLOR SCHEME ==================== */
:root {
    --primary-blue: #1e40af;
    --light-blue: #2563eb;
    --accent-blue: #3b82f6;
    --sky-blue: #60a5fa;
    --bright-yellow: #fbbf24;
    --gold-yellow: #f59e0b;
    --amber: #d97706;
    --white: #ffffff;
    --dark-gray: #1f2937;
    --light-gray: #f8fafc;
}

/* ==================== CUSTOM ANIMATIONS ==================== */
/* Enhanced and New Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blueYellowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7), inset 0 0 20px rgba(251, 191, 36, 0.1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0), inset 0 0 30px rgba(251, 191, 36, 0.2);
    }
}

@keyframes shimmerBlueYellow {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotateGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Service card hover effects with blue-yellow theme */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f0f9ff 0%, #fffbeb 100%);
    border: 2px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 100%);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2), 0 0 20px rgba(251, 191, 36, 0.1);
    animation: blueYellowPulse 2s ease-out;
}

/* Hero section gradient animation with blue-yellow */
.hero-gradient {
    background: linear-gradient(-45deg, #1e40af, #2563eb, #fbbf24, #f59e0b);
    background-size: 400% 400%;
    animation: rotateGradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navigation effects with blue-yellow */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #fbbf24);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.nav-link:hover::after {
    width: 100%;
}

/* Button effects with blue-yellow theme */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4), 0 0 20px rgba(251, 191, 36, 0.15);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Contact form styles */
.contact-input {
    transition: all 0.3s ease;
}

.contact-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

/* Statistics counter animation */
.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Back to top button */
#back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top.show {
    transform: translateY(0);
    opacity: 1;
}

/* Loading animation for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

.mobile-menu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

.mobile-menu.show {
    transform: scaleY(1);
    opacity: 1;
}

/* Section fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icon pulse animation */
.icon-pulse {
    animation: pulse 2s infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Social media hover effects */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Service icon animations */
.service-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(15deg);
    color: #1e40af;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
    animation: glow 0.6s ease-out;
}

/* Service logo styling */
.service-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 12px;
    font-size: 32px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.service-card:hover .service-logo {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(251, 191, 36, 0.2));
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* Testimonial card styles (for future use) */
.testimonial-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form validation styles */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* ==================== ENHANCED PROFESSIONAL ANIMATIONS ==================== */

/* Heading glow and gradient effect */
h2 {
    position: relative;
    color: white;
    transition: all 0.3s ease;
}

/* Professional fade-in for sections */
section {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }

/* Card stagger animation */
.service-card {
    opacity: 0;
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }

/* CTA Button animations */
.bg-yellow-400 {
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.bg-yellow-400:hover {
    animation: none;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
}

/* Contact form animations */
.contact-input {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.contact-input:focus {
    transform: translateY(-3px);
    border-color: #2563eb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2), inset 0 0 10px rgba(251, 191, 36, 0.05);
}

/* Floating animation for hero elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulsing effect for important elements */
.pulse-effect {
    animation: blueYellowPulse 2s ease-in-out infinite;
}

/* Enhanced gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1e40af, #2563eb, #fbbf24, #f59e0b);
    background-size: 300% 300%;
    animation: rotateGradient 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Box shadow animations */
.shadow-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3), 0 0 40px rgba(251, 191, 36, 0.1);
    animation: blueYellowPulse 3s ease-in-out infinite;
}

/* Enhanced social media hover animations */
.social-link {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(37, 99, 235, 0.5));
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.15);
    color: #fbbf24;
}

.social-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Professional back-to-top animation */
#back-to-top {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

#back-to-top:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

#back-to-top.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Loading animation for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid transparent;
    border-top-color: #fbbf24;
    border-right-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile menu animation enhancement */
.mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.mobile-menu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

.mobile-menu.show {
    transform: scaleY(1);
    opacity: 1;
}

/* ==================== MOBILE RESPONSIVE ANIMATIONS ==================== */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    h2 {
        background: none;
        -webkit-text-fill-color: unset;
        color: #1f2937;
    }
    
    section {
        animation-duration: 0.6s;
    }
    
    .service-card {
        animation-duration: 0.5s;
    }
}