/* ============================================
   TP-LINK STYLE PRODUCT SHOWCASE
   Full-page scrolling product sections
   ============================================ */

/* === PRODUCT NAV === */
.product-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.product-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 172, 193, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-nav-item:hover,
.product-nav-item.active {
    background: rgba(0, 172, 193, 0.08);
    border-color: rgba(0, 172, 193, 0.3);
    transform: translateY(-4px);
}

.nav-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.nav-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a2942;
}

/* === PRODUCT SECTIONS === */
.product-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.product-section.alt-bg {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

[data-theme="dark"] .product-section.alt-bg {
    background: linear-gradient(180deg, rgba(15, 10, 40, 0.4) 0%, rgba(5, 5, 16, 0.2) 100%);
}

/* === PRODUCT HERO === */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.product-hero.reverse {
    direction: rtl;
}

.product-hero.reverse>* {
    direction: ltr;
}

.product-hero-content {
    max-width: 520px;
}

.product-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 172, 193, 0.1);
    border: 1px solid rgba(0, 172, 193, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #00acc1;
    margin-bottom: 1rem;
}

.product-tag.popular {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 159, 67, 0.1));
    border-color: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

.product-hero h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a2942;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

[data-theme="dark"] .product-hero h2 {
    color: #f0f0ff;
}

.product-tagline {
    font-size: 1.4rem;
    color: #00acc1;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2rem;
}

[data-theme="dark"] .product-desc {
    color: #b8b8d0;
}

.product-cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.product-price {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
}

/* === PRODUCT VISUALS === */
.product-hero-visual {
    display: flex;
    justify-content: center;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 480px;
}

/* Insight Engine Visual */
.insight-visual .visual-dashboard {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 172, 193, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 172, 193, 0.1);
    padding: 1rem;
    animation: floatSoft 6s ease-in-out infinite;
}

.dash-header {
    display: flex;
    gap: 6px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 172, 193, 0.1);
    margin-bottom: 1rem;
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.dash-dot:nth-child(1) {
    background: #ff6b6b;
}

.dash-dot:nth-child(2) {
    background: #ffd93d;
}

.dash-dot:nth-child(3) {
    background: #6bcb77;
}

.dash-content {
    padding: 0.5rem;
}

.dash-chart {
    height: 80px;
    background: linear-gradient(180deg, rgba(0, 172, 193, 0.1), rgba(77, 208, 225, 0.05));
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.dash-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(90deg, #00acc1, #4dd0e1, #00acc1);
    opacity: 0.3;
    clip-path: polygon(0 60%, 20% 40%, 40% 70%, 60% 30%, 80% 50%, 100% 20%, 100% 100%, 0 100%);
}

.dash-query {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 172, 193, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.query-text {
    font-size: 0.9rem;
    color: #4a5568;
    font-style: italic;
}

.dash-response {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.response-bar {
    height: 28px;
    background: linear-gradient(90deg, #00acc1, #4dd0e1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    animation: barGrow 1s ease-out forwards;
}

.response-bar span {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

/* Floating elements */
.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: floatBubble 4s ease-in-out infinite;
}

.fe-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.fe-2 {
    bottom: 20px;
    right: -30px;
    animation-delay: -1.5s;
}

.fe-3 {
    top: 50%;
    left: -40px;
    animation-delay: -3s;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

@keyframes floatSoft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes barGrow {
    from {
        width: 0;
    }
}

/* SecureBot Visual */
.bot-visual .chat-preview {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 172, 193, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 172, 193, 0.1);
}

.chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: slideInChat 0.5s ease-out forwards;
    opacity: 0;
}

.chat-bubble:nth-child(1) {
    animation-delay: 0.2s;
}

.chat-bubble:nth-child(2) {
    animation-delay: 0.6s;
}

.chat-bubble:nth-child(3) {
    animation-delay: 1s;
}

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

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

.chat-bubble.user {
    justify-content: flex-end;
}

.bot-avatar {
    font-size: 1.5rem;
}

.bubble-text {
    max-width: 250px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble.bot .bubble-text {
    background: rgba(0, 172, 193, 0.1);
    color: #1a2942;
}

.chat-bubble.user .bubble-text {
    background: linear-gradient(135deg, #00acc1, #26c6da);
    color: white;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.75rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #00acc1;
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    30% {
        transform: scale(1);
        opacity: 1;
    }
}

.deploy-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.deploy-icon {
    font-size: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 172, 193, 0.1);
    border-radius: 12px;
    transition: transform 0.3s;
}

.deploy-icon:hover {
    transform: scale(1.1);
}

/* Security/ThreatVision Visual */
.security-visual .scan-display {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 172, 193, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 172, 193, 0.1);
}

.scan-header {
    margin-bottom: 1rem;
}

.scan-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 172, 193, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}

.scan-files {
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.file-line {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.file-line.safe {
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.file-line.warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.scan-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-box {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-box.critical {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-box.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-box.safe {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.shield-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    animation: floatBubble 4s ease-in-out infinite;
}

/* DocuMind Visual */
.doc-visual {
    position: relative;
}

.doc-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.doc-item {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 172, 193, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1a2942;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.05);
    transform: translateX(0);
    transition: transform 0.3s;
}

.doc-item:hover {
    transform: translateX(10px);
}

.search-overlay {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 172, 193, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 172, 193, 0.15);
}

.search-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 172, 193, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.search-result {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 172, 193, 0.05), rgba(77, 208, 225, 0.02));
    border-left: 3px solid #00acc1;
    border-radius: 0 10px 10px 0;
}

.search-result p {
    font-size: 0.9rem;
    color: #1a2942;
    margin-bottom: 0.5rem;
}

.search-result .source {
    font-size: 0.75rem;
    color: #00acc1;
}

/* CloudGuard Visual */
.cloud-visual .cloud-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
}

.cloud-provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 172, 193, 0.15);
    border-radius: 12px;
    transition: transform 0.3s;
}

.cloud-provider:hover {
    transform: scale(1.05);
}

.cloud-provider.aws {
    grid-column: 1;
    grid-row: 1;
}

.cloud-provider.azure {
    grid-column: 3;
    grid-row: 1;
}

.cloud-provider.gcp {
    grid-column: 2;
    grid-row: 2;
}

.cloud-center {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

.center-label {
    font-weight: 600;
    color: #00acc1;
    font-size: 0.9rem;
}

.cloud-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cloud-name {
    font-weight: 600;
    color: #1a2942;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cloud-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.cloud-status.good {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.cloud-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* AgentForge Visual */
.agent-visual .workflow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.workflow-node {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 172, 193, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.08);
    animation: nodePop 0.5s ease-out forwards;
    opacity: 0;
}

.workflow-node:nth-child(1) {
    animation-delay: 0.2s;
}

.workflow-node:nth-child(3) {
    animation-delay: 0.4s;
}

.workflow-node:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes nodePop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.workflow-arrow {
    color: #00acc1;
    font-size: 1.5rem;
    font-weight: bold;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.agent-stat {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 172, 193, 0.1);
    border-radius: 16px;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00acc1;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
}

/* === PRODUCT FEATURES GRID === */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 172, 193, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 172, 193, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2942;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .feature-item h4 {
    color: #f0f0ff;
}

.feature-item p {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.5;
}

/* === DARK THEME OVERRIDES FOR PRODUCTS === */
[data-theme="dark"] .product-nav-item {
    background: rgba(20, 15, 50, 0.6);
    border-color: rgba(168, 85, 247, 0.2);
}

[data-theme="dark"] .nav-label {
    color: #b8b8d0;
}

[data-theme="dark"] .product-tag {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

[data-theme="dark"] .insight-visual .visual-dashboard,
[data-theme="dark"] .bot-visual .chat-preview,
[data-theme="dark"] .security-visual .scan-display,
[data-theme="dark"] .doc-item,
[data-theme="dark"] .search-overlay,
[data-theme="dark"] .cloud-provider,
[data-theme="dark"] .workflow-node,
[data-theme="dark"] .agent-stat,
[data-theme="dark"] .feature-item {
    background: rgba(20, 15, 50, 0.8);
    border-color: rgba(168, 85, 247, 0.2);
}

[data-theme="dark"] .chat-bubble.bot .bubble-text {
    background: rgba(168, 85, 247, 0.1);
    color: #f0f0ff;
}

[data-theme="dark"] .query-text,
[data-theme="dark"] .cloud-name,
[data-theme="dark"] .doc-item,
[data-theme="dark"] .search-result p {
    color: #b8b8d0;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-hero.reverse {
        direction: ltr;
    }

    .product-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .product-cta-group {
        justify-content: center;
    }

    .product-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-nav {
        gap: 0.5rem;
    }

    .product-nav-item {
        padding: 0.75rem 1rem;
    }

    .nav-icon {
        font-size: 1.4rem;
    }

    .nav-label {
        font-size: 0.75rem;
    }

    .product-hero h2 {
        font-size: 2rem;
    }

    .product-tagline {
        font-size: 1.1rem;
    }

    .product-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Pulse animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}