/*
--- MONOLITH THEME ---
Version: 5.0

TABLE OF CONTENTS
1.  :root & Global Styles
2.  Utility & Animation Classes
3.  Custom Cursor
4.  Header & Navigation
5.  Mobile Navigation
6.  Hero Section & 3D Monolith
7.  Services Section
8.  Blueprint Section
9.  Insights & Industries Sections
10. Testimonials Section (Slider)
11. CTA Section
12. Footer
13. Page-Specific Styles (Contact, Legal)
14. Forms
15. Media Queries (Responsiveness)
*/

/* 1. :root & Global Styles */
:root {
    --bg-monolith-dark: #111111;
    --bg-monolith-panel: #1A1A1A;
    --accent-gold: #FFBF00;
    --text-primary: #F5F5F5;
    --text-secondary: #A3A3A3;
    --border-color: rgba(255, 191, 0, 0.2);
    --font-family: 'Urbanist', sans-serif;
    --header-height: 80px;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-monolith-dark);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231A1A1A' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body,
a,
button {
    cursor: none;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

section {
    padding: 120px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 3rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

/* 2. Utility & Animation Classes */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-monolith-dark);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    color: var(--bg-monolith-dark);
    transform: scale(1.05);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
    text-align: center;
}

.highlight {
    color: var(--accent-gold);
}

[data-animation] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-in-up"] {
    transform: translateY(40px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
    transition-delay: var(--delay, 0s);
}

.reveal-mask {
    display: inline-block;
    overflow: hidden;
}

.animate-on-load,
[data-animation="slide-in-masked"] {
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: var(--delay, 0s);
}

.animate-on-load.visible,
.animate-on-scroll.visible [data-animation="slide-in-masked"] {
    transform: translateY(0);
}

/* 3. Custom Cursor */
.custom-cursor-dot,
.custom-cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    transform: translate(-50%, -50%);
}

.custom-cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-gold);
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
}

body.cursor-interact .custom-cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-width: 1px;
}

/* 4. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    padding: 0 20px;
    transition: background-color var(--transition);
}

.site-header.scrolled {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 5. Mobile Navigation */
.hamburger {
    display: none;
    background: none;
    border: none;
    z-index: 1010;
    width: 30px;
    height: 22px;
    position: relative;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger .bar:first-child {
    top: 0;
}

.hamburger .bar:last-child {
    top: 100%;
    transform: translateY(-100%);
}

.hamburger.active .bar:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active .bar:last-child {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-monolith-dark);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    clip-path: circle(150% at 100% 0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 10px 0;
}

/* 6. Hero Section & 3D Monolith */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 500px;
    margin: 1.5rem 0 2.5rem;
}

.hero-cta {
    margin-top: 1rem;
}

.hero-visual {
    perspective: 2000px;
}

.monolith-container {
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.monolith {
    position: relative;
    width: 250px;
    height: 400px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
}

.block {
    position: absolute;
    width: 100%;
    height: 66.67px;
    /* 400 / 6 */
    background: var(--bg-monolith-panel);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: build 2s forwards;
    animation-delay: calc(var(--i) * 0.2s);
}

.block:nth-child(1) {
    top: 0;
}

.block:nth-child(2) {
    top: 66.67px;
}

.block:nth-child(3) {
    top: 133.33px;
}

.block:nth-child(4) {
    top: 200px;
}

.block:nth-child(5) {
    top: 266.67px;
}

.block:nth-child(6) {
    top: 333.33px;
}

.block::before,
.block::after {
    content: '';
    position: absolute;
    background: inherit;
    border: 1px solid var(--border-color);
}

.block::before {
    width: 50px;
    height: 100%;
    top: 0;
    left: -50px;
    transform-origin: right;
    transform: rotateY(-90deg);
}

.block::after {
    width: 100%;
    height: 50px;
    top: -50px;
    left: 0;
    transform-origin: bottom;
    transform: rotateX(90deg);
}

@keyframes build {
    from {
        transform: translateY(50px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes float {
    50% {
        transform: translateY(-20px);
    }
}

/* 7. Services Section */
.services-section {
    background-color: var(--bg-monolith-panel);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-monolith-dark);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from var(--angle), transparent, var(--accent-gold), transparent);
    animation: rotate 5s linear infinite;
    opacity: 0;
    transition: opacity var(--transition);
}

@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

.service-card:hover .service-card-border {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-monolith-dark);
}

.service-icon,
.service-card h3,
.service-card p {
    position: relative;
    z-index: 1;
}

.service-icon {
    margin: 0 auto 20px;
    color: var(--accent-gold);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

/* 8. Blueprint Section */
.blueprint-diagram {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 80px;
}

.blueprint-diagram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
}

.blueprint-step {
    position: relative;
    padding-top: 50px;
    text-align: center;
}

.blueprint-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 25px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.step-content {
    background: var(--bg-monolith-panel);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.step-content h4 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

/* 9. Insights & Industries Sections */
.insights-section {
    background: var(--bg-monolith-panel);
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.insights-text .section-title {
    text-align: left;
}

.insights-visual {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
}

.chart-bar {
    width: 20%;
    background: var(--accent-gold);
    position: relative;
    height: 0;
    animation: grow 1s forwards cubic-bezier(0.19, 1, 0.22, 1);
    animation-delay: var(--d, 0s);
}

.insights-section:has(.visible) .chart-bar {
    height: var(--h, 50%);
}

.chart-bar span {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes grow {
    from {
        height: 0;
    }
}

.industry-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-family: var(--font-family);
    color: var(--text-secondary);
    position: relative;
}

.tab-button.active {
    color: var(--accent-gold);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
}

.tab-pane {
    display: none;
    text-align: center;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 10. Testimonials Section (Slider) */
.testimonials-section {
    background-color: var(--bg-monolith-panel);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.testimonial-slide span {
    font-weight: 600;
    color: var(--accent-gold);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-arrow {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    pointer-events: all;
}

.slider-arrow:hover {
    background: var(--bg-monolith-dark);
    color: var(--accent-gold);
}

/* 11. CTA Section */
.cta-section {
    text-align: center;
}

.cta-content p {
    max-width: 500px;
    margin: 1rem auto 2rem;
}

/* 12. Footer */
.site-footer {
    background: var(--bg-monolith-panel);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact p {
    color: var(--text-secondary);
    margin: 0;
}

/* 13. Page-Specific Styles (Contact, Legal) */
.page-header {
    padding: calc(var(--header-height) + 100px) 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.contact-page-section,
.legal-page-section {
    padding-bottom: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: var(--bg-monolith-panel);
    padding: 40px;
}

.contact-info-block {
    margin-bottom: 2rem;
}

.contact-info-block h4 {
    color: var(--accent-gold);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    text-align: left;
    margin: 2rem 0 1rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* 14. Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-monolith-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.3);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A3A3A3' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* 15. Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    .main-nav,
    .header-actions .btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .blueprint-diagram {
        grid-template-columns: 1fr 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insights-text {
        text-align: center;
    }

    .insights-text .section-title {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .blueprint-diagram {
        grid-template-columns: 1fr;
    }

    .blueprint-diagram::before,
    .blueprint-step::before {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .custom-cursor-dot,
    .custom-cursor-outline {
        display: none;
    }

    body,
    a,
    button {
        cursor: initial;
    }
}