/* Main Styles for domain.com */

/* Color Palette */
:root {
    --primary: #3D155F;      /* Midnight Plum */
    --secondary: #C1FF72;    /* Electric Lime */
    --background: #0D0D0D;   /* Ink Black */
    --accent: #FF8B00;       /* Solar Orange */
    --text: #F9F9F9;         /* Ivory White */
    --cta: #9BE8FF;          /* Frost Blue */
    --light-bg: #1A1A1A;     /* Slightly lighter background for cards */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section {
    padding: 80px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

p {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--cta);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
.header {
    background-color: var(--primary);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(61, 21, 95, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    margin-left: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("img/BPA8fM.jpg") no-repeat center center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.6s ease;
    justify-content: center;
}

/* Animated Background Text */
.animated-bg-text {
    position: absolute;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 1;
    animation: marquee 120s linear infinite;
}

.animated-bg-text:nth-child(1) {
    top: 5%;
    left: -100%;
}

.animated-bg-text:nth-child(2) {
    top: 35%;
    left: -30%;
    animation-duration: 100s;
    animation-delay: -30s;
}

.animated-bg-text:nth-child(3) {
    top: 65%;
    left: -50%;
    animation-duration: 80s;
    animation-delay: -50s;
}

/* About Section */
.about {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-image:before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--secondary);
    border-radius: 10px;
    z-index: -1;
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 40px 30px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 180px;
    margin: 0 auto 25px;
    overflow: hidden;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

/* Audit Types Section */
.audit-types {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.audit-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.audit-tab {
    padding: 12px 25px;
    cursor: pointer;
    margin: 0 5px 10px;
    background-color: var(--background);
    border-radius: 30px;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.audit-tab.active {
    background-color: var(--secondary);
    color: var(--primary);
}

.audit-content {
    display: none;
    padding: 30px;
    background: var(--background);
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

.audit-content.active {
    display: block;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition);
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 18px;
}

.testimonial-position {
    color: var(--secondary);
    font-size: 14px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    background-color: var(--light-bg);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--secondary);
}

/* Features Table */
.features {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.feature-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-top: 50px;
}

.feature-table tr {
    background-color: var(--background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.feature-table tr:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-table th,
.feature-table td {
    padding: 20px;
    text-align: left;
    border: none;
}

.feature-table th {
    font-size: 18px;
    color: var(--secondary);
}

.feature-table td:first-child {
    border-radius: 10px 0 0 10px;
}

.feature-table td:last-child {
    border-radius: 0 10px 10px 0;
}

.feature-icon {
    color: var(--accent);
    font-size: 24px;
    margin-right: 10px;
}

/* Contact Form */
.contact {
    padding: 100px 0;
}

.form-container {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.form-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 139, 0, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

select.form-control option {
    background-color: var(--primary);
    color: white;
    padding: 10px;
}

select.form-control option:hover, 
select.form-control option:checked {
    background-color: var(--accent) !important;
    color: white;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-container label {
    font-size: 14px;
    margin-bottom: 0;
}

/* FAQ Section */
.faq {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--background);
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-toggle:before,
.faq-toggle:after {
    content: "";
    position: absolute;
    background-color: var(--secondary);
    transition: var(--transition);
}

.faq-toggle:before {
    width: 24px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-toggle:after {
    width: 2px;
    height: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item.active .faq-toggle:after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Footer */
.footer {
    background-color: var(--primary);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: var(--text);
}

.footer-column h4:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 15px;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-popup.show {
    display: block;
}

.cookie-popup p {
    margin-bottom: 15px;
    font-size: 14px;
}

.cookie-popup button {
    width: 100%;
}

/* Policy Pages */
.policy-page {
    padding: 150px 0 80px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.policy-container h1 {
    margin-bottom: 30px;
    text-align: center;
}

.policy-container h3 {
    color: var(--secondary);
    margin: 30px 0 15px;
}

/* Thank You Page */
.thank-you {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    padding-top: 120px; /* Additional space below the header */
}

.thank-you-container {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    margin-top: -40px; /* Adjust for the padding-top added to the parent */
}

.thank-you-icon {
    font-size: 80px;
    color: var(--secondary);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(300%);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    .header-container {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .audit-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .audit-tab {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .feature-table {
        display: block;
        overflow-x: auto;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
}
