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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #111;
    font-family: sans-serif;
}
body.darkmode {
    background-color: #1a1a1a;
}

.theme__choice__container {
        padding: 5px;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: end;
        width: 100%;
        position: fixed;
        z-index: 999;
}

.theme__choice {
  border: none;
  outline: none;
  background-color: rgba(75, 50, 50, 0.3);
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.theme__choice:hover {
  transform: scale(1.05);
}

.darkmode .menu__btn img,
.darkmode .close__btn img {
  filter: invert(1);
}

/* NAVIGATION */
.menu__links__section {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1001;
  padding: 2rem 0.8rem 2rem 0.6rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0.3rem;
  background-color: #f2f2f2;
  border-bottom: 5px solid red;
  line-height: 1.5;
}

body.darkmode .menu__links__section {
        background-color: #333;
        color: #fff;
        border-left: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0.3rem;
        box-shadow: 0 2px 5px rgba(240, 210, 210, 0.3);
}

.menu__links__section > a {
  text-decoration: underline;
  font-size: 1.05rem;
  font-weight: 400;
  color: #1c1c1c;
  display: block;
  text-align: left;
  padding: 5px;
  margin: 0 auto;
  transition: color 0.3s ease;
  font-family: 'Quicksand', 'Poppins', sans-serif;
}

.menu__links__section > a:hover {
    color: #ff4d6d;
}

body.darkmode .menu__links__section > a {
    color: #fff;
}

.close__btn {
  border: none;
  outline: none;
  border-radius: 50%;
  padding: 0.4rem 0.5rem;
  font-size: clamp(1.23rem, calc(1.23rem + 0.22vw), 1.35rem);
  display: grid;
  margin: 0 auto 1rem auto;
  place-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.darkmode .close__btn {
        background-color: rgba(0, 0, 0, 0.5);
}

.nav__container {
  position: sticky;
  top: 0;
  background-color: #fff;
  color: #1c1c1c;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

body.darkmode .nav__container {
        background-color: #2c2c2c;
        box-shadow: 0 1px 3px rgba(230, 210, 210, 0.3);
}

.nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.5rem 0.4rem;
  width: 85%;
  position: relative;
}

.nav__div1 > button {
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

.nav__div1 > button > img {
  width: clamp(2.05rem, calc(2.05rem + 0.22vw), 2.2rem);
  height: auto;
  transition: filter 0.3s ease;
}

.nav__div2 {
    text-align: center;
}

.nav__div2 > a {
  color: #111;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 550;
  transition: color 0.3s ease;
}

body.darkmode .nav__div2 > a {
  color: #fff;
}

.nav__div3 > button {
  color: #ff4d6d;
}

.nav__div3 > a > img {
  width: clamp(2.05rem, calc(2.05rem + 0.22vw), 2.2rem);
  height: auto;
  transition: filter 0.3s ease;
}

/* Footer stuff */

.footer__div {
  width: 100%;
  display: grid;
  place-content: center;
  flex: 1;
  background-color: #fff;
  padding: 50px 0;
}


.footer__div p {
	text-align: center;
}

body.darkmode .footer__div p {
	color: #fff;
}

body.darkmode .footer__div {
  background-color: #1c1c1c;
}

.hr__footer {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8fa3, transparent);
   margin: 3rem auto 1rem;
   max-width: 400px;
}
body.darkmode .hr__footer {
    background: linear-gradient(90deg, transparent, #ff8fa3, transparent);
}

.footer {
    text-align: center;
    color: #ff6b8b;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
}
body.darkmode .footer {
    color: #ff8fa3;
}

.tos__privacy {
	color: #ff4d6d;
	margin: 0 3px;
}

/** The New Footer */
.legal-links {
    margin: 15px auto 0 auto;
}

.legal-links a {
    /*color: var(--primary-love);*/
    color: #4356ff;
    text-decoration: 1px underline;
    font-size: 0.9rem;
}

.legal-links a:hover {
	color: midnightblue;
    text-decoration: underline;
}

/* Magical Homepage Styles */
:root {
    --primary-love: #ff6b8b;
    --secondary-love: #ff8e9e;
    --accent-gold: #ffd166;
    --soft-pink: #ffafcc;
    --deep-love: #ff4d6d;
    --light-romance: #fff0f3;
    --dark-romance: #590d22;
    --paper-cream: #fef7ec;
    --ink-love: #2b2d42;
}

/*[data-theme="dark"] */
.darkmode {
    --primary-love: #ff8fa3;
    --secondary-love: #ffb3c1;
    --accent-gold: #ffd166;
    --soft-pink: #ffafcc;
    --deep-love: #ff4d6d;
    --light-romance: #1a1423;
    --dark-romance: #ffb3c1;
    --paper-cream: #2d3047;
    --ink-love: #e2f0f7;
}

/* Magical Floating Hearts */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    font-size: 24px;
    opacity: 0.4;
    animation: float 8s infinite ease-in-out;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; }
.heart:nth-child(3) { left: 30%; animation-delay: 2s; }
.heart:nth-child(4) { left: 50%; animation-delay: 3s; }
.heart:nth-child(5) { left: 70%; animation-delay: 4s; }
.heart:nth-child(6) { left: 80%; animation-delay: 5s; }
.heart:nth-child(7) { left: 90%; animation-delay: 6s; }
.heart:nth-child(8) { left: 60%; animation-delay: 7s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-100px) rotate(180deg) scale(1.2); 
        opacity: 0.6; 
    }
}

/* Body and Container Magic */
body {
    background: linear-gradient(135deg, var(--light-romance) 0%, #ffe4ec 50%, var(--light-romance) 100%);
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

body.darkmode {
    background: linear-gradient(135deg, var(--light-romance) 0%, #2d1b35 50%, var(--light-romance) 100%);
}

.container {
    padding: 20px 10px 30px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-line {
    color: var(--ink-love);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.title-line.accent {
    color: var(--deep-love);
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-love), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-emoji {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.subtitle-container {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--ink-love);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: "Poppins", sans-serif;
    font-style: italic;
}

.love__word__msg {
	color: red;
	font-weight: 600;
}

.sparkle {
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 1.5rem;
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 600px;
    padding: 2rem;
    background: var(--paper-cream);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 107, 139, 0.15);
    border: 1px solid rgba(255, 175, 204, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-love);
    font-family: 'Playfair Display', serif;
}

.latest__ai {
	font-size: 1.85rem;
	font-weight: 600;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--ink-love);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Form Section */
.form-section {
    margin: 4rem auto;
    max-width: 800px;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--deep-love);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-emoji {
    font-size: 2rem;
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--ink-love);
    opacity: 0.8;
}

.form__div {
    margin: 2rem auto;
    padding: 3rem;
    display: grid;
    place-content: center;
    background: var(--paper-cream);
    box-shadow: 0 20px 40px rgba(255, 107, 139, 0.15);
    transition: all 0.5s ease;
    border-radius: 20px;
    border: 2px solid rgba(255, 175, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.form__div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.form__div:hover::before {
    left: 100%;
}

.form__div:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 107, 139, 0.25);
}

body.darkmode .form__div {
    background: var(--paper-cream);
    box-shadow: 0 20px 40px rgba(255, 107, 139, 0.2);
}

.form {
    display: grid;
    place-content: center;
    gap: 2rem;
}

.textarea-container {
    position: relative;
}

.prompt {
    resize: none;
    padding: 1.5rem;
    font-family: inherit;
    font-size: 1.1rem;
    border: 2px solid var(--primary-love);
    border-radius: 15px;
    line-height: 1.6;
    text-align: left;
    overflow: hidden;
    width: 100%;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink-love);
    transition: all 0.3s ease;
}

.prompt:focus {
    outline: none;
    border-color: var(--deep-love);
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.3);
    transform: scale(1.02);
}

body.darkmode .prompt {
    /*background: rgba(45, 48, 71, 0.8);*/
    color: var(--dark-romance);
    background-color: #333;
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.9rem;
    color: var(--ink-love);
    opacity: 0.6;
}

.submit__btn {
    outline: 0;
    border: 0;
    margin: 1rem 0;
    padding: 1.5rem 3rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-love), var(--deep-love));
    border-radius: 15px;
    text-align: center;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.submit__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.submit__btn:hover::before {
    left: 100%;
}

.submit__btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 139, 0.4);
    animation: heartbeat 1s ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-3px) scale(1.08); }
}

/* Tips Section */
.tips-section {
    margin: 4rem auto;
    max-width: 1000px;
    text-align: center;
}

.tips-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--deep-love);
    margin-bottom: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--paper-cream);
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 175, 204, 0.3);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 139, 0.2);
}

.tip-emoji {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tip-card p {
    color: var(--ink-love);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    margin: 4rem auto;
    max-width: 600px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-love), var(--secondary-love));
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(255, 107, 139, 0.3);
}

.cta-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--deep-love);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Enhanced Navigation */
.logo {
    /*font-family: 'Dancing Script', cursive !important;*/
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem !important;
    font-weight: 700;
}

.menu__links__section a.active {
    color: var(--deep-love);
    font-weight: 600;
}

/* Footer */
.hr__footer {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-love), transparent);
    margin: 3rem auto 1rem;
    max-width: 400px;
}

.footer {
    text-align: center;
    color: var(--primary-love);
    font-family: 'Nunito', sans-serif;
    padding: 2rem 0;
}

/* Responsive Design */
@media (min-width: 1440px) {
    .menu__links__section {
        padding: 4rem 1.8rem 4rem 1.6rem;
    }
    .menu__links__section > a {
        font-size: 3rem;
    }
    .nav__div2 > a {
        font-size: 3.5rem;
        font-weight: 500;
    }
    .nav__div1 > button {
        transform: scale(1.5);
    }
    .nav__div3 > a {
        transform: scale(1.5);
    }
    .main-title {
        font-size: 6rem;
    }
    .title-line.accent {
        font-size: 7rem;
    }
    .subtitle {
        font-size: 2rem;
    }
    .form__div {
        width: 900px;
        padding: 4rem;
    }
    .prompt {
        font-size: 1.5rem;
        min-height: 200px;
    }
    .submit__btn {
        font-size: 2.5rem;
        padding: 2rem 4rem;
    }
    .footer {
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) {
    .menu__links__section {
        padding: 3rem 1.5rem 3rem 1.3rem;
    }
    .menu__links__section > a {
        font-size: 1.15rem;
    }
    .nav__div2 > a {
        font-size: 1.2rem;
        font-weight: 500;
    }
    .nav__div1 > button {
        transform: scale(1.2);
    }
    .nav__div3 > a {
        transform: scale(1.2);
    }
    .main-title {
        font-size: 3.5rem;
    }
    .title-line.accent {
        font-size: 4rem;
    }
    .subtitle {
        font-size: 1.3rem;
    }
    .prompt {
        font-size: 1.15rem;
    }
    .submit__btn {
        font-size: 1.8rem;
    }
    .footer {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    .nav__div2 > a {
    	font-size: 1.15rem;
    }
    .title-line.accent {
        font-size: 3rem;
    }
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    .form__div {
        padding: 1.5rem;
        margin: 1rem;
    }
    .prompt {
        height: 150px;
        text-align: justify;
        padding: 1rem;
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
    .welcome-section {
        padding: 2rem 1rem;
    }
}

.active-page {
	color: #ff6d8d;
	font-style: bold;
}
