/* Custom styles for Lifeboat Web Services */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Root variables for consistency */
:root {
    --primary-blue: #28BEE6;
    --dark-blue: #12229D;
    --accent-red: #D42E2E;
    --light-blue: #e0f7fa;
    --off-white: #F4F6FC;
    --near-black: #191818;
    --success-green: #10B981;
    --light-green: #D1FAE5;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

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

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(40, 190, 230, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(40, 190, 230, 0.8);
        transform: scale(1.02);
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

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

@keyframes blob {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Modern mesh gradient background */
.mesh-gradient {
    background: linear-gradient(-45deg, var(--primary-blue), var(--dark-blue), var(--success-green), var(--primary-blue));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Hero section wave effect */
.wave-bg {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--off-white) 100%);
    position: relative;
    overflow: hidden;
}

.wave-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 120px;
}

/* Floating elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(2) { animation-delay: -2s; }
.floating-shape:nth-child(3) { animation-delay: -4s; }

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced button hover effects */
.btn-hover-lift {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-hover-lift:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(40, 190, 230, 0.4);
}

.btn-hover-lift::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover-lift:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced pricing card effects */
.pricing-card {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-elevated);
}

.pricing-popular {
    animation: pulse-glow 3s infinite;
    position: relative;
}

.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue), var(--primary-blue));
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced service cards */
.service-card {
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(40, 190, 230, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s;
}

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

/* Icon animations */
.icon-bounce {
    transition: transform 0.3s ease;
    display: inline-block;
}

.icon-bounce:hover {
    transform: scale(1.2) rotateY(180deg);
}

/* Typing animation */
.typing {
    overflow: hidden;
    border-right: 3px solid;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form styling enhancements */
.form-floating-label {
    position: relative;
}

.form-floating-label input:focus + label,
.form-floating-label input:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.8);
    color: var(--primary-blue);
}

.form-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.form-modern:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Navigation scroll effect */
.nav-scrolled {
    background: rgba(244, 246, 252, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

/* Enhanced mobile menu */
.mobile-menu {
    transition: all 0.3s ease-out;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--light-blue);
    transition: var(--transition-smooth);
    position: relative;
}

.mobile-menu a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    transform: translateX(10px);
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu a:hover::before {
    transform: scaleY(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: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--dark-blue));
    border-radius: 6px;
    border: 2px solid var(--off-white);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--dark-blue), var(--primary-blue));
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --off-white: #1a1a1a;
        --near-black: #ffffff;
        --light-blue: #2a2a2a;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .btn-hover-lift {
        transform: none;
    }
    
    .btn-hover-lift:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .typing {
        animation: none;
        border-right: none;
    }
    
    .mesh-gradient {
        animation: none;
        background: var(--primary-blue);
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066cc;
        --dark-blue: #000080;
        --near-black: #000000;
        --off-white: #ffffff;
    }
    
    .service-card,
    .pricing-card {
        border: 2px solid #000000;
    }
}

/* Additional utility classes */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}