@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

/* --- COLOR PALLETES --- */
:root {
    /* dark mode colors */
    --bg-color: #231942;
    --panel-bg: #9880e0;
    --panel-border: #4a3b7a;
    --btn-bg: #8ca2e8;
    --text-colour: #231942;
    --header-text: #231942;
    --footer-text: #594d87;
    --footer-bg: #17102b;
}

body.light-mode {
    /* light mode colors */
    --bg-color: #b8c6fa;
    --panel-bg: #a698e8;
    --panel-border: #4a3b7a;
    --btn-bg: #a1b4ed;
    --text-colour: #3b2f63;
    --header-text: #3b2f63;
    --footer-text: #3b2f63;
    --footer-bg: #8ba5f2;
}

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

body {
    font-family: 'Verdana', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-colour);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

/* top left controls */
.top-controls {
    position: absolute;
    top: 24px;
    left: 30px;
    display: flex;
    gap: 42px;
}

.icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--panel-bg);
    border: 4px solid var(--panel-border);
    font-size: 24px;
    cursor: pointer;
    color: var(--text-colour);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* main layout */
.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 80px;
}
/* panel styles */
.panel {
    background-color: var(--panel-bg);
    border: 8px solid var(--panel-border);
    border-radius: 24px;
    padding: 36px 40px;
    position: relative;
    text-align: center;
    width: min(100%, 720px);
}

#lotus-cat {
    position: absolute;
    bottom: -185px;
    left: -30px;
    width: 325px;
    cursor: pointer;
}

h1, h2 {
    color: var(--header-text);
    margin-bottom: 24px;
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.1;
}

/* navigation buttons */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.nav-btn {
    background-color: var(--btn-bg);
    color: var(--text-colour);
    text-decoration: none;
    font-size: 1.35rem;
    border-radius: 12px;
    padding: 14px 24px;
    width: min(100%, 320px);
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
}
.nav-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
/* footer styles */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-text{
    text-align: center;
}

.palette {
    position: absolute;
    right: 40px;
    display: flex;
    gap: 5px;
}

.color-dot{
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

/* --- PAGE SPECIFIC STYLES --- */
/* portfolio layout */
.portfolio-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 1100px);
}
.portfolio-panel {
    width: min(100%, 660px);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    width: 100%;
    max-width: 1100px;
}
.portfolio-grid img {
    width: 100%;
    border-radius: 10px;
    height: auto;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.portfolio-grid img:hover {
    transform: scale(1.02);
}
 
.image-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    z-index: 1000;
    padding: 24px;
}
.image-overlay.active {
    display: flex;
}
.image-overlay .overlay-content {
    max-width: 80%;
    max-height: 80%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-overlay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    cursor: zoom-out;
}
.image-overlay .close-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.95rem;
    pointer-events: none;
}
/* commissions layout */
.commissions-layout {
    display: flex;
    gap: 36px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: min(100%, 1500px);
}
.commissions-panel {
    width: min(100%, 420px);
}
.badge {
    background: #6a82d6;
    color: white;
    padding: 8px 34px;
    border-radius: 999px;
    font-size: 1.65rem;
    margin-bottom: 16px;
    display: inline-block;
}
.price-box {
    background-color: var(--panel-bg);
    border: 6px solid var(--panel-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 18px;
    font-size: 1.35rem;
    width: min(100%, 320px);
    text-align: center;
}
.example-img {
    width: 220px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid var(--panel-border);
    margin-bottom: 20px;
    cursor: zoom-in;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.example-img:hover {
    transform: scale(1.02);
}
.pricing-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(100%, 340px);
}
.pricing-note {
    color: #6a55ad;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 8px;
}
/* about layout */
.about-layout {
    display: flex;
    gap: 36px;
    max-width: 1120px;
    width: min(100%, 1120px);
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}
.about-bio-panel {
    width: min(100%, 500px);
}
.about-side-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(100%, 500px);
}
.about-text {
    text-align: left;
    line-height: 1.75;
    font-size: 1.18rem;
}
.social-panel {
    text-align: left;
}

@media (max-width: 900px) {
    .content-wrapper {
        padding-top: 120px;
        padding-bottom: 110px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-controls {
        top: 14px;
        left: 14px;
        gap: 24px;
    }

    .top-controls .icon-btn {
        width: 44px;
        height: 44px;
    }

    .top-right-panel {
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 20;
        padding: 10px;
    }

    .panel {
        padding: 24px 20px 86px;
    }

    .panel h1,
    .panel h2 {
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 16px;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-btn {
        width: min(100%, 300px);
        padding: 12px 16px;
    }

    .sparkle {
        width: 70px;
        max-width: 22vw;
        margin: 0 6px;
    }

    #lotus-cat {
        position: absolute;
        left: 50%;
        bottom: -56px;
        transform: translateX(-50%);
        width: 170px;
        max-width: 40vw;
        margin: 0;
        z-index: 1;
    }

    .about-layout {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .about-side-stack {
        order: -1;
        width: min(100%, 500px);
        margin: 0 auto;
    }

    .about-bio-panel {
        width: min(100%, 500px);
        margin: 0 auto;
    }

    .about-side-panel {
        min-height: auto;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px;
    }

    .palette {
        position: static;
        margin-top: 4px;
    }
}
/* Custom Icon Images */
.icon-btn img {

  width: 85px; 
  height: 85px;
  object-fit: contain; 
}

/* Hide the audio toggle image until JS sets the correct themed variant
   This prevents a flash of the default 'off' icon before theme.js updates it. */
#audio-toggle img {
  visibility: hidden;
}
/* Custom Sparkle Images */
.sparkle {
  width: 150px; 
  height: auto;
  vertical-align: middle; 
  margin: 0 10px; 
}

/* Custom Social Icons */
.social-icon1 {
  min-width: 40px;
  max-width: 40px;
  vertical-align: middle;
  margin-right: 8px;
  object-fit: contain; 
}
.social-icon2 {
  min-width: 50px;
  max-width: 55px;
  vertical-align: middle;
  margin-right: 8px;
  object-fit: contain; 
}
/* Top Right Counter Panel */
.top-right-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--panel-bg);
  border: 6px solid var(--panel-border);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.top-right-panel .nav-btn {
  width: auto; /* Overrides the 250px width from the main nav */
  padding: 5px 25px;
  font-size: 1.2rem;
  cursor: pointer;
  border: none; /* Removes default button borders */
  font-family: Verdana, sans-serif;
}

#click-count {
  font-weight: bold;
  font-size: 1.1rem;
}