/* 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;
}

/* ========================================
   NAVIGATION ACTIVE STATE
   ======================================== */

.site-nav-link.is-active {
    background: rgba(0, 102, 204, 0.08);
    color: #0066CC !important;
    font-weight: 700;
}

.site-nav-link-blog.is-active {
    background: rgba(255, 140, 0, 0.12);
    color: #FF8C00 !important;
}

/* ========================================
   BLOG POST CONTENT
   ======================================== */

.blog-post-page .docs-content {
    line-height: 1.8;
    overflow-wrap: break-word;
}

.blog-post-page .docs-content h1 {
    margin: 2rem 0 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #003D82 0%, #0066CC 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post-page .docs-content h2 {
    margin: 3.5rem 0 1.25rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E5E7EB;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #0066CC, #22D3EE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.blog-post-page .docs-content h2:first-of-type {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: 0;
}

.blog-post-page .docs-content h3 {
    margin: 2rem 0 0.75rem;
    color: #0066CC;
    font-size: 1.35rem;
    font-weight: 600;
}

.blog-post-page .docs-content h4 {
    margin: 1.5rem 0 0.6rem;
    color: #003D82;
    font-size: 1.15rem;
    font-weight: 600;
}

.blog-post-page .docs-content p,
.blog-post-page .docs-content ul,
.blog-post-page .docs-content ol {
    margin-bottom: 1rem;
    color: #4B5563;
}

.blog-post-page .docs-content ul,
.blog-post-page .docs-content ol {
    margin-left: 1.5rem;
}

.blog-post-page .docs-content li {
    margin-bottom: 0.5rem;
}

.blog-post-page .docs-content strong {
    color: #0066CC;
    font-weight: 600;
}

.blog-post-page .docs-content em {
    font-style: italic;
}

.blog-post-page .docs-content a {
    color: #0066CC;
    text-decoration: underline;
}

.blog-post-page .docs-content a:hover {
    color: #003D82;
}

.blog-post-page .docs-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1rem 1rem 1.25rem;
    border-left: 4px solid #22D3EE;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #f0f9ff;
    color: #4B5563;
}

.blog-post-page .docs-content code {
    padding: 0.2em 0.4em;
    border: 1px solid rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    background: #f6f8fa;
    color: #24292f;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85em;
}

.blog-post-page .docs-content pre {
    position: relative;
    margin-bottom: 1rem;
    padding: 0;
    overflow: visible;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #f6f8fa;
}

.blog-post-page .docs-content pre code {
    display: block;
    padding: 16px;
    overflow-x: auto;
    border: 0;
    background: transparent;
    color: #24292f;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.blog-post-page .docs-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-page .docs-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #E5E7EB;
}

.blog-post-page .docs-content table {
    display: block;
    width: 100%;
    margin-bottom: 2rem;
    overflow-x: auto;
    border-collapse: collapse;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-post-page .docs-content thead {
    background: linear-gradient(135deg, #003D82 0%, #22D3EE 100%);
    color: white;
}

.blog-post-page .docs-content th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.blog-post-page .docs-content td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-page .docs-content tbody tr:hover {
    background: #f8fafc;
}

.blog-post-page .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .blog-post-page .docs-content h1 {
        font-size: 2rem;
    }

    .blog-post-page .docs-content h2 {
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-post-page .animate-gradient-shift,
    .blog-post-page .hover-lift {
        animation: none;
        transition: none;
    }
}
