/* ==========================================================================
   1. CSS Reset & Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette Based on Your Preferred Gradient */
    --color-primary: #706d9c;
    --color-primary-light: #9d9bbd;
    --color-primary-dark: #4a4866;
    --color-secondary: #926ecc;
    --color-secondary-light: #b49ddf;
    --color-secondary-dark: #6d4e9c;
    --color-tertiary: #898fa0;
    --color-tertiary-light: #b6bbc7;
    --color-tertiary-dark: #5d6273;
    --color-accent: #26A69A;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #f8f9fa;
    --color-background-alt: #e8eff1;
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-warning: #f9a825;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Nunito Sans', sans-serif;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    
    /* Spacing */
    --space-xxs: 0.4rem;
    --space-xs: 0.8rem;
    --space-sm: 1.2rem;
    --space-md: 1.6rem;
    --space-lg: 2.4rem;
    --space-xl: 3.2rem;
    --space-xxl: 4.8rem;
    
    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-pill: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Main Gradient */
    --main-gradient: linear-gradient(135deg, #898fa0, #706d9c, #926ecc);
    --main-gradient-reverse: linear-gradient(135deg, #926ecc, #706d9c, #898fa0);
}

html {
    font-size: 62.5%; /* Sets base font size to 10px (assuming browser default of 16px) */
    scroll-behavior: smooth;
    overflow: auto;
}

body {
    font-family: var(--font-secondary);
    font-size: 1.6rem; /* 16px equivalent */
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles */
ul, ol {
    list-style: none;
}

/* Reset links */
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* Make images responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. Typography & General Elements
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 4rem;
    margin-bottom: var(--space-xl);
    color: var(--color-primary-dark);
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background: var(--main-gradient);
    border-radius: var(--border-radius-pill);
}

.disclaimer {
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ==========================================================================
   3. Layout & Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* ==========================================================================
   4. Buttons & Interactive Elements
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-weight: var(--weight-semibold);
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--main-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(114, 109, 156, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(114, 109, 156, 0.3);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    font-weight: var(--weight-bold);
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */

.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1.2rem; /* Space between logo and text */
    color: inherit; /* Prevents the text from turning blue like a default link */
}

.logo img {
    max-height: 4.8rem; /* Reduced slightly to balance with the text */
}

.logo-text {
    /* MODIFIED: Change the font-family */
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* ADJUST: Slightly increase font-weight for this specific font */
    font-weight: 800;
    font-size: 2.6rem;
    white-space: nowrap; 
    line-height: 1;
    position: relative; 
    
    /* --- The Aurora Gradient --- */
    background: linear-gradient(
        110deg, 
        var(--color-secondary) 0%, 
        var(--color-primary-light) 25%, 
        var(--color-tertiary) 50%, 
        var(--color-primary-light) 75%, 
        var(--color-secondary) 100%
    );
    background-size: 250% 100%;
    
    /* --- Clipping and Animation --- */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: aurora-shimmer 12s linear infinite;
    
    /* --- Adding Depth --- */
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 0 1px rgba(255, 255, 255, 0.3);

    /* --- Smooth Transitions --- */
    transition: animation-duration 0.8s ease, text-shadow 0.3s ease;
}

/* --- Interactive Hover Effect --- */
.logo a:hover .logo-text {
    animation-duration: 4s; /* Speed up the animation on hover */
    text-shadow: 
        0 2px 5px rgba(146, 110, 204, 0.2), /* Add a subtle color glow */
        0 0 1px rgba(255, 255, 255, 0.3);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: var(--weight-medium);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-gradient);
    transition: width var(--transition-medium);
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* ======================================= */
/* START: NEW STYLES FOR AUTH BUTTONS      */
/* ======================================= */

/* Base override for any button in the header */
.auth-buttons .btn {
    padding: 0.8rem 1.8rem; /* Reduced padding for a smaller size */
    font-size: 1.4rem;      /* Smaller font size */
    font-weight: var(--weight-medium); /* Slightly lighter weight */
    box-shadow: none;       /* Remove any default large shadows */
}

/* Style for the secondary button (e.g., "Log In") */
.auth-buttons .btn-secondary {
    border-color: var(--color-border);
    color: var(--color-text-light);
    background-color: transparent;
}

.auth-buttons .btn-secondary:hover {
    background-color: var(--color-background);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    transform: none; /* Remove the larger button jump effect */
}

/* Style for the primary button (e.g., "Sign Up") */
.auth-buttons .btn-primary {
    /* The gradient is good, we just need to adjust the hover effect */
    box-shadow: 0 2px 8px rgba(114, 109, 156, 0.2);
}

.auth-buttons .btn-primary:hover {
    transform: translateY(-2px); /* A smaller, more subtle jump */
    filter: brightness(1.1); /* A nice, clean hover effect */
    box-shadow: 0 4px 10px rgba(114, 109, 156, 0.25);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Keyframe animation for the shimmering gradient effect */
@keyframes shine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}


/*
==========================================================================
   6. Search Wrapper & Icon Styles
==========================================================================
*/

/* Search Icon in Header */
.search-icon-toggle {
    display: none; /* Hidden on desktop by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: var(--color-primary-dark);
}

.search-icon-toggle:hover {
    background-color: rgba(112, 109, 156, 0.1);
}

/* Search Wrapper (Overlay) */
.search-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 23, 43, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.search-wrapper.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.search-content {
    transform: translateY(-20px);
    transition: transform 0.4s ease 0.1s;
    width: 90%;
    max-width: 700px;
}

.search-wrapper.is-active .search-content {
    transform: translateY(0);
}

.search-close-btn {
    position: absolute;
    top: 3rem;
    right: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-close-btn:hover {
    color: white;
    transform: rotate(90deg);
}

.search-form {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.search-input-field {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.8rem;
    font-family: var(--font-primary);
    padding: 1rem 0;
    outline: none;
}

.search-input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit-btn {
    background: none;
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
}

.search-tip {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 1.4rem;
    margin: 0;
}

[data-bg] {
  background-color: #f0f0f0; /* A light grey placeholder */
  transition: background-image 0.5s ease-in-out;
}