/* Landing Page Specific Styles */

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-sub);
    cursor: pointer;
}

.nav-item:hover {
    color: #fff;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-sub);
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
}

/* Mobile Menu */
.mobile-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

/* Background effects */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, rgba(10, 14, 23, 0) 70%);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path 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="%230a0e17" opacity="0.4"></path></svg>');
    background-size: cover;
    transform: rotate(180deg);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
    position: relative;
    z-index: 20;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Dashboard Area (Placeholder for Fish Value Calc) */
.dashboard-area {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 300px 1fr 250px;
    gap: 20px;
    background: var(--bg-panel);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 500px;
    /* Placeholder */
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 60px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card h4 {
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Use mobile menu */
    .mobile-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .dashboard-area {
        grid-template-columns: 1fr;
    }

    #mobileMenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    #mobileMenu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* Calculator Dashboard Styles */
.calc-panel {
    background: rgba(20, 27, 45, 0.6);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.input-panel {
    border-right: 1px solid var(--border-color);
}

.stats-panel {
    border-left: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.calc-panel h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-main);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.full-width {
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    margin: 0;
}

/* Bag List */
.bag-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 10px;
}

.bag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bag-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.bag-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bag-item-title b {
    color: #fff;
}

.bag-item-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.bag-item-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 4px;
}

.x-tag {
    color: var(--accent-secondary);
    background: rgba(0, 255, 157, 0.1);
}

.bag-item-right {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bag-val {
    font-weight: 700;
    color: #fff;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
}

.btn-icon:hover {
    background: rgba(255, 0, 80, 0.2);
    color: #ff0050;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.badge {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Stats */
.stat-box {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(0, 0, 0, 0));
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-box .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 5px;
}

.stat-box .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.stat-row span:first-child {
    color: var(--text-sub);
}

.mono {
    font-family: var(--font-mono);
}

.alert-box {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    color: #ffca28;
    border-radius: 6px;
    text-align: center;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-area {
        grid-template-columns: 1fr 1fr;
    }

    .stats-panel {
        grid-column: span 2;
        border-left: none;
        border-top: 1px solid var(--border-color);
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }

    .stat-box {
        margin-bottom: 0;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-area {
        grid-template-columns: 1fr;
    }

    .input-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .stats-panel {
        grid-column: auto;
        flex-direction: column;
    }
}

/* Footer Redesign */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-left: 20px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.footer-brand p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

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

/* Shared Gallery Styles (Used in Oxygen & Fish Value) */
.hero-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0;
    margin-top: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-item.active {
    border-color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.hero-item .tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}


/* Shared FAQ Styles */
.faq-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s, border-color 0.2s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-primary);
}

.faq-item summary {
    font-weight: 600;
    list-style: none;
    /* Hide default arrow */
    position: relative;
    padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    margin-top: 10px;
    font-size: 0.95rem;
    /* Standardized font size */
    color: var(--text-sub);
    line-height: 1.6;
}

/* Feedback Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s, visibility 0.3s;
    visibility: visible;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal.hidden .modal-content {
    transform: translateY(20px) scale(0.95);
}

.modal-header {
    background: var(--bg-panel);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}