/* Custom Styles for Seawise Website */

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

/* Parallax Elements */
.parallax-element {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0066CC 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052A3;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hero section background patterns */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.05) 0%, transparent 50%);
}

/* ========================================
   OCEAN THEMED BACKGROUND STYLES
   ======================================== */

/* Ocean gradient background - Seawise Color Palette */
/* BACKUP - Original Ocean Gradient:
.ocean-gradient {
    background: linear-gradient(
        180deg,
        #003d82 0%,
        #004a9e 20%,
        #0066cc 40%,
        #1178d4 60%,
        #22d3ee 80%,
        #4dd9f0 90%,
        #7ae0f5 100%
    );
    background-size: 100% 200%;
    animation: ocean-flow 20s ease-in-out infinite;
}
*/

/* Ocean gradient background - Seawise Color Palette */
.ocean-gradient {
    background: linear-gradient(
        180deg,
        #003d82 0%,
        #004a9e 20%,
        #0066cc 40%,
        #1178d4 60%,
        #22d3ee 80%,
        #4dd9f0 90%,
        #7ae0f5 100%
    );
    background-size: 100% 200%;
    animation: ocean-flow 20s ease-in-out infinite;
}

@keyframes ocean-flow {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
}

/* Animated waves */
.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    border-radius: 50%;
}

.wave1 {
    bottom: -50%;
    left: -50%;
    animation: wave-animation 15s ease-in-out infinite;
}

.wave2 {
    bottom: -60%;
    left: -30%;
    animation: wave-animation 20s ease-in-out infinite reverse;
}

.wave3 {
    bottom: -70%;
    left: -60%;
    animation: wave-animation 25s ease-in-out infinite;
}

@keyframes wave-animation {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(10%) translateY(-5%) rotate(5deg);
    }
    50% {
        transform: translateX(0) translateY(-10%) rotate(0deg);
    }
    75% {
        transform: translateX(-10%) translateY(-5%) rotate(-5deg);
    }
}

/* Floating bubbles/particles */
.bubble {
    position: absolute;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    border-radius: 50%;
    opacity: 0.6;
}

.bubble1 {
    width: 80px;
    height: 80px;
    left: 10%;
    bottom: -80px;
    animation: bubble-rise 15s ease-in-out infinite;
}

.bubble2 {
    width: 50px;
    height: 50px;
    left: 25%;
    bottom: -50px;
    animation: bubble-rise 12s ease-in-out infinite 2s;
}

.bubble3 {
    width: 100px;
    height: 100px;
    left: 50%;
    bottom: -100px;
    animation: bubble-rise 18s ease-in-out infinite 4s;
}

.bubble4 {
    width: 60px;
    height: 60px;
    left: 70%;
    bottom: -60px;
    animation: bubble-rise 14s ease-in-out infinite 1s;
}

.bubble5 {
    width: 40px;
    height: 40px;
    left: 85%;
    bottom: -40px;
    animation: bubble-rise 10s ease-in-out infinite 3s;
}

.bubble6 {
    width: 70px;
    height: 70px;
    left: 90%;
    bottom: -70px;
    animation: bubble-rise 16s ease-in-out infinite 5s;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-120vh) translateX(100px);
        opacity: 0;
    }
}

/* Glowing effect for dashboard container */
@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.75;
    }
}

/* Additional ocean effects - Light rays */
.ocean-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: light-rays 30s linear infinite;
    pointer-events: none;
}

@keyframes light-rays {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Responsive adjustments for ocean section */
@media (max-width: 768px) {
    .bubble {
        transform: scale(0.7);
    }

    .wave {
        width: 300%;
    }
}

/* ========================================
   VIBRANT DASHBOARD PREVIEW SECTION
   ======================================== */

/* Animated gradient shift for vibrant background */
@keyframes gradient-shift {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0);
    }
    25% {
        opacity: 0.5;
        transform: translateX(10%) translateY(-5%);
    }
    50% {
        opacity: 0.4;
        transform: translateX(-5%) translateY(10%);
    }
    75% {
        opacity: 0.6;
        transform: translateX(-10%) translateY(-10%);
    }
}

.animate-gradient-shift {
    animation: gradient-shift 15s ease-in-out infinite;
}

/* Slow pulse animation for glowing effect */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* ========================================
   CHECKMARK ANIMATION
   ======================================== */

/* Animated checkmark - draws the check */
@keyframes draw-check {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.animate-check {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    animation: draw-check 0.6s ease-in-out forwards;
}
