/* =========================================================
   YUMNAK - PREMIUM EFFECTS & ANIMATIONS
   Modern, performant animations and visual upgrades
   ========================================================= */

/* ============= KEYFRAMES ============= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@keyframes float-rotate {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,169,157,0.4); }
    50%      { box-shadow: 0 0 0 18px rgba(0,169,157,0); }
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(27,108,177,0.5); }
    100% { box-shadow: 0 0 0 30px rgba(27,108,177,0); }
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes typewriter {
    0%   { width: 0; }
    100% { width: 100%; }
}
@keyframes blink {
    50% { opacity: 0; }
}
@keyframes bounce-in {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { opacity: 1; transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}
@keyframes orbit {
    from { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

/* ============= SCROLL REVEAL ============= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: 0.61s; }

.reveal-left   { transform: translateY(30px) translateX(-20px); }
.reveal-right  { transform: translateY(30px) translateX(20px); }
.reveal-left.in-view,
.reveal-right.in-view { transform: translateY(0) translateX(0); }
.reveal-zoom   { transform: scale(0.92); }
.reveal-zoom.in-view { transform: scale(1); }

/* ============= HERO PREMIUM ============= */
.hero-pro {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
}

/* Gradient mesh background */
.hero-pro::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(77,170,80,0.18), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,169,157,0.18), transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(27,108,177,0.18), transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(14,61,119,0.14), transparent 50%);
    pointer-events: none;
}

/* Subtle grid pattern */
.hero-pro::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blob 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.hero-blob.b1 { width: 400px; height: 400px; top: 10%; right: -100px; background: radial-gradient(circle, #4DAA50, transparent 70%); }
.hero-blob.b2 { width: 350px; height: 350px; bottom: 5%; left: -80px; background: radial-gradient(circle, #1B6CB1, transparent 70%); animation-delay: -4s; }
.hero-blob.b3 { width: 300px; height: 300px; top: 50%; left: 30%; background: radial-gradient(circle, #00A99D, transparent 70%); animation-delay: -7s; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
    animation: bounce-in 1.2s cubic-bezier(.34,1.56,.64,1) both;
}

.hero-logo-wrap img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(27,108,177,0.25));
    animation: float-rotate 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Orbiting accent dots around logo */
.hero-logo-wrap::before,
.hero-logo-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient);
    margin: -7px 0 0 -7px;
    box-shadow: 0 0 20px currentColor;
    animation: orbit 8s linear infinite;
}
.hero-logo-wrap::after {
    animation-duration: 12s;
    animation-direction: reverse;
    background: linear-gradient(135deg, #00A99D, #4DAA50);
}

.hero-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    border-radius: 50%;
    border: 1px dashed rgba(27,108,177,0.25);
    animation: spin-slow 30s linear infinite;
    z-index: 1;
}
.hero-glow-ring::before {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px dashed rgba(77,170,80,0.2);
    animation: spin-slow 20s linear infinite reverse;
}

.hero-title-pro {
    font-family: 'Thmanyah Serif', serif;
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    padding-top: 12px;
    background: linear-gradient(135deg, #0E3D77 0%, #1B6CB1 30%, #00A99D 65%, #4DAA50 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite, fadeUp 1s ease-out 0.2s both;
    letter-spacing: -2px;
}

.hero-tagline-pro {
    font-family: 'Thmanyah Serif', serif;
    font-size: clamp(20px, 3vw, 30px);
    color: var(--text);
    margin-bottom: 18px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    animation: fadeUp 1s ease-out 0.4s both;
}
.hero-tagline-pro::before,
.hero-tagline-pro::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--gradient);
}
.hero-tagline-pro::before { right: calc(100% + 16px); }
.hero-tagline-pro::after  { left: calc(100% + 16px); }

.hero-sub-pro {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.9;
    animation: fadeUp 1s ease-out 0.6s both;
}

.hero-actions-pro {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 1s ease-out 0.8s both;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 2s ease-out 1.5s both, float-y 2s ease-in-out infinite 2s;
    z-index: 2;
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--teal));
}

/* ============= STATS BAR (Counters) ============= */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.stat-item {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid var(--border);
}
.stat-item:first-child { border-left: none; }
.stat-num {
    font-family: 'Thmanyah Serif', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-text {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* ============= BUTTON SHIMMER ============= */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: right 0.5s ease;
}
.btn-primary:hover::before { right: 130%; }

/* Pulsing CTA */
.btn-pulse {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ============= CATEGORY CARDS PRO ============= */
.cat-grid-pro {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    perspective: 1000px;
}

.cat-card-pro {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.cat-card-pro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.cat-card-pro::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    z-index: -1;
    border-radius: var(--r-md);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}
.cat-card-pro > * { position: relative; z-index: 1; transition: color 0.3s ease; }

.cat-card-pro:hover {
    color: var(--text);
    transform: translateY(-12px) scale(1.04);
    border-color: transparent;
}
.cat-card-pro:hover::before { opacity: 1; }
.cat-card-pro:hover::after  { opacity: 0.6; }
.cat-card-pro:hover .cat-icon-pro { background: rgba(255,255,255,0.2); color: #fff; transform: scale(1.1) rotate(-6deg); }
.cat-card-pro:hover .cat-label-pro,
.cat-card-pro:hover .cat-count-pro { color: #fff; }

.cat-icon-pro {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-soft);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
}
.cat-icon-pro svg { width: 32px; height: 32px; }

.cat-label-pro {
    font-weight: 700;
    font-size: var(--fs-base);
    margin-bottom: 6px;
}
.cat-count-pro {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: 600;
}

/* ============= POST CARDS PRO (3D Tilt) ============= */
.post-card {
    position: relative;
    overflow: hidden;
}
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}
.post-card:hover::before { transform: scaleX(1); }

.post-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(77,170,80,0.0), rgba(27,108,177,0.0));
    transition: all 0.4s ease;
    z-index: 1;
}
.post-card:hover .post-card-image::before {
    background: linear-gradient(135deg, rgba(77,170,80,0.15), rgba(27,108,177,0.15));
}

.post-card-type {
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.post-card:hover .post-card-type {
    transform: scale(1.05);
}

/* ============= TEAM SHOWCASE - HOMEPAGE ============= */
.team-showcase {
    position: relative;
    padding: 30px 0;
}

.team-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tcard {
    position: relative;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 28px 20px 24px;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(.2,.8,.2,1);
    border: 1px solid var(--border);
    cursor: pointer;
}

.tcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
    z-index: 0;
}

.tcard > * { position: relative; z-index: 1; }

.tcard:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(27,108,177,0.18);
    border-color: transparent;
}
.tcard:hover::before { transform: scaleY(1); }

.tcard:hover .tcard-name,
.tcard:hover .tcard-role { color: #fff; }
.tcard:hover .tcard-avatar { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.tcard:hover .tcard-deco-line { background: rgba(255,255,255,0.6); }

.tcard-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--gradient);
    padding: 4px;
    transition: all 0.5s ease;
    box-shadow: 0 8px 20px rgba(27,108,177,0.18);
}
.tcard-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Thmanyah Serif', serif;
    font-size: 42px;
    font-weight: 900;
    background: #FFFFFF;
    color: #0E3D77;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.tcard-avatar-inner img {
    width: 100%; height: 100%; object-fit: cover;
}

.tcard-name {
    font-family: 'Thmanyah Serif', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.tcard-role {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.tcard-deco-line {
    width: 30px;
    height: 2px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Supervisor highlight card */
.tcard.supervisor-card {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(27,108,177,0.25);
    grid-column: span 2;
    padding: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-align: right;
}
.tcard.supervisor-card::before { display: none; }
.tcard.supervisor-card:hover { transform: translateY(-6px) scale(1.01); }

.tcard.supervisor-card .tcard-avatar {
    width: 130px; height: 130px;
    flex-shrink: 0;
    margin: 0;
    background: rgba(255,255,255,0.25);
}
.tcard.supervisor-card .tcard-avatar-inner {
    background: rgba(255,255,255,0.95);
}

.tcard.supervisor-card .tcard-name {
    color: #fff;
    font-size: 22px;
    margin-bottom: 8px;
}
.tcard.supervisor-card .tcard-role {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.supervisor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    backdrop-filter: blur(8px);
}

/* ============= CHANNEL EMBED CARD ============= */
.channel-embed {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    background: #0F172A;
    color: #fff;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.channel-embed:hover {
    transform: translateY(-4px);
    color: #fff;
    box-shadow: 0 30px 70px rgba(0,0,0,0.3);
}
.channel-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,0,0,0.4), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(27,108,177,0.4), transparent 60%),
        linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
}
.channel-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}
.yt-icon {
    width: 80px;
    height: 80px;
    color: #FF0000;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 24px rgba(255,0,0,0.4));
}
.play-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #FF0000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    animation: pulse-ring 2s ease-out infinite;
}
.play-orb svg { width: 36px; height: 36px; margin-right: 4px; }
.channel-embed:hover .play-orb {
    transform: scale(1.1);
    background: #fff;
}
.channel-content h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 8px;
}
.channel-content p { color: rgba(255,255,255,0.7); font-size: 14px; }

/* ============= VIDEO WRAP ENHANCEMENT ============= */
.video-wrap {
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    transition: transform 0.4s ease;
}

/* ============= SECTION DIVIDERS ============= */
.divider-wave {
    height: 60px;
    background: var(--bg);
    position: relative;
    margin-top: -60px;
    z-index: 2;
}
.divider-wave::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0% 100%);
}

/* ============= SECTION HEADERS PRO ============= */
.section-eyebrow {
    position: relative;
    overflow: hidden;
}
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 4px;
}

/* ============= MARQUEE TEXT ============= */
.marquee {
    overflow: hidden;
    padding: 14px 0;
    background: var(--gradient);
    color: #fff;
    max-width: 100vw;
    width: 100%;
}
.marquee-track {
    display: flex;
    gap: 50px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    font-family: 'Thmanyah Serif', serif;
    font-size: 20px;
    font-weight: 700;
    width: max-content;
}
.marquee-track > span {
    display: inline-flex;
    align-items: center;
    gap: 50px;
}
.marquee-track > span::after {
    content: '◆';
    opacity: 0.5;
}

/* ============= CTA BANNER PRO ============= */
.cta-banner {
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 200% 200%;
    animation: shimmer 6s linear infinite;
    pointer-events: none;
}

/* ============= NAVIGATION ENHANCEMENT ============= */
.site-header {
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}
.nav-logo img {
    transition: transform 0.4s ease;
}
.nav-logo:hover img { transform: rotate(-8deg) scale(1.08); }

/* ============= CURSOR FOLLOWER (Desktop only) ============= */
@media (hover: hover) and (pointer: fine) {
    .cursor-glow {
        position: fixed;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0,169,157,0.06) 0%, transparent 70%);
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 1;
        transition: opacity 0.3s ease;
        opacity: 0;
    }
    body:hover .cursor-glow { opacity: 1; }
}

/* ============= IMAGE HOVER FRAME ============= */
.frame-hover {
    position: relative;
    display: inline-block;
}
.frame-hover::before,
.frame-hover::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--teal);
    transition: all 0.5s ease;
    opacity: 0;
}
.frame-hover::before { top: -10px; right: -10px; border-bottom: 0; border-left: 0; }
.frame-hover::after  { bottom: -10px; left: -10px; border-top: 0; border-right: 0; }
.frame-hover:hover::before,
.frame-hover:hover::after { opacity: 1; transform: scale(1.5); }

/* ============= ABOUT CARDS PRO ============= */
.about-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(.2,.8,.2,1);
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    transform: translate(50%, -50%);
    opacity: 0.08;
    transition: all 0.5s ease;
}
.about-card:hover::before {
    transform: translate(30%, -30%) scale(1.5);
    opacity: 0.15;
}

.about-card-icon {
    transition: transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.about-card:hover .about-card-icon {
    transform: rotate(-10deg) scale(1.1);
}

/* ============= POST DETAIL PAGE PRO ============= */
.post-cover {
    position: relative;
    overflow: hidden;
}
.post-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(77,170,80,0.0), rgba(27,108,177,0.0));
    transition: background 0.4s ease;
}
.post-cover img {
    transition: transform 0.6s ease;
}

.author-chip {
    transition: all 0.3s ease;
}
.author-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27,108,177,0.15);
}

/* ============= FORM ENHANCEMENT ============= */
.form-input, .form-textarea, .form-select {
    transition: all 0.3s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,169,157,0.15);
}

/* ============= CARD HOVER LIFT ============= */
.lift {
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15,23,42,0.12);
}

/* ============= INFOGRAPHIC CARD PRO ============= */
.info-card {
    transition: all 0.5s cubic-bezier(.2,.8,.2,1);
}
.info-card:hover {
    transform: translateY(-10px) scale(1.02);
}
.info-card-img img {
    transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
}

/* ============= LOADING SKELETON ============= */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: var(--r-sm);
}

/* ============= QUOTE STYLE ============= */
.about-slogan {
    transition: transform 0.5s ease;
}
.about-slogan:hover {
    transform: scale(1.02);
}

/* ============= FOOTER ENHANCEMENT ============= */
.footer-social a {
    transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
}
.footer-social a:hover {
    transform: translateY(-4px) rotate(-8deg);
}

/* ============= AUDIO PLAYER PRO ============= */
.audio-player {
    position: relative;
    overflow: hidden;
}
.audio-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
    .cat-grid-pro { grid-template-columns: repeat(3, 1fr); }
    .team-showcase-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3) { border-left: none; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
    .stat-item:nth-child(4) { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
    .tcard.supervisor-card { grid-column: span 3; }
}

@media (max-width: 768px) {
    .hero-logo-wrap img { width: 140px; height: 140px; }
    .hero-glow-ring { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
    .cat-grid-pro { grid-template-columns: repeat(2, 1fr); }
    .team-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tcard { padding: 20px 12px; }
    .tcard-avatar { width: 90px; height: 90px; }
    .tcard.supervisor-card {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }
    .stats-bar { grid-template-columns: 1fr 1fr; padding: 20px 0; margin-top: 40px; }
    .marquee-track { font-size: 16px; gap: 30px; }
    .marquee-track > span { gap: 30px; }
    .channel-content h3 { font-size: 18px; }
    .yt-icon { width: 60px; height: 60px; }
    .play-orb { width: 64px; height: 64px; }
    .play-orb svg { width: 28px; height: 28px; }

    /* Hide decorative lines that may overflow on mobile */
    .hero-tagline-pro::before,
    .hero-tagline-pro::after { display: none; }

    /* Smaller blobs on mobile to prevent any overflow */
    .hero-blob.b1 { width: 250px; height: 250px; right: -60px; }
    .hero-blob.b2 { width: 220px; height: 220px; left: -50px; }
    .hero-blob.b3 { width: 180px; height: 180px; }

    /* Ensure hero content respects container */
    .hero-content { padding: 0 16px; width: 100%; box-sizing: border-box; }
    .hero-pro { padding: 40px 0; }
}

@media (max-width: 480px) {
    .hero-logo-wrap img { width: 120px; height: 120px; }
    .hero-glow-ring { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
    .team-showcase-grid { grid-template-columns: 1fr; }
    .tcard.supervisor-card { grid-column: span 1; }
    .cat-grid-pro { gap: 10px; }
    .cat-card-pro { padding: 20px 10px; }
    .cat-icon-pro { width: 48px; height: 48px; }
    .cat-icon-pro svg { width: 24px; height: 24px; }
    .cat-label-pro { font-size: 14px; }
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > *, .reveal-left, .reveal-right, .reveal-zoom {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-logo-wrap img,
    .hero-blob,
    .hero-glow-ring,
    .marquee-track,
    .cta-banner::after,
    .play-orb,
    .hero-logo-wrap::before,
    .hero-logo-wrap::after,
    .hero-title-pro {
        animation: none !important;
    }
}

/* ============= APP DOWNLOAD HERO + GOOGLE PLAY + QR ============= */
.app-download-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 30px 0;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-soft);
    border: 1px solid rgba(77,170,80,0.3);
    color: var(--green-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.app-download-text h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
    padding-top: 8px;
}

.app-download-text p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.app-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Google Play button */
.btn-google-play {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #000;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    border: 1px solid #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-google-play:hover {
    color: #fff;
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.btn-google-play svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.btn-gp-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
}
.btn-gp-text small {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 400;
}
.btn-gp-text strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.app-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
}

/* QR Block */
.app-qr-block {
    text-align: center;
}
.qr-frame {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
    position: relative;
    transition: transform 0.4s ease;
}
.qr-frame:hover { transform: scale(1.03); }
.qr-frame::before, .qr-frame::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 3px solid var(--teal);
    border-radius: 4px;
}
.qr-frame::before { top: -2px; right: -2px; border-bottom: 0; border-left: 0; }
.qr-frame::after  { bottom: -2px; left: -2px; border-top: 0; border-right: 0; }
.qr-frame img {
    width: 220px;
    height: 220px;
    display: block;
    border-radius: var(--r-sm);
}
.qr-label {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

/* ============= APP SCREENSHOTS SLIDER ============= */
.slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
}

.slider-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--r-lg);
    padding: 30px 0;
    position: relative;
    min-width: 0;
}

.slider-viewport::before,
.slider-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 2;
}
.slider-viewport::before {
    right: 0;
    background: linear-gradient(to left, var(--bg-soft), transparent);
}
.slider-viewport::after {
    left: 0;
    background: linear-gradient(to right, var(--bg-soft), transparent);
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(.4,.0,.2,1);
    will-change: transform;
}

.slider-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone frame (android-style) */
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9/19.5;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 10px;
    box-shadow:
        0 0 0 2px #2a2a2a,
        0 20px 50px rgba(15,23,42,0.25),
        0 8px 16px rgba(15,23,42,0.15);
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #0a0a0a;
    border-radius: 50%;
    z-index: 3;
}
.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    display: block;
    background: #000;
}

.slider-slide:hover .phone-frame {
    transform: translateY(-10px) scale(1.03);
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
    flex-shrink: 0;
    z-index: 3;
}
.slider-btn:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: scale(1.08);
}
.slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.slider-btn:disabled:hover {
    background: #fff;
    color: var(--text);
    transform: none;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--t);
}
.slider-dots button:hover { background: var(--text-muted); }
.slider-dots button.active {
    background: var(--gradient);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .app-download-hero { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .app-actions { justify-content: center; }
    .slider-slide { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
    .slider-slide { flex: 0 0 100%; }
    .slider-viewport::before, .slider-viewport::after { width: 0; }
    .qr-frame img { width: 180px; height: 180px; }
    .phone-frame { max-width: 220px; }
    .btn-google-play { padding: 12px 18px; }
    .btn-gp-text strong { font-size: 16px; }
}
