/* --- Global Variables --- */
:root {
    --primary-purple: #8A2BE2; /* A vibrant purple for accents */
    --dark-purple: #1A092A;
    --medium-purple: #2A1141;
    --light-purple-bg: #3B1A5C;
    --text-light: #EAE0FF;
    --text-medium: #C0B4D4;
    --text-dark: #9A8EB5;
    --white: #FFFFFF;
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --border-radius: 8px;
    --nav-height: 80px;
    --transition: all 0.25s ease-in-out;
}

/* --- Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: linear-gradient(rgba(26, 9, 42, 0.97), rgba(26, 9, 42, 0.99)), url('images/hero.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-medium);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 100px 20px;
}

section {
    margin: 0 auto;
    padding: 80px 0;
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px 0;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
}

h1 {
    font-size: clamp(40px, 5vw, 60px);
}

h2 {
    font-size: clamp(30px, 4vw, 40px);
}

h3 {
    font-size: 24px;
}

p {
    margin: 0 auto 15px auto;
    max-width: 650px;
}

a {
    text-decoration: none;
    color: var(--primary-purple);
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--white);
}

/* --- Buttons --- */
.big-button {
    display: inline-block;
    background-color: var(--primary-purple);
    color: var(--white);
    border: 1px solid var(--primary-purple);
    border-radius: var(--border-radius);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 10px;
    white-space: nowrap; /* Prevents button text from wrapping */
}

.big-button:hover,
.big-button:focus {
    background-color: #9932CC; /* Darker purple */
    border-color: #9932CC;
}

.button-secondary {
    background-color: transparent;
    border: 1px solid var(--text-medium);
    color: var(--text-light);
}

.button-secondary:hover,
.button-secondary:focus {
    background-color: var(--medium-purple);
    border-color: var(--primary-purple);
}

/* --- Header & Navigation --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 11;
    padding: 0px 40px;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(26, 9, 42, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header .logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo span {
  display: inline-block;
  color: #b45cff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.header .logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header .logo a span {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links ol {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 20px;
}

.nav-links ol li {
    margin: 0;
}

.nav-links ol li a {
    padding: 10px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.nav-links ol li a:hover {
    color: var(--primary-purple);
}

.header-buttons {
    display: flex;
}

.header-buttons .big-button {
    padding: 10px 20px;
    margin: 0;
}

.mobile-nav-toggle {
    display: none; /* Hidden by default */
    z-index: 9999;
}

.nav-menu-mobile {
    display: none; /* Hidden by default */
}

/* --- Hero Section --- */
.hero {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
    padding: 0;
    background: radial-gradient(ellipse at center, rgba(26, 9, 42, 0.5) 0%, rgba(26, 9, 42, 0.9) 70%, var(--dark-purple) 100%), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin-top: var(--nav-height);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* --- Card Styles --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.card {
    background-color: var(--medium-purple);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-purple-bg);
    text-align: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.card h3 {
    color: var(--text-light);
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-medium);
    font-size: 15px;
}

.card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* --- Category & Trust Bar Card Styles --- */
#categories .cards-grid, #trust-bar .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#categories .card, #trust-bar .card {
    text-align: left;
    padding: 2rem;
}

/* --- Model Card Styles --- */
.model-card {
    display: flex;
    flex-direction: column;
}

.model-card p {
    flex-grow: 1;
}

.model-card .big-button {
    width: 100%;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

/* --- City Card Styles --- */
.city-card {
    display: flex;
    flex-direction: column;
}

.city-card p {
    flex-grow: 1;
}

.city-card .card-image {
    height: 200px;
    object-fit: cover;
}

.city-card h3 {
    margin-top: 15px;
    font-size: 20px;
}

.city-card .big-button {
    width: 100%;
    margin-top: auto; /* Pushes button to the bottom */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

/* --- Footer --- */
.footer {
    background-color: #11061C;
    color: var(--text-dark);
    padding: 50px 20px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-medium);
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--primary-purple);
}

.footer-legal {
    font-size: 12px;
    padding-top: 30px;
    border-top: 1px solid var(--medium-purple);
    max-width: 1000px;
    margin: 0 auto;
}

/* --- How It Works Section --- */
#how-it-works ol {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: how-it-works-counter;
}

#how-it-works li {
    counter-increment: how-it-works-counter;
    position: relative;
    padding: 15px 15px 15px 60px;
    margin-bottom: 15px;
    background-color: var(--medium-purple);
    border-radius: var(--border-radius);
    text-align: left;
}

#how-it-works li::before {
    content: '0' counter(how-it-works-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-purple);
}

/* --- FAQ Section Styles --- */
#faq-preview div, #faq-list div {
    margin-bottom: 40px;
    text-align: center;
}

#faq-preview h3, #faq-list h3 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 15px;
}

#faq-preview p, #faq-list p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-medium);
    font-size: 16px;
}

/* --- FAQ Section Styles for models.html --- */
#faq-models div {
    margin-bottom: 30px;
    text-align: center;
}

#faq-models h3 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 10px;
}

#faq-models p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-medium);
}

/* --- Custom List Styles for models.html --- */
#how-to-choose ul {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

#how-to-choose li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

#how-to-choose li::before {
    content: '\2022'; /* Bullet character */
    color: var(--primary-purple);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
    position: absolute;
    left: 15px;
    top: 0;
}

/* --- Table Styles for models.html --- */
#model-types table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    text-align: left;
}

#model-types th, #model-types td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--light-purple-bg);
}

#model-types th {
    color: var(--text-light);
    font-weight: 600;
    font-size: 18px;
}

#model-types td {
    color: var(--text-medium);
    vertical-align: top;
}

#model-types tr:last-child td {
    border-bottom: none;
}

/* --- Form Styles --- */
form {
    max-width: 700px;
    margin: 40px auto;
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}
input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-purple);
    border: 1px solid var(--light-purple-bg);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    main {
        padding: 100px 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .header-right {
        display: none; /* Hide desktop nav container */
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }
    
    .mobile-nav-toggle .hamburger {
        position: relative;
        width: 25px;
        height: 2px;
        background-color: var(--white);
        transition: var(--transition);
    }

    .mobile-nav-toggle .hamburger::before,
    .mobile-nav-toggle .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 25px;
        height: 2px;
        background-color: var(--white);
        transition: var(--transition);
    }

    .mobile-nav-toggle .hamburger::before {
        top: -8px;
    }

    .mobile-nav-toggle .hamburger::after {
        top: 8px;
    }

    .mobile-nav-toggle.is-active .hamburger {
        background-color: transparent;
    }

    .mobile-nav-toggle.is-active .hamburger::before {
        transform: rotate(45deg) translate(5px, -6px);
    }

    .mobile-nav-toggle.is-active .hamburger::after {
        transform: rotate(-45deg) translate(5px, 6px);
    }

    .nav-menu-mobile {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--dark-purple);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .nav-menu-mobile.is-active {
        visibility: visible;
        opacity: 1;
    }

    .nav-menu-mobile ol {
        flex-direction: column;
        padding: 0;
        list-style: none;
        text-align: center;
    }

    .nav-menu-mobile ol li {
        margin: 25px 0;
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
