/* FishCast - Dark Tech Theme with Cyan/Purple Accents */
/* Design: Tech/Gaming with Primer CSS base */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-cyan: #39d5c9;
    --accent-purple: #7c5dfa;
    --accent-purple-hover: #9278ff;
    --accent-teal: #2dd4bf;
    --accent-orange: #f97316;
    --border-color: #30363d;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #0d1117 0%, #1a2332 50%, #0d1117 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-teal);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-logo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(57, 213, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 93, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 93, 250, 0.4);
}

.btn-primary:hover {
    background: var(--accent-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 93, 250, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Device Mockup */
.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    width: 280px;
    max-width: 100%;
}

.device-frame {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.device-screen {
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 9/19.5;
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 28px;
}

.feature-icon.cyan {
    background: rgba(57, 213, 201, 0.15);
    color: var(--accent-cyan);
}

.feature-icon.purple {
    background: rgba(124, 93, 250, 0.15);
    color: var(--accent-purple);
}

.feature-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

.feature-icon.teal {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 24px;
    background: var(--bg-primary);
    max-height: 500px;
    overflow: hidden;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 350px;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    flex: 0 0 auto;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.5s ease;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-device {
    width: 160px;
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border-radius: 24px;
    padding: 8px;
    box-shadow: var(--shadow-md);
}

.carousel-device img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 9/19.5;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 400px;
    max-height: 90vh;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta {
    padding: 80px 24px;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 93, 250, 0.15) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Page Header */
.page-header {
    padding: 120px 24px 60px;
    background: var(--gradient-hero);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 60px 24px;
    background: var(--bg-secondary);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.7;
}

.content-container ul,
.content-container ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-container li {
    margin-bottom: 8px;
    text-align: left;
}

.content-container a {
    color: var(--accent-cyan);
}

.content-container strong {
    color: var(--text-primary);
}

/* Contact Form */
.contact-section {
    padding: 60px 24px;
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(57, 213, 201, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit:hover {
    background: var(--accent-purple-hover);
    transform: translateY(-2px);
}

.form-message {
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    text-align: center;
}

.form-message.success {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
}

.form-message.error {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
    z-index: 9999;
    display: none;
}

.privacy-accept-container.visible {
    display: block;
}

.privacy-accept-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.privacy-accept-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.privacy-accept-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(124, 93, 250, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.privacy-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 93, 250, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 100px 24px 60px;
    }

    .device-mockup {
        width: 220px;
    }

    .features {
        padding: 60px 24px;
    }

    .screenshots {
        padding: 60px 24px;
        max-height: 400px;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-device {
        width: 120px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        padding: 24px;
    }

    .cta {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .device-mockup {
        width: 180px;
    }

    .carousel-device {
        width: 100px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 24px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Touch/swipe helpers */
.touch-enabled .carousel-track {
    cursor: grab;
}

.touch-enabled .carousel-track:active {
    cursor: grabbing;
}
