/* ============================================
   DIGESTION PHAKKI - HERBAL BUSINESS PLAN UI
   Premium Dark Emerald & Gold Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
    --emerald-deep: #0a1f16;
    --emerald-dark: #0d2b1e;
    --emerald-mid: #14573b;
    --emerald-light: #1a7a52;
    --emerald-glow: #22c55e;
    --gold-dark: #b8860b;
    --gold-mid: #d4a843;
    --gold-light: #f0d078;
    --gold-glow: #ffd700;
    --cream: #faf5e4;
    --cream-dark: #e8dcc8;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(10, 31, 22, 0.6);
    --glass-border: rgba(212, 168, 67, 0.15);
    --card-bg: rgba(13, 43, 30, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--emerald-deep);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(26, 122, 82, 0.08) 0%, transparent 50%);
}

.floating-leaf {
    position: fixed;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    animation: floatLeaf 20s ease-in-out infinite;
    font-size: 120px;
}

.floating-leaf:nth-child(2) {
    top: 20%;
    right: 5%;
    animation-delay: -5s;
    font-size: 80px;
}

.floating-leaf:nth-child(3) {
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
    font-size: 100px;
}

@keyframes floatLeaf {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: rgba(10, 31, 22, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand-text .urdu {
    font-family: 'Amiri', serif;
    font-size: 0.9rem;
    display: block;
    opacity: 0.8;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light) !important;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--emerald-deep) 0%, #0a2a1a 40%, #0d1f15 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    animation: pulseGlow 10s ease-in-out infinite reverse;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--emerald-glow);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-glow);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-mid), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .green {
    background: linear-gradient(135deg, var(--emerald-glow), var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-urdu {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--gold-mid);
    opacity: 0.7;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stat {
    text-align: center;
    padding: 16px 24px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
}

.hero-stat .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.herb-circle {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border: 2px solid rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateCircle 30s linear infinite;
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.herb-icon {
    position: absolute;
    font-size: 2.5rem;
    animation: rotateCircle 30s linear infinite reverse;
}

.herb-icon:nth-child(1) {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.herb-icon:nth-child(2) {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.herb-icon:nth-child(3) {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.herb-icon:nth-child(4) {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.herb-icon:nth-child(5) {
    top: 15%;
    right: 10%;
}

.herb-icon:nth-child(6) {
    bottom: 15%;
    left: 10%;
}

.center-product {
    font-size: 5rem;
    animation: none !important;
    filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.3));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-mid);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold-dark);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title .gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== GLASS CARDS ===== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-glow), var(--gold-mid));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 168, 67, 0.3);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.card-icon.gold-icon {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.05));
}

.glass-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--cream);
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== MARKET STATS CARDS ===== */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.stat-card:hover {
    border-color: var(--gold-mid);
    transform: scale(1.03);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== PROGRESS BARS ===== */
.progress-bar-custom {
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--emerald-glow), var(--gold-mid));
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PLATFORM CARDS ===== */
.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-mid);
}

.platform-tier {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.tier-1 {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
    color: #000;
}

.tier-2 {
    background: rgba(192, 192, 192, 0.2);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.tier-3 {
    background: rgba(205, 127, 50, 0.2);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.platform-card .plat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.platform-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.platform-card .stars {
    color: var(--gold-mid);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.platform-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--emerald-glow), var(--gold-mid), var(--emerald-glow));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--emerald-deep);
    border: 3px solid var(--emerald-glow);
}

.timeline-item.active .timeline-dot {
    background: var(--emerald-glow);
    box-shadow: 0 0 15px var(--emerald-glow);
}

.timeline-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
}

.timeline-item .time-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--emerald-glow);
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== COMPETITOR TABLE ===== */
.table-custom {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.table-custom thead th {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold-light);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px;
    font-size: 0.85rem;
}

.table-custom tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.85rem;
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: rgba(34, 197, 94, 0.03);
}

/* ===== BUDGET CHART ===== */
.chart-bar-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.chart-bar-h .bar-label {
    width: 120px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.chart-bar-h .bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.chart-bar-h .bar-fill {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.bar-green {
    background: linear-gradient(90deg, var(--emerald-mid), var(--emerald-glow));
}

.bar-gold {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-mid));
}

.bar-mixed {
    background: linear-gradient(90deg, var(--emerald-light), var(--gold-mid));
}

/* ===== DONUT CHART CSS ===== */
.donut-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center .donut-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
}

.donut-center .donut-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.donut-legend {
    margin-top: 20px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.donut-legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--emerald-dark) 0%, rgba(20, 87, 59, 0.5) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

/* ===== CERTIFICATION BADGES ===== */
.cert-badge {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    border-color: var(--gold-mid);
}

.cert-badge .cert-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.05));
}

.cert-badge h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
}

.cert-badge .cert-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cert-mandatory {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.cert-recommended {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(5, 15, 10, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold-mid);
    margin-bottom: 8px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat {
        padding: 12px 16px;
    }

    .hero-stat .num {
        font-size: 1.4rem;
    }

    .herb-circle {
        width: 240px;
        height: 240px;
    }

    .center-product {
        font-size: 3.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .chart-bar-h .bar-label {
        width: 80px;
        font-size: 0.7rem;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cert-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--emerald-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-light);
}