/* ==================================================
   RAVE NATIONS - COMPLETE HOMEPAGE STYLE (FULLY RESPONSIVE)
   THEME: BLACK / WHITE / DARK SHINY PURPLE
   FONT: TITILLIUM WEB
   ================================================== */

:root {
    --home-black: #101015;
    --home-dark: #17171d;
    --home-white: #ffffff;
    --home-purple: #9353d3;
    --home-purple-dark: #7237b6;
    --home-purple-glow: rgba(147, 83, 211, 0.45);
    --home-grey: #f7f7f9;
    --home-text: #73737e;
    --home-border: #e9e9ef;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Titillium Web", sans-serif;
    background-color: var(--home-black);
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

#main-content {
    padding-top: 0;
}

.rn-container {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}

.rn-section {
    padding: 80px 0;
}

.rn-section-center {
    text-align: center;
}

@keyframes rnFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rn-fade-in {
    animation: rnFadeUp 0.8s ease-out forwards;
}

.rn-section-label,
.rn-small-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--home-purple-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.rn-section-title {
    margin: 0;
    font-size: clamp(26px, 3.5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
}

.rn-section-title span {
    color: var(--home-purple-dark);
    text-shadow: 0 0 20px rgba(114, 55, 182, 0.2);
}

.rn-section-description {
    max-width: 680px;
    margin: 16px auto 0 auto;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}

.rn-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 45px;
}

.rn-section-header > p {
    max-width: 320px;
    margin: 0;
    color: var(--home-text);
    line-height: 1.7;
}

/* ==========================================
   SECTION 02 - HERO SECTION
   ========================================== */

.rn-featured-section {
    position: relative;
    padding: calc(var(--rn-fixed-nav-height, 90px) + 40px) 0 90px;
    background: linear-gradient(135deg, rgba(16, 16, 21, 0.90) 0%, rgba(29, 21, 45, 0.84) 100%), url('../assets/design/hero.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* safer on mobile viewports */
    color: #ffffff;
}

.rn-featured-section .rn-section-label {
    color: #bfa1ff;
    font-size: 13px;
    text-shadow: 0 0 10px rgba(147, 83, 211, 0.5);
}

.rn-featured-section .rn-section-title {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 50px);
}

.rn-featured-section .rn-section-title span {
    color: #bfa1ff;
    text-shadow: 0 0 20px rgba(147, 83, 211, 0.4);
}

.rn-featured-section .rn-section-description {
    color: #d1c7e0;
    font-size: 16.5px;
    line-height: 1.75;
    max-width: 640px;
    text-align: left;
    margin-left: 0;
}

.rn-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.rn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.rn-featured-explore-btn,
.rn-dark-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 24px;
    background: #111114;
    color: #ffffff;
    border-radius: 8px;
    font-family: "Titillium Web", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-featured-explore-btn:hover,
.rn-dark-button:hover {
    background: var(--home-purple-dark);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--home-purple-glow);
}

.phase2-btn-override {
    margin-top: 0;
    background: var(--home-purple-dark);
    box-shadow: 0 0 20px rgba(114, 55, 182, 0.4);
}

.rn-hero-poster-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.rn-hero-poster-item {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.rn-hero-poster-item.rn-poster-active {
    display: block;
    opacity: 1;
}

.rn-poster-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #111114;
    border: 1px solid rgba(147, 83, 211, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.rn-poster-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
}

/* ==========================================
   SECTION 03 - BRAND RIBBON
   ========================================== */

.rn-brand-strip {
    overflow: hidden;
    padding: 22px 0;
    background: linear-gradient(135deg, #15111d 0%, #1e152d 100%);
    border-top: 1px solid rgba(147, 83, 211, 0.25);
    border-bottom: 1px solid rgba(147, 83, 211, 0.25);
    box-shadow: inset 0 0 30px rgba(114, 55, 182, 0.15);
}

.rn-brand-strip-track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}

.rn-brand-strip-track span {
    color: #f3effc;
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(147, 83, 211, 0.3);
}

.rn-brand-logo-text {
    color: #bfa1ff !important;
    letter-spacing: 2px !important;
}

.rn-brand-strip-track i {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--home-purple);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--home-purple);
}

/* ==========================================
   SECTION 04 - INTRODUCTION
   ========================================== */

#introduction .rn-section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.rn-intro {
    background: #ffffff;
    color: #111114;
}

.rn-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.rn-intro-card {
    padding: 30px 22px;
    background: #fafafa;
    border: 1px solid #ececf0;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rn-intro-card:hover {
    transform: translateY(-6px);
    border-color: #bfa1ff;
    box-shadow: 0 15px 35px rgba(114, 55, 182, 0.08);
}

.rn-intro-number {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    background: #f2ebff;
    border-radius: 14px;
    color: var(--home-purple-dark);
    font-size: 18px;
    font-weight: 900;
}

.rn-intro-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #111114;
}

.rn-intro-card p {
    margin: 0;
    color: var(--home-text);
    line-height: 1.7;
}

/* ==========================================
   SECTION 05 - EVENT CARDS
   ========================================== */

.rn-events {
    background: #f7f7f9;
}

.rn-event-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.rn-event-card {
    width: 350px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9e9ee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rn-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.rn-event-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #17141d;
    flex-shrink: 0;
}

.rn-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.rn-event-card:hover .rn-event-image img {
    transform: scale(1.05);
}

.rn-event-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(17, 17, 20, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
}

.rn-event-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rn-event-content-wrap {
    flex-grow: 1;
}

.rn-event-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #111114;
}

.rn-event-body p {
    margin: 6px 0;
    color: var(--home-text);
    font-size: 14.5px;
    line-height: 1.6;
}

.rn-event-body p strong {
    color: var(--home-purple-dark);
}

.rn-event-btn {
    margin-top: 20px; 
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: block;
}

/* ==========================================
   SECTION 06 - ABOUT / VISION & MISSION
   ========================================== */

.rn-about {
    background: #ffffff;
    color: #111114;
}

.rn-about-container {
    max-width: 900px;
    text-align: center;
}

/* ==========================================
   SECTION 07 - EXPERIENCE
   ========================================== */

.rn-experience {
    background: #111114;
    color: #ffffff;
}

.rn-experience .rn-section-label {
    color: var(--home-purple);
}

.rn-experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.rn-experience-card {
    min-height: 240px;
    padding: 28px;
    background: #1c1c21;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rn-experience-card:hover {
    border-color: var(--home-purple);
    transform: translateY(-5px);
}

.rn-experience-card > span {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--home-purple);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 1px;
}

.rn-experience-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.rn-experience-card p {
    color: #b7b7c1;
    line-height: 1.7;
    font-size: 14.5px;
}

/* ==========================================
   SECTION 08 - TICKETING PREVIEW (3D TICKET)
   ========================================== */

.rn-ticketing {
    background: #f7f7f9;
    color: #111114;
}

.rn-ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.rn-ticket-content > p {
    color: var(--home-text);
    font-size: 16.5px;
    line-height: 1.8;
}

.rn-ticket-steps {
    display: grid;
    gap: 14px;
    margin: 28px 0 15px;
}

.rn-ticket-steps > div {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #111114;
}

.rn-ticket-steps > div > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #f2ebff;
    border-radius: 50%;
    color: var(--home-purple-dark);
    font-weight: 800;
    flex-shrink: 0;
}

.rn-ticket-visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    width: 100%;
}

.ticket-wrapper {
    position: relative;
    width: 380px;
    max-width: 100%;
    height: 215px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, filter 0.3s ease;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    margin: 0 auto;
}

.ticket {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22, 16, 38, 0.98), rgba(10, 7, 18, 0.99));
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(216, 180, 254, 0.2), 0 0 30px rgba(168, 85, 247, 0.15);
    transform: translateZ(0);
}

.ticket::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(216, 180, 254, 0.08) 40%, rgba(168, 85, 247, 0.25) 50%, transparent 60%);
    mix-blend-mode: overlay;
    opacity: var(--glow-opacity, 0.3);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ticket-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 2px dashed rgba(192, 132, 252, 0.25);
    position: relative;
    box-sizing: border-box;
}

.ticket-main::before, .ticket-main::after {
    content: '';
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #f7f7f9;
    border-radius: 50%;
    border: 1px solid rgba(192, 132, 252, 0.35);
}
.ticket-main::before { top: -10px; }
.ticket-main::after { bottom: -10px; }

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.brand-title span {
    color: #c4b5fd;
}

.vip-badge {
    background: linear-gradient(135deg, #9333ea, #a855f7);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.6);
}

.event-info h3 {
    color: #f8fafc;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 4px 0;
}

.event-details {
    display: flex;
    gap: 12px;
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 600;
}

.event-details span span {
    color: #c4b5fd;
}

.ticket-stub {
    width: 100px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 11, 26, 0.5);
    box-sizing: border-box;
}

.barcode {
    width: 100%;
    height: 48px;
    background: repeating-linear-gradient(90deg, #cbd5e1, #cbd5e1 2px, transparent 2px, transparent 4px, #ffffff 4px, #ffffff 6px);
    border-radius: 4px;
}

.ticket-id {
    color: #94a3b8;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.stub-price {
    color: #c4b5fd;
    font-size: 13.5px;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

/* ==========================================
   SECTION 09 - GALLERY (HIDDEN)
   ========================================== */

.rn-gallery {
    display: none !important;
}

/* ==========================================
   SECTION 10 - CONTACT
   ========================================== */

.rn-contact {
    background: #17131d;
    color: #ffffff;
}

.rn-contact .rn-section-label {
    color: var(--home-purple);
}

.rn-contact .rn-section-title span {
    display: block;
    color: var(--home-purple);
    text-shadow: 0 0 25px rgba(147, 83, 211, 0.3);
}

.rn-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 30px;
    padding: 14px 28px;
    background: var(--home-purple);
    border-radius: 8px;
    color: #111114;
    font-weight: 800;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(147, 83, 211, 0.3);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-contact-button:hover {
    background: #a86fee;
    color: #111114;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 111, 238, 0.45);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (ALL DEVICES)
   ========================================== */

@media (max-width: 1024px) {
    .rn-hero-grid,
    .rn-ticket-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .rn-featured-section .rn-section-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .rn-hero-actions {
        justify-content: center;
    }

    .rn-hero-poster-wrapper {
        max-width: 320px;
    }

    .rn-ticket-steps {
        max-width: 380px;
        margin: 25px auto;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .rn-intro-grid,
    .rn-experience-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rn-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rn-section-header > p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .rn-container {
        width: calc(100% - 32px);
    }

    .rn-section {
        padding: 55px 0;
    }

    .rn-featured-explore-btn,
    .rn-dark-button,
    .rn-contact-button {
        width: 100%;
        box-sizing: border-box;
    }

    .rn-brand-strip-track span {
        font-size: 11px;
        letter-spacing: 1px;
    }

    /* Ticket mobile scaling adjustments */
    .ticket-wrapper {
        width: 100%;
        max-width: 320px;
        height: 185px;
    }

    .ticket-main {
        padding: 16px;
    }

    .brand-title {
        font-size: 14.5px;
    }

    .vip-badge {
        font-size: 9px;
        padding: 2px 7px;
    }

    .event-info h3 {
        font-size: 16.5px;
    }

    .event-details {
        font-size: 10.5px;
        gap: 10px;
    }

    .ticket-stub {
        width: 90px;
        padding: 14px 8px;
    }

    .barcode {
        height: 40px;
    }

    .stub-price {
        font-size: 12.5px;
    }
}

@media (max-width: 380px) {
    .ticket-wrapper {
        max-width: 290px;
        height: 170px;
    }

    .ticket-main {
        padding: 12px;
    }

    .brand-title {
        font-size: 13px;
    }

    .event-info h3 {
        font-size: 15px;
    }

    .ticket-stub {
        width: 80px;
        padding: 12px 6px;
    }

    .stub-price {
        font-size: 11.5px;
    }
}