/* Defaults */
html { height: 100vh; height: 100dvh; }

* { margin: 0; padding: 0; box-sizing: border-box; }

a { -webkit-tap-highlight-color: transparent; }

body { position: relative; min-height: -webkit-fill-available; min-height: 100vh; background: #000000; 
    font-family: 'Nata Sans', system-ui, sans-serif;
    color: #e0e0e0;
    overflow-x: clip;
}

h1 {
    font-family: 'Chango', cursive, system-ui, sans-serif;
}
h2 {
    font-family: 'Braah One', system-ui, sans-serif;
    font-size: 2rem;
}
h3 {
    font-family: 'Braah One', system-ui, sans-serif;
}

/* ─── COSMIC BACKGROUND ─── */
.cosmic-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
    animation: deepSpaceDrift 40s ease-in-out infinite;
    z-index: -2;
}
@keyframes deepSpaceDrift {
    0%   { background: linear-gradient(135deg, #000000 0%, rgba(35,  0,  70, 0.85) 30%, rgba(0,  10, 55, 0.65) 65%, #000000 100%); }
    5%   { background: linear-gradient(153deg, #000000 0%, rgba(30,  0,  65, 0.80) 32%, rgba(0,  12, 58, 0.60) 64%, #000000 100%); }
    10%  { background: linear-gradient(171deg, #000000 0%, rgba(20,  0,  55, 0.78) 33%, rgba(0,  15, 62, 0.68) 63%, #000000 100%); }
    15%  { background: linear-gradient(189deg, #000000 0%, rgba(0,   12, 55, 0.82) 31%, rgba(25,  0, 60, 0.58) 66%, #000000 100%); }
    20%  { background: linear-gradient(207deg, #000000 0%, rgba(0,   15, 60, 0.88) 34%, rgba(28,  0, 62, 0.52) 65%, #000000 100%); }
    25%  { background: linear-gradient(225deg, #000000 0%, rgba(0,   18, 65, 0.90) 35%, rgba(30,  0, 58, 0.55) 64%, #000000 100%); }
    30%  { background: linear-gradient(243deg, #000000 0%, rgba(18,   0, 60, 0.85) 33%, rgba(0,  10, 52, 0.72) 62%, #000000 100%); }
    35%  { background: linear-gradient(261deg, #000000 0%, rgba(38,   0, 78, 0.82) 30%, rgba(0,   8, 48, 0.70) 61%, #000000 100%); }
    40%  { background: linear-gradient(279deg, #000000 0%, rgba(42,   0, 82, 0.78) 29%, rgba(0,  10, 45, 0.68) 63%, #000000 100%); }
    45%  { background: linear-gradient(297deg, #000000 0%, rgba(30,   0, 65, 0.74) 31%, rgba(48,  0, 16, 0.30) 68%, #000000 100%); }
    50%  { background: linear-gradient(315deg, #000000 0%, rgba(0,    8, 48, 0.88) 30%, rgba(18,  0, 52, 0.72) 65%, #000000 100%); }
    55%  { background: linear-gradient(333deg, #000000 0%, rgba(0,   10, 52, 0.84) 32%, rgba(22,  0, 58, 0.68) 64%, #000000 100%); }
    60%  { background: linear-gradient(351deg, #000000 0%, rgba(15,   0, 55, 0.86) 34%, rgba(0,  14, 58, 0.62) 63%, #000000 100%); }
    65%  { background: linear-gradient(  9deg, #000000 0%, rgba(0,   16, 60, 0.82) 31%, rgba(32,  0, 68, 0.58) 66%, #000000 100%); }
    70%  { background: linear-gradient( 27deg, #000000 0%, rgba(0,   20, 64, 0.78) 33%, rgba(38,  0, 72, 0.62) 64%, #000000 100%); }
    75%  { background: linear-gradient( 45deg, #000000 0%, rgba(52,   0, 20, 0.38) 25%, rgba(32,  0, 68, 0.80) 58%, #000000 100%); }
    80%  { background: linear-gradient( 63deg, #000000 0%, rgba(45,   0, 75, 0.85) 30%, rgba(0,  12, 52, 0.62) 65%, #000000 100%); }
    85%  { background: linear-gradient( 81deg, #000000 0%, rgba(40,   0, 72, 0.82) 32%, rgba(0,  10, 50, 0.66) 64%, #000000 100%); }
    90%  { background: linear-gradient( 99deg, #000000 0%, rgba(28,   0, 62, 0.80) 33%, rgba(0,  13, 56, 0.70) 63%, #000000 100%); }
    95%  { background: linear-gradient(117deg, #000000 0%, rgba(22,   0, 58, 0.83) 31%, rgba(0,  11, 55, 0.67) 65%, #000000 100%); }
    100% { background: linear-gradient(135deg, #000000 0%, rgba(35,  0,  70, 0.85) 30%, rgba(0,  10, 55, 0.65) 65%, #000000 100%); }
}

/* ─── STAR BASE ─── */
.star { position: absolute; background: white; border-radius: 50%;
    will-change: transform, opacity, left, top;
}
#stars { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none;
    z-index: -1;
}

/* ─── FAR STARS: tiny, dim, slow twinkle ─── */
.star-far {
    opacity: 0.35;
    animation: twinkleFar 6s ease-in-out infinite;
}
@keyframes twinkleFar {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}
/* ─── MID STARS: medium, moderate glow ─── */
.star-mid {
    opacity: 0.5;
    animation: twinkleMid 4s ease-in-out infinite;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}
@keyframes twinkleMid {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
/* ─── CLOSE STARS: big, bright, purple-white glow halo ─── */
.star-close {
    opacity: 0.8;
    animation: twinkleClose 3s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(200, 200, 255, 0.5), 0 0 8px rgba(167, 139, 250, 0.2);
}
@keyframes twinkleClose {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Hero Section */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.hero h1 {
    background: linear-gradient(135deg, rgba(174, 22, 217, 0.9) 0%, rgba(114, 103, 255, 0.85) 25%, rgba(100, 44, 181, 0.8) 50%, rgba(211, 52, 209, 0.7) 75%, rgba(45, 168, 242, 0.6) 100%);
    font-size: clamp(2rem, 7vw, 4.5rem);
    margin-bottom: 1rem;
    animation: glow 3s ease-in-out infinite;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(204, 139, 250, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(250, 96, 96, 0.45)); }
}
.hero p { opacity: 0.9;
    font-family: 'Mouse Memoirs';
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin-bottom: 2rem;
}

.cta-button { cursor: pointer; text-decoration: none; border-radius: 50px; padding: 1rem 2rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
    background: rgba(167, 139, 250, 0.2);
    border: 2px solid #a78bfa;
    color: #e0e0e0;
    transition: all 0.3s ease;
    display: inline-block;
}
.cta-button:hover {
    background: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.6);
    transform: translateY(-3px);
}

/* Content Section */
.content-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 4rem 1rem;
    position: relative;
    z-index: 10;
}

.grid-item { display: flex; flex-direction: column; gap: 1rem; overflow: hidden; max-width: 100%; transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 5rem;
}
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(167, 139, 250, 0.3);
    border-color: #a78bfa;
}
.grid-item h3 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}
.grid-item p {
    opacity: 0.9;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Random Meme */
.random-meme img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.random-meme:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

/* Finance Box */
.finance-box { position: relative; border: 1px solid rgba(34, 197, 94, 0.2); }
.finance-box:hover {
    border-color: #22c55e;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.2);
}
.finance-box h2 {
    font-size: clamp(2rem, 3vw, 2.25rem);
    color: #22c55e;
}
.quickLinks { display: flex; flex-direction: column;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1rem;
    gap: 0.8rem;
}
.qlHeader { text-align: center; margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

.qlBtns { display: grid;
    grid-template-columns: repeat(3, minmax(125px, 1fr));
    gap: 1rem;
}
.quickLinks .qlBtn { text-decoration: none; text-align: center; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 1.2rem 0.8rem;
    background: rgba(34, 197, 94, 0.08);
    border: 2px solid rgba(34, 197, 94, 0.25); border-radius: 12px;
    color: #22c55e;
    font-size: 0.85rem; font-weight: 600;
    
    /* Flex setup for internal alignment */
    display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden;
    gap: 0.6rem;
}
.quickLinks .qlBtn:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80; /* Slight color pop on hover */
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
}
.quickLinks .qlBtn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ─── STICKY FOOTER ─── */
.sticky-footer { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(15px); z-index: 999; transition: transform 0.3s ease;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #0000008a 0% 0%, rgb(35 0 70 / 55%) 35%, rgba(0, 10, 55, 0.55) 65%, #0000008a 100%);
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}
.sticky-footer.footer-hidden { transform: translateY(100%); }
.footer-copyright { font-size: 0.8rem; opacity: 0.6; color: #e0e0e0; }
.footer-nav { display: flex;
    gap: 1.5rem;
}
.footer-nav a { text-decoration: none; transition: all 0.3s ease;
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 500;
}
.footer-nav a:hover { color: #a78bfa; }

/* Tab & Phone Optimizations */
@media (max-width: 900px) {
    h2 { text-align: center; }
    .content-section { padding: 3rem 0.5rem; }
    /* Finance Box Mobile */
    .finance-box h2 { margin-bottom: 1rem; }
    .quickLinks { flex-direction: column; }
    .qlBtns { flex-direction: column; }
    .quickLinks .qlBtn { width: 100%; }
}
@media (max-width: 550px) {
    .qlBtns { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
    .hero { padding: 1rem; }
    .cta-button { padding: 0.8rem 1.5rem; }

    .sticky-footer { flex-direction: column; gap: 0.3rem; padding: 0.5rem 1rem; }
    .footer-nav { gap: 1rem; }
    .footer-nav a { font-size: 0.8rem; }
}