/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@700&display=swap');

/* --- Global Variables --- */
:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --accent-color: #8A2BE2; /* Blue Violet */
    --secondary-bg-color: #333333;
    --font-primary: 'Montserrat', sans-serif;
    --font-headings: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--text-color);
    line-height: 1.3;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

/* --- Header --- */
.header {
    padding: 20px 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--secondary-bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__link {
    color: var(--text-color);
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    padding: 60px 0;
    background-color: #111;
    border-top: 1px solid var(--secondary-bg-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__heading {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: #a0a0a0;
}

.footer__link:hover {
    color: var(--accent-color);
}

.footer__address {
    font-style: normal;
    color: #a0a0a0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        /* JS logic will be added later to handle the mobile menu */
        display: none;
    }
    .burger {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__column {
        align-items: center;
    }
}

/* --- Button --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--accent-color);
}

.button:hover {
    transform: translateY(-3px);
    background-color: #7b25c8;
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - 85px); /* Full height minus header height */
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero__content {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__dynamic-intro {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: 700;
    height: 30px; /* Reserve space to prevent layout shift */
    margin-bottom: 15px;
}

.hero__cursor {
    display: inline-block;
    width: 2px;
    height: 20px;
    background-color: var(--accent-color);
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: #c0c0c0;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s 0.5s ease-in-out backwards;
}

.hero__image {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

/* --- Responsive for Hero Section --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 36px;
    }
    .hero__container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 40px 0;
    }
    .hero__container {
        grid-template-columns: 1fr;
    }
    .hero__visual {
        margin-top: 40px;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- General Section Styles --- */
.section {
    padding: 80px 0;
}

.section:nth-of-type(even) {
    background-color: #202020; /* Slightly different bg for alternating sections */
}

.section__title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 18px;
    color: #c0c0c0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}


/* --- Analysis Section --- */
.analysis__grid {
    display: grid;
    /* This creates a responsive grid that shows as many 280px columns as fit */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.analysis-card {
    background-color: var(--secondary-bg-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.analysis-card__icon {
    margin-bottom: 20px;
}

.analysis-card__icon .lucide {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.analysis-card__title {
    font-size: 22px;
    font-family: var(--font-headings);
    margin-bottom: 10px;
}

.analysis-card__text {
    color: #c0c0c0;
    font-size: 15px;
}

/* --- Strategies Section (Accordion) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion__item {
    border-bottom: 1px solid var(--secondary-bg-color);
}

.accordion__item:first-child {
    border-top: 1px solid var(--secondary-bg-color);
}

.accordion__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-color);
}

.accordion__title {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-primary);
}

.accordion__icon {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion__content p {
    color: #c0c0c0;
    padding-bottom: 20px;
}

/* --- Active State for Accordion --- */
.accordion__item--active .accordion__trigger .accordion__icon {
    transform: rotate(45deg);
}

/* --- Tools Section --- */
.tools__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tool-item__icon {
    flex-shrink: 0;
    margin-top: 5px; /* Align icon with the title */
}

.tool-item__icon .lucide {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.tool-item__title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tool-item__description {
    color: #c0c0c0;
    font-size: 15px;
}

@media (max-width: 400px) {
    .tools__list {
        grid-template-columns: 1fr;
    }
}

/* --- Cases Section --- */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: var(--secondary-bg-color);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.case-card__tag {
    align-self: flex-start;
    background-color: var(--accent-color);
    opacity: 0.8;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.case-card__title {
    font-size: 22px;
    margin-bottom: 15px;
}

.case-card__quote {
    font-style: italic;
    color: #c0c0c0;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 0 0 20px 0;
    font-size: 15px;
}

.case-card__text {
    font-size: 15px;
    color: #f0f0f0;
    line-height: 1.7;
}

.case-card__text strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Contact Section --- */
.contact {
    background-color: #202020;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact__info-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact__info p {
    color: #c0c0c0;
    margin-bottom: 30px;
}

.contact__info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact__info-list a {
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.captcha-group #captcha-question {
    font-weight: 700;
    color: var(--accent-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
}

.checkbox-group a {
    text-decoration: underline;
}

.contact__button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.success-message {
    padding: 30px;
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    text-align: center;
}

/* --- Responsive for Contact Section --- */
@media (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-bg-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 200;
    border-top: 1px solid #444;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--hidden {
    transform: translateY(100%);
}

.cookie-popup__text {
    color: #c0c0c0;
    font-size: 14px;
}

.cookie-popup__text a {
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 8px 20px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Policy & Text Pages --- */
.pages {
    padding: 60px 0;
}

.pages .container {
    max-width: 800px;
}

.pages h1 {
    font-size: 42px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary-bg-color);
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
}

.pages p {
    color: #c0c0c0;
    margin-bottom: 15px;
    line-height: 1.8;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.pages li {
    margin-bottom: 10px;
    color: #c0c0c0;
}

.pages a {
    text-decoration: underline;
}

.pages strong {
    color: var(--text-color);
    font-weight: 700;
}