/**
 * Main stylesheet for domain financial audit company
 * Color palette:
 * - Primary: #1A75FF (neon blue)
 * - Accent: #C1FF72 (lime green)
 * - Background: #0D0D0D (coal black)
 * - Text: #F1F1F1 (smoky white)
 * - UI Elements: #FFB3C1 (powdery pink)
 * - Gradients: #1A75FF to #FFB3C1
 */

/* ---------- Base Styles ---------- */
:root {
    --primary: #1A75FF;
    --accent: #C1FF72;
    --background: #0D0D0D;
    --text: #F1F1F1;
    --ui-elements: #FFB3C1;
    --gradient-start: #1A75FF;
    --gradient-end: #FFB3C1;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--border-radius);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--accent);
    color: var(--background);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--background);
}

.btn-accent:hover {
    background-color: var(--primary);
    color: var(--text);
}

/* ---------- Header Styles ---------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 13, 13, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

.logo a {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text);
    font-weight: bold;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.cta-button {
    background-color: var(--accent);
    color: var(--background) !important;
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.cta-button:hover {
    background-color: var(--primary);
    color: var(--text) !important;
}

/* Mobile menu toggle (PHP implementation) */
.mobile-menu-toggle {
    display: none;
}

.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: flex;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.menu-toggle-label span {
    height: 3px;
    width: 100%;
    background-color: var(--text);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom right, rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.9)), url('./img/oQTKUi.jpg') no-repeat center center / cover;
    margin-top: 0;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeIn 1.5s ease;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    animation: fadeIn 1.5s 0.5s both;
}

.hero-buttons {
    animation: fadeIn 1.5s 1s both;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* ---------- About Section ---------- */
.about {
    background-color: rgba(26, 117, 255, 0.05);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 50px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(26, 117, 255, 0.2), rgba(255, 179, 193, 0.2));
    pointer-events: none;
}

.about-text h2 {
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
}

/* ---------- Services Section ---------- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(26, 117, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: right 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(26, 117, 255, 0.3);
}

.service-card:hover::before {
    right: 0;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-text {
    margin-bottom: 20px;
}

/* ---------- Why Us Section ---------- */
.why-us {
    background-color: rgba(26, 117, 255, 0.05);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.02);
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, rgba(26, 117, 255, 0.2), rgba(255, 179, 193, 0.2));
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid rgba(26, 117, 255, 0.3);
    animation: pulse 2s infinite;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* ---------- Process Section ---------- */
.process-container {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 90px;
    bottom: -30px;
    left: 35px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
}

.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 30px;
    position: relative;
    z-index: 1;
}

.step-content {
    padding-top: 10px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ---------- Case Studies Section ---------- */
.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}

.case-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.case-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.2), rgba(13, 13, 13, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.case-title {
    color: var(--text);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.case-tag {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background-color: rgba(26, 117, 255, 0.05);
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(26, 117, 255, 0.1);
}

.testimonial-card:last-child {
    margin-bottom: 0;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info {
    margin-left: 20px;
}

.author-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.author-position {
    font-size: 0.875rem;
    color: rgba(241, 241, 241, 0.7);
}

/* ---------- Contact Form Section ---------- */
.contact {
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 117, 255, 0.1), rgba(255, 179, 193, 0.1));
    pointer-events: none;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(26, 117, 255, 0.1);
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    border: 1px solid rgba(241, 241, 241, 0.2);
    border-radius: var(--border-radius);
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 117, 255, 0.3);
}

select.form-control {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23f1f1f1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
}

/* Ensure option text is visible in dropdown */
select.form-control option {
    background-color: var(--background);
    color: var(--text);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check-label {
    font-size: 0.875rem;
}

.form-check-label a {
    text-decoration: underline;
}

/* ---------- Footer Styles ---------- */
.main-footer {
    background-color: rgba(13, 13, 13, 0.9);
    padding: 80px 0 20px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.footer-info p {
    color: rgba(241, 241, 241, 0.7);
    font-size: 0.875rem;
}

.footer-contact h3,
.footer-links h3,
.footer-legal h3 {
    margin-bottom: 20px;
    font-size: 1.125rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-links h3::after,
.footer-legal h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.footer-contact ul,
.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-contact li,
.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
    color: rgba(241, 241, 241, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(241, 241, 241, 0.1);
}

.footer-bottom p {
    color: rgba(241, 241, 241, 0.5);
    font-size: 0.875rem;
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(26, 117, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    z-index: 1050;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
}

.cookie-buttons button {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.cookie-buttons button:hover {
    background-color: var(--accent);
    color: var(--background);
}

.cookie-buttons a {
    color: rgba(241, 241, 241, 0.7);
    text-decoration: underline;
    align-self: center;
}

.cookie-buttons a:hover {
    color: var(--accent);
}

/* ---------- Policy Pages ---------- */
.policy-page {
    padding: 120px 0 60px;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(26, 117, 255, 0.1);
}

.policy-title {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(241, 241, 241, 0.1);
}

.policy-content h2 {
    margin: 30px 0 15px;
}

.policy-content p {
    margin-bottom: 15px;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(241, 241, 241, 0.1);
    text-align: center;
    color: rgba(241, 241, 241, 0.7);
    font-size: 0.875rem;
}

/* ---------- Thank You Page ---------- */
.thank-you {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    border: 1px solid rgba(26, 117, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.thank-you-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.thank-you-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.thank-you-text {
    margin-bottom: 30px;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- FAQ Accordion (PHP-based) ---------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(26, 117, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.01);
}

.faq-answer.open {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.menu-open {
        right: 0;
    }

    .nav-menu li {
        margin: 0 0 20px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        margin: 0 5px 10px;
        font-size: 14px;
        padding: 10px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        margin-bottom: 10px;
    }
}
