/* ============================================
   COOKED FISH TESTING - Main Stylesheet
   ============================================ */

:root {
    --cf-primary: #1a1a2e;
    --cf-secondary: #16213e;
    --cf-accent: #FF6B35;
    --cf-accent-light: #ff8c5a;
    --cf-teal: #0f9b8e;
    --cf-teal-light: #14b8a6;
    --cf-ocean-dark: #0c1445;
    --cf-ocean-mid: #162447;
    --cf-ocean-light: #1b3a5c;
    --cf-text-light: #e0e0e0;
    --cf-gold: #f0a500;
}

* {
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #333;
}

/* ---- Navbar ---- */
.cf-navbar {
    background: linear-gradient(135deg, var(--cf-primary) 0%, var(--cf-secondary) 100%);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cf-navbar.scrolled {
    padding: 0.4rem 0;
    background: rgba(26, 26, 46, 0.97);
}

.cf-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.cf-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cf-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.cf-navbar .nav-link:hover::after {
    width: 70%;
}

.cf-navbar .nav-link:hover {
    color: #fff !important;
}

.cf-cta-btn {
    border-color: var(--cf-accent) !important;
    color: var(--cf-accent) !important;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.4rem 1.5rem !important;
    transition: all 0.3s ease;
}

.cf-cta-btn:hover {
    background: var(--cf-accent) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ---- Steam Animation ---- */
.steam {
    animation: steamRise 2s ease-in-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 0.5s; }
.steam-3 { animation-delay: 1s; }

@keyframes steamRise {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-3px); }
}

/* ---- Hero Section ---- */
.cf-hero {
    background: linear-gradient(135deg, var(--cf-ocean-dark) 0%, var(--cf-secondary) 40%, var(--cf-ocean-mid) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.cf-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(15, 155, 142, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(15, 155, 142, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.cf-hero .container {
    position: relative;
    z-index: 2;
}

.cf-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.cf-hero-title .accent {
    color: var(--cf-accent);
}

.cf-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    max-width: 550px;
}

.cf-hero-cta {
    background: var(--cf-accent);
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cf-hero-cta:hover {
    background: var(--cf-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: #fff;
}

.cf-hero-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cf-hero-cta-outline:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Hero Fish SVG ---- */
.hero-fish-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ---- Bubbles ---- */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-1 { width: 15px; height: 15px; left: 10%; bottom: 20%; animation-delay: 0s; animation-duration: 3.5s; }
.bubble-2 { width: 10px; height: 10px; left: 25%; bottom: 30%; animation-delay: 1s; animation-duration: 4s; }
.bubble-3 { width: 20px; height: 20px; left: 60%; bottom: 10%; animation-delay: 0.5s; animation-duration: 5s; }
.bubble-4 { width: 8px; height: 8px; left: 75%; bottom: 40%; animation-delay: 2s; animation-duration: 3s; }
.bubble-5 { width: 12px; height: 12px; left: 40%; bottom: 50%; animation-delay: 1.5s; animation-duration: 4.5s; }
.bubble-6 { width: 18px; height: 18px; right: 15%; bottom: 25%; animation-delay: 0.8s; animation-duration: 3.8s; }

@keyframes bubbleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.9; }
    100% { transform: translateY(-60px) scale(0.8); opacity: 0; }
}

/* ---- Section Styles ---- */
.cf-section {
    padding: 5rem 0;
}

.cf-section-dark {
    background: linear-gradient(135deg, var(--cf-primary) 0%, var(--cf-secondary) 100%);
    color: #fff;
}

.cf-section-light {
    background: #f8f9fa;
}

.cf-section-ocean {
    background: linear-gradient(180deg, var(--cf-ocean-dark) 0%, var(--cf-ocean-mid) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cf-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cf-section-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cf-accent-line {
    width: 60px;
    height: 4px;
    background: var(--cf-accent);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* ---- Service Cards ---- */
.cf-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cf-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cf-accent), var(--cf-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cf-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cf-service-card:hover::before {
    transform: scaleX(1);
}

.cf-service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.cf-service-icon.manual {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.cf-service-icon.automated {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.cf-service-icon.playwright {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    color: #c62828;
}

.cf-service-icon.api {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.cf-service-icon.performance {
    background: linear-gradient(135deg, #f3e5f5, #ce93d8);
    color: #6a1b9a;
}

.cf-service-icon.consulting {
    background: linear-gradient(135deg, #e0f7fa, #80deea);
    color: #00838f;
}

/* ---- Feature Cards (dark bg) ---- */
.cf-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.cf-feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--cf-accent);
}

.cf-feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cf-accent);
    opacity: 0.3;
    line-height: 1;
}

/* ---- Stats ---- */
.cf-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.cf-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cf-accent);
}

.cf-stat-label {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ---- Testimonials ---- */
.cf-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.cf-testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.cf-testimonial-author {
    font-weight: 600;
    color: var(--cf-accent);
}

/* ---- Tech Logos ---- */
.cf-tech-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.cf-tech-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--cf-accent);
    color: #fff;
    transform: translateY(-3px);
}

.cf-tech-badge i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--cf-accent);
}

/* ---- CTA Banner ---- */
.cf-cta-banner {
    background: linear-gradient(135deg, var(--cf-accent) 0%, #e85d26 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cf-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cf-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* ---- Footer ---- */
.cf-footer {
    background: linear-gradient(135deg, var(--cf-primary) 0%, #0f0f23 100%);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-fish {
    position: absolute;
    bottom: 20px;
    animation: swimAcross 20s linear infinite;
}

@keyframes swimAcross {
    0% { left: -80px; }
    100% { left: 100%; }
}

/* ---- Swimming fish decorations ---- */
.swimming-fish-bg {
    position: absolute;
    opacity: 0.04;
    z-index: 0;
}

.fish-swim-1 {
    animation: fishSwim1 25s linear infinite;
    top: 30%;
}

.fish-swim-2 {
    animation: fishSwim2 35s linear infinite;
    top: 60%;
}

.fish-swim-3 {
    animation: fishSwim3 20s linear infinite;
    top: 80%;
}

@keyframes fishSwim1 {
    0% { left: -100px; transform: scaleX(1); }
    49% { transform: scaleX(1); }
    50% { left: calc(100% + 100px); transform: scaleX(-1); }
    99% { transform: scaleX(-1); }
    100% { left: -100px; transform: scaleX(1); }
}

@keyframes fishSwim2 {
    0% { right: -150px; }
    100% { right: calc(100% + 150px); }
}

@keyframes fishSwim3 {
    0% { left: -80px; }
    100% { left: calc(100% + 80px); }
}

/* ---- About Page ---- */
.cf-timeline {
    position: relative;
    padding-left: 40px;
}

.cf-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cf-accent);
}

.cf-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.cf-timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cf-accent);
    border: 3px solid #fff;
}

.cf-team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.cf-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cf-team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: #fff;
}

/* ---- Contact Page ---- */
.cf-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.cf-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--cf-accent);
}

.cf-contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cf-accent), var(--cf-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.5rem;
}

.cf-form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.cf-form-control:focus {
    border-color: var(--cf-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ---- Playwright Section ---- */
.cf-playwright-highlight {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cf-code-block {
    background: #0d1117;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #c9d1d9;
    overflow-x: auto;
    border: 1px solid #30363d;
}

.cf-code-block .keyword { color: #ff7b72; }
.cf-code-block .string { color: #a5d6ff; }
.cf-code-block .function { color: #d2a8ff; }
.cf-code-block .comment { color: #8b949e; }
.cf-code-block .variable { color: #ffa657; }

/* ---- Wave Dividers ---- */
.wave-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cf-hero-title {
        font-size: 2.2rem;
    }

    .cf-section {
        padding: 3rem 0;
    }

    .cf-section-title {
        font-size: 2rem;
    }

    .cf-hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-fish-container {
        max-width: 300px;
        margin-top: 2rem;
    }

    .cf-cta-banner {
        padding: 2rem;
    }
}

/* ---- Page Header ---- */
.cf-page-header {
    background: linear-gradient(135deg, var(--cf-ocean-dark) 0%, var(--cf-secondary) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cf-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom right, transparent 49%, #fff 50%);
}

.cf-page-header.dark-next::after {
    background: linear-gradient(to bottom right, transparent 49%, #f8f9fa 50%);
}

/* ---- Misc ---- */
.cf-badge {
    background: rgba(255, 107, 53, 0.1);
    color: var(--cf-accent);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

.cf-check-list {
    list-style: none;
    padding: 0;
}

.cf-check-list li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.cf-check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--cf-teal);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--cf-accent);
}
