/* --- Base & Variables --- */
:root {
    --color-bg-deep: #1a0f2d; /* Deep space */
    --color-bg-mid: #4c2a6a;  /* Mid purple */
    --color-accent-pink: #e88bae;
    --color-accent-orange: #ffb88c;
    --color-light: #f0e8ff;  /* Light lavender/white */
    --color-text: #d8c8f0;
    --color-text-dark: #331c4a;
    --font-primary: 'Poppins', sans-serif;

    /* RGB versions for rgba() */
    --color-light-rgb: 240, 232, 255;
    --color-bg-deep-rgb: 26, 15, 45;
    --color-text-rgb: 216, 200, 240;
    --color-accent-pink-rgb: 232, 139, 174;
    --color-text-dark-rgb: 51, 28, 74;
    --color-bg-mid-rgb: 76, 42, 106;
    --color-accent-orange-rgb: 255, 184, 140; /* Added for separator glow */
}

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

html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--font-primary);

    /* --- Background Layering --- */
    /* Layer 1: Your image (top layer) */
    background-image: url(images/bg.png),
                      /* Layer 2: Your original gradient (bottom layer) */
                      radial-gradient(ellipse at bottom, var(--color-bg-mid) 0%, var(--color-bg-deep) 80%);

    /* Settings for Layer 1 (Image) */
    background-position: top center, center center; /* Position image top center, gradient default */
    background-size: cover, auto;            /* Image covers, gradient default size */
    background-repeat: no-repeat, no-repeat;   /* Don't repeat either */
    background-attachment: fixed, fixed;       /* Fix both backgrounds so they don't scroll */

    /* Fallback solid color if images/gradients fail */
    background-color: var(--color-bg-deep);

    /* --- Rest of body styles --- */
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* Keep if needed for child absolute positioning */
}

.header-content {
    text-align:center;
}

.header-content img {
    max-width:400px;
    width:100%;
    margin-top:150px;
}

.sr-only { /* Screenreader only */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Layout & Background --- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 0 2rem 0;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(1px 1px at 20% 30%, var(--color-light), rgba(255,255,255,0)),
                      radial-gradient(1px 1px at 80% 70%, var(--color-accent-pink), rgba(255,255,255,0)),
                      radial-gradient(2px 2px at 50% 50%, var(--color-light), rgba(255,255,255,0)),
                      radial-gradient(1px 1px at 40% 90%, var(--color-accent-orange), rgba(255,255,255,0)),
                      radial-gradient(1px 1px at 90% 10%, var(--color-light), rgba(255,255,255,0));
    background-size: 500px 500px;
    animation: twinkle 10s linear infinite alternate;
    z-index: 0;
}

/* --- Visual Elements --- */
.visual-element {
    position: absolute;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

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

.visual-figure {
    bottom: 10%;
    left: 5%;
    width: 250px;
    animation: float 6s ease-in-out infinite;
}

.visual-planet {
    animation: slowOrbit 20s linear infinite;
}

.planet1 {
    top: 15%;
    right: 10%;
    width: 120px;
    animation-duration: 25s;
    transform-origin: -300px 200px;
}

.planet2 {
    top: 60%;
    right: 5%;
    width: 80px;
    animation-duration: 18s;
     transform-origin: -200px -150px;
}

.visual-ship {
    top: 30%;
    right: 20%;
    width: 150px;
    transform: rotate(-25deg);
    animation: drift 15s ease-in-out infinite alternate;
}


/* --- Form Container & Content --- */
.form-container {
    background: rgba(40, 20, 60, 0.3);
    backdrop-filter: blur(5px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(var(--color-light-rgb), 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 4rem; /* Increased space below form */
}

.central-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(var(--color-accent-pink-rgb), 0.15) 0%, rgba(var(--color-accent-pink-rgb), 0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: pulse 5s infinite ease-in-out;
}

h1 {
    font-size: 2.2rem;
    color: var(--color-light);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

#email {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(var(--color-light-rgb), 0.3);
    border-radius: 8px;
    background-color: rgba(var(--color-bg-deep-rgb), 0.5);
    color: var(--color-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#email::placeholder {
    color: rgba(var(--color-text-rgb), 0.7);
}

#email:focus {
    outline: none;
    border-color: var(--color-accent-pink);
    box-shadow: 0 0 15px rgba(var(--color-accent-pink-rgb), 0.3);
}

/* --- Call to Action Button --- */
.cta-button {
    background: linear-gradient(90deg, var(--color-accent-pink), var(--color-accent-orange));
    color: var(--color-text-dark);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--color-accent-pink-rgb), 0.4);
}

.cta-button:active {
     transform: translateY(-1px);
     box-shadow: 0 4px 10px rgba(var(--color-accent-pink-rgb), 0.3);
}

/* Button Loader Styling */
.cta-button .button-text { transition: opacity 0.3s ease; }
.cta-button .button-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cta-button .button-loader::after { content: ''; width: 20px; height: 20px; border: 3px solid rgba(var(--color-text-dark-rgb), 0.3); border-top-color: var(--color-text-dark); border-radius: 50%; animation: spin 1s linear infinite; }
.cta-button.loading .button-text { opacity: 0; }
.cta-button.loading .button-loader { opacity: 1; pointer-events: all; }

/* --- Helper Text Below Form --- */
.join-us { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(var(--color-text-rgb), 0.8); font-weight: 300; }

/* Form Messages */
#form-message { margin-top: 1rem; padding: 0.8rem; border-radius: 5px; font-size: 0.95rem; display: none; animation: fadeIn 0.5s ease; }
#form-message.success { background-color: rgba(144, 238, 144, 0.2); color: #90ee90; border: 1px solid rgba(144, 238, 144, 0.5); display: block; }
#form-message.error { background-color: rgba(255, 99, 71, 0.2); color: #ff6347; border: 1px solid rgba(255, 99, 71, 0.5); display: block; }


/* --- Content Sections General --- */
.content-section {
    padding: 4rem 0; /* Increased padding MORE for better separation */
    position: relative; /* Needed for positioning the ::before pseudo-element */
    z-index: 5;
    /* Add the separator line */
    border-top: 1px solid rgba(var(--color-light-rgb), 0.15); /* Subtle border line */
    margin-top: 2rem; /* Add margin for separation */
}

/* Remove top border and margin from the very first content section */
.features-section {
    border-top: none;
    margin-top: 1rem; /* Keep some margin after form */
}

/* Style the central spark ::before element */
.content-section::before {
    content: '✦'; /* Sparkle character (you can use ✨, ✧, or even SVG) */
    position: absolute;
    top: 0; /* Align with the top border */
    left: 50%;
    transform: translate(-50%, -50%); /* Center horizontally and vertically on the border */
    padding: 0 10px; /* Create space around the spark */
    color: var(--color-accent-orange); /* Use an accent color */
    font-size: 1.4rem; /* Adjust size */
    line-height: 1; /* Ensure consistent height */
    z-index: 6; /* Ensure it's above the border */
    /* Optional subtle glow */
    text-shadow: 0 0 8px rgba(var(--color-accent-orange-rgb), 0.5);
}

/* Hide the spark on the very first section */
.features-section::before {
    display: none;
}


.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    color: var(--color-light);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-pink), var(--color-accent-orange));
    border-radius: 1px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 3rem; /* Slightly more space after intro */
    font-weight: 300;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Features Section Styling --- */
.features-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; text-align: left; }
.features-list li { background: rgba(var(--color-bg-deep-rgb), 0.4); padding: 1.2rem 1.5rem; border-radius: 10px; border: 1px solid rgba(var(--color-light-rgb), 0.1); display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; color: var(--color-text); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.features-list li:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.feature-icon { font-size: 1.3rem; display: inline-block; line-height: 1; }

/* --- Testimonial Section Styling --- */
.testimonial-quote { background: rgba(var(--color-bg-mid-rgb), 0.3); backdrop-filter: blur(3px); padding: 2rem; border-radius: 15px; border-left: 4px solid var(--color-accent-pink); max-width: 600px; margin: 1rem auto 0 auto; text-align: left; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
.testimonial-quote p { font-size: 1.1rem; font-style: italic; color: var(--color-light); line-height: 1.7; margin-bottom: 1rem; position: relative; }
.testimonial-quote p::before { content: '“'; font-size: 3rem; color: rgba(var(--color-accent-pink-rgb), 0.5); position: absolute; left: -0.5rem; top: -0.8rem; line-height: 1; opacity: 0.8; }
.testimonial-quote cite { font-style: normal; font-weight: 600; color: var(--color-accent-orange); display: block; text-align: right; margin-top: 0.5rem; }

/* --- How It Works Section Styling --- */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 1rem; }
.step-item { text-align: center; padding: 1.5rem 1rem; background: rgba(var(--color-light-rgb), 0.05); border-radius: 12px; border: 1px solid rgba(var(--color-light-rgb), 0.1); transition: transform 0.3s ease; }
.step-item:hover { transform: translateY(-5px); }
.step-number { width: 45px; height: 45px; line-height: 45px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent-pink), var(--color-accent-orange)); color: var(--color-text-dark); font-weight: 700; font-size: 1.2rem; margin: 0 auto 1rem auto; box-shadow: 0 4px 10px rgba(var(--color-accent-pink-rgb), 0.3); }
.step-title { font-size: 1.2rem; color: var(--color-light); margin-bottom: 0.5rem; font-weight: 600; }
.step-description { font-size: 0.95rem; color: var(--color-text); line-height: 1.6; font-weight: 300; }

/* --- Meet Your Guide Section Styling --- */
.guide-container { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; max-width: 850px; }
.guide-image { flex-shrink: 0; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 3px solid var(--color-accent-pink); box-shadow: 0 0 20px rgba(var(--color-accent-pink-rgb), 0.3); }
.guide-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-text { flex-grow: 1; }
.guide-title { text-align: center; margin-bottom: 1rem; }
.guide-text p { font-size: 1.05rem; color: var(--color-text); line-height: 1.7; font-weight: 300; max-width: 600px; margin: 0 auto; }

/* --- Footer --- */
.footer-content {
    text-align: center;
    padding: 2rem 0 1rem 0;
    margin-top: 4rem; /* Increased space before footer */
    font-size: 0.85rem;
    color: rgba(var(--color-text-rgb), 0.6);
    z-index: 2;
    position: relative;
}


/* --- Animations --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes slowOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(0) rotate(-25deg); } to { transform: translateX(-30px) rotate(-20deg); } }
@keyframes twinkle { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 1; transform: scale(1.02); } }
@keyframes pulse { 0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.95); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }


/* --- Responsive Design --- */
@media (min-width: 768px) {
    .guide-container { flex-direction: row; text-align: left; }
    .guide-title { text-align: left; }
    .guide-text p { margin: 0; }
}

@media (max-width: 992px) {
    .visual-figure { width: 200px; left: 2%; bottom: 5%; }
    .visual-planet { opacity: 0.6; }
    .planet1 { width: 100px; right: 5%; }
    .planet2 { width: 70px; right: 2%; }
    .visual-ship { width: 120px; right: 10%; top: 25%; }
}

@media (max-width: 767px) {
    .page-container { padding: 1rem; }
    .main-content { padding-top: 2rem; padding-bottom: 8rem; }
    .form-container { padding: 2rem 1.5rem; margin-bottom: 3rem; }
    h1 { font-size: 1.9rem; }
    .subtitle { font-size: 1rem; }

    .visual-figure { width: 180px; bottom: 2%; left: 50%; transform: translateX(-50%); animation: float 8s ease-in-out infinite; opacity: 0.5; z-index: 0; }
    .planet1, .visual-ship { opacity: 0.3; width: 80px; }
    .planet2 { display: none; }

    /* Separator adjustments */
    .content-section { padding: 3rem 0; margin-top: 1.5rem; }
    .features-section { margin-top: 1rem; }
    .content-section::before { font-size: 1.2rem; }
    .section-intro { font-size: 1rem; margin-bottom: 2.5rem;}

    .features-list { grid-template-columns: 1fr; gap: 1rem; }
    .testimonial-quote { padding: 1.5rem; }
    .testimonial-quote p { font-size: 1rem; }
    .testimonial-quote p::before { font-size: 2.5rem; top: -0.5rem; }
    .steps-container { grid-template-columns: 1fr; gap: 1.5rem;}
    .guide-container { text-align: center; }
    .guide-title { text-align: center; }
    .guide-text p { margin: 0 auto; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.7rem; }
    .subtitle { font-size: 0.95rem; }
    .form-container { width: 95%; padding: 1.5rem 1rem; margin-bottom: 2.5rem;}
    #email { padding: 0.8rem; }
    .cta-button { padding: 0.8rem 1.5rem; font-size: 1rem; }
    .visual-figure { width: 150px; opacity: 0.4;}

    /* Separator adjustments */
    .content-section { padding: 2.5rem 0; margin-top: 1.5rem; }
     .content-section::before { font-size: 1.1rem; }
     .section-intro { font-size: 0.95rem; margin-bottom: 2rem; }

    .section-title { font-size: 1.5rem; }
    .features-list li { font-size: 0.95rem; padding: 1rem 1.2rem; }
    .testimonial-quote { padding: 1.2rem; }
    .testimonial-quote p { font-size: 0.95rem; }
    .testimonial-quote cite { font-size: 0.9rem; }
    .step-item { padding: 1.2rem 0.8rem; }
    .step-title { font-size: 1.1rem; }
    .step-description { font-size: 0.9rem; }
    .guide-image { width: 120px; height: 120px;}
    .guide-text p { font-size: 0.95rem; }
}

/* --- Privacy Policy Page Specific Styles --- */

/* Adjust main content padding if needed for text pages */
.privacy-policy-content {
    flex-grow: 1;
    display: flex; /* Use flex to center the container */
    align-items: center; /* Vertically center if content is short */
    justify-content: center;
    position: relative;
    padding: 4rem 0 2rem 0; /* Similar padding to main landing page content */
    width: 100%; /* Ensure it takes full width within page-container */
}

/* Style the main H1 for the Privacy Policy page */
.privacy-policy-content h1 {
    /* Reuse existing h1 styles or customize */
    font-size: 2.2rem;
    color: var(--color-light);
    margin-bottom: 0.5rem; /* Reduced bottom margin */
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center; /* Keep title centered */
}

/* Style the "Last Updated" paragraph */
.privacy-policy-content .last-updated {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(var(--color-text-rgb), 0.7);
    margin-bottom: 2.5rem; /* Space before main text */
}

/* Container for the actual policy text - ensure it's left-aligned */
.privacy-text-content {
    text-align: left;
    margin-top: 1rem; /* Add some space if needed */
}

/* Style H2 headings within the privacy policy */
.privacy-text-content h2 {
    font-size: 1.5rem; /* Slightly smaller than section titles */
    color: var(--color-light);
    margin-top: 2.5rem; /* More space before sections */
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(var(--color-accent-pink-rgb), 0.5); /* Simpler underline */
    display: inline-block; /* Make border only as wide as text */
}

/* Style paragraphs within the privacy policy */
.privacy-text-content p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* Style lists within the privacy policy */
.privacy-text-content ul {
    list-style: disc;
    margin-left: 1.5rem; /* Indentation */
    margin-bottom: 1rem;
    padding-left: 1rem; /* Add padding for bullet alignment */
}

.privacy-text-content li {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 0.6rem;
}

/* Style links within the privacy policy text */
.privacy-text-content a,
.privacy-contact-link { /* Target specific links or general 'a' */
     color: var(--color-accent-pink);
     text-decoration: none;
     font-weight: 400;
     transition: color 0.3s ease, text-decoration 0.3s ease;
}

.privacy-text-content a:hover,
.privacy-contact-link:hover {
     color: var(--color-light);
     text-decoration: underline;
}

/* Style the link in the footer */
.footer-content a {
     color: var(--color-accent-pink);
     text-decoration: none;
     transition: color 0.3s ease;
     display: inline-block; /* Allow margin */
     margin-bottom: 0.5rem; /* Space between link and copyright */
}
.footer-content a:hover {
     color: var(--color-light);
     text-decoration: underline;
}

/* Responsive adjustments for privacy policy text if needed */
@media (max-width: 767px) {
    .privacy-policy-content h1 {
        font-size: 1.9rem;
    }
    .privacy-text-content h2 {
        font-size: 1.3rem;
    }
    .privacy-text-content p,
    .privacy-text-content li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
     .privacy-policy-content h1 {
        font-size: 1.7rem;
    }
    .privacy-text-content h2 {
        font-size: 1.2rem;
    }
     .privacy-text-content p,
    .privacy-text-content li {
        font-size: 0.9rem;
    }
}