:root {
  --black: #000;
  --white: #fff;
  --blue: #47a0cccf;
  --muted: #6c757d;
  --bg-soft: #f7fbfe;
}

/* HERO */
.lux-hero {
    background: url('../images/pharmacy/pharmacy.jpeg');
    padding: 80px 0;
}

/* BOX */
.lux-box {
    position: relative;
    max-width: 1100px;
    margin: auto;
    padding: 80px;

    display: flex;
    align-items: center;

    /* IMAGE RIGHT SIDE */
    background: url('../images/pharmacy/phbg.jpeg') right center / contain no-repeat;

    /* GLASS EFFECT */
    background-color: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);

    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);

    overflow: hidden;

    opacity: 0;
    transform: translateX(60px);
    transition: all 1s ease;
    will-change: transform;
    transform-origin: center;
}

/* OVERLAY FOR TEXT READABILITY */
.lux-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.95) 45%,
        rgba(255,255,255,0.2) 100%
    );
}

/* LEFT TEXT */
.lux-left {
    position: relative;
    z-index: 2;
    width: 55%;

    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s ease;
}

/* TAG */
.lux-tag {
    letter-spacing: 3px;
    font-size: 14px;
    color: var(--blue);
    margin-bottom: 10px;
}

/* TITLE */
.lux-left h1 {
    font-weight: 700;
    color: var(--black);

    /* ðŸ”¥ FIX: SINGLE LINE + RESPONSIVE */
    white-space: nowrap;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.1;
}

/* LINE */
.lux-line {
    width: 60px;
    height: 3px;
    background: var(--blue);
    margin: 15px 0;
}

/* TEXT */
.lux-left p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 15px;
}

/* ACTIVE ANIMATION */
.lux-box.active {
    opacity: 1;
    transform: translateX(0);
}

.lux-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* HOVER EFFECT (PREMIUM TOUCH) */
.lux-box:hover {
    box-shadow: 0 25px 80px rgba(0,0,0,0.12);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .lux-box {
        padding: 40px;
        background-position: center bottom;
        background-size: cover;
        text-align: center;
    }

    .lux-left {
        width: 100%;
    }

    .lux-left h1 {
        white-space: normal; /* allow wrap on mobile */
        font-size: 28px;
    }

    .lux-line {
        margin: 10px auto;
    }
}


/* =========================
ðŸ”¥ SECTION
========================= */
.pharma-listing {
    padding: 100px 0;
    background: #f8f6f3;
}

/* HEADER */
.pharma-header h2 {
    font-size: 48px;
    font-weight: 500;
    font-family: serif;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* TABS */
.pharma-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.pharma-tabs span {
    font-size: 13px;
    letter-spacing: 2px;
    color: #888;
    cursor: pointer;
    position: relative;
}

.pharma-tabs .active {
    color: #000;
}

.pharma-tabs .active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #c8a97e;
    bottom: -5px;
    left: 0;
}

/* GRID */
.pharma-grid {
    align-items: stretch;
}

/* CARD */
.pharma-card {
    overflow: hidden;
    transition: all 0.5s ease;
}

/* IMAGE */
.pharma-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.6s;
}

/* INFO */
.pharma-info {
    padding: 20px 5px;
}

/* TITLE */
.pharma-info h3 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 5px;
}

/* SUB */
.pharma-info h4 {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

/* TEXT */
.pharma-info p {
    font-size: 14px;
    color: #888;
}

/* HOVER EFFECT */
.pharma-card:hover img {
    transform: scale(1.08);
}

/* RESPONSIVE */
@media(max-width:768px){
    .pharma-header h2 {
        font-size: 32px;
    }
}

.pharma-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}




/* SECTION */
.apple-story {
    height: 450vh; /* 🔥 reduced = smoother */
    background: #429bc6b5;
    position: relative;
    overflow: hidden;
}

/* STICKY */
.sticky-box {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TITLE */
.main-title {
    position: absolute;
    top: 12%;
    font-size: clamp(28px, 5vw, 60px);
    color: #111;
}

/* TEXT */
.sub-text {
    position: absolute;
    top: 22%;
    font-size: 18px;
    color: #f8f9fa;
    opacity: 0;
}

/* IMAGE */
.story-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(260px, 30vw, 460px);

    transform: translate3d(-50%, -50%, 0) scale(0.6);
    opacity: 0;

    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);

    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* GLOW */
.glow-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,0,0,0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: blur(40px);
    will-change: opacity, transform;
}




/* ================= SECTION ================= */
/* ================= SECTION ================= */
.showcase-section {
    background: linear-gradient(135deg, #e9e6dc, #f8f9fb);
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}

/* ================= TEXT ================= */
.showcase-title {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    opacity: 1; /* IMPORTANT: always visible */
    transform: none;
}

.showcase-title span {
    position: relative;
}

/* Highlight effect */
.showcase-title span::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    background: rgba(255, 193, 7, 0.3);
    bottom: 5px;
    left: 0;
    z-index: -1;
    border-radius: 10px;
}

.showcase-desc {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    opacity: 1; /* IMPORTANT */
    transform: none;
}

/* ================= BUTTON ================= */
.circle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s ease;
}

.circle-btn:hover {
    background: #0c7c66;
    transform: scale(1.1) rotate(5deg);
}

/* ================= DEVICE WRAPPER ================= */
.device-wrapper {
    position: relative;
    max-width: 600px;
    margin: auto;
    perspective: 1400px;
    transform-style: preserve-3d;
}

/* Light glow effect */
.device-wrapper::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 50%),
        rgba(255,255,255,0.25),
        transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.device-wrapper:hover::before {
    opacity: 1;
}

/* ================= LAPTOP BACKGROUND ================= */
.laptop-bg {
    width: 100%;
    display: block;
    border-radius: 15px;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.25));
    transform: scale(0.95);
    opacity: 1; /* IMPORTANT: visible initially */
    transition: transform 0.4s ease;
}

/* ================= DEVICES ================= */
.device {
    position: absolute;
    opacity: 1; /* IMPORTANT: visible initially */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
}

/* Tablet */
.tablet {
    width: 55%;
    bottom: 20px;
    left: -50px;
    z-index: 2;
}

/* Mobile */
.mobile {
    width: 28%;
    bottom: 20px;
    right: -30px;
    z-index: 3;
}

/* Hover floating effect */
.device-wrapper:hover .tablet {
    transform: translateY(-10px) rotate(-5deg);
}

.device-wrapper:hover .mobile {
    transform: translateY(-15px) rotate(5deg);
}

/* ================= SHADOW DEPTH ================= */
.device {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .showcase-title {
        font-size: 34px;
    }

    .device-wrapper {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .showcase-section {
        padding: 80px 0;
    }

    .showcase-title {
        font-size: 28px;
    }

    .device-wrapper {
        max-width: 320px;
        margin-top: 40px;
    }

    .tablet {
        left: -20px;
        width: 60%;
    }

    .mobile {
        right: -10px;
        width: 35%;
    }
}