/* Custom CSS styles to supplement Tailwind CSS */

/* Main brand colors */
:root {
    --primary-color: #24486d;
    --secondary-color: #00b3e2;
    --white-color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom brand color classes */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

/* Header scrolling effect */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: white;
}

/* Hero section animation */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Process steps animation */
.process-step {
    transition: transform 0.5s ease;
}

.process-step:hover {
    transform: scale(1.02);
}

/* Form input focus styles */
input:focus, textarea:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 179, 226, 0.2);
}

/* Button hover animation */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Testimonial card hover effect */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Social media icon hover effects */
.social-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) rotate(5deg);
}

/* Mobile menu animation */
#mobile-menu {
    transition: height 0.3s ease, opacity 0.3s ease;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.active {
    height: auto;
    opacity: 1;
}

/* Wave animation for hero section */
.wave {
    animation: wave 8s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.8);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* Image hover effects */
.img-hover {
    transition: transform 0.5s ease;
}

.img-hover:hover {
    transform: scale(1.05);
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #0091b5);
}

/* Contact form success message */
.form-success {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Process timeline dot pulse animation */
.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 179, 226, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-timeline {
        display: none;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
}

/* Accessibility focus styles */
button:focus, a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .cta-section, #contact-form, .social-icons {
        display: none;
    }
    
    body, html {
        background-color: white !important;
        color: black !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    section {
        page-break-inside: avoid;
    }
}