/*
Theme Name: Meela Foxx
Theme URI: https://example.com/
Author: Meela Foxx
Description: A single-page, dark & purple personal landing-page theme (hero, about, lightbox gallery, contact). Every piece of homepage content is editable from the Home page edit screen, and a one-click demo importer (Appearance > Demo Import) recreates the original design with all text and images.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: madisyn-aire
Tags: one-column, custom-logo, custom-menu, dark, portfolio, translation-ready
*/

  :root {
    --black: #0b0a08;
    --ink: #12100c;
    --panel: #161310;
    --gold: #a684d1;
    --gold-soft: #c7a8e6;
    --gold-bright: #ecd9f7;
    --cream: #f3ecdd;
    --muted: #a99e88;
    --line: rgba(166, 132, 209, 0.28);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--black);
    color: var(--cream);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    overflow-x: hidden;
  }
  ::selection { background: var(--gold); color: var(--black); }

  .script { font-family: 'Great Vibes', cursive; font-weight: 400; }
  .serif { font-family: 'Cormorant Garamond', serif; }

  /* ---------- Nav ---------- */
  .site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 64px);
    background: linear-gradient(to bottom, rgba(11,10,8,0.92), rgba(11,10,8,0.65) 70%, transparent);
    backdrop-filter: blur(8px);
    transition: background 0.3s;
  }
  .site-nav .brand { display: flex; align-items: center; text-decoration: none; }
  .site-nav .brand-logo { height: 46px; width: auto; display: block; filter: drop-shadow(0 0 18px rgba(166,132,209,0.35)); transition: filter 0.3s; }
  .site-nav .brand:hover .brand-logo { filter: drop-shadow(0 0 26px rgba(233,207,122,0.55)); }
  @media (max-width: 640px) { .site-nav .brand-logo { height: 36px; } }
  .site-nav .links { display: flex; gap: clamp(16px, 3vw, 40px); }
  .site-nav .links a {
    color: var(--cream); text-decoration: none; text-transform: uppercase;
    font-size: 0.78rem; letter-spacing: 0.28em; font-weight: 400;
    position: relative; padding-bottom: 4px; transition: color 0.3s;
  }
  .site-nav .links a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--gold); transition: width 0.35s ease;
  }
  .site-nav .links a:hover { color: var(--gold-soft); }
  .site-nav .links a:hover::after { width: 100%; }
  @media (max-width: 640px) { .site-nav .links { display: none; } }

  /* ---------- Hero ---------- */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; padding: 120px 24px 80px;
    background:
      radial-gradient(ellipse 60% 45% at 50% 32%, rgba(166,132,209,0.14), transparent 70%),
      radial-gradient(ellipse 80% 60% at 50% 110%, rgba(166,132,209,0.08), transparent 70%),
      var(--black);
    overflow: hidden;
  }
  .hero-kicker {
    text-transform: uppercase; letter-spacing: 0.5em; font-size: clamp(0.65rem, 1.4vw, 0.8rem);
    color: var(--muted); margin-bottom: 26px; animation: fadeUp 1s ease both 0.1s;
  }
  .hero-name {
    font-size: clamp(4.2rem, 13vw, 10.5rem); line-height: 1.05;
    background: linear-gradient(115deg, #5c3d7a 0%, var(--gold) 25%, var(--gold-bright) 50%, var(--gold) 75%, #5c3d7a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 7s linear infinite, fadeUp 1.1s ease both 0.3s;
    filter: drop-shadow(0 6px 30px rgba(166,132,209,0.25));
  }
  .hero-divider { display: flex; align-items: center; gap: 18px; margin: 30px 0 26px; animation: fadeUp 1s ease both 0.55s; }
  .hero-divider .bar { height: 1px; width: clamp(40px, 10vw, 110px); background: linear-gradient(90deg, transparent, var(--gold)); }
  .hero-divider .bar:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
  .hero-divider .diamond { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(166,132,209,0.8); }
  .hero-tagline {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--cream);
    max-width: 640px; animation: fadeUp 1s ease both 0.7s;
  }
  .hero-cta {
    margin-top: 46px; display: inline-flex; align-items: center; gap: 14px;
    text-decoration: none; color: var(--gold-bright);
    border: 1px solid var(--gold); padding: 15px 42px;
    text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; font-weight: 500;
    background: transparent; position: relative; overflow: hidden;
    transition: color 0.4s; animation: fadeUp 1s ease both 0.9s;
  }
  .hero-cta::before {
    content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, var(--gold), var(--gold-soft));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; z-index: -1;
  }
  .hero-cta:hover { color: var(--black); }
  .hero-cta:hover::before { transform: scaleX(1); }
  .scroll-hint {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    color: var(--muted); font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase;
    animation: bounce 2.2s ease-in-out infinite;
  }

  /* ---------- Sections ---------- */
  .mad-section { padding: clamp(80px, 12vw, 140px) clamp(24px, 6vw, 90px); position: relative; }
  .section-label {
    text-align: center; text-transform: uppercase; letter-spacing: 0.5em;
    font-size: 0.68rem; color: var(--gold); margin-bottom: 14px;
  }
  .section-title {
    text-align: center; font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--cream);
    margin-bottom: 18px; line-height: 1.1;
  }
  .section-rule {
    width: 70px; height: 1px; margin: 0 auto clamp(48px, 6vw, 72px);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  /* ---------- About ---------- */
  #about { background: linear-gradient(to bottom, var(--black), var(--ink) 50%, var(--black)); }
  .about-grid {
    display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px);
    align-items: center; max-width: 1180px; margin: 0 auto;
  }
  @media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
  .about-photo {
    position: relative; padding: 14px; border: 1px solid var(--line);
  }
  .about-photo::before, .about-photo::after {
    content: ""; position: absolute; width: 46px; height: 46px; border: 1px solid var(--gold);
  }
  .about-photo::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
  .about-photo::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
  .about-photo img { display: block; width: 100%; height: auto; filter: saturate(0.96); }
  .about-photo .caption {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    background: linear-gradient(to top, rgba(11,10,8,0.9), transparent);
    padding: 30px 16px 14px; font-family: 'Great Vibes', cursive; font-size: 1.7rem; color: var(--gold-soft);
  }
  .about-text p { font-size: 1.06rem; line-height: 1.95; color: #cfc5ad; margin-bottom: 22px; }
  .about-text p strong { color: var(--gold-soft); font-weight: 500; }
  .about-text .lead { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic; color: var(--cream); line-height: 1.6; margin-bottom: 30px; }
  .traits { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
  .traits span {
    border: 1px solid var(--line); color: var(--gold-soft); padding: 8px 20px;
    font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  }

  /* ---------- Gallery ---------- */
  #gallery { background: var(--black); }
  .gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    max-width: 1180px; margin: 0 auto;
  }
  @media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
  .gallery-item {
    position: relative; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(166,132,209,0.16); aspect-ratio: 3 / 4;
    background: var(--panel);
  }
  .gallery-item img {
    width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.7s;
  }
  .gallery-item::after {
    content: "view"; position: absolute; inset: auto 0 0 0; text-align: center;
    padding: 26px 0 18px; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.65rem;
    color: var(--gold-bright); background: linear-gradient(to top, rgba(11,10,8,0.85), transparent);
    opacity: 0; transition: opacity 0.45s;
  }
  .gallery-item:hover img { transform: scale(1.06); filter: brightness(0.9); }
  .gallery-item:hover::after { opacity: 1; }
  .gallery-note { text-align: center; margin-top: 44px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; }

  /* ---------- Lightbox ---------- */
  .lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; background: rgba(5,4,3,0.94);
    backdrop-filter: blur(6px);
  }
  .lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
  .lightbox img { max-width: 88vw; max-height: 86vh; border: 1px solid var(--line); box-shadow: 0 0 80px rgba(166,132,209,0.15); }
  .lightbox .close, .lightbox .arrow {
    position: absolute; background: none; border: 1px solid var(--line); color: var(--gold);
    width: 46px; height: 46px; font-size: 1.1rem; cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
  }
  .lightbox .close:hover, .lightbox .arrow:hover { background: var(--gold); color: var(--black); }
  .lightbox .close { top: 24px; right: 24px; }
  .lightbox .prev { left: 18px; top: 50%; transform: translateY(-50%); }
  .lightbox .next { right: 18px; top: 50%; transform: translateY(-50%); }

  /* ---------- Connect ---------- */
  #connect {
    background:
      radial-gradient(ellipse 55% 70% at 50% 100%, rgba(166,132,209,0.12), transparent 70%),
      var(--ink);
    text-align: center;
  }
  .connect-quote {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--cream);
    max-width: 720px; margin: 0 auto 54px; line-height: 1.7;
  }
  .email-btn {
    display: inline-flex; align-items: center; gap: 16px;
    font-size: clamp(1rem, 2.4vw, 1.35rem); letter-spacing: 0.08em;
    color: var(--gold-bright); text-decoration: none;
    border: 1px solid var(--gold); padding: 20px 44px;
    background: linear-gradient(115deg, rgba(166,132,209,0.1), rgba(166,132,209,0.02));
    transition: all 0.4s;
  }
  .email-btn:hover {
    background: linear-gradient(115deg, var(--gold), var(--gold-soft)); color: var(--black);
    box-shadow: 0 8px 40px rgba(166,132,209,0.35);
  }
  .connect-sub { margin-top: 26px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.15em; }

  /* ---------- Footer ---------- */
  .site-footer {
    padding: 40px 24px; text-align: center; border-top: 1px solid rgba(166,132,209,0.14);
    color: var(--muted); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  }
  .site-footer .footer-logo { height: 60px; width: auto; display: block; margin: 0 auto 14px; filter: drop-shadow(0 0 22px rgba(166,132,209,0.3)); }

  /* ---------- Animations ---------- */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes shine { to { background-position: 200% center; } }
  @keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
  .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.12s; } .reveal.d2 { transition-delay: 0.24s; } .reveal.d3 { transition-delay: 0.36s; }

  /* ---------- WordPress additions ---------- */
  .site-nav .links, .site-nav .links li { list-style: none; }
  .site-nav .brand-text { font-size: 2rem; color: var(--gold-soft); line-height: 1; }
  body.admin-bar .site-nav { top: 32px; }
  @media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }
  .about-grid.no-photo { grid-template-columns: 1fr; max-width: 760px; }
  .screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
  }
  a { color: var(--gold-soft); }

  /* Inner pages (blog, pages, 404) */
  .page-wrap { max-width: 820px; margin: 0 auto; padding: clamp(130px, 16vw, 190px) 24px 90px; }
  .page-wrap .entry-title { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--cream); margin-bottom: 26px; line-height: 1.15; }
  .page-wrap .entry-title a { color: inherit; text-decoration: none; }
  .page-wrap .entry-content { font-size: 1.05rem; line-height: 1.9; color: #cfc5ad; }
  .page-wrap .entry-content p { margin-bottom: 22px; }
  .page-wrap .entry-content img { max-width: 100%; height: auto; }
  .page-wrap article { margin-bottom: 64px; }
  .page-wrap .demo-notice { border: 1px solid var(--line); padding: 22px 26px; color: var(--muted); margin-top: 30px; }
