/*
================================================
TABLE OF CONTENTS
================================================
1.  Setup & Variables
2.  Base & Typography
3.  Custom Cursor
4.  Utility & Buttons
5.  Header & Navigation
6.  Hero Section
7.  About Section
8.  Services Section
9.  Stats Counter Section
10. Process Timeline Section
11. Sample Reports Section
12. Testimonials Section
13. Footer
14. Contact Page
15. Legal Pages
16. Modal
17. Animations & Keyframes
18. Responsive Design
================================================
*/

/* 1. Setup & Variables
------------------------------------------------ */
:root {
    --primary-color: #D4AF37;
    /* Gold accent */
    --primary-color-hover: #E5C163;
    --dark-bg: #121212;
    /* Rich black */
    --dark-bg-secondary: #1E1E1E;
    /* Dark grey */
    --text-color: #E0E0E0;
    /* Off-white text */
    --heading-color: #FFFFFF;
    --border-color: rgba(212, 175, 55, 0.2);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 5px;
}

/* 2. Base & Typography
------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    overflow-x: hidden;
    cursor: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 120px 0;
}

.dark-section {
    background-color: var(--dark-bg-secondary);
}

.highlight {
    color: var(--primary-color);
}

/* 3. Custom Cursor
------------------------------------------------ */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

.cursor-outline.hovered {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.5;
}

/* 4. Utility & Buttons
------------------------------------------------ */
.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title.text-center {
    align-items: center;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 600px;
}

.section-title.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    color: var(--dark-bg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    color: var(--dark-bg);
}

/* 5. Header & Navigation
------------------------------------------------ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
    padding: 15px 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--heading-color);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--heading-color);
    transition: var(--transition);
}

/* 6. Hero Section
------------------------------------------------ */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    z-index: -1;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-buttons .btn {
    margin-right: 1rem;
}

/* 7. About Section
------------------------------------------------ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.feature-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 1rem;
}

.feature-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 8. Services Section
------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--dark-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    transform: perspective(1000px);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 9. Stats Counter Section
------------------------------------------------ */
#stats {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    background-attachment: fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--heading-color);
    margin: 0;
}

/* 10. Process Timeline Section
------------------------------------------------ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--dark-bg);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 28px;
    right: -15px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--border-color);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 28px;
    left: -15px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent var(--border-color) transparent transparent;
}

.timeline-content h4 {
    color: var(--primary-color);
}

/* 11. Sample Reports Section
------------------------------------------------ */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.report-card {
    background-color: var(--dark-bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.report-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 12. Testimonials Section
------------------------------------------------ */
.testimonial-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-wrapper::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.testimonial-author strong {
    font-family: var(--font-heading);
    color: var(--heading-color);
}

.testimonial-author span {
    display: block;
    color: var(--primary-color);
}

/* 13. Footer
------------------------------------------------ */
#main-footer {
    padding-top: 80px;
    background: var(--dark-bg-secondary);
    border-top: 3px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* 14. Contact Page
------------------------------------------------ */
#contact-page {
    background: var(--dark-bg-secondary);
}

.contact-container {
    max-width: 900px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-details h3 {
    color: var(--primary-color);
}

.contact-details ul {
    margin-top: 1rem;
    list-style-type: none;
}

.contact-details ul li {
    margin-bottom: 1rem;
}

.contact-details ul li strong {
    display: block;
}

/* 15. Legal Pages
------------------------------------------------ */
#legal-page {
    min-height: 80vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-bg-secondary);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h1 {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.legal-content h2 {
    margin: 2.5rem 0 1rem 0;
    color: var(--primary-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 25px;
}

/* 16. Modal
------------------------------------------------ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    animation: zoomIn 0.5s;
}

#modal-image {
    width: 100%;
    height: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* 17. Animations & Keyframes
------------------------------------------------ */
.animate-on-load {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.fade-in-up {
    transform: translateY(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* 18. Responsive Design
------------------------------------------------ */
@media (max-width: 1024px) {

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--dark-bg);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s ease-in-out;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cta-button {
        display: none;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -15px;
        border-color: transparent var(--border-color) transparent transparent;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-wrapper {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .timeline-content {
        padding: 15px;
    }
}