/* ==========================================
   AR VESAK ZONE - CST 19TH BATCH
   DESIGN SYSTEM & CUSTOM CORE CSS
   ========================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-gradient: linear-gradient(135deg, #090314 0%, #0d0621 40%, #15092f 75%, #070310 100%);
    
    /* Vibrant harmonized colors */
    --color-amber-gold: #ffaa00;
    --color-gold-glow: #ffe79a;
    --color-warm-orange: #ff5e00;
    --color-neon-cyan: #00f3ff;
    --color-electric-blue: #0055ff;
    --color-cyber-purple: #c01aff;
    --color-deep-violet: #1a0b36;
    
    /* Functional Colors */
    --text-primary: #ffffff;
    --text-secondary: #c9c5d8;
    --glass-bg: rgba(13, 6, 26, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-active: rgba(255, 255, 255, 0.2);
    
    /* Fonts */
    --font-sinhala: 'Abhaya Libre', serif;
    --font-tech: 'Orbitron', sans-serif;
    --font-sans: 'Outfit', sans-serif;
}

/* --- Resets & Global Rules --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide standard cursor for premium custom cursor experience */
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: var(--font-sans);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Fallback cursor if device is touch-based or custom cursor fails */
@media (hover: none) {
    * {
        cursor: auto !important;
    }
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}

/* --- Custom Cursor --- */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, border-color 0.3s, background-color 0.3s;
}

/* Cursor states */
.custom-cursor.hover-lantern {
    background: var(--color-amber-gold);
    width: 12px;
    height: 12px;
}
.custom-cursor-follower.hover-lantern {
    border-color: var(--color-amber-gold);
    background: rgba(255, 170, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
    transform: translate(-50%, -50%) scale(1.3);
}

.custom-cursor.hover-city {
    background: var(--color-neon-cyan);
    width: 12px;
    height: 12px;
}
.custom-cursor-follower.hover-city {
    border-color: var(--color-neon-cyan);
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.3);
}

/* --- Ambient Lights (Background Depth) --- */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
    animation: pulseAmbient 12s infinite alternate ease-in-out;
}

.gold-light {
    width: 500px;
    height: 500px;
    background: var(--color-amber-gold);
    top: -100px;
    left: -100px;
}

.cyan-light {
    width: 600px;
    height: 600px;
    background: var(--color-electric-blue);
    bottom: -150px;
    right: -100px;
    animation-delay: -6s;
}

@keyframes pulseAmbient {
    0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
    100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.25; }
}

/* --- Celestial Background Layer --- */
.celestial-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Stars */
#stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Full Moon & Glowing Beams */
.moon-glow-container {
    position: absolute;
    top: 10%;
    right: 12%;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-moon {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #fffff3 30%, #fff8e3 80%, #ffd080 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(255, 240, 200, 0.8),
        0 0 80px rgba(255, 208, 128, 0.4),
        0 0 150px rgba(255, 208, 128, 0.2);
    z-index: 2;
    position: relative;
    animation: pulseMoon 6s infinite alternate ease-in-out;
}

.moon-beams {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,230,170,0.15) 0%, rgba(255,230,170,0.03) 60%, transparent 100%);
    border-radius: 50%;
    animation: spinBeams 40s linear infinite;
    z-index: 1;
}

@keyframes pulseMoon {
    0% { transform: scale(1); box-shadow: 0 0 30px rgba(255,240,200,0.8), 0 0 80px rgba(255,208,128,0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 45px rgba(255,240,200,0.9), 0 0 110px rgba(255,208,128,0.6); }
}

@keyframes spinBeams {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Lanterns Canvas */
#lanterns-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* --- Hero Section & Glassmorphic Container --- */
.hero-container {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 20px;
}

.glass-card-wrapper {
    position: relative;
    max-width: 780px;
    width: 100%;
    border-radius: 28px;
    padding: 1px;
    /* Soft border glowing aura */
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.3) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 243, 255, 0.3) 100%);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
    animation: fadeInCard 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 27px;
    padding: 50px 45px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hexagonal background subtle design */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.01) 0%, transparent 80%);
    pointer-events: none;
}

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

/* --- Tech Badge (CST Batch info) --- */
.tech-badge-container {
    margin-bottom: 25px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.02);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-amber-gold);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-amber-gold);
    animation: pulseDot 2s infinite ease-in-out;
}

.tech-badge .superscript {
    font-size: 0.65rem;
    vertical-align: super;
    margin-left: 1px;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- Main Typography (Beautiful Sinhala Fonts & Glowing Titles) --- */
.sinhala-title {
    font-family: var(--font-sinhala);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.gold-gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, #ffeaa8 35%, #ffb61a 70%, #d48000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Ambient title behind-glow */
.sinhala-title::after {
    content: 'නමුණුකුල, වෙසක් සඳ';
    position: absolute;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: transparent;
    -webkit-text-stroke: 0;
    text-shadow: 0 0 35px rgba(255, 179, 26, 0.35);
    pointer-events: none;
}

.sinhala-separator {
    color: #ffb61a;
    font-family: sans-serif;
    text-shadow: 0 0 10px rgba(255, 182, 26, 0.6);
}

.ar-title-wrapper {
    margin-bottom: 20px;
}

.ar-title {
    font-family: var(--font-tech);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.text-white {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.neon-cyan-text {
    background: linear-gradient(to right, #00f3ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

.text-glow-purple {
    background: linear-gradient(to right, #d05eff, #a200ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(162, 0, 255, 0.5));
}

/* --- Ornamental Divider --- */
.ornamental-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    margin: 15px 0 25px 0;
    gap: 15px;
}

.divider-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, transparent, rgba(255, 182, 26, 0.5), transparent);
}

.divider-center {
    color: var(--color-amber-gold);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.8));
    animation: rotateDharma 30s linear infinite;
}

@keyframes rotateDharma {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Description / Introduction --- */
.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 45px;
    max-width: 600px;
    font-weight: 300;
}

/* --- Premium Action Navigation Buttons --- */
.actions-container {
    display: flex;
    gap: 25px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 5;
}

.action-btn {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-decoration: none;
    position: relative;
    border-radius: 16px;
    padding: 2px; /* For beautiful border gradient */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s;
}

.btn-glow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.btn-content {
    background: rgba(18, 9, 36, 0.8);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background-color 0.4s;
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: transform 0.4s ease;
}

.btn-text-area {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-main-label {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    transition: color 0.3s;
}

.btn-sub-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 400;
    font-family: var(--font-sinhala);
    transition: color 0.3s;
}

.arrow-indicator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    margin-right: 10px;
    z-index: 2;
    transition: transform 0.4s, color 0.3s;
}

/* Button-specific Styling */

/* 1. Vesak Lantern Button (Golden/Amber theme) */
.lantern-btn {
    border: 1px solid rgba(255, 170, 0, 0.15);
}

.lantern-btn .btn-glow-layer {
    background: radial-gradient(circle at center, rgba(255, 170, 0, 0.12) 0%, transparent 80%);
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.15);
}

.lantern-btn .btn-icon {
    color: var(--color-amber-gold);
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.4));
}

.lantern-btn .glowing-core {
    animation: lanternPulse 1.5s infinite alternate ease-in-out;
}

@keyframes lanternPulse {
    0% { r: 6px; opacity: 0.6; }
    100% { r: 12px; opacity: 1; }
}

/* 2. Vesak City Button (Cyan/Blue theme) */
.city-btn {
    border: 1px solid rgba(0, 243, 255, 0.15);
}

.city-btn .btn-glow-layer {
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.12) 0%, transparent 80%);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.15);
}

.city-btn .btn-icon {
    color: var(--color-neon-cyan);
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.4));
}

.btn-svg-city rect {
    transition: transform 0.4s;
}

/* Button Hovers */
.action-btn:hover {
    transform: translateY(-6px) scale(1.03);
}

.action-btn:hover::before {
    opacity: 0;
}

.action-btn:hover .btn-glow-layer {
    opacity: 1;
}

.action-btn:hover .btn-content {
    background: rgba(18, 9, 36, 0.5);
}

.action-btn:hover .arrow-indicator {
    transform: translateX(5px);
    color: #ffffff;
}

/* Lantern Hover state details */
.lantern-btn:hover {
    box-shadow: 
        0 15px 35px rgba(255, 170, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.lantern-btn:hover .btn-icon {
    transform: scale(1.15) rotate(5deg);
    color: #ffe082;
    filter: drop-shadow(0 0 15px rgba(255, 170, 0, 0.9));
}

.lantern-btn:hover .btn-main-label {
    color: var(--color-amber-gold);
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
}

.lantern-btn:hover .arrow-indicator {
    color: var(--color-amber-gold);
    filter: drop-shadow(0 0 5px var(--color-amber-gold));
}

/* City Hover state details */
.city-btn:hover {
    box-shadow: 
        0 15px 35px rgba(0, 243, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.city-btn:hover .btn-icon {
    transform: scale(1.15);
    color: #90f7ff;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.9));
}

.city-btn:hover .btn-icon rect:nth-child(2) {
    transform: translateY(-4px);
}

.city-btn:hover .btn-main-label {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

.city-btn:hover .arrow-indicator {
    color: var(--color-neon-cyan);
    filter: drop-shadow(0 0 5px var(--color-neon-cyan));
}



/* --- Credits Footer --- */
.credits-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
    font-weight: 300;
    margin-top: auto;
    flex-shrink: 0;
}

/* --- Responsive Media Queries (Visual perfection on all displays) --- */

@media (max-width: 900px) {
    .moon-glow-container {
        width: 130px;
        height: 130px;
        top: 6%;
        right: 8%;
    }
    
    .full-moon {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 40px 30px;
    }
    
    .sinhala-title {
        font-size: 3rem;
    }
    
    .ar-title {
        font-size: 1.8rem;
        letter-spacing: 0.25em;
        gap: 10px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 35px;
    }
    
    .actions-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 100%;
    }
    

}

@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .glass-card-wrapper {
        border-radius: 20px;
    }
    
    .sinhala-title {
        font-size: 2.3rem;
        gap: 6px;
    }
    
    .ar-title {
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }
    
    .tech-badge {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .btn-content {
        padding: 12px 15px;
    }
    
    .btn-main-label {
        font-size: 1rem;
    }
    
    .btn-sub-label {
        font-size: 0.75rem;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .divider-center {
        font-size: 1rem;
    }
    
    .moon-glow-container {
        width: 90px;
        height: 90px;
        top: 4%;
        right: 5%;
    }
    
    .full-moon {
        width: 45px;
        height: 45px;
    }
}

/* --- AR Instructions Box Styling --- */
.ar-instructions-box {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 25px 30px;
    width: 100%;
    max-width: 680px;
    text-align: left;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.01);
}

.instructions-header {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-amber-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.instruction-column {
    background: rgba(18, 9, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
}

.instruction-column p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 10px;
}

.os-tag {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
}

.ios-tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.android-tag {
    color: var(--color-neon-cyan);
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.15);
}

.common-instructions {
    background: rgba(255, 170, 0, 0.03);
    border: 1px solid rgba(255, 170, 0, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.common-instructions p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-instructions i {
    color: var(--color-amber-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Media query updates for instructions box */
@media (max-width: 600px) {
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .ar-instructions-box {
        padding: 20px;
        margin-top: 30px;
    }
}

