/* ========================================
   LANDING PAGE SPECIFIC STYLES
   Uses variables from design-dark-tech-premium.css
   ======================================== */

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay-gradient);
    animation: gradient-shift 15s ease-in-out infinite;
    z-index: 1;
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-pattern-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-pattern-color) 1px, transparent 1px);
    background-size: var(--grid-pattern-size) var(--grid-pattern-size);
    opacity: var(--grid-pattern-opacity);
    z-index: 2;
}

.hero-content {
    max-width: 1400px;
    position: relative;
    z-index: 10;
    padding: 0 40px;
    width: 100%;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
}

.hero-title {
    font-size: clamp(56px, 10vw, 120px);
    line-height: 0.9;
    margin: 0;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--onn-text-body);
    margin: 0;
    max-width: 700px;
}

.cta-button {
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: var(--gradient-accent);
    border: none;
    box-shadow: 0 8px 24px rgba(140, 164, 100, 0.3);
    transition: var(--onn-transition-base);
    margin-top: 24px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-hover);
}

/* ========================================
   HERO SECTION - SPLIT LAYOUT WITH 3D
   ======================================== */

/* .hero-split styles moved to landingpage.php inline CSS */

/* Hero split layout styles moved to landingpage.php inline CSS */

/* Model Viewer Styles */
.hero-model-viewer {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    --poster-color: transparent;
}

/* Floating Animation for Hero Model */
.hero-model-floating {
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Decorative Glow Behind Device */
.device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(140, 164, 100, 0.15) 0%,
        rgba(140, 164, 100, 0.08) 30%,
        transparent 70%
    );
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Model Loading Indicator */
.model-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(19, 19, 19, 0.3);
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(140, 164, 100, 0.2);
    border-top-color: var(--onn-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments - Hero split styles moved to landingpage.php inline CSS */

@media (max-width: 768px) {
    /* Hero split styles moved to landingpage.php inline CSS for proper cascade control */
}

/* Ambient Glow Effects */
.ambient-glow {
    position: absolute;
    pointer-events: none;
    animation: organic-float 20s ease-in-out infinite;
    z-index: 3;
}

.ambient-glow-left {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(140, 164, 100, 0.1), transparent 70%);
    filter: blur(var(--blur-medium));
}

.ambient-glow-right {
    bottom: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(126, 141, 119, 0.08), transparent 70%);
    filter: blur(var(--blur-heavy));
    animation-direction: reverse;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: opacity 0.5s;
    z-index: 15;
}

.scroll-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(140, 164, 100, 0.8);
    font-weight: 600;
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border-radius: 20px;
    border: 2px solid rgba(140, 164, 100, 0.4);
    display: flex;
    justify-content: center;
    padding: 6px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: rgba(140, 164, 100, 0.8);
    border-radius: 2px;
    animation: bounce 2s infinite;
}

/* Use Cases Section */
.use-cases-section {
    padding: 120px 0;
    background: var(--use-cases-bg-gradient);
    position: relative;
}

.use-cases-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.use-cases-header {
    text-align: center;
    margin-bottom: 80px;
}

.use-cases-title {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 28px;
    line-height: 1.2;
    color: var(--onn-text-heading);
}

.use-cases-subtitle {
    font-size: 0.6em;
    color: rgba(140, 164, 100, 0.9);
    font-weight: 600;
}

.section-divider {
    width: var(--divider-width);
    height: var(--divider-height);
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 3px;
}

/* Use Case Cards Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    background: var(--use-case-card-bg);
    border-radius: var(--onn-radius-xl);
    padding: 48px 36px;
    border: 1px solid var(--use-case-card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-depth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.use-case-card:hover::before {
    opacity: 1;
}

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: var(--use-case-card-border-hover);
    box-shadow: 0 16px 48px rgba(140, 164, 100, 0.25);
}

.use-case-card > * {
    position: relative;
    z-index: 1;
}

/* Icon Container */
.icon-container {
    width: var(--icon-size-lg);
    height: var(--icon-size-lg);
    margin-bottom: 32px;
    background: var(--icon-bg-gradient);
    border-radius: var(--onn-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(140, 164, 100, 0.4);
}

.icon-container svg {
    width: 52px;
    height: 52px;
    stroke: var(--onn-accent-primary);
    stroke-width: 2;
    fill: none;
}

/* Card Typography */
.card-title {
    font-family: var(--onn-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--onn-text-heading);
    margin-bottom: 16px;
    line-height: 1.3;
}

.card-category {
    font-size: 14px;
    color: rgba(140, 164, 100, 0.9);
    font-weight: 600;
    margin-bottom: 20px;
}

.card-description {
    font-family: var(--onn-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--onn-text-body);
    margin: 0;
    flex-grow: 1;
}

.card-description strong {
    color: var(--onn-accent-primary);
}

/* Animations */
@keyframes gradient-shift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes organic-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .use-cases-section {
        padding: 80px 0;
    }

    .use-case-card {
        padding: 40px 28px;
    }
}

@media (max-width: 768px) {
    .hero-new {
        padding: 80px 0 100px;
        min-height: 70vh;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 72px);
    }

    .hero-subtitle {
        font-size: clamp(14px, 3.5vw, 18px);
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 13px;
    }

    .use-cases-section {
        padding: 60px 0;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .use-case-card {
        padding: 36px 24px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 14px;
    }
}

/* ========================================
   USE CASES TABS SECTION - TYTOCARE STYLE
   ======================================== */

.use-cases-tabs-section {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #0a0a0a 0%, #131313 50%, #1a1a1a 100%);
    position: relative;
}

.use-cases-tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Main Title */
.use-cases-main-title {
    font-family: var(--onn-font-heading);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--onn-text-heading);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Tab Navigation Pills */
/* Slider Wrapper */
.use-cases-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
    max-width: 100%;
    padding: 0 20px;
}

.slider-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 26, 38, 0.6);
    border: 1px solid rgba(140, 164, 100, 0.3);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(140, 164, 100, 0.3);
    border-color: rgba(140, 164, 100, 0.6);
    color: #fff;
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

.use-cases-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px;
    flex: 1;
}

.use-cases-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-pill {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(26, 26, 38, 0.5);
    border: 1px solid rgba(140, 164, 100, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0.01em;
}

.tab-pill:hover {
    background: rgba(26, 26, 38, 0.7);
    border-color: rgba(140, 164, 100, 0.5);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 164, 100, 0.2);
}

.tab-pill.active {
    background: var(--gradient-accent);
    border-color: var(--onn-accent-primary);
    color: #131313;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(140, 164, 100, 0.4);
}

/* Tab Content Container */
.use-cases-tabs-content {
    position: relative;
    min-height: 500px;
}

/* Tab Panel */
.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Split Layout Inside Tab Panel */
.tab-content-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    background: rgba(26, 26, 38, 0.4);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(140, 164, 100, 0.25);
    backdrop-filter: blur(20px);
}

/* Left Side: Text Content */
.tab-text-side {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-heading {
    font-family: var(--onn-font-heading);
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    color: var(--onn-text-heading);
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

.tab-subtitle {
    display: block;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 500;
    color: var(--onn-accent-primary);
    margin-top: 4px;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.tab-description {
    font-family: var(--onn-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--onn-text-body);
    margin: 0;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.btn-learn-more,
.btn-watch-case {
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    display: inline-block;
}

.btn-learn-more {
    background: var(--gradient-accent);
    color: #131313;
    border: 2px solid var(--onn-accent-primary);
    box-shadow: 0 8px 24px rgba(140, 164, 100, 0.35);
}

.btn-learn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(140, 164, 100, 0.5);
}

.btn-watch-case {
    background: transparent;
    color: var(--onn-text-body);
    border: 1px solid rgba(140, 164, 100, 0.4);
}

.btn-watch-case:hover {
    background: rgba(140, 164, 100, 0.1);
    border-color: var(--onn-accent-primary);
    color: var(--onn-text-heading);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(140, 164, 100, 0.2);
}

/* Right Side: Image */
.tab-image-side {
    flex: 0 0 48%;
    max-width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-image-container {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 26, 38, 0.6) 0%, rgba(19, 19, 19, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(140, 164, 100, 0.2);
}

.tab-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tab-image-container:hover img {
    transform: scale(1.05);
}

/* ========================================
   USE CASES REVEAL ANIMATIONS
   ======================================== */

/* Title Reveal */
.use-cases-main-title.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-cases-main-title.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tab Navigation Reveal */
.use-cases-slider-wrapper.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.use-cases-slider-wrapper.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tab Content Reveal */
.use-cases-tabs-content.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.use-cases-tabs-content.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tab Text Side - Slide from Left */
.tab-text-side.reveal {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.tab-text-side.reveal.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Tab Image Side - Slide from Right */
.tab-image-side.reveal {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

.tab-image-side.reveal.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Pills Animation */
.tab-pill.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pill.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tab-pill.reveal:nth-child(1) { transition-delay: 0.1s; }
.tab-pill.reveal:nth-child(2) { transition-delay: 0.15s; }
.tab-pill.reveal:nth-child(3) { transition-delay: 0.2s; }
.tab-pill.reveal:nth-child(4) { transition-delay: 0.25s; }
.tab-pill.reveal:nth-child(5) { transition-delay: 0.3s; }
.tab-pill.reveal:nth-child(6) { transition-delay: 0.35s; }
.tab-pill.reveal:nth-child(7) { transition-delay: 0.4s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .use-cases-main-title.reveal,
    .use-cases-slider-wrapper.reveal,
    .use-cases-tabs-content.reveal,
    .tab-text-side.reveal,
    .tab-image-side.reveal,
    .tab-pill.reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Responsive Styles for Tabs */
@media (max-width: 1200px) {
    .tab-content-split {
        gap: 60px;
        padding: 50px 40px;
    }

    .tab-text-side,
    .tab-image-side {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 1024px) {
    .use-cases-tabs-section {
        padding: 80px 0 100px;
    }

    .use-cases-slider-wrapper {
        gap: 12px;
        margin-bottom: 50px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .use-cases-tabs-nav {
        gap: 10px;
    }

    .tab-pill {
        padding: 10px 20px;
        font-size: 13px;
    }

    .tab-content-split {
        gap: 40px;
        padding: 40px 30px;
    }

    .tab-heading {
        font-size: clamp(22px, 2.8vw, 28px);
    }

    .tab-description {
        font-size: 14px;
    }

    .tab-image-container {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .use-cases-tabs-section {
        padding: 60px 0 80px;
    }

    .use-cases-tabs-container {
        padding: 0 20px;
    }

    .use-cases-main-title {
        margin-bottom: 40px;
        font-size: clamp(24px, 6vw, 32px);
    }

    .use-cases-slider-wrapper {
        gap: 8px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }

    .use-cases-tabs-nav {
        gap: 8px;
    }

    .tab-pill {
        padding: 9px 16px;
        font-size: 12px;
    }

    .tab-content-split {
        flex-direction: column;
        gap: 32px;
        padding: 28px 20px;
    }

    .tab-text-side,
    .tab-image-side {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .tab-heading {
        font-size: clamp(20px, 5vw, 26px);
    }

    .tab-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .tab-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-learn-more,
    .btn-watch-case {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
        font-size: 13px;
    }

    .tab-image-container {
        height: 250px;
        width: 100%;
    }
}
