/* style.css - Main stylesheet for Domain audit company website */

/* === VARIABLES === */
:root {
    /* Main color palette */
    --bg-main: #3A00E5;         /* Ultraviolet neon */
    --accent: #FF2EC4;          /* Toxic pink */
    --card-bg: #F5F0EB;         /* Powder gray-beige */
    --text-light: #FFFFFF;      /* White */
    --text-dark: #1B1C1E;       /* Ink */
    --btn-grad-start: #5FFF4D;  /* Acid green gradient start */
    --btn-grad-end: #00D66B;    /* Acid green gradient end */
    
    /* Font sizes */
    --font-xxl: 3.5rem;
    --font-xl: 2.5rem;
    --font-lg: 1.75rem;
    --font-md: 1.25rem;
    --font-sm: 1rem;
    --font-xs: 0.875rem;
    
    /* Spacing */
    --space-xl: 4rem;
    --space-lg: 3rem;
    --space-md: 2rem;
    --space-sm: 1rem;
    --space-xs: 0.5rem;
    
    /* Border radius */
    --radius: 28px;
    --radius-sm: 14px;
    
    /* Shadows */
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--font-xxl);
}

h2 {
    font-size: var(--font-xl);
}

h3 {
    font-size: var(--font-lg);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-xl) 0;
    scroll-margin-top: 100px; /* This adds margin above sections for anchor links */
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--btn-grad-start), var(--btn-grad-end));
    color: var(--text-dark);
    font-weight: 700;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: var(--font-md);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* === CARD STYLES === */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
    overflow: hidden;
    height: 100%;
}

/* === HEADER === */
header {
    background-color: rgba(58, 0, 229, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--font-lg);
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

/* Standard navigation */
nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: var(--font-sm);
    padding: 0 var(--space-xs);
    position: relative;
    line-height: 70px;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 0, 229, 0.9), rgba(255, 46, 196, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: var(--font-md);
    margin-bottom: var(--space-md);
}

/* === ABOUT SECTION === */
.about {
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* === BENEFITS SECTION === */
.benefits {
    background: linear-gradient(135deg, var(--bg-main), #4B0DFF);
    position: relative;
    overflow: hidden;
}

.benefits h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.benefit-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.benefit-card:hover {
    transform: translateY(-10px) rotateY(5deg);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

/* === SERVICES SECTION === */
.services {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

.services h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease;
    padding-top: 160px;
    position: relative;
    overflow: hidden;
}

.service-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--bg-main);
}

/* === WORKFLOW SECTION === */
.workflow {
    background: linear-gradient(135deg, #4B0DFF, var(--bg-main));
}

.workflow h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--accent);
    transform: translateX(-50%);
}

.timeline-item {
    padding: var(--space-md) 0;
    position: relative;
}

.timeline-content {
    width: 45%;
    padding: var(--space-md);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.testimonial-card {
    border-left: 4px solid var(--accent);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.testimonial-name {
    font-weight: 700;
    color: var(--bg-main);
}

.testimonial-position {
    font-size: var(--font-xs);
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    font-style: italic;
}

/* === FAQ SECTION === */
.faq {
    background: linear-gradient(135deg, var(--bg-main), #4B0DFF);
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.faq-item {
    margin-bottom: var(--space-md);
}

.faq-question {
    background-color: var(--card-bg);
    padding: var(--space-md);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: var(--font-xl);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    background-color: rgba(245, 240, 235, 0.9);
    padding: var(--space-md);
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: -5px;
    color: var(--text-dark);
    display: none;
}

.faq-answer.show {
    display: block;
}

/* === CONTACT FORM SECTION === */
.contact {
    background: linear-gradient(135deg, #4B0DFF, var(--bg-main));
}

.contact h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-sm);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.checkbox-group input {
    width: auto;
    margin-right: var(--space-xs);
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: var(--font-xs);
}

.policy-label {
    color: var(--text-dark);
}

.form-submit {
    text-align: center;
}

/* === FOOTER === */
footer {
    background-color: #2A0089;
    padding: var(--space-lg) 0;
    color: var(--text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.footer-column h3 {
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--text-light);
}

.footer-contact {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: var(--space-xs);
    color: var(--accent);
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--font-xs);
}

/* === POLICY PAGES === */
.policy-container {
    max-width: 800px;
    margin: 120px auto var(--space-xl);
    background-color: var(--text-light);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.policy-container h1 {
    color: var(--bg-main);
    margin-bottom: var(--space-md);
    font-size: var(--font-xl);
}

.policy-container h2 {
    color: var(--bg-main);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--font-lg);
}

.policy-container p, .policy-container ul, .policy-container ol {
    margin-bottom: var(--space-sm);
}

.policy-container ul, .policy-container ol {
    padding-left: var(--space-md);
}

.back-link {
    display: inline-block;
    margin-top: var(--space-md);
    color: var(--bg-main);
    font-weight: 600;
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: var(--space-md);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-popup.hidden {
    display: none;
}

.cookie-text {
    flex: 1;
    padding-right: var(--space-md);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* === THANK YOU PAGE === */
.thanks-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: var(--space-lg);
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
    max-width: 600px;
    margin: 120px auto var(--space-xl);
}

.thanks-icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.thanks-container h1 {
    color: var(--bg-main);
}

.thanks-container .btn {
    margin-top: var(--space-md);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    :root {
        --font-xxl: 3rem;
        --font-xl: 2.25rem;
        --font-lg: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-xxl: 2.5rem;
        --font-xl: 2rem;
        --space-lg: 2.5rem;
    }
    
    .header-container {
        justify-content: center;
    }
    
    nav {
        display: none;
    }
    
    .logo {
        font-size: var(--font-md);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        flex-direction: column;
    }
    
    .cookie-text {
        margin-bottom: var(--space-sm);
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    :root {
        --font-xxl: 2.25rem;
        --font-xl: 1.75rem;
        --font-lg: 1.25rem;
        --space-lg: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        margin: 0 auto;
    }
}