/* =========================================================
   Kalayaan Interactive — Website Styles
   ========================================================= */

/* ----- Custom Properties ----- */
:root {
    --bg-void:   #050505;
    --bg-deep:   #0a0a0a;
    --bg-raised: #111111;
    --bg-surf:   #1a1a1a;

    --gold:       #d4a537;
    --gold-light: #e8c55a;
    --gold-pale:  #f0d88a;
    --gold-dark:  #a67c1a;
    --gold-deep:  #7a5a10;
    --gold-glow:  rgba(212, 165, 55, 0.12);

    --amber: #c4941e;

    --text:      #e8e0d0;
    --text-dim:  #9a9080;
    --text-mute: #5a5448;

    --ff-display: 'Chakra Petch', sans-serif;
    --ff-body:    'Outfit', sans-serif;

    --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-deep);
}
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

::selection { background: rgba(212,165,55,.3); color: var(--text); }

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--ff-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ----- Grain Overlay ----- */
.grain-overlay {
    position: fixed;
    inset: -50%;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: .028;
    pointer-events: none;
    z-index: 9999;
}

/* ----- Utility ----- */
.container { max-width: 880px; margin: 0 auto; padding: 0 2rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 90% 80% at 50% 42%, rgba(35,28,12,1) 0%, rgba(35,28,12,.4) 35%, rgba(35,28,12,0) 70%),
        var(--bg-deep);
    overflow: hidden;
}

/* Fade particles/hero smoothly into the next section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-deep) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Canvas */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

/* Diagonal light beams — removed, caused visible edge seams */

/* Hero content */
.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    opacity: 0;
    animation: hero-in 1.6s var(--ease-expo) .15s forwards;
}
@keyframes hero-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mascot */
.mascot-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,165,55,.16) 0%, rgba(212,165,55,.06) 40%, transparent 70%);
    filter: blur(40px);
    animation: glow-pulse 4.5s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
    0%   { opacity: .5; transform: scale(.88); }
    100% { opacity: .9; transform: scale(1.12); }
}

.mascot {
    position: relative;
    z-index: 1;
    width: 280px;
    filter: drop-shadow(0 0 25px rgba(212,165,55,.2)) drop-shadow(0 0 60px rgba(10,10,10,.8));
    opacity: 0;
    transform: scale(.88);
    animation: mascot-in 2.2s var(--ease-expo) .35s forwards;
}
@keyframes mascot-in {
    from { opacity: 0; transform: scale(.84); filter: drop-shadow(0 0 0 rgba(212,165,55,0)) drop-shadow(0 0 0 rgba(10,10,10,0)); }
    to   { opacity: 1; transform: scale(1);   filter: drop-shadow(0 0 25px rgba(212,165,55,.2)) drop-shadow(0 0 60px rgba(10,10,10,.8)); }
}

/* Logo */
.logo {
    width: 420px;
    opacity: 0;
    transform: translateY(12px);
    animation: logo-in 1.8s var(--ease-expo) .9s forwards;
}
@keyframes logo-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    opacity: 0;
    animation: fade-in 1s ease 2.2s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

.scroll-label {
    font-family: var(--ff-display);
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.scroll-chevron {
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--text-mute);
    border-bottom: 1px solid var(--text-mute);
    transform: rotate(45deg);
    animation: chevron-bob 2s ease-in-out infinite;
}
@keyframes chevron-bob {
    0%, 100% { opacity: .25; transform: rotate(45deg) translateY(-2px); }
    50%      { opacity: .55; transform: rotate(45deg) translateY(2px); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
    position: relative;
    padding: 6rem 0 5rem;
    background: var(--bg-deep);
}

/* Geometric divider */
.geo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}
.geo-divider__line {
    display: block;
    width: 72px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}
.geo-divider__diamond {
    display: block;
    width: 7px; height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* About body */
.about-body { text-align: center; }

.section-tag {
    font-family: var(--ff-display);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.8rem;
}

.about-text {
    font-size: 1.12rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto;
}
.about-text strong {
    color: var(--text);
    font-weight: 500;
}

/* =========================================================
   TEASER
   ========================================================= */
.teaser {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    overflow: hidden;
    background: var(--bg-void);
}

.teaser-glow {
    position: absolute;
    width: 480px; height: 480px;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(212,165,55,.055) 0%, transparent 62%);
    pointer-events: none;
    animation: teaser-breathe 5.5s ease-in-out infinite;
}
@keyframes teaser-breathe {
    0%, 100% { opacity: .55; transform: translate(-50%,-50%) scale(.78); }
    50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.22); }
}

.teaser-body {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Decorative rules */
.teaser-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
}
.teaser-rule span {
    display: block;
    height: 1px;
    background: var(--gold-dark);
}
.teaser-rule span:nth-child(1) { width: 18px; opacity: .3; }
.teaser-rule span:nth-child(2) { width: 36px; opacity: .5; }
.teaser-rule span:nth-child(3) { width: 18px; opacity: .3; }

.teaser-rule:first-child { margin-bottom: 2rem; }
.teaser-rule:last-child  { margin-top: 2rem; }

/* Shimmer text */
.teaser-text {
    font-family: var(--ff-display);
    font-size: clamp(1.15rem, 2.8vw, 1.7rem);
    font-weight: 300;
    letter-spacing: .15em;
    background: linear-gradient(
        90deg,
        var(--gold-dark),
        var(--gold-light),
        var(--gold),
        var(--gold-dark)
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.teaser-dots {
    display: inline-block;
    animation: dots-pulse 2.4s ease-in-out infinite;
}
@keyframes dots-pulse {
    0%, 100% { opacity: .35; }
    50%      { opacity: 1; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    position: relative;
    padding: 2.5rem 0 2rem;
    background: var(--bg-deep);
}

.footer-rule {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.footer-icon {
    width: 34px;
    opacity: .35;
    transition: opacity .3s ease;
}
.footer-icon:hover { opacity: .65; }

/* Social links */
.socials {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.socials__link {
    color: var(--text-mute);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .45rem;
    border-radius: 4px;
    transition: color .3s ease, transform .3s ease;
}
.socials__link:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.copyright {
    font-size: .72rem;
    color: var(--text-mute);
    letter-spacing: .06em;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .85s var(--ease-expo), transform .85s var(--ease-expo);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .mascot      { width: 200px; }
    .mascot-glow { width: 260px; height: 260px; }
    .logo        { width: 280px; }
    .about       { padding: 4.5rem 0 3.5rem; }
    .about-text  { font-size: 1rem; }
    .teaser      { min-height: 40vh; padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
    .mascot        { width: 160px; }
    .mascot-glow   { width: 210px; height: 210px; }
    .logo          { width: 220px; }
    .hero-content  { gap: 1.4rem; }
    .about-text    { font-size: .95rem; }
    .geo-divider__line { width: 48px; }
}
