/* Bhujal - Animations & Micro-interactions */

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 0 5%;
    color: white;
}

.slide-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.slide-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.slide-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.slide-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Mockup Frames */
.mockup-frame {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    width: 400px;
}

.mockup-screen {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.mockup-header {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.mockup-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-box span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
}

.stat-box.live {
    background: rgba(0, 230, 118, 0.2);
    position: relative;
}

.stat-box.live::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item {
    background: rgba(0, 166, 166, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: white;
}

/* Chart Visual */
.chart-visual {
    height: 60px;
    margin-bottom: 1rem;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

/* Map Visual */
.map-screen {
    position: relative;
}

.map-visual {
    height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
    margin-bottom: 1rem;
}

.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00A6A6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 166, 166, 0.5);
}

.map-dot.moving {
    animation: move-dot 3s ease-in-out infinite;
}

.map-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: white;
}

/* Slide Navigation */
.slide-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-dot.active {
    background: white;
    transform: scale(1.2);
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.slide-arrow.prev {
    left: 20px;
}

.slide-arrow.next {
    right: 20px;
}

/* Float Animation */
@keyframes animate-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: animate-float 4s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.pulse-dot {
    animation: pulse-live 1.5s ease-in-out infinite;
}

/* Move Dot Animation */
@keyframes move-dot {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, -10px);
    }

    50% {
        transform: translate(40px, 5px);
    }

    75% {
        transform: translate(20px, 10px);
    }
}

/* Quick Stats */
.quick-stats {
    background: white;
    padding: 3rem 0;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    border-radius: 24px 24px 0 0;
}

.stat-card {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Module Sections */
.modules-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.module-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.module-detail.reverse {
    direction: rtl;
}

.module-detail.reverse>* {
    direction: ltr;
}

.module-tag {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.module-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.module-content>p {
    color: var(--text-body);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    margin-bottom: 2px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.module-cta {
    display: flex;
    gap: 1rem;
}

/* Screen Mockups */
.screen-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.screen-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.screen-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.screen-header .dot:first-child {
    background: #ef4444;
}

.screen-header .dot:nth-child(2) {
    background: #f59e0b;
}

.screen-header .dot:nth-child(3) {
    background: #22c55e;
}

.screen-header .url {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
}

.screen-body {
    padding: 1.5rem;
    min-height: 300px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-card {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.dash-card.highlight {
    background: var(--primary);
    color: white;
}

.dash-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.dash-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.dash-table {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    padding: 10px 12px;
    font-size: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-row.header {
    background: #e2e8f0;
    font-weight: 600;
}

.status {
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    text-align: center;
}

.status.approved {
    background: #dcfce7;
    color: #16a34a;
}

.status.pending {
    background: #fef3c7;
    color: #d97706;
}

/* Chart Screen */
.chart-screen {
    background: var(--dark-bg);
    color: white;
}

.live-indicator {
    color: #00E676;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: pulse-live 1.5s infinite;
}

.chart-svg {
    width: 100%;
    height: 100px;
}

.chart-labels {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Map Mockup */
.map-mockup .screen-body {
    padding: 0;
    position: relative;
}

.map-placeholder {
    height: 250px;
    background: linear-gradient(180deg, #e8f4f8 0%, #d0e8f0 100%);
    position: relative;
}

.tanker-marker,
.source-marker {
    position: absolute;
    font-size: 1.25rem;
    transform: translate(-50%, -50%);
}

.tanker-marker.moving {
    animation: move-dot 4s ease-in-out infinite;
}

.map-legend {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 16px;
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.module-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.module-card .module-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.module-card h4 {
    margin-bottom: 0.5rem;
}

.module-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.module-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Compliance Section */
.compliance-section {
    padding: 5rem 0;
    text-align: center;
    background: white;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00A6A6 0%, #00695C 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.compliance-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.compliance-section>p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.compliance-item .check {
    color: var(--secondary);
    font-weight: bold;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Variants */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

/* CTA Section Enhancement */
.cta-section {
    padding: 5rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .module-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .module-detail.reverse {
        direction: ltr;
    }

    .modules-grid,
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .slide-visual {
        display: none;
    }

    .slide-content {
        max-width: 100%;
        text-align: center;
    }

    .slide-cta {
        justify-content: center;
    }
}