/* Jnista Homepage - Fixed & Enhanced Version with Prompt Font & Marquee */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700;800&display=swap');

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.jnista-homepage {
    font-family: 'Kanit', sans-serif;
    background: #E7243B;
    overflow-x: hidden;
    color: #ffffff;
    line-height: 1.6;
}

/* Headings use Prompt font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', sans-serif;
}

.jn-main-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ==================== HEADER ==================== */
.jn-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.jn-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jn-logo-img {
    height: 87px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.jn-logo-img:hover {
    transform: scale(1.05);
}

.jn-brand-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Header Navigation Button */
.jn-header-nav {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.jn-nav-btn {
    padding: 10px 25px;
    background: rgba(254, 214, 56, 0.95);
    color: #000000;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.jn-nav-btn:hover {
    background: rgba(255, 140, 66, 0.95);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.jn-btn-mobile {
    display: none;
}

/* ==================== HERO SECTION ==================== */
.jn-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.jn-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.jn-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: url('https://jnista.com/wp-content/uploads/2025/07/line_art_white_on_transparent.png') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    z-index: 1;
}

.jn-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.jn-hero-image-container {
    position: relative;
    flex: 1;
}

.jn-hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.jn-hero-image:hover {
    transform: scale(1.05);
}

.jn-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(254, 214, 56, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.jn-hero-text {
    flex: 1;
}

.jn-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.jn-highlight {
    color: #FED638;
    text-shadow: 0 0 30px rgba(254, 214, 56, 0.6);
}

.jn-hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.jn-hero-description strong {
    color: #FED638;
    font-weight: 600;
}

/* ==================== IMPROVED BUTTONS ==================== */
.jn-cta-button {
    display: inline-block;
    padding: 18px 50px;
    font-family: 'Kanit', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.jn-cta-primary {
    background: #E7243B;
    color: #ffffff;
}

.jn-cta-primary:hover {
    background: #FED638;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 214, 56, 0.5);
    border-color: #FED638;
}

.jn-cta-secondary {
    background: #408aee;
    color: #ffffff;
}

.jn-cta-secondary:hover {
    background: #FED638;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 214, 56, 0.5);
    border-color: #FED638;
}

.jn-cta-wedding {
    background: linear-gradient(135deg, #E7243B, #ff7fa5);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.jn-cta-wedding:hover {
    background: linear-gradient(135deg, #FED638, #ffb84d);
    color: #000000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(254, 214, 56, 0.6);
}

.jn-cta-icon {
    font-size: 1.5rem;
}

/* ==================== FLOATING ELEMENTS ==================== */
.jn-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.jn-float {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(254, 214, 56, 0.2), rgba(255, 127, 165, 0.2));
}

.jn-float-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
}

.jn-float-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
}

.jn-float-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
}

/* ==================== VALUE SECTION ==================== */
.jn-value-section {
    position: relative;
    padding: 120px 20px;
    background: #E7243B;
    overflow: hidden;
}

.jn-section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.jn-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.jn-section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #FED638;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Prompt', sans-serif;
}

.jn-section-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ==================== TIPS SECTION ==================== */
.jn-tips-section {
    margin-bottom: 80px;
}

.jn-tips-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    color: #FED638;
    margin-bottom: 50px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Prompt', sans-serif;
}

.jn-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.jn-tip-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.jn-tip-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(254, 214, 56, 0.5);
    box-shadow: 0 15px 50px rgba(254, 214, 56, 0.3);
}

.jn-tip-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FED638, #ff7fa5);
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.jn-tip-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FED638;
    margin-bottom: 12px;
    margin-top: 40px;
    font-family: 'Prompt', sans-serif;
}

.jn-tip-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== CHARACTERS MARQUEE SECTION ==================== */
.jn-characters-section {
    margin: 80px 0;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.jn-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.jn-marquee-content {
    display: flex;
    gap: 60px;
    animation: marquee 25s linear infinite;
    width: fit-content;
}

.jn-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.jn-character {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.4s ease;
}

.jn-character:hover {
    transform: scale(1.15) translateY(-10px);
    filter: drop-shadow(0 15px 40px rgba(254, 214, 56, 0.5));
}

/* ==================== VALUE CARDS ==================== */
.jn-value-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 80px 0 60px;
}

.jn-value-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.jn-value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(254, 214, 56, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.jn-value-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.jn-value-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FED638;
    margin-bottom: 15px;
    font-family: 'Prompt', sans-serif;
}

.jn-value-card-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.jn-value-cta {
    text-align: center;
    margin-top: 60px;
}

/* ==================== WEDDING SECTION ==================== */
.jn-wedding-section {
    position: relative;
    padding: 120px 20px;
    background: #E7243B;
    overflow: hidden;
}

.jn-wedding-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 36, 59, 0.9) 0%, rgba(37, 26, 247, 0.3) 100%);
    z-index: 0;
}

/* Wedding Header */
.jn-wedding-header {
    text-align: center;
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);
}

.jn-wedding-hearts-decoration {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.jn-wedding-couple-name {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 40px rgba(254, 214, 56, 0.6);
    letter-spacing: 8px;
    font-family: 'Prompt', sans-serif;
}

.jn-wedding-divider {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FED638, transparent);
    margin: 0 auto 30px;
}

.jn-wedding-quote {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    font-style: italic;
    font-weight: 400;
}

/* Wedding Main Image - No Overlay */
.jn-wedding-main-content {
    max-width: 900px;
    margin: 0 auto 60px;
}

.jn-wedding-image-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}

.jn-wedding-image-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(254, 214, 56, 0.6);
    box-shadow: 0 30px 100px rgba(254, 214, 56, 0.5);
}

.jn-wedding-image-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.jn-wedding-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: all 0.6s ease;
}

.jn-wedding-image-card:hover .jn-wedding-main-image {
    transform: scale(1.05);
}

/* Wedding Invitation */
.jn-wedding-invitation {
    text-align: center;
    margin: 60px 0;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.jn-invitation-text {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: #FED638;
    line-height: 1.8;
    margin-bottom: 25px;
    font-family: 'Prompt', sans-serif;
}

.jn-invitation-divider {
    font-size: 2rem;
    margin: 25px 0;
}

.jn-invitation-subtext {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.jn-wedding-cta {
    text-align: center;
    margin-top: 60px;
}

/* ==================== FOOTER ==================== */
.jn-footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
}

.jn-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jn-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.jn-footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.jn-footer-logo-img {
    height: 60px;
    object-fit: contain;
}

.jn-footer-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.jn-footer-text {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ==================== BACK TO TOP ==================== */
.jn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #E7243B;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.jn-back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.jn-back-to-top:hover {
    background: #FED638;
    color: #000000;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(254, 214, 56, 0.5);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.jn-animate-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .jn-header-container {
        padding: 10px 15px;
    }
    
    .jn-logo-img {
        height: 60px;
    }
    
    .jn-brand-text {
        font-size: 1rem;
        flex-grow: 1;
        text-align: center;
    }
    
    .jn-btn-desktop {
        display: none;
    }
    
    .jn-btn-mobile {
        display: inline !important;
    }
    
    .jn-hero-section {
        padding: 100px 20px 60px;
    }
    
    .jn-hero-content {
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .jn-hero-image {
        max-width: 300px;
    }
    
    .jn-hero-text {
        text-align: center;
    }
    
    .jn-cta-button {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
    
    .jn-tips-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .jn-character {
        width: 120px;
    }
    
    .jn-marquee-content {
        gap: 40px;
    }
    
    .jn-value-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .jn-wedding-header {
        padding: 40px 20px;
    }
    
    .jn-wedding-invitation {
        padding: 40px 20px;
    }
    
    .jn-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .jn-footer-logo {
        flex-direction: column;
    }
    
    .jn-footer-text {
        text-align: center;
    }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1c1b1c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FED638, #ff7fa5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff7fa5, #251af7);
}